1 Wed Jun 25 11:31:59 CEST 2003 Jan Hubicka <jh@suse.cz>
3 * varasm.c (assemble_name): Mark needed variables even when
6 2003-06-24 Jerry Quinn <jlquinn@optonline.net>
9 * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
10 -freorder-functions description.
12 2003-06-25 Josef Zlomek <zlomekj@suse.cz>
14 * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
16 2003-06-25 Neil Booth <neil@daikokuya.co.uk>
18 * opts.c (common_handle_option): Add missing break;s.
20 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
22 * config/h8300/h8300-protos.h: Add a prototype for
24 * config/h8300/h8300.c (compute_mov_length): New.
25 * config/h8300/h8300.md (*movqi_h8300): Use it.
26 (*movqi_h8300hs): Likewise.
27 (movstrictqi): Likewise.
28 (*movhi_h8300): Likewise.
29 (*movhi_h8300hs): Likewise.
30 (movstricthi): Likewise.
31 (*movsi_h8300): Likewise.
32 (*movsf_h8300): Likewise.
33 (*movsi_h8300hs): Likewise.
34 (*movsf_h8300hs): Likewise.
36 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
38 * jump.c (next_nondeleted_insn): Remove.
39 * rtl.h: Remove the prototype for next_nondeleted_insn.
41 2003-06-24 Roger Sayle <roger@eyesopen.com>
44 * builtins.c (powi_cost): Fix typo. The number of multiplications
45 required is the number to reduce the argument, result, plus the
46 cost of calculating the residual, val [not n, the original value].
48 2003-06-24 Roger Sayle <roger@eyesopen.com>
50 * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
52 2003-06-24 Richard Henderson <rth@redhat.com>
53 (blame to: Loren James Rittle <ljrittle@acm.org>)
55 * real.h (ieee_extended_intel_96_round_53_format): New.
56 * real.c (ieee_extended_intel_96_round_53_format): New.
57 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
58 for XFmode and TFmode.
60 2003-06-24 Kazu Hirata <kazu@cs.umass.edu>
62 * config/h8300/h8300.md (4 anonymous patterns): Give internal
64 (movsi_h8300): Change the name to *movsi_h8300.
65 (movsi_h8300hs): Change the name to *movsi_h8300hs.
66 (movsf_h8300): Change the name to *movsf_h8300.
67 (movsf_h8300hs): Change the name to *movsf_h8300hs.
69 2003-06-24 Jakub Jelinek <jakub@redhat.com>
71 * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
74 2003-06-24 J"orn Rennecke <joern.rennecke@superh.com>
76 Back out these patches:
77 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
78 * sh.h (OLD_ARG_MODE): New macro.
79 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
80 (FUNCTION_ARG_1): Break out of:
81 (FUNCTION_ARG). Use OLD_ARG_MODE.
82 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
83 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
84 of the generated register.
86 * sh.h (FUNCTION_ARG_SCmode_WART): Define.
87 (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
88 an even number of floating point regs are in use, use the same
89 sequence of argument passing registers for SCmode as would be
90 used for two SFmode values.
91 * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
92 swap real / imaginary parts in incoming SCmode values passed
95 2003-06-24 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
98 * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
100 Tue Jun 24 18:49:33 CEST 2003 Jan Hubicka <jh@suse.cz>
102 * Makefile.in (cgraph.o): Depend on output.h, not depend on
104 * cgraph.c: Do not include tree-inline.h; include output.h
105 (known_fns): Rename to ...
106 (known_decls): ... this one; update all uses.
107 (cgraph_varpool_hash): New static variable.
108 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
110 (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
111 cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
112 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
114 * cgraph.h (cgraph_varpool_node): New structure.
115 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
116 (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
117 cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
118 cgraph_varpool_asemble_pending_decls): Declare.
119 * cgraphunit.c (record_call_1): Notice variable references.
120 (cgraph_finalize_compilation_unit): Assemble pending variables.
121 * toplev.c (wrapup_global_declarations): Use varpool.
122 (compile_file): Assemble pending declarations.
123 (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
124 * varasm.c (assemble_name): Notice varpool references.
126 Tue Jun 24 13:52:11 CEST 2003 Jan Hubicka <jh@suse.cz>
128 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
129 * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
130 * varasm.c (assemble_variable): Call prepare_assemble_variable.
132 2003-06-23 Roger Sayle <roger@eyesopen.com>
134 * builtins.c (expand_builtin): Use expand_builtin_pow to expand
135 calls for pow, powf, powl and their __builtin_ variants.
136 (expand_builtin_pow): If the second argument is a constant
137 integer and compiling with -ffast-math, use expand_powi to
138 generate RTL if powi_cost is less than POWI_MAX_MULTS.
139 (powi_cost): New function to return the number of multiplications
140 necessary to evaluate an Nth power, for integer constant N.
141 (expand_powi): New function to expand the RTL for evaluating
142 the Nth power of a floating point value, for integer constant N.
144 * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
146 Mon Jun 23 23:07:35 CEST 2003 Jan Hubicka <jh@suse.cz>
148 * cgraph.c (cgraph_nodes_queue): Declare.
149 (eq_node): Take identifier as p2.
150 (cgraph_node): Update htab_find_slot_with_hash call.
151 (cgraph_node_for_identifier): New.
152 (cgraph_mark_needed_node): Move here from cgraphunit.c.
153 * cgraph.h (cgraph_nodes_queue): Declare.
154 (cgraph_node_for_identifier): Declare.
155 * cgraphunit.c (cgraph_finalize_function): Collect entry points here
156 instead of in cgraph_finalize_compilation_unit; constructors and
157 destructors are entry points.
158 (cgraph_finalize_compilation_unit): Reorganize debug outout;
159 examine nested functions after lowerng; call collect_functions hook.
160 (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
161 (cgraph_finalize_compilation_unit): Do not collect entry points.
162 * varasm.c: Include cgraph.h
163 (assemble_name): Mark referenced identifier as needed.
165 * cgraphunit.c (record_call_1): Use get_callee_fndecl.
167 2003-06-23 Jakub Jelinek <jakub@redhat.com>
169 * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
171 * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
172 mode, as it requires pic register loaded.
174 * varasm.c (resolve_unique_section): Remove prototype. No longer
176 * tree.h (resolve_unique_section): New prototype.
178 2003-06-23 Andreas Schwab <schwab@suse.de>
181 * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
182 recursing through first argument.
184 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
186 * ChangeLog.1: Fix a typo.
187 * cfgrtl.c: Fix comment typos.
188 * dwarf2out.c: Likewise.
189 * expmed.c: Likewise.
190 * genrecog.c: Likewise.
192 * rtlanal.c: Likewise.
193 * ssa-dce.c: Likewise.
194 * toplev.c: Likewise.
196 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
198 * doc/extend.texi: Fix typos.
199 * doc/md.texi: Likewise.
200 * doc/tm.texi: Likewise.
202 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
204 * basic-block.h: Fix comment formatting.
205 * bt-load.c: Likewise.
206 * builtins.c: Likewise.
207 * c-common.c: Likewise.
208 * c-common.h: Likewise.
209 * c-format.c: Likewise.
210 * coverage.c: Likewise.
211 * cpplib.h: Likewise.
212 * cpppch.c: Likewise.
213 * dbxout.c: Likewise.
214 * diagnostic.c: Likewise.
215 * dwarf2out.c: Likewise.
217 * fold-const.c: Likewise.
218 * function.c: Likewise.
220 * gcov-io.c: Likewise.
221 * gcov-io.h: Likewise.
223 * profile.c: Likewise.
225 * sched-deps.c: Likewise.
227 2003-06-23 Roger Sayle <roger@eyesopen.com>
228 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
230 * doc/contrib.texi (Contributors): Add a note on testing and
231 remove duplicates from testers list.
233 2003-06-23 Nick Clifton <nickc@redhat.com>
235 * read-rtl.c (read_braced_string): Check for EOF. If
236 encountered issue an error message.
238 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
240 * doc/invoke.texi: Document dump options, dT and dW.
242 2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
244 * genrecog.c (pred_table): Remove the entry for
245 mode_independent_operand.
246 * recog.c (next_insns_test_no_inequality): Remove.
247 (mode_independent_operand): Likewise.
248 * recog.h: Remove the prototype for mode_independent_operand.
250 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
252 * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
254 * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
255 second alternative to set_znv.
256 (*extzv_1_r_inv_h8300hs): Likewise.
258 2003-06-23 Hans-Peter Nilsson <hp@bitrange.com>
260 * configure.in (in_tree_gas): Find out here whether GAS is ELF,
261 set in_tree_gas_is_elf accordingly.
262 (in_tree_ld): Find out whether LD emulation is ELF, set
263 in_tree_ld_is_elf accordingly.
264 (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
265 (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
266 (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
267 (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
268 grepping gas/Makefile.
269 (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
270 $in_tree_ld_is_elf instead of grepping ld/Makefile.
271 * configure: Regenerate.
273 2003-06-22 Roger Sayle <roger@eyesopen.com>
275 * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
276 up the stabilized argument list, not build_tree_list.
277 (expand_builtin_strcpy): Construct new argument list manually
278 instead of using chainon to modify the original argument list.
279 (expand_builtin_stpcpy): Construct new argument list manually
280 instead of using copy_list and chainon.
281 (expand_builtin_sprintf): New function. Optimize calls to
282 sprintf when the format is "%s" or doesn't contain a '%'.
283 (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
284 expand_builtin_sprintf.
286 2003-06-22 Andreas Schwab <schwab@suse.de>
288 * function.c (set_insn_locators): Mark as unused.
290 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
292 * common.opt: Add -finline-limit.
293 * opts.c (common_handle_options): Handle it.
294 * opts.sh: Temporary kludge for -finline-limit.
295 * toplev.c (decode_f_option, independent_decode_option): Die.
296 (parse_options_and_default_flags): No independent_decode_option.
298 2003-06-22 Andreas Jaeger <aj@suse.de>
300 * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
302 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
304 * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
306 2003-06-22 Andreas Schwab <schwab@suse.de>
308 * doc/invoke.texi: Remove leading `-' from options in index.
310 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
312 * bt-load.c: Follow spelling conventions.
314 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
316 * expr.c (emit_move_insn_1): Fix a comment typo.
318 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
320 * doc/invoke.texi: Alphabetize dump options.
322 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
324 * doc/invoke.texi: Remove a duplicate -dk.
326 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
328 * doc/invoke.texi: Update dump file names.
330 2003-06-22 Zack Weinberg <zack@codesourcery.com>
332 * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
333 and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
335 2003-06-22 Kazu Hirata <kazu@cs.umass.edu>
337 * doc/rtl.texi: Fix the @findex for pre_modify.
339 2003-06-22 Andreas Jaeger <aj@suse.de>
341 * caller-save.c: Convert to ISO C90.
344 * cfganal.c: Likewise.
345 * cfgbuild.c: Likewise.
346 * cfgcleanup.c: Likewise.
347 * cfghooks.c: Likewise.
348 * cfglayout.c: Likewise.
349 * cfglayout.h: Likewise.
350 * cfgloop.c: Likewise.
351 * cfgloop.h: Likewise.
352 * cfgloopanal.c: Likewise.
353 * cfgloopmainip.c: Likewise.
354 * cfgrtl.c: Likewise.
356 2003-06-22 Richard Earnshaw <rearnsha@arm.com>
358 * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
361 2003-06-22 Richard Earnshaw <rearnsha@arm.com>
363 * arm.md (all call_value patterns): Remove register constraints on
366 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
368 * common.opt: More -f switches.
369 * opts.c (common_handle_options): Handle them.
370 * toplev.c (time_report): Make extern.
371 (f_options): USe flag_dummy.
372 (decode_f_option): No need to use f_options now.
373 * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
374 flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
376 2003-06-22 Andreas Jaeger <aj@suse.de>
378 * c-lex.c: Convert to ISO C90.
379 * c-objc-common.c: Likewise.
380 * c-opts.c: Likewise.
382 * c-ppoutput.c: Likewise.
383 * c-pragma.h: Likewise.
384 * c-pretty-print.c: Likewise.
385 * c-pretty-print.h: Likewise.
386 * c-semantics.c: Likewise.
387 * c-tree.h: Likewise.
388 * c-typeck.c: Likewise.
390 * c-lang.c: Convert to ISO C90.
392 2003-06-22 Neil Booth <neil@daikokuya.co.uk>
394 * opts.c (find_opt): Fix to always guarantee a find of a
395 switch with joined parameter.
396 * opts.h (struct cl_option): New member back_chain.
397 * opts.sh: Update to calculate and add back_chain member.
399 2003-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
401 * diagnostic.h (output_host_wide_integer): Declare.
402 * diagnostic.c (output_long_long_decicaml): New function.
403 (output_host_wide_integer): Likewise.
404 (output_format): Use them. Handle "%ll" and "%w".
406 2003-06-21 Jason Thorpe <thorpej@wasabisystems.com>
408 * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
410 2003-06-21 Zack Weinberg <zack@codesourcery.com>
412 * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
413 * configure.in: Don't use gcc_AC_C_CHARSET.
414 * configure, config.in: Regenerate.
415 * config/i370/i370.c, config/i370/i370.h: Use
416 (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
417 instead of HOST_EBCDIC or !HOST_EBCDIC. Clarify comments a tad.
419 2003-06-21 Neil Booth <neil@daikokuya.co.uk>
421 * Makefile.in: Update.
422 * common.opt: New switches.
423 * opts.c: Include diagnostic.h.
424 (common_handle_option): Handle new switches.
425 * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
426 flag_if_conversion2, flag_delete_null_pointer_checks,
427 flag_rerun_cse_after_loop): Make extern.
429 (f_options): Update to use flag_dummy for moved options.
430 (decode_f_option): Some switches moved to opts.c.
431 * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
432 flag_if_conversion2, flag_delete_null_pointer_checks,
433 flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
434 flag_tracer, flag_thread_jumps, flag_unroll_loops,
435 flag_unroll_all_loops, flag_unswitch_loops): New.
437 Sat Jun 21 13:41:00 CEST 2003 Jan Hubicka <jh@suse.cz>
439 * i386.c (ix86_va_arg): Fix allocation of temporary slot.
441 2003-06-20 Kazu Hirata <kazu@cs.umass.edu>
443 * config/h8300/h8300-protos.h: Add a prototype for
444 same_cmp_preceding_p.
445 * config/h8300/h8300.c (same_cmp_preceding): New.
446 * config/h8300/h8300.md: Extend peephole2's that transform
447 compare:SI into shorter sequences so that they can deal with
450 2003-06-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
452 * doc/contrib.texi (Contributors): Use Windows instead of Win32.
454 Update Andreas Jaeger's entry.
456 Merge the two entries of Kaveh Ghazi, David Edelsohn, and
459 2003-06-21 Nathanael Nerode <neroden@gcc.gnu.org>
461 * mkconfig.sh: Add multiple inclusion guards to generated headers.
463 2003-06-20 Neil Booth <neil@daikokuya.co.uk>
465 * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
466 * common.opt: Add remaining -W options and -g.
467 * diagnostic.c (warnings_are_errors): Remove.
468 * flags.h: Make most warning flags boolean.
469 * opts.c (common_handle_option): Handle remaining -W options, and -g.
470 Move many warning flags from toplev.c, making them boolean.
471 * toplev.c: Remove many warning flags.
472 (decode_W_option): Remove.
473 (decode_g_option): Make extern. Error on unknown switch.
474 (lang_independent_W_options): Use warn_dummy.
475 (independent_decode_option): Just handle -f switches now.
476 * toplev.h (decode_g_option): New.
478 2003-06-20 Aldy Hernandez <aldyh@redhat.com>
481 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
484 2003-06-20 Kelley Cook <kelleycook@wideopenwest.com>
486 * opts.sh: Tweak awk script for portability.
488 2003-06-20 Mark Mitchell <mark@codesourcery.com>
491 * tree-inline.c (expand_call_inline): Do not warn about failing to
492 inline functions declared in system headers.
493 * doc/invoke.texi (-Winline): Expand on documentation.
495 2003-06-20 Richard Henderson <rth@redhat.com>
497 * config/alpha/alpha.c (alpha_file_start): Disable
498 file_start_file_directive for ELF and not MDEBUG.
500 2003-06-20 J"orn Rennecke <joern.rennecke@superh.com>
502 * sh.h (ROUND_TYPE_ALIGN): Remove.
504 2003-06-20 Richard Henderson <rth@redhat.com>
506 * hooks.c (hook_int_void_no_regs): Rename from
507 hook_reg_class_void_no_regs; change return type.
509 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
510 * target.h (branch_target_register_class): Change return type to int.
512 * config/sh/sh.c (sh_target_reg_class): Change return type.
513 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
515 2003-06-20 Andreas Tobler <toa@pop.agri.ch>
517 * c-format.c: Change _Bool to bool reverting part of the last
520 2003-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
522 * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
525 2003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
527 * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
528 * configure: Regenerate.
529 Fixes PR driver/9362.
531 2003-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
533 * config/alpha/alpha.c (alpha_file_start): Fix typo.
535 2003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
537 * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
538 to ASM_OUTPUT_SOURCE_LINE.
540 2003-06-20 Daniel Egger <degger@fhm.edu>
541 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
543 * doc/install.texi (Building): Correct and improve statement
544 about parallel builds.
546 2003-06-20 Andreas Jaeger <aj@suse.de>
548 * c-common.c: Change _Bool to bool reverting part of the last
551 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
553 * tree.h (expand_function_end): Remove all parameters.
554 * function.c (expand_function_end): Remove all parameters.
555 Use input_location. Never expand_end_bindings.
556 * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
557 * coverage.c (create_coverage): Likewise.
559 2003-06-20 Nick Clifton <nickc@redhat.com>
561 * doc/extend.texi (ARM Built-in Functions): New node. Document
562 ARM builtin functions for iWMMXt support.
564 2003-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
566 * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
567 SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
568 (--with-as): Add @anchor.
569 (--with-gnu-ld): Fix typo.
570 (--with-ld): Add @uref to --with-as.
572 2003-06-19 Zack Weinberg <zack@codesourcery.com>
574 * doc/tm.texi: Uniformly use @defmac for macros, rather than
575 @table items. Minor formatting and editorial corrections.
577 2003-06-20 Neil Booth <neil@daikokuya.co.uk>
579 * line-map.c, line-map.h: Convert to ISO prototypes.
581 2003-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
583 * gcse.c (store_killed_in_insn): Fix.
585 2003-06-19 Zack Weinberg <zack@codesourcery.com>
587 * target.h (asm_out.file_start, file_start_app_off,
588 file_start_file_directive): New hooks.
589 * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
590 TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
591 New hook-definition macros.
592 * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
593 * varasm.c (default_file_start): New.
594 * output.h: Prototype it.
595 * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
596 * system.h: Poison ASM_FILE_START.
598 * config/alpha/alpha.c (alpha_write_verstamp): Delete.
599 (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
600 (unicosmk_asm_file_start): Rename unicosmk_file_start,
601 make static, take no arguments.
602 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
603 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
604 * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
605 TARGET_ASM_FILE_END. Remove reference to ASM_FILE_START in
607 * config/arc/arc.c (arc_asm_file_start): Rename
608 arc_file_start, take no arguments, make static.
609 (TARGET_ASM_FILE_START): Set it.
610 * config/arm/arm.c (aof_file_start): New static function.
611 (TARGET_ASM_FILE_START): Set it, when appropriate.
612 * config/arm/coff.h, config/arm/elf.h:
613 Set TARGET_ASM_FILE_START_APP_OFF to true.
614 * config/avr/avr.c (asm_file_start): Rename avr_file_start,
615 take no arguments, make static.
616 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
618 * config/c4x/c4x.c (c4x_file_start): New static function.
619 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
621 * config/cris/cris.c (cris_file_start): New static function.
622 (TARGET_ASM_FILE_START): Set it.
623 * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
624 dsp16xx_file_start, make static.
625 (luxworks_dsp16xx_file_start): Delete.
626 (TARGET_ASM_FILE_START): Set it.
627 * config/h8300/h8300.c (asm_file_start): Rename
628 h8300_file_start, make static, take no arguments.
629 (TARGET_ASM_FILE_START): Set it.
630 * config/i370/i370.c (i370_file_start): New static function.
631 (TARGET_ASM_FILE_START): Set it.
632 * config/i386/i386.c (x86_file_start): New static function.
633 (TARGET_ASM_FILE_START): Set it.
634 * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
635 X86_FILE_START_FLTUSED): New macros, default to false.
636 * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
637 * config/i386/sysv4.h, config/i386/sco5.h: Override
638 X86_FILE_START_VERSION_DIRECTIVE to true.
639 * config/ia64/ia64.c (ia64_file_start): New static function.
640 (TARGET_ASM_FILE_START): Set it.
641 (emit_safe_across_calls): Take no arguments.
642 * config/ia64/ia64.md: Update to match.
643 * config/m32r/m32r.c (m32r_asm_file_start): Rename
644 m32r_file_start, make static, take no arguments.
645 (TARGET_ASM_FILE_START): Set it.
646 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
647 m68hc11_file_start, make static, take no arguments.
648 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
649 (print_options): Delete.
650 * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
651 (TARGET_ASM_FILE_START_APP_OFF): Set.
652 * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
653 m68k_hp320_file_start.
654 * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
655 Make static, take no arguments.
656 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
657 * config/mmix/mmix.c (mmix_asm_file_start): Rename
658 mmix_file_start, make static, take no arguments.
659 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
660 * config/mn10300/mn10300.c (asm_file_start): Rename
661 mn10300_file_start, make static, take no arguments.
662 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
663 * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
664 * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
665 pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
666 pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
667 pa_hpux64_hpas_file_start): New static functions.
668 * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
669 * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
671 * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
672 pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
674 * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
675 * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
676 (rs6000_file_start): Make static, take no arguments. Reset
677 default_cpu under certain conditions.
678 (rs6000_xcoff_file_start): New function.
679 * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
680 * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
681 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
682 * config/sh/sh.c (output_file_start): Rename
683 sh_file_start, make static, take no arguments. Merge in old
684 code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
685 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
686 * config/sh/sh.c (TARGET_ELF): Define to 0.
687 * config/sh/elf.h (TARGET_ELF): Redefine to 1.
688 * config/v850/v850.c (asm_file_start): Delete.
689 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
690 * config/vax/vax.c (vax_file_start): New static function.
691 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
693 * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
694 * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
695 * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
696 * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
697 * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
698 * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
700 * config/darwin.h, config/elfos.h, config/alpha/elf.h
701 * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
702 * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
703 * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
704 * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
705 * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
706 * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
707 * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
708 * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
709 * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
710 * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
711 * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
712 * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
713 * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
714 * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
715 * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
716 * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
717 * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
719 * config/alpha/alpha-protos.h, config/arc/arc-protos.h
720 * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
721 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
722 * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
723 * config/mips/mips-protos.h, config/mmix/mmix-protos.h
724 * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
725 * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
727 * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
728 Remove reference to ASM_FILE_START in comment.
729 * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
730 * config/arm/linux-gas.h, config/arm/netbsd-elf.h
731 * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
733 2003-06-19 Graeme Peterson <gp@qnx.com>
735 * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
736 SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
737 sysroot_hdrs_suffix_spec): New.
738 (static_specs): Initialize new variables.
739 (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
740 * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
743 2003-06-19 Andreas Jaeger <aj@suse.de>
745 * c-aux-info.c: Convert to ISO C90.
746 * c-pragma.c: Likewise.
747 * c-common.c: Likewise.
748 * c-common.h: Likewise.
749 * c-convert.c: Likewise.
750 * c-cppbuiltin.c: Likewise.
751 * c-dump.c: Likewise.
753 * c-format.c: Likewise.
754 * c-incpath.c: Likewise.
755 * c-incpath.h: Likewise.
757 2003-06-19 Roger Sayle <roger@eyesopen.com>
759 * builtins.c (expand_errno_check): Assume that flag_errno_math
760 and HONOR_NANS have been tested before calling here. Only try
761 to set errno ourselves if the decl can't throw an exception.
762 (expand_builtin_mathfn): Move the code to stabilize the arg
763 after the main switch, so that that its only done when needed.
764 BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
765 Don't modify the original expr when stabilizing the argument.
766 (expand_builtin_mathfn_2): Likewise, move the code to stabilize
767 the args after the main switch, and don't modify the orginal exp.
769 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
771 * expr.c (const_vector_from_tree): Initialize remaining elements
774 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
776 * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
777 Change "fix" to "float".
779 2003-06-19 Andreas Jaeger <aj@suse.de>
781 * c-tree.h: Remove declaration of poplevel.
783 * tree.h: Remove declaration of approx_sqrt.
785 * c-lex.c: Remove redundant declaration of asm_out_file.
787 * flags.h: Remove declaration of warn_unknown_pragma and
790 * rtl.h: Remove functions from fold-const.c since they're already
793 * regs.h: Remove redundant declaration of reg_names.
795 * bt-load.c (migrate_btr_defs): Correct printf arguments.
797 * protoize.c: Fix breakage from last patch.
799 2003-06-19 J"orn Rennecke <joern.rennecke@superh.com>
801 * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
804 2003-06-18 James A Morrison <ja2morri@student.math.uwaterloo.ca>
806 * config/sparc/sparc.c: Update copyright year.
808 2003-06-19 David Edelsohn <edelsohn@gnu.org>
810 * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
813 2003-06-18 Joseph S. Myers <jsm@polyomino.org.uk>
816 * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
818 2003-06-19 Kazu Hirata <kazu@cs.umass.edu>
820 * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
821 to the end of the file. Remove unnecessary prototypes.
823 2003-06-19 Hans-Peter Nilsson <hp@axis.com>
825 * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
826 calls to insn_default_latency and result_ready_cost. Initialize
829 2003-06-18 Richard Henderson <rth@redhat.com>
831 * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
832 (_Unwind_FindEnclosingFunction): Implement.
834 2003-06-18 Kazu Hirata <kazu@cs.umass.edu>
836 * toplev.c (rest_of_handle_sched): Hide the entire function if
837 INSN_SCHEDULING is not defined.
838 (rest_of_compilation): Call rest_of_handle_sched() only when
839 INSN_SCHEDULING is defined.
841 2003-06-18 Stephen Clarke <stephen.clarke@superh.com>
842 J"orn Rennecke <joern.rennecke@superh.com>
844 * bt-load.c: New file.
845 * Makefile.in (OBJS): Include bt-load.o
846 (bt-load.o): Add dependencies.
847 * flags.h (flag_branch_target_load_optimize): Declare.
848 (flag_branch_target_load_optimize2): Likewise.
849 * hooks.c (hook_reg_class_void_no_regs): New function.
850 (hook_bool_bool_false): Likewise.
851 * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
852 * rtl.h (branch_target_load_optimize): Declare.
853 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
854 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
855 (TARGET_INITIALIZER): Include these.
856 * target.h (struct gcc_target): Add branch_target_register_class
857 and branch_target_register_callee_saved members.
858 * toplev.c (enum dump_file_index): Add DFI_branch_target_load
859 (dump_file) Add "tars" entry.
860 (flag_branch_target_load_optimize): New variable.
861 (flag_branch_target_load_optimize2): Likewise.
862 (lang_independent_options): Add entries for new options.
863 (rest_of_compilation): Call branch_target_load_optimize.
864 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
865 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
866 * doc/invoke.texi: Document -fbranch-target-load-optimize and
867 -fbranch-target-load-optimize2.
868 * rtl.h (epilogue_completed): Declare.
869 * recog.c (epilogue_completed): New variable.
870 * toplev.c (rest_of_compilation): Set it.
871 * flow.c (mark_regs_live_at_end): Use it.
872 * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
873 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
874 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
875 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
877 * sh.c (shmedia_space_reserved_for_target_registers): New variable.
878 (sh_target_reg_class): New function.
879 (sh_optimize_target_register_callee_saved): Likwise.
880 (shmedia_target_regs_stack_space): Likewise.
881 (shmedia_reserve_space_for_target_registers_p): Likewise.
882 (shmedia_target_regs_stack_adjust): Likewise.
883 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
884 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
885 (calc_live_regs): If flag_branch_target_load_optimize2 and
886 TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
887 for target registers, make sure that we save all target registers.
888 (sh_expand_prologue, sh_expand_epilogue): Take target register
889 optimizations into account. Collapse stack adjustments if that
891 (initial_elimination_offset): Reserve space for target registers
893 * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
894 (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
896 2003-06-18 Nick Clifton <nickc@redhat.com>
898 * config.gcc: Add an extra_header for ARM targets.
899 Support configuring with --with-cpu=iwmmxt.
900 * doc/invoke.texi: Document new value for -mcpu= ARM switch.
901 * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
902 names. Fix formatting.
903 * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
905 * config/arm/arm-protos.h (arm_emit_vector_const): New
907 (arm_output_load_gr): New prototype.
908 * config/arm/arm.c (extra_reg_names1): Delete.
909 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
910 * arch_is_iwmmxt): Define.
911 (all_cores, all_architecture): Add entry for iwmmxt.
912 (arm_override_options): Add support for iwmmxt.
913 (use_return_insn, arm_function_arg, arm_legitimate_index_p,
914 arm_print_value, arm_rtx_costs_1, output_move_double,
915 arm_compute_save_reg_mask, arm_output_epilogue,
916 arm_get_frame_size, arm_expand_prologue, arm_print_operand,
917 arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
919 (arm_init_cumulative_args): Count iwmmxt registers.
920 (arm_function_ok_for_sibcall): Return false of sibcall_blocked
922 (struct minipool_node): Add fix_size field.
923 (add_minipool_forward_ref): Add support for 8-byte aligning of
925 (add_minipool_backward_ref, add_minipool_offsets,
926 dump_minipool, push_minipool_fix): Likewise.
927 (struct builtin_description): New struct.
928 (builtin_description): New array of iwmmxt builtin functions.
929 (arm_init_iwmmxt_builtins): New function.
930 (arm_init_builtins): New function.
931 (safe_vector_operand): New function.
932 (arm_expand_binop_builtin): New function.
933 (arm_expand_unop_builtin): New function.
934 (arm_expand_builtin): New function.
935 (arm_emit_vector_const): New function.
936 (arm_output_load_gr): New function.
937 * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
938 TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
939 TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
940 DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
941 (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
942 (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
943 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
944 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
945 REG_CLASS_FOR_LETTER): Add iwmmxt registers.
946 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
947 registers unless the iwmmxt target is selected.
948 (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
949 FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
950 IS_IWMMXT_GR_REGNUM): Define.
951 (FIRST_PSEUDO_REGISTER): Bump to 63.
952 (struct machine_function): Add sibcall_blocked field.
953 (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
955 (enum arm_builtins): New enum list.
956 * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
957 UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
958 UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
959 UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
960 (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
961 VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
962 (movv2si, movv4hi, movv8qi): New expands for vector moves.
964 * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
966 (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
967 * config/arm/mmintrin.h: New ARM specific header file.
968 * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
970 2003-06-18 J"orn Rennecke <joern.rennecke@superh.com>
972 * toplev.c (Remaining -d letters summary): Update.
974 2003-06-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
976 * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
978 (function_arg): Handle CALL_LIBCALL flag.
979 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
981 * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
982 (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
983 (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
984 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
986 2003-06-18 Neil Booth <neil@daikokuya.co.uk>
988 * Makefile.in: Update.
989 * common.opt: New options.
990 * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
992 (common_handle_option): Handle new options.
993 * toplev.c (set_target_switch): Export.
994 (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
995 (decode_W_option): -Wunused and -Wextra handled in opts.c now.
996 (independent_decode_option): More options handled in opts.c now.
998 * toplev.h (set_target_switch): New.
1000 2003-06-17 Robert Abeles <rabeles@archaelogic.com>
1003 * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
1005 * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
1006 from static strings in dump_files.
1008 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1010 * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
1011 VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
1014 2003-06-17 Jason Merrill <jason@redhat.com>
1017 * tree-inline.c (expand_call_inline): Don't warn about failing to
1018 inline a function which was made inline by -finline-functions.
1020 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1022 * config/h8300/h8300-protos.h: Update to ISO C.
1023 * config/h8300/h8300.c: Likewise.
1024 * config/h8300/h8300.h: Likewise.
1025 * config/h8300/h8300.md: Likewise.
1027 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1029 * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
1030 * configure: Regenerate.
1031 * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
1033 2003-06-17 Ranjit Mathew <rmathew@hotmail.com>
1035 * install.texi (Testing): Add information on how to run Java
1036 runtime tests separately.
1038 2003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1040 * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
1042 * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
1043 (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
1045 2003-06-17 Christopher Faylor <cgf@redhat.com>
1047 * doc/install.texi: Add msvc rebuild caveat.
1049 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1051 * config/sh/coff.h: Replace Hitachi with Renesas.
1052 * config/sh/elf.h: Likewise.
1053 * config/sh/embed-elf.h: Likewise.
1054 * config/sh/lib1funcs.asm: Likewise.
1055 * config/sh/sh-protos.h: Likewise.
1056 * config/sh/sh.c: Likewise.
1057 * config/sh/sh.h: Likewise.
1058 * config/sh/sh.md: Likewise.
1060 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1062 * ChangeLog.3: Fix comment typos.
1063 * ChangeLog.6: Likewise.
1064 * config/d30v/d30v.c: Likewise.
1065 * config/h8300/h8300.md: Likewise.
1066 * config/m32r/m32r.md: Likewise.
1067 * config/mips/mips.c: Likewise.
1068 * config/mips/mips.md: Likewise.
1069 * config/ns32k/NOTES: Likewise.
1071 2003-06-17 Ranjit Mathew <rmathew@hotmail.com>
1072 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1074 * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
1075 to run Java runtime tests separately.
1077 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1079 * config/h8300/h8300-protos.h: Update a comment.
1081 2003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
1083 * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
1084 are aligned like integral modes.
1085 (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
1087 * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
1088 (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
1089 * sh.md (*pt): Remove.
1091 * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
1093 * sh.md (return_media_rte): New pattern.
1094 (return_media): Use it.
1096 2003-06-17 Kazu Hirata <kazu@cs.umass.edu>
1098 * doc/contrib.texi: Replace Hitachi with Renesas.
1099 * doc/install.texi: Likewise.
1100 * doc/invoke.texi: Likewise.
1102 2003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
1104 * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
1107 2003-06-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1109 * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
1111 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
1112 2003-01-23 patch. Corrected to handle kernels with changed ucontext.
1114 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
1115 -msdata=eabi usages.
1117 * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
1119 2003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1121 * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
1122 * fixinc/gnu-regex.c: Don't define `volatile'.
1123 * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
1124 * ggc-simple.c: Likewise.
1125 * system.h: Don't define `volatile'.
1127 * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
1128 * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
1130 * config.in, configure: Regenerated.
1132 2003-06-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1134 * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
1135 Handle POINTERS_EXTEND_UNSIGNED.
1137 2003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1139 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
1140 !TARGET_IRIX6]: Define as NULL.
1142 2003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1144 * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
1146 2003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1148 * dbxout.c (dbxout_source_line_counter): New global variable.
1149 Mark it with GTY(()).
1150 (dbxout_source_line): Increment dbxout_source_line_counter
1151 and pass it to ASM_OUTPUT_SOURCE_LINE.
1152 * sdbout.c (sdbout_source_line_counter): New global variable.
1153 Mark it with GTY(()).
1154 (unnamed_struct_number): Mark it with GTY(()).
1155 (sdbout_source_line): Increment sdbout_source_line_counter
1156 and pass it to ASM_OUTPUT_SOURCE_LINE.
1157 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
1158 (xcoffout_source_line): Pass 0 as third argument to
1159 ASM_OUTPUT_SOURCE_LINE.
1160 (xcoffout_begin_prologue): Likewise.
1161 * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1162 Use it instead of 'sym_lineno' but without incrementing it.
1163 * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1164 * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1165 * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1166 * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
1167 argument to ASM_OUTPUT_SOURCE_LINE.
1168 * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1169 * config/arm/aout.h: Remove useless comment.
1170 * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1171 * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1172 * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1173 Use it instead of 'sym_lineno' but without incrementing it.
1174 * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1175 * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
1176 parameter. Use it instead of 'sym_lineno' but without incrementing it.
1177 * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
1178 argument to ASM_OUTPUT_SOURCE_LINE.
1179 * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1180 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1181 * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
1182 Use it instead of 'sym_lineno' but without incrementing it.
1183 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1184 * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1185 * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1186 * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
1187 * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
1189 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
1191 * config/mips/mips-protos.h (mips_expand_block_move): Declare.
1192 (expand_block_move, output_block_move): Remove.
1193 * config/mips/mips.h (enum block_move_type): Remove.
1194 * config/mips/mips.c (block_move_call, output_block_move): Remove.
1195 (mips_block_move_straight, mips_adjust_block_mem): New function.
1196 (mips_block_move_loop): Renamed and reworked from block_move_loop.
1197 (mips_expand_block_move): Likewise expand_block_move. Return false
1198 to fall back on the target-independent code.
1199 * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
1200 (movstrsi_internal*): Remove.
1202 2003-06-16 Zack Weinberg <zack@codesourcery.com>
1204 * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
1205 * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
1206 * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
1207 ISO C: new-style function declarations, no need for PARAMS,
1208 no special punctuation on indirect function calls, use string
1209 constant concatenation where convenient.
1211 2003-06-17 Andreas Jaeger <aj@suse.de>
1213 * rtl.h: Remove declarations from coverage.h.
1214 * toplev.c: Include coverage.h.
1215 * Makefile.in (toplev.o): Depend on coverage.h.
1217 * toplev.h: Remove extra declaration of print_time.
1219 * gengtype.c (close_output_files): Remove duplicated declaration.
1221 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1223 * config/sparc/sysv4.h: Remove target-independent comment;
1224 replace "GNU CC" with "GCC".
1225 * config/vxworks.h: Replace "GNU compiler" with "GCC".
1226 * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
1227 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1228 config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
1229 config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
1230 config/sparc/rtemself.h, config/sparc/sol2-64.h,
1231 config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
1232 config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
1233 config/sparc/sol2.h, config/sparc/sp64-aout.h,
1234 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
1235 config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
1236 "GNU compiler", "GNU CC" with "GCC".
1237 * config/sparc/cypress.md, config/sparc/hypersparc.md,
1238 config/sparc/sparc-modes.def, config/sparc/sparc.c,
1239 config/sparc/sparc.md, config/sparc/sparclet.md,
1240 config/sparc/supersparc.md, config/sparc/ultra1_2.md,
1241 config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
1242 "GNU C Compiler" with "GCC".
1243 * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
1245 2003-06-16 Aldy Hernandez <aldyh@redhat.com>
1247 * simplify-rtx.c (simplify_subreg): Do not over-extend vector
1250 * testsuite/gcc.c-torture/execute/simd-4.c: New.
1252 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1254 * config/ip2k/ip2k.h: Remove target-independent comments.
1256 * config.gcc: Explicitly mention elfos.h in ip2k entry.
1257 * config/ip2k/ip2k.h: Don't #include it here.
1259 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1261 * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
1262 config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
1263 dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
1264 function.c, gcc.c, genoutput.c, gensupport.c, global.c,
1265 haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
1266 loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
1267 read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
1268 stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
1271 * gengtype.c: Don't use UNION_INIT_ZERO.
1272 * system.h (UNION_INIT_ZERO): Delete.
1274 2003-06-16 Richard Henderson <rth@redhat.com>
1276 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
1277 GET_MODE_UNIT_SIZE when simplifying constant vectors.
1279 2003-06-16 Andreas Jaeger <aj@suse.de>
1281 * timevar.c (get_run_time): Remove function provided also by
1283 * timevar.h: Remove get_run_time declaration.
1285 2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
1287 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
1290 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1292 * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
1293 cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
1294 use macros from "symcat.h", instead rely on ISO C.
1296 * system.h: Don't include "symcat.h".
1297 * configure.in (AC_C_STRINGIZE): Delete.
1298 * config.in, configure: Regenerate.
1300 2003-06-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1302 * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
1304 * tree.h (STMT_CHECK): New macro.
1305 Also upper-case argument names on all checking macros and
1306 fix some whitespace problems; assume CODE argument does not
1309 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1311 * scan.h: Convert to ISO C.
1312 * system.h: Likewise.
1314 * c-format.c (dynamic_format_types): New pointer for dynamic data.
1315 (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
1316 New functions split out of...
1317 (handle_format_attribute): ...here.
1319 2003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
1321 * sh.h (REG_CLASS_FROM_LETTER): Change to:
1322 (REG_CLASS_FROM_CONSTRAINT).
1323 (CONST_OK_FOR_I): Rename to:
1324 (CONST_OK_FOR_I08). Changed all users.
1325 (CONST_OK_FOR_J): Rename to:
1326 (CONST_OK_FOR_I16). Changed all users.
1327 (CONST_OK_FOR_K): Rename to:
1328 (CONST_OK_FOR_P27). Changed all users.
1329 (CONST_OK_FOR_L): Rename to:
1330 (CONST_OK_FOR_K08). Changed all users.
1331 (CONST_OK_FOR_O): Rename to:
1332 (CONST_OK_FOR_I06). Changed all users.
1333 (CONST_OK_FOR_P): Rename to:
1334 (CONST_OK_FOR_I10). Changed all users.
1335 (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
1336 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
1337 (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
1338 (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
1339 (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
1340 (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
1341 (CONST_OK_FOR_LETTER_P): Replace with
1342 (CONST_OK_FOR_CONSTRAINT_P).
1343 (EXTRA_CONSTRAINT_S): Rename to:
1344 (EXTRA_CONSTRAINT_C16). Changed all users.
1345 (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
1346 (EXTRA_CONSTRAINT_T): Rename to:
1347 (EXTRA_CONSTRAINT_Csy). Changed all users.
1348 (EXTRA_CONSTRAINT_Z): Remove.
1349 (EXTRA_CONSTRAINT): Replace with:
1350 (EXTRA_CONSTRAINT_STR).
1351 (EXTRA_CONSTRAINT_U): Rename to:
1352 (EXTRA_CONSTRAINT_Z). Changed all users.
1353 * sh.c (and_operand): Use CONST_OK_FOR_J16.
1354 * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
1355 (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
1356 (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
1357 (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
1358 (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
1359 (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
1360 (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
1361 (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
1362 (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
1363 (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
1364 (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
1365 (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
1366 (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
1367 (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
1368 (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
1369 (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
1370 (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
1371 (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
1372 (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
1373 (sssubv4hi3): Likewise.
1374 (movsf_i): Change I[08]/r to G/r.
1375 (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
1377 * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
1379 2003-06-16 Vladimir Makarov <vmakarov@redhat.com>
1381 * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
1383 2003-06-16 Andreas Jaeger <aj@suse.de>
1385 * basic-block.h: Remove duplicate prototype of
1386 note_prediction_to_br_prob.
1388 * tree.h: Remove duplicate prototype of strip_float_extensions.
1390 2003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1392 * config/c4x/c4x.c: Don't include "c-tree.h".
1393 * config/pa/pa.c: Likewise.
1394 * langhooks.c: Likewise.
1395 * tree.h (poplevel): Declare.
1397 2003-06-16 Kazu Hirata <kazu@cs.umass.edu>
1399 * config/h8300/h8300.c (const_costs): Move this to ...
1400 (h8300_rtx_costs): ... here.
1402 2003-06-16 Roger Sayle <roger@eyesopen.com>
1404 * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
1405 (tan_optab, atan_optab): Define corresponding macros.
1406 * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
1407 * genopinit.c (optabs): Implement tan_optab and atan_optab
1408 using tan?f2 and atan?f2 patterns.
1409 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
1410 using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
1411 Change the default value of errno_set to false.
1412 (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
1413 using expand_builtin_mathfn.
1415 * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
1416 expander patterns implemented using existing atan2?f3 patterns.
1418 2003-06-16 Roger Sayle <roger@eyesopen.com>
1420 * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
1421 both operands of the addition equal, reuse the expanded RTL.
1422 (expand_expr <MULT_EXPR>): Likewise for multiplication.
1424 2003-06-16 Roger Sayle <roger@eyesopen.com>
1425 Jeff Law <law@redhat.com>
1427 * fold-const.c (operand_equal_p): Consider two calls to "const"
1428 functions with identical non-volatile arguments to be equal.
1429 Consider the FUNCTION_DECL for the "__builtin_foo" form of a
1430 built-in function to be equal to the "foo" form.
1432 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1434 * config/rs6000/sysv4le.h: Remove target-independent comment.
1435 Replace "GNU compiler" with "GCC" in comment.
1437 2003-06-16 Andreas Jaeger <aj@suse.de>
1439 * tracer.c: Remove duplicate declaration.
1441 * toplev.c: Remove extra declaration of decode_d_option.
1443 * ssa.c: Remove duplicate declaration.
1445 * sreal.c: Remove extra declaration of dump_sreal.
1447 * reload1.c: Remove duplicate declarations.
1449 * integrate.c: Remove extra declaration of
1450 set_decl_abstract_flags.
1452 * flow.c: Remove extra declaration of dump_flow_info.
1454 * alias.c: Remove extra declaration of get_addr.
1456 2003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
1458 * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
1459 config/vxworks.h: GNU CC -> GCC.
1461 * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
1462 lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
1463 stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
1464 ssa.h, tree.def: Replace overly specific references to "GNU C"
1465 and "GNU C Compiler" with references to "GCC".
1467 2003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
1469 * sh.c (prepare_move_operand): Check if operand 0 is an invalid
1470 memory reference. Fix test that checks if operand 1 is using r0.
1471 * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
1473 * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
1476 2003-06-15 Nathan Sidwell <nathan@codesourcery.com>
1478 * function.h (struct emit_status): Remove x_last_linenum,
1479 x_last_filename. Add x_last_location.
1480 * rtl.h: #include "input.h".
1482 * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
1484 * emit-rtl.c (last_linenum, last_filename): Remove.
1485 (last_location): New.
1486 (emit_line_note_after): LINE must always be >= 0.
1487 (emit_line_note): Likewise. Check not duplicate here...
1488 (emit_note): ... rather than here.
1489 (emit_line_note_force, force_next_line_note, init_emit): Adjust.
1490 * integrate.c (expand_inline_function): Use emit_line_note for
1492 (copy_insn_list): Likewise.
1493 * unroll.c (copy_loop_body): Likewise.
1494 * Makefile.in (RTL_H): Add input.h.
1496 2003-06-16 Richard Sandiford <rsandifo@redhat.com>
1498 * optabs.c (emit_libcall_block): Don't hoist insns past a label.
1500 2003-06-16 Richard Henderson <rth@redhat.com>
1502 * config/alpha/alpha-protos.h, config/alpha/elf.h,
1503 config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
1504 config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
1505 * config/alpha/alpha.c: Likewise. Move targetm init to end of file.
1506 Remove unneeded static function decls.
1508 2003-06-16 Neil Booth <neil@daikokuya.co.uk>
1510 * c-opts.c (c_common_handle_option): s/on/value/.
1511 (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
1512 directly rather than converting the argument.
1513 * c.opt: Update docs. Use UInteger where appropriate.
1514 * common.opt: Use UInteger where appropriate.
1515 * opts.c (integral_argument): New.
1516 (handle_argument): Handle integral arguments, and optional
1518 (common_handle_option): Update.
1519 * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
1520 * opts.sh: Handle JoinedOrMissing and UInteger flags.
1522 2003-06-16 Neil Booth <neil@daikokuya.co.uk>
1524 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
1525 unnecessary extern declaration.
1527 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
1529 * config/gofast.h, config/interix.h, config/interix3.h,
1530 config/libgloss.h, config/linux-aout.h, config/linux.h,
1531 config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
1532 * config/kaos.h: "GNU compiler" -> GCC.
1533 * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
1535 * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
1536 config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
1539 * config/svr3.h: Remove #if 0 code, misleading comments.
1542 2003-06-15 Zack Weinberg <zack@codesourcery.com>
1544 * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
1545 main_input_filename to avoid conflict with input_filename macro.
1547 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
1549 * config/mips/mips.h (asm_file_name, g_switch_set,
1550 g_switch_value): Remove.
1551 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
1552 unnecessary extern declarations.
1554 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
1556 * config/frv/frv.h: Remove declaration of g_switch_value.
1557 * config/m32r/m32r.h: Remove declaration of g_switch_value.
1558 * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
1560 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
1562 * opts.sh: Quote '+' in regex.
1564 2003-06-15 Andrew Pinski <pinskia@physics.uc.edu>
1566 * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
1567 * config/rs6000/rs6000.c: Include cfglayout.h.
1568 * config/alpha/alpha.c: Likewise.
1569 * config/ia64/ia64.c: Likewise.
1570 * config/sparc/sparc.c: Likewise.
1571 * config/sh/sh.c: Likewise.
1573 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
1575 * opts.sh: Quote '+' in regex.
1577 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
1579 * c-opts.c (lang_flags): Update for new spelling of flags.
1580 (write_langs): Similarly.
1581 * c.opt: Specify languages.
1582 * opts.h: Remove languages.
1583 * opts.sh: Recognise front-end defined languages.
1584 * doc/sourcebuild.texi: Update.
1586 2003-06-15 Andreas Jaeger <aj@suse.de>
1588 * alloc-pool.c: Convert to ISO C90 prototypes.
1589 * alloc-pool.h: Likewise.
1590 * alias.c: Likewise.
1591 * attribs.c: Likewise.
1592 * bb-reorder.c: Likewise.
1593 * bitmap.h: Likewise.
1594 * bitmap.c: Likewise.
1595 * builtins.c: Likewise.
1597 * tree.h: Convert prototypes of attribs.c to ISO C90.
1598 * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
1599 * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
1600 * expr.h: Convert prototypes of builtins.c to ISO C90.
1602 2003-06-15 Roger Sayle <roger@eyesopen.com>
1604 * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
1605 implement exp, expf and expl built-ins as inline x87 intrinsics.
1606 (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
1607 represent x87's fscale, frndint and f2xm1 insns respectively.
1608 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
1609 to encode x87's "fscale" instruction followed by a pop.
1610 (*frndintxf2): New insn pattern for "frndint".
1611 (*f2xm1xf2): New insn pattern for "f2xm1".
1613 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
1614 UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
1617 2003-06-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1619 * gencheck.c (main): Avoid generating duplicate macros.
1621 * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
1622 knowing names of language subdirectories.
1624 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
1626 * c-pch.c (asm_file_name): Remove.
1627 * common.opt: Add more switches.
1628 * flags.h (g_switch_set): Boolify.
1629 * opts.c (g_switch_value, g_switch_set, exit_after_options,
1630 version_flag): Move from toplev.c.
1631 (common_handle_option): Handle more switches from toplev.c.
1632 * toplev.c (display_help, display_target_options, decode_d_option,
1633 print_version): Make non-static, remove prototypes.
1634 (aux_base_name, asm_file_name, aux_info_file_name): Constify.
1635 (version_flag, g_switch_value, g_switch_set, exit_after_options):
1637 (independent_decode_option): Move some handlers to opts.c.
1638 * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
1639 exit_after_options, version_flag, display_help, display_target_options,
1640 print_version, decode_d_option): New.
1642 2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
1644 * config/alpha/alpha.md: Follow spelling conventions.
1645 * config/arm/arm.c: Likewise.
1646 * config/arm/arm.h: Likewise.
1647 * config/arm/arm.md: Likewise.
1648 * config/arm/crtn.asm: Likewise.
1649 * config/m32r/m32r.c: Likewise.
1650 * config/m32r/m32r.md: Likewise.
1651 * config/rs6000/rs6000.c: Likewise.
1653 2003-06-15 Richard Henderson <rth@redhat.com>
1655 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
1656 insn_locators_initialize.
1657 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1658 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1659 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1660 * config/sh/sh.c (sh_output_mi_thunk): Do it later.
1662 2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
1664 * builtins.c (expand_builtin_expect_jump): Remove redundant
1665 tests that are also in any_condjump_p().
1667 2003-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1669 * libgcc2.c: Delete sysV68 L_trampoline section.
1670 * config/m68k/mot3300-crt0.S: Delete file.
1671 * config/m68k/mot3300Mcrt0.S: Likewise.
1673 2003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
1675 * config/aoutos.h: Remove.
1676 * config.gcc: Remove reference to aoutos.h.
1677 * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
1679 2003-06-14 Kazu Hirata <kazu@cs.umass.edu>
1681 * doc/install.texi: Follow spelling conventions.
1682 * doc/tm.texi: Likewise.
1683 * config/fp-bit.c: Likewise.
1684 * config/arm/arm.c: Likewise.
1685 * config/frv/frv.c: Likewise.
1686 * config/ns32k/NOTES: Likewise.
1687 * config/ns32k/STATUS: Likewise.
1689 2003-06-14 Roger Sayle <roger@eyesopen.com>
1690 Zack Weinberg <zack@codesourcery.com>
1692 * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
1693 * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
1694 * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
1696 * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
1697 * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
1698 * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
1699 * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
1700 * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
1701 * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
1702 * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
1703 * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
1704 * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
1705 * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
1706 * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
1707 * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
1708 * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
1709 * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
1710 * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
1711 * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
1712 * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
1713 * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
1714 * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
1715 * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
1717 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
1719 * opts.sh (POSIXLY_CORRECT): Unset it.
1721 * tree.h (init_function_start): Remove filename and line paramters.
1722 * function.c (init_function_start): Remove filename and line
1723 parameters. Use DECL_SOURCE_LOCATION.
1724 * c-decl.c (store_parm_decls): Adjust init_function_start call.
1725 (c_expand_body_1): Likewise.
1726 * coverage.c (create_coverage): Likewise.
1727 * objc/objc-act.c (build_tmp_function_decl): Set line number to
1729 (hack_method_prototype): Adjust init_function_start call.
1731 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
1734 * arm/linux-elf.h (PROFILE_HOOK): Define.
1736 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
1739 * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
1741 2003-06-14 Roger Sayle <roger@eyesopen.com>
1743 * opts.sh: Work around a mysterious feature in cygwin's gawk
1744 where specifying the input files explicitly has a different
1745 behavior to piping them via stdin.
1747 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
1749 * doc/sourcebuild.texi: Update.
1751 2003-06-14 Richard Earnshaw <rearnsha@arm.com>
1754 * arm.c (output_move_double): Pass SImode to adjust_address.
1756 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
1758 * Makefile.in: Update to use common.opt and lang_opt_files.
1759 (c-options.c, c-options.h): Remove.
1760 (options.c, options.h): Add.
1761 * c-opts.c: Include options.h not c-options.h.
1762 * common.opt: New file.
1763 * configure, configure.in: Add lang_opt_files.
1764 * opts.c: Include flags.h and diagnostic.h.
1765 (common_handle_option): New.
1766 (handle_option): Update to recognize common options and all
1767 language-dependent options.
1768 * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
1769 (struct cl_option): Make flags of type int.
1770 * opts.h: Flag option with front ends to which it applies.
1771 Handle duplicate options.
1772 * toplev.c (filename): Remove.
1773 (independent_decode_option): Don't handle filenames and -quiet.
1774 (process_options, do_compile): Update.
1776 2003-06-14 Nick Clifton <nickc@redhat.com>
1778 * doc/install.texi (Specific): Add description of different
1779 ARM supported file format targets.
1781 Sat Jun 14 11:12:04 CEST 2003 Jan Hubicka <jh@suse.cz>
1783 * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
1786 2003-06-13 Matt Kraai <kraai@alumni.cmu.edu>
1788 * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
1789 * unwind-pe.h (size_of_encoded_value): Do not define if
1790 NO_SIZE_OF_ENCODED_VALUE is defined.
1792 2003-06-13 Roger Sayle <roger@eyesopen.com>
1794 * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
1795 expanding a complex constant into a CONCAT target.
1797 2003-06-13 Zack Weinberg <zack@codesourcery.com>
1799 * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
1800 (ASM_FILE_START_1): Delete.
1801 * config/i386/att.h, config/i386/sco5.h,
1803 (ASM_FILE_START_1): Delete.
1805 2003-06-13 Kelley Cook <kelleycook@wideopenwest.com>
1807 * config/i386/bsd.h: Remove ASM_FILE_START.
1808 * config/i386/djgpp.h: Likewise.
1809 * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
1811 * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
1812 * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
1814 2003-06-13 Vladimir Makarov <vmakarov@redhat.com>
1817 * haifa-sched.c (max_lookahead_tries,
1818 cached_first_cycle_multipass_dfa_lookahead,
1819 cached_issue_rate): New variables.
1820 (max_issue): Check the number of tries.
1821 (choose_ready): Calculate max_lookahead_tries.
1822 (sched_init): Check cached_issue_rate.
1824 2003-06-13 Richard Henderson <rth@redhat.com>
1826 * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
1827 * cfgrtl.c (purge_dead_edges): Expect it too.
1829 2003-06-13 Jim Wilson <wilson@tuliptree.org>
1830 Eric Botcazou <ebotcazou@libertysurf.fr>
1833 * combine.c (make_extraction): Use gen_lowpart_for_combine
1834 when extracting from a REG and not in the destination of a SET.
1836 2003-06-13 Doug Evans <dje@sebabeach.org>
1838 * tsystem.h (abort): Declare in inhibit_libc case to remove build
1839 warnings for addvsi3, et.al.
1841 2003-06-13 Aldy Hernandez <aldyh@redhat.com>
1843 * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
1845 * simplify-rtx.c (simplify_subreg): Same.
1847 * emit-rtl.c (gen_lowpart_common): Same.
1849 2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
1851 * builtins.c: Fix comment typos.
1852 * fold-const.c: Likewise.
1854 2003-06-13 Doug Evans <dje@sebabeach.org>
1855 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1857 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
1858 * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
1859 (m32r_va_arg): Use it.
1860 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
1861 (RETURN_IN_MEMORY): Ditto.
1863 2003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
1865 * c-typeck.c: Remove #if 0 clauses.
1868 * config/alpha/openbsd.h, config/i386/openbsd.h,
1869 config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
1870 residual reference to EGCS.
1872 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
1874 * arm.c (output_call_mem): If the address references the link-register
1875 use an instruction sequence that avoids early-clobbering IP.
1876 (eliminate_lr2ip): Delete.
1878 2003-06-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1880 * c-format.c (format_types_orig): Disallow '*' width/precision in
1881 asm_fprintf format checks.
1883 2003-06-13 Ulrich Weigand <uweigand@de.ibm.com>
1885 * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
1886 non-integral types from integer register save area slots.
1888 2003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
1890 * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
1892 2003-06-13 Florian Weimer <fw@deneb.enyo.de>
1894 * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
1896 2003-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
1898 * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
1899 to file_end_indicate_exec_stack.
1901 2003-06-12 Richard Henderson <rth@redhat.com>
1904 * config/i386/i386.md (sse_movaps): Use an expander to force
1905 one operand to be a register.
1906 (sse_movups): Likewise.
1908 2003-06-13 Doug Evans <dje@sebabeach.org>
1910 Remove some build warnings.
1911 * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
1912 (__do_global_ctors,__do_global_dtors): Ditto.
1914 2003-06-12 Richard Henderson <rth@redhat.com>
1917 * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
1919 2003-06-13 Kazu Hirata <kazu@cs.umass.edu>
1921 * config/m32r/m32r.md: Fix a comment typo.
1923 2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1924 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
1927 * config/sparc/sparc.c (function_arg_record_value_parms): Add
1929 (function_arg_record_value_1): Set 'stack' to 1 if we run out of
1930 integer slots for an integer field.
1931 (function_arg_record_value_3): Shift vector index.
1932 (function_arg_record_value_2): Likewise.
1933 (function_arg_record_value): Initialize 'stack' to 0.
1934 Set 'stack' to 1 if we run out of integer slots for an integer field.
1935 Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
1937 2003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1939 PR optimization/10955
1940 * unroll.c (unroll_loop): Fix off-by-one bug.
1942 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
1944 * config/rs6000/rs6000.c (function_arg): Remove typo.
1946 2003-06-12 Richard Henderson <rth@redhat.com>
1948 * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
1951 2003-06-12 Richard Henderson <rth@redhat.com>
1954 * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
1955 for extracting sub-words.
1957 2003-06-12 Richard Henderson <rth@redhat.com>
1960 * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
1961 (zero_extendqihi2, zero_extendqisi2): Likewise.
1963 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
1965 * config/rs6000/rs6000.c (function_arg): Always split vectors for
1966 e500 if it's a stdarg function.
1967 (function_arg_advance): Advance 2 registers for vectors in a
1969 (init_cumulative_args): Initialize stdarg.
1970 (rs6000_spe_function_arg): New.
1972 * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
1974 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
1976 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
1978 2003-06-12 Roger Sayle <roger@eyesopen.com>
1981 * fold-const.c (tree_expr_nonnegative_p): Handle addition
1982 and multiplication of zero extensions, floating point division,
1983 and integer<->fp, fp<->fp and zero extension conversions.
1984 The built-in ceil and floor functions preserve signedness.
1986 2003-06-12 Kazu Hirata <kazu@cs.umass.edu>
1988 * ChangeLog: Follow spelling conventions.
1989 * ChangeLog.2: Likewise.
1990 * c-decl.c: Likewise.
1991 * cfgloop.h: Likewise.
1992 * cgraph.c: Likewise.
1993 * coverage.c: Likewise.
1994 * cppcharset.c: Likewise.
1995 * cpphash.h: Likewise.
1996 * cpplex.c: Likewise.
1997 * cpplib.c: Likewise.
1998 * dbxout.c: Likewise.
2000 * dwarf2out.c: Likewise.
2001 * dwarfout.c: Likewise.
2002 * emit-rtl.c: Likewise.
2003 * explow.c: Likewise.
2004 * gcov-io.c: Likewise.
2005 * gcov-io.h: Likewise.
2007 * gengtype.c: Likewise.
2011 * reload.c: Likewise.
2014 2003-06-12 Janis Johnson <janis187@us.ibm.com>
2016 * doc/install.texi (m32r-*-elf): Change company to Renesas.
2018 Thu Jun 12 20:00:55 CEST 2003 Jan Hubicka <jh@suse.cz>
2020 * basic-block.h (flow_delete_block_noexpunge): Kill.
2021 * cfgrtl.c (flow_delete_block_noexpunge): Merge to
2024 2003-06-10 Richard Henderson <rth@redhat.com>
2027 * reg-stack.c (any_malformed_asm): New.
2028 (check_asm_stack_operands): Set it.
2029 (convert_regs_1): Check it before aborting.
2031 2003-06-12 Aldy Hernandez <aldyh@redhat.com>
2033 * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
2035 2003-06-12 Jakub Jelinek <jakub@redhat.com>
2037 * c-opts.c (complain_wrong_lang): Add on argument.
2038 Print no- switch if on is false.
2039 (c_common_decode_option): Adjust caller.
2041 2003-06-12 Ulrich Weigand <uweigand@de.ibm.com>
2043 * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
2044 to initialize GOT register.
2046 2003-06-12 Roger Sayle <roger@eyesopen.com>
2048 * fold-const.c (tree_expr_nonnegative_p): Add support for
2049 floating point constants, addition and multiplication.
2051 2003-06-12 J"orn Rennecke <joern.rennecke@superh.com>
2053 * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
2054 constraint modifier for operand 0.
2056 2003-06-12 Hans-Peter Nilsson <hp@axis.com>
2058 Don't warn on dollars in builtin macro definitions,
2059 e.g. __REGISTER_PREFIX__.
2060 * cpphash.h (struct cpp_reader): Move member warn_dollars...
2061 * cpplib.h (struct cpp_options): ...to here. Change type to
2063 * cppinit.c (cpp_create_reader): Set it to 1 here.
2064 (post_options): Don't set it here.
2065 * c-opts.c (c_common_init_options): Reset it to 0 here.
2066 (finish_options): Set it here.
2067 * cpplex.c (forms_identifier_p): Tweak for new location of
2070 * configure.in (assembler dwarf2 debug_line support): Define insn
2071 for cris-*-* and mmix-*-*.
2072 * configure: Regenerate.
2074 2003-06-11 Uwe Stieber <uwe@kaos-group.de>
2076 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
2077 powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
2078 (sh-*-elf*): Add sh*-*-kaos* support.
2079 * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
2080 config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
2081 config/sh/kaos-sh.h: New files.
2083 2003-06-12 Kazu Hirata <kazu@cs.umass.edu>
2085 * gcse.c (fis_get_condition): Make it a global function.
2086 * reload1.c (reload_cse_move2add): Detect implicit sets.
2087 * rtl.h: Add a prototype for fis_get_condition.
2089 2003-06-11 Richard Henderson <rth@redhat.com>
2091 * stmt.c (expand_asm_operands): Don't warn for memories with
2094 2003-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
2096 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
2099 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
2101 * hooks.c (hook_int_size_t_constcharptr_int_0): New.
2102 * hooks.h (hook_int_size_t_constcharptr_int_0): New.
2103 * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
2104 (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
2105 * langhooks.c (lhd_decode_option): Remove.
2106 * langhooks.h (struct lang_hooks): Remove decode_option.
2107 * opts.c (handle_option): No longer use decode_option.
2109 2003-06-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2111 * cfgloopanal.c (variable_initial_value): Update the set of altered
2112 registers correctly.
2114 2003-06-11 Roger Sayle <roger@eyesopen.com>
2115 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2117 * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
2118 * config/i386/netbsd-elf.h: Likewise.
2119 * config/m32r/m32r.h: Likewise.
2120 * config/mn10300/mn10300.h: Likewise.
2121 * config/stormy16/stormy16.h: Likewise.
2122 * config/v850/v850.h: Likewise.
2123 * config/vax/netbsd-elf.h: Likewise.
2124 * config/xtensa/elf.h: Likewise.
2125 * config/xtensa/linux.h: Likewise.
2127 2003-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2129 * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
2132 * config/mips/dbxmdebug.h: New file.
2133 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
2134 gas and --with-stabs.
2136 2003-06-11 Ulrich Weigand <uweigand@de.ibm.com>
2138 * expr.c (can_move_by_pieces): align argument may be unused.
2140 2003-06-11 J"orn Rennecke <joern.rennecke@superh.com>
2142 * expr.c (convert_move): Handle moves between two CONCATs.
2144 2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
2146 * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
2149 2003-06-11 Kazu Hirata <kazu@cs.umass.edu>
2151 * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
2152 * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
2153 (TARGET_RTL_DUMP): Likewise.
2154 (TARGET_SWITHCES): Remove -mrtl-dump.
2156 2003-06-10 Richard Henderson <rth@redhat.com>
2158 * optabs.c (gen_cond_trap): Fix prepare_operand typo.
2160 2003-06-10 Richard Henderson <rth@redhat.com>
2162 * config/ia64/ia64.md (call_gp): Fix memory mode.
2164 2003-06-10 James E Wilson <wilson@tuliptree.org>
2167 * reload1.c (choose_reload_regs): For equiv reg, add loop over all
2168 hard regs for reload_reg_used_at_all and reg_class_contents checks.
2170 2003-06-10 Kazu Hirata <kazu@cs.umass.edu>
2172 * config/h8300/h8300.c (print_operand): Remove support for
2173 operand character 'b'.
2174 Add the AND case to operand character 'c'.
2175 * config/h8300/h8300.md (two anonymous patterns): Replace
2176 operand character 'b' with 'c'.
2178 2003-06-10 Kazu Hirata <kazu@cs.umass.edu>
2180 * config/h8300/h8300.c (print_operand): Remove support for
2181 operand character 'u'.
2183 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
2185 * configure.in: Fix typo.
2186 * configure: Regenerate.
2188 2003-06-10 Loren James Rittle <ljrittle@acm.org>
2190 * config/alpha/alpha.c (unicosmk_file_end): Add conditional
2193 2003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
2195 * sh-protos.h (function_symbol): Declare.
2196 * sh.c (expand_block_move, expand_ashiftrt): Use it.
2197 (sh_expand_prologue, sh_expand_epilogue): Likewise.
2198 (sh_initialize_trampoline): Likewise.
2199 (function_symbol): New function.
2200 * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
2201 (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
2202 (call_value_pop, shcompact_return_tramp): Likewise.
2204 * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
2206 * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
2209 2003-06-10 DJ Delorie <dj@redhat.com>
2211 * doc/md.texi (Machine Constraints): Document stormy's Z
2214 2003-06-10 Geoffrey Keating <geoffk@apple.com>
2216 * except.c (call_site_base): Mark with GTY.
2218 2003-06-10 Richard Earnshaw <rearnsha@arm.com>
2220 * arm-proto.h: Convert to ISO C90 prototypes.
2223 2003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
2225 * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
2227 2003-06-10 Steve Ellcey <sje@cup.hp.com>
2229 * calls.c (expand_call): Convert structure_value_addr to Pmode if
2232 2003-06-10 Andrew Haley <aph@redhat.com>
2234 * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
2235 (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
2236 (lhd_decl_ok_for_sibcall): New.
2237 * langhooks.c (lhd_decl_ok_for_sibcall): New.
2238 * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
2239 * calls.c (expand_call): Check lang_hook before generating a
2242 2003-06-10 DJ Delorie <dj@redhat.com>
2244 * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
2245 which matches (const_int 0) for addhi3.
2246 * config/stormy16/stormy16.md: Document known constraints.
2247 (addhi3): Handle adding zero.
2249 2003-06-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2251 * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
2252 * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
2253 * config/m32r/m32r-protos.h: Prototype it.
2255 2003-06-10 Janis Johnson <janis187@us.ibm.com>
2257 * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
2258 common to rs6000 sysv targets.
2259 * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
2260 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
2262 2003-06-10 Nick Clifton <nickc@redhat.com>
2264 * config.gcc: Add arm-wince-pe target.
2265 * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
2266 Add comment about default apcs26 support.
2267 * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
2269 (MULTILIB_DIRNAMES): Add 'apcs32'.
2270 * config/arm/t-wince-pe: New makefile fragment.
2271 * config/arm/wince-pe.h: New file. Overrides a few definitions
2274 2003-06-10 Roger Sayle <roger@eyesopen.com>
2276 * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
2277 * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
2278 when x is easily negated and f is sin, tan or atan.
2279 (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
2280 sin(x) with flag_unsafe_math_optimizations.
2281 (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
2282 sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
2284 2003-06-10 Roger Sayle <roger@eyesopen.com>
2286 * fold-const.c (fold <EQ_EXPR>): Don't fold x == x only if x
2287 is a floating point type *and* we currently honor NaNs.
2288 (fold <NE_EXPR>): Likewise.
2290 2003-06-10 Mark Mitchell <mark@codesourcery.com>
2293 * tree-inline.c (inlinable_function_p): Call the language-specific
2296 2003-06-09 David Taylor <dtaylor@emc.com>
2298 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg): Skip over
2301 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
2303 * configure.in: Remove references to host_truncate_target.
2304 * configure: Regenerate.
2305 * config.gcc: Remove references to truncate_target,
2306 host_truncate_target.
2308 * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
2309 Replace "build_canonical" with build, "host_canonical" with host.
2310 * configure.in: Use GCC_TOPLEV_SUBDIRS.
2311 * aclocal.m4: Include ../config/acx.m4.
2312 * configure: Regenerate.
2314 2003-06-09 David Taylor <dtaylor@emc.com>
2316 * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
2317 bytes of padding in the __va_list_tag structure a name (reserved).
2319 2003-06-09 Jason Merrill <jason@redhat.com>
2321 * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
2323 2003-06-09 Osku Salerma <osku@iki.fi>
2325 * c-format.c (check_format_string, get_constant): New.
2326 (handle_format_attribute, handle_format_arg_attribute,
2327 decode_format_attr): Change to use above functions.
2329 2003-06-09 Richard Henderson <rth@redhat.com>
2331 * stmt.c (expand_asm_operands): Re-word warning.
2333 2003-06-08 Andrew Pinski <pinskia@physics.uc.edu>
2336 * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
2339 2003-06-09 James E Wilson <wilson@tuliptree.org>
2341 * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
2342 config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
2343 Add libgcc exception.
2345 2003-06-09 David Edelsohn <edelsohn@gnu.org>
2346 Ayal Zaks <gcchaifa@us.ibm.com>
2348 * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
2349 (insvsi*): Add insert_word attribute.
2350 * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
2351 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
2352 power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
2354 2003-06-09 Kazu Hirata <kazu@cs.umass.edu>
2356 * fold-const.c (fold): Fix a comment typo.
2358 2003-06-09 Nathan Sidwell <nathan@codesourcery.com>
2360 * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
2363 2003-06-09 J"orn Rennecke <joern.rennecke@superh.com>
2365 * sh.c (gen_block_redirect): Use locators.
2367 2003-06-09 Richard Earnshaw <rearnsha@arm.com>
2369 * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
2372 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2374 * configure.in: Assume gas 2.14 and above can handle MIPS relocation
2376 * configure: Regenerated.
2378 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2379 Alexandre Oliva <aoliva@redhat.com>
2381 * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
2382 (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
2383 (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
2385 (MUST_SAVE_REGISTERS): Delete.
2386 * config/mips/mips.c (mips_frame_info): Remove extra_size field.
2387 (machine_function): Add global_pointer field.
2388 (mips_classify_constant): Check for (const $gp) using pointer equality
2389 with pic_offset_table_rtx.
2390 (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
2391 (mips_restore_gp): Use current_function_outgoing_args_size.
2392 (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
2393 GP_REG_FIRST + 28. Handle relocation strings that have
2395 (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
2396 (mips_global_pointer): New function.
2397 (mips_save_reg_p): New function, mostly split out from...
2398 (compute_frame_size): ...here. Remove handling of extra_size.
2399 Reclaim args_size if no variables depend on it. Don't treat gp
2400 as a special case: handle it in the main GPR loop.
2401 (mips_initial_elimination_offset): Fix comment.
2402 (save_restore_insns): Save every register in the GPR mask,
2403 removing distinction between mask and real_mask.
2404 (mips_output_function_prologue): Update .frame psuedo-op after
2405 the removal of extra_size. Move the SVR4 PIC stack allocation
2406 and cprestore instructions to mips_expand_prologue.
2407 (mips_gp_insn): New function.
2408 (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
2409 the chosen global pointer. Handle SVR4 PIC stack allocation
2410 in the same way as other ABIs. Adjust varargs code accordingly.
2411 Emit a cprestore insn after allocating the stack. Use mips_gp_insn
2412 to emit the loadgp sequence. Follow it with a loadgp_blockage
2413 if not using explicit relocs.
2414 (mips_output_function_epilogue): Reinstate the default gp register.
2415 (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
2416 (mips16_optimize_gp): Likewise.
2417 * config/mips/mips.md (UNSPEC_LOADGP): Remove.
2418 (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
2419 (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
2421 (loadgp_blockage, cprestore): New instructions.
2422 (builtin_setjmp_setup): Implement using emit_move_insn. Use
2423 pic_offset_table_rtx.
2424 (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
2425 (builtin_longjmp): Use gen_raw_REG to force use of $28.
2427 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2429 * config/mips/mips-protos.h (mips_output_division): Declare.
2430 * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
2431 (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
2432 (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
2433 (TARGET_CHECK_ZERO_DIV): New macro.
2434 (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
2435 * config/mips/mips.c (mips_output_division): New function.
2436 * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
2437 account when calculating the default length of a division.
2438 (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
2439 Enable regardless of optimization level. Use mips_output_division.
2440 (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
2441 udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
2442 divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
2443 modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
2444 udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
2445 umoddi3_internal): Remove.
2447 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2449 * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
2450 (mips_sw_reg_names): Likewise.
2451 (mips_regno_to_class): Change hilo entry to NO_REGS.
2452 (hilo_operand): Use MD_REG_P.
2453 (extend_operator): New predicate.
2454 (override_options): Remove 'a' constraint.
2455 (mips_secondary_reload_class): Remove hilo handling. Also remove
2456 handling of (plus sp reg) reloads for mips16.
2457 (mips_register_move_cost): Remove hilo handling.
2458 * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
2459 (MD_REG_LAST): Remove hilo from range.
2460 (HILO_REGNUM): Delete.
2461 (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
2462 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2463 (PREDICATE_CODES): Add entry for extend_operator.
2464 (DEBUG_REGISTER_NAMES): Change hilo entry to "".
2465 * config/mips/mips.md: Remove hilo clobbers wherever they occur.
2466 Remove constraints from multiplication define_expands. Remove
2467 clobbers from "decorative" define_expand patterns.
2468 (UNSPEC_HILO_DELAY): Delete.
2469 (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
2470 (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
2471 Adjust C code to just emit insns for !TARGET_64BIT.
2472 (mulsidi3_internal): Rename to mulsidi3_32bit.
2473 (mulsidi3_64bit): Use a "d" constraint for the destination.
2474 Use extend_operator so that the pattern can handle umulsidi3 as well.
2475 Split the instruction after reload.
2476 (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
2477 (umulsidi3_internal): Rename to umulsidi3_32bit.
2478 (umulsidi3_64bit): Remove.
2479 (*smsac_di, *umsac_di): Line-wrap fixes.
2480 (udivsi3_internal): Don't allow operand 2 to be constant.
2481 (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
2482 (movdi_internal2, movsi_internal): Remove hilo alternatives.
2483 (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
2485 2003-06-09 Richard Sandiford <rsandifo@redhat.com>
2488 * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
2489 PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
2490 PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
2491 PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
2492 SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
2493 (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
2494 PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
2495 asm_out_text_file with asm_out_file.
2496 * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
2497 * config/mips/elf.h (TEXT_SECTION): Undefine.
2498 * config/mips/elf64.h (TEXT_SECION): Undefine.
2499 * config/mips/openbsd.h (TEXT_SECION): Undefine.
2500 * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
2501 (override_options): Disable small-data optimizations unless using
2502 gas or explicit relocations.
2503 (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
2504 iris6_asm_named_section, iris6_asm_file_start): Remove code for
2505 handling TARGET_FILE_SWITCHING.
2506 (copy_file_data): Move into TARGET_IRIX6 block.
2508 2003-06-08 Richard Henderson <rth@redhat.com>
2510 * expr.h (EXPAND_MEMORY): New.
2511 * expr.c (expand_expr): Check it.
2512 * stmt.c (expand_asm_operands): Provide it when the constraint
2513 requires a memory. Warn for memory input constraints without
2516 2003-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2518 * varasm.c: Don't include c-tree.h.
2520 2003-06-08 Andreas Jaeger <aj@suse.de>
2522 * predict.h: Convert to ISO C90 prototypes.
2523 * predict.c: Likewise.
2524 * tree-dump.h: Likewise.
2525 * tree-dump.c: Likewise.
2526 * diagnostic.h: Likewise.
2527 * diagnostic.c: Likewise.
2528 * combine.c: Likewise.
2530 * rtl.h: Convert prototypes of combine.c to ISO C90.
2532 Sun Jun 8 21:27:41 CEST 2003 Jan Hubicka <jh@suse.cz>
2534 * cfglayout.c (insn_scope): New static function
2535 (block_locators_*, line_locators*, file_locators*): New static varrays.
2536 (scope_to_insns_initialize): Use them.
2537 (insn_line, insn_file): New functions.
2538 (scope_to_insns_finalize): Use insn_scope.
2539 (prologue_locator, epilogue_locator): New global variables.
2540 * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
2541 make_call_insn_raw, emit_copy_of_insn_after): Use locators.
2542 (emit_insn_after_scope, emit_insn_before_scope
2543 emit_jump_insn_after_scope, emit_jump_insn_before_scope
2544 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
2545 (emit_insn_after_setloc, emit_insn_before_setloc
2546 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
2547 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
2549 * final.c (notice_source_line): Use locators.
2550 (final_start_function): Set initial source file and line.
2551 (final_scan_insn): Use locators.
2552 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2553 noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
2554 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2555 noce_process_if_block, find_cond_trap): Likewise.
2556 * integrate.c (copy_insn_list): Likewise.
2557 * jump.c (duplicate_loop_exit_test): LIkewise.
2558 * print-rtl.c (print_rtx): Print locators.
2559 * recog.c (peephole2_optimize): Likewise.
2560 * rtl.h (INSN_SCOPE): Remove.
2561 (emit_insn_after_scope, emit_insn_before_scope
2562 emit_jump_insn_after_scope, emit_jump_insn_before_scope
2563 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
2564 (emit_insn_after_setloc, emit_insn_before_setloc
2565 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
2566 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
2567 (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
2568 * unroll.c (copy_loop_body): Use locators.
2569 * function.c (set_insn_locators): New function.
2570 (thread_prologue_and_epilogue_insns): Set the locators accordingly.
2572 2003-06-08 Kazu Hirata <kazu@cs.umass.edu>
2574 * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
2575 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
2576 _fixsfdi _fixunssfdi.
2577 (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
2579 (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
2580 * config/h8300/clzhi2.c: New.
2581 * config/h8300/ctzhi2.c: Likewise.
2582 * config/h8300/parityhi2.c: Likewise.
2583 * config/h8300/popcounthi2.c: Likewise.
2585 Sun Jun 8 15:52:17 CEST 2003 Jan Hubicka <jh@suse.cz>
2587 * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
2588 * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
2590 * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
2591 (dump_bb): New based on old dump_bb in cfgrtl.c
2592 (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
2593 * cfghooks.h (cfgh_verify_flow_info): Return status.
2594 * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
2595 * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
2596 (dump_bb): Remove generic parts.
2597 (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
2598 (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
2600 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
2602 * Makefile.in: Rename options.c and options.h to c-options.c and
2604 (OBJS): Remove options.o.
2605 * c-opts.c: Don'tInclude c-options.h instead of options.h.
2606 * opts.c: Don't include options.h.
2607 (find_opt): Can't use enum opt_code or N_OPTS.
2608 * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
2609 * opts.sh: ... here.
2611 2003-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2612 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2615 * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
2616 if HAVE_MINCORE is defined.
2617 (MAP_FAILED): Define if not defined.
2618 (gt_pch_save): Test against MAP_FAILED.
2619 (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
2620 the mapping address to the preferred base after checking it
2621 is possible to do so. Test against MAP_FAILED.
2622 * configure.in: Test for the presence of mincore in libc.
2623 * config.in: Regenerate.
2624 * configure: Regenerate.
2626 2003-06-07 Richard Henderson <rth@redhat.com>
2628 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
2629 conditional compilation guard.
2631 2003-06-08 Kazu Hirata <kazu@cs.umass.edu>
2633 * optabs.c (expand_abs): Set result_unsignedp to 1 if
2636 2003-06-07 Richard Henderson <rth@redhat.com>
2638 * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
2640 2003-06-07 Richard Henderson <rth@redhat.com>
2642 * basic-block.h (EDGE_SIBCALL): New.
2643 (EDGE_ALL_FLAGS): Update.
2644 * cfg.c (dump_edge_info): Add sibcall name.
2645 * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
2646 * cfgrtl.c (purge_dead_edges): Handle sibcalls.
2648 2003-06-07 Andreas Jaeger <aj@suse.de>
2650 * mklibgcc.in (lib2funcs): Remove _exit.
2651 * libgcc2.c: Remove L_exit.
2652 * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
2654 * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
2656 * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
2658 * ggc.h: Convert to ISO C90 prototypes.
2659 * ggc-none.c: Likewise.
2660 * ggc-common.c: Likewise.
2661 * ggc-page.c: Likewise.
2662 * ggc-simple.c: Likewise.
2664 * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
2666 * system.h: Poison INIT_SECTION_PREAMBLE.
2668 2003-06-07 Zack Weinberg <zack@codesourcery.com>
2670 * config.gcc (with_cpu handling): Translate sparc64 in
2671 $machine to --with-cpu=v9.
2672 * config/alpha/alpha.c
2673 (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
2674 (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
2676 * target.h: New hook asm_out.file_end.
2677 * target.h: Update to match. New hook macro TARGET_ASM_FILE_END.
2678 * toplev.c (compile_file): Use targetm.asm_out.file_end.
2679 * system.h: Poison ASM_FILE_END.
2680 * varasm.c (file_end_indicate_exec_stack): New.
2681 * output.h: Prototype it.
2682 * doc/tm.texi: Document TARGET_ASM_FILE_END and
2683 file_end_indicate_exec_stack. Delete references to attasm.h.
2685 * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
2686 (ASM_FILE_END): Delete; move code...
2687 * config/darwin.c (darwin_file_end): Here; new function.
2688 * config/darwin-protos.h: Prototype it.
2689 * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
2690 rename unicosmk_file_end.
2691 * config/arm/aof.h (ASM_FILE_END): Delete; move code...
2692 * config/arm/arm.c (aof_file_end): ... here; new static function.
2693 Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
2694 Make aof_dump_imports and aof_dump_pic_table static.
2695 * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
2696 Set TARGET_ASM_FILE_END to avr_file_end.
2697 * config/c4x/c4x.c (c4x_file_end): Make static. Take no arguments.
2698 Set TARGET_ASM_FILE_END to c4x_file_end.
2699 * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
2700 make static. Take no arguments. Set TARGET_ASM_FILE_END to
2702 * config/i370/i370.h (ASM_FILE_END): Delete; move code...
2703 * config/i370/i370.c (i370_file_end): ... here; new static function.
2704 Set TARGET_ASM_FILE_END to i370_file_end.
2705 * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
2706 Take no arguments. Call file_end_indicate_exec_stack if
2707 NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
2708 * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
2709 Define NEED_INDICATE_EXEC_STACK to 0.
2710 * config/i386/linux.h, config/i386/linux64.h: Redefine
2711 NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
2712 * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
2713 i386_pe_file_end. Take no arguments. Use ix86_file_end.
2714 * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
2715 ia64_hpux_file_end, make static. Take no arguments.
2716 * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
2717 commands_in_prologues, commands_in_epilogues): Delete.
2718 (function_epilogue): Update to match.
2719 * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
2720 make static. Take no arguments.
2721 (iris6_asm_file_end): Rename iris6_file_end, make static, use
2722 mips_file_end, take no arguments.
2723 Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
2725 * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
2726 make static, take no arguments. Set TARGET_ASM_FILE_END to
2728 * config/pa/pa.c (output_deferred_plabels): Make static, take
2729 no arguments. Set TARGET_ASM_FILE_END to output_deferred_plabels.
2730 * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
2731 (ASM_FILE_END): Delete; move code...
2732 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
2733 new static function.
2735 * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
2736 * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
2737 Don't set ASM_FILE_END.
2738 * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
2739 * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
2740 * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
2741 file_end_indicate_exec_stack; don't set ASM_FILE_END.
2742 * config/alpha/unicosmk.h, config/i386/cygming.h
2743 * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
2744 * config/arm/arm-protos.h, config/alpha/alpha-protos.h
2745 * config/avr/avr-protos.h, config/c4x/c4x-protos.h
2746 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
2747 * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
2748 * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
2750 Sat Jun 7 18:32:13 CEST 2003 Jan Hubicka <jh@suse.cz>
2752 * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
2755 Sat Jun 7 15:20:01 CEST 2003 Jan Hubicka <jh@suse.cz>
2757 * Makefile.in (stageprofile_build): Kill redundant target.
2758 * i386.c (mdep_reorg): Don't pad jumps for Athlon.
2760 2003-06-07 Andreas Jaeger <aj@suse.de>
2762 * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
2764 * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
2765 * config/dsp16xx/dsp16xx.h: Likewise.
2766 * config/i386/i386.h: Likewise.
2767 * config/ip2k/ip2k.h: Likewise.
2769 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
2771 * Makefile.in (OJBS, c-opts.o): Update.
2772 (c-options.c, c-options.h): Rename options.h and options.c.
2773 (options.h): Rename options_.h.
2775 * c-common.h (c_common_handle_option): Replace c_common_decode_option.
2776 (c_common_init_options): Update prototype.
2777 * c-lang.c (c_init_options): Update prototype.
2778 (LANG_HOOKS_HANDLE_OPTION): Override.
2779 (LANG_HOOKS_DECODE_OPTION): Drop.
2780 * c-opts.c: Include opts.h and options.h instead of c-options.h
2782 (lang_flags): Move to file scope.
2783 (find_opt, c_common_decode_option): Remove.
2784 (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
2785 CL_REJECT_NEGATIVE): Move to opts.h.
2786 (missing_arg): Update prototype.
2787 (c_common_init_options): Update for new prototype.
2788 (c_common_handle_options): Filenames are passed as N_OPTS.
2789 * hooks.c (hook_int_void_0): New.
2790 * hooks.h (hook_int_void_0): New.
2791 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
2792 (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
2793 (LANG_HOOKS_INITIALIZER): Update.
2794 * langhooks.h (init_options): Update.
2795 (handle_option): New.
2796 * opts.c, opts.h: New files.
2797 * opts.sh: Update c file to include opts.h and options.h.
2798 * toplev.c: Include opts.h; change options.h to options_.h.
2799 (parse_options_and_default_flags): Get lang_mask, use
2800 handle_option for language-specific handling.
2801 * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
2802 (LANG_HOOKS_HANDLE_OPTION): Override.
2803 (objc_init_options): Update.
2805 2003-06-07 Magnus Kreth <magnus.kreth@gmx.de>
2806 Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
2809 * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
2812 2003-06-07 Kelley Cook <kelleycook@wideopenwest.com>
2814 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
2816 * configure: Regenerate.
2818 2003-06-07 Alan Modra <amodra@bigpond.net.au>
2820 * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
2822 2003-06-06 James E Wilson <wilson@tuliptree.org>
2825 * reload1.c (merge_assigned_reloads): Abort only if two reloads have
2826 different in fields.
2828 2003-06-06 Nathanael Nerode <neroden@gcc.gnu.org>
2830 * configure.in: Make $(target_subdir) correspond with top level usage.
2831 * Makefile.in: Likewise.
2832 * configure: Regenerate.
2834 2003-06-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2836 * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
2837 ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
2838 unsigned HOST_WIDE_INT.
2839 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
2841 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
2844 2003-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2846 * doc/install.texi (Prerequisites): New section documenting
2847 tools and packages necessary prior to building and/or
2849 * doc/install.texi2html: Also generate prerequisites.html.
2851 2003-06-06 Richard Earnshaw <rearnsha@arm.com>
2854 * ifcvt.c (noce_process_if_block): Fail if the destination has
2857 2003-06-06 Jason Merrill <jason@redhat.com>
2859 * stmt.c (resolve_asm_operand_names): Rename from
2860 resolve_operand_names. No longer static. Avoid needless copying.
2861 Don't build array of constraints.
2862 (expand_asm_operands): Build it here.
2863 * tree.h: Declare resolve_asm_operand_names.
2865 * stmt.c (expand_decl): Put artificial vars into registers even
2866 when not optimizing, and don't mark the regs as user vars.
2868 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2870 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
2871 of the generated register.
2873 2003-06-06 Daniel Jacobowitz <drow@mvista.com>
2875 * config.gcc: Add a missing sparc64 case.
2877 2003-06-06 Jakub Jelinek <jakub@redhat.com>
2879 * mklibgcc.in: Propagate .note.GNU-stack section if needed into
2880 the .hidden assembly stubs.
2882 2003-06-06 H.J. Lu <hongjiu.lu@intel.com>
2884 * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
2887 * config/i386/mmintrin.h: Update version and add alternate
2889 * config/i386/xmmintrin.h: Likewise.
2891 * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
2893 * config/i386/emmintrin.h: Here. New file.
2895 2003-06-06 Roger Sayle <roger@eyesopen.com>
2897 * fold-const.c (fold <ABS_EXPR>): Re-fold the result of folding
2898 fabs(-x) into fabs(x). Use tree_expr_nonnegative_p to determine
2899 when the ABS_EXPR (fabs or abs) is not required.
2900 (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
2901 always nonnegative from fold to here. Additionally, cabs and fabs
2902 are always non-negative, and pow and atan are non-negative if
2903 their first argument is non-negative.
2905 * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
2906 Evaluate cabs of a constant at compile-time. Convert cabs of a
2907 non-complex argument into fabs. Convert cabs(z) into
2908 sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
2909 -funsafe-math-optimizations or -ffast-math.
2910 (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
2911 Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
2913 Thu Jun 5 20:51:09 CEST 2003 Jan Hubicka <jh@suse.cz>
2915 * sourcebuild.texi (Front End Directory): Document new hooks.
2917 Fri Jun 6 11:02:35 CEST 2003 Jan Hubicka <jh@suse.cz>
2919 * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
2920 * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
2922 (pro_epilogue_adjust_stack_rex64_2): New pattern
2924 Fri Jun 6 11:03:14 CEST 2003 Jan Hubicka <jh@suse.cz>
2926 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2928 * cfghooks.h, cfghooks.c: New files.
2929 * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
2930 (OBJS): Add cfghooks.o.
2931 (cfghooks.o): New rule.
2932 * basic-block.h (split_edge): Rename to rtl_split_edge.
2933 (verify_flow_info): Rename to rtl_verify_flow_info.
2934 (cfghooks.h): Included here.
2935 * cfgrtl.c (split_edge): Renamed rtl_split_edge.
2936 (verify_flow_info): Renamed rtl_verify_flow_info.
2937 * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
2939 * basic-block.h (split_block, split_edge, flow_delete_block,
2940 redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
2941 (flow_delete_block_noexpunge): Return void.
2942 * cfg.c (verify_flow_info): New function.
2943 * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
2944 try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
2946 * cfglayout.c (function_footer): Rename to...
2947 (cfg_layout_function_footer): ... this variable
2948 (unlink_insn_chain): Make global.
2949 (fixup_reorder_chain, record_effective_endpoints): Update.
2950 (cleanup_unconditional_jumps): Use delete_block.
2951 (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
2952 (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
2953 (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
2954 * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block): Delete.
2955 (cfg_layout_function_footer): Declare.
2956 * cfgloopmanip (split_loop_bb): Do not update RBI.
2957 (remove_bbs): Use delete_block.
2958 (loop_reidrect_edge, loop_delete_branch_edge): Use
2959 redirect_edge_and_branch.
2960 (create_preheader): Use split_block and redirect_edge_and_branch_force.
2961 (split_edge_with): Likewise.
2962 * cfgrtl.c: Include cfglayout.h
2963 (split_edge): Rename to ...
2964 (rtl_split_edge) ... this one; make local.
2965 (redirect_edge_and_branch): Rename to ...
2966 (rtl_redirect_edge_and_branch) ... this one; make local.
2967 (redirect_edge_and_branch_force): Rename to ...
2968 (rtl_redirect_edge_and_branch_force) ... this one; make local.
2969 (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
2970 (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
2971 cfglayout.c; update to directly call RTL counterparts.
2972 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
2973 * ifcvt.c (find_cond_trap): Use delete_block.
2974 (find_if_case_1): Use delete_block.
2975 (find_if_case_2): Use delete_block.
2976 * rtl.h (unlink_insn_chain): Declare.
2977 * toplev.c (rtl_reigster_cfg_hooks): New.
2979 2003-06-05 Richard Henderson <rth@redhat.com>
2981 * recog.c (peephole2_optimize): Revert last change.
2983 2003-06-05 Richard Henderson <rth@redhat.com>
2985 * recog.c (peephole2_optimize): Don't split block unless
2988 2003-06-06 Kazu Hirata <kazu@cs.umass.edu>
2990 * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
2991 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
2993 2003-06-05 Kelley Cook <kelleycook@wideopenwest.com>
2995 PR optimization/4490
2996 * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
2997 * doc/invoke.texi (m96bit-long-double, m128bit-long-double): Reword
2998 documentation to accurately reflect what these options do.
3000 2003-06-06 Kaz Kojima <kkojima@gcc.gnu.org>
3002 * config/sh/linux.h (STARTFILE_SPEC): Handle -pie. Simplify.
3003 (ENDFILE_SPEC): Redefine to handle -pie.
3005 2003-06-05 Phil Edwards <phil@jaj.com>
3007 * Makefile.in (qmtest-g++): Use target_alias, not target.
3009 2003-06-05 Per Bothner <pbothner@apple.com>
3011 * toplev.c (push_srcloc): Simplify behavior to save current location
3012 and set current location to parameters.
3013 (pop_srcloc): Simplify semantics.
3014 (lang_dependent_init): Remove now-useless initial push_srcloc.
3016 2003-05-06 Richard Henderson <rth@redhat.com>
3018 * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
3019 language-specific tree codes.
3021 2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3024 * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
3025 BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
3027 Thu Jun 5 18:32:46 CEST 2003 Jan Hubicka <jh@suse.cz>
3029 * install.tex: Document profiledbootstrap.
3031 * configure.in: Add support for lang.stageprofile and
3033 * Makefile.in (clean, distclean): Kill new stages
3034 (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
3035 (STAGE2_FLAGS_TO_PASS): ... this one.
3036 (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
3037 (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
3038 (stageprofile_build, stageprofile_copy, stagefeedback_build,
3039 stagefeedback_copy): New.
3040 (restageprofile, restagefeedback, stageprofile-start,
3041 stageprofile, stagefeedback-start): Likewise.
3043 2003-06-05 David Miller <davem@redhat.com>
3044 Richard Henderson <rth@redhat.com>
3046 * optabs.c (HAVE_conditional_trap): Provide default.
3047 (gen_conditional_trap): Likewise.
3048 (init_optabs): Merge init_traps.
3049 (gen_cond_trap): Use prepare_operand. Restructure and avoid ifdef.
3051 Thu Jun 5 14:59:44 CEST 2003 Jan Hubicka <jh@suse.cz>
3053 * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
3054 is REG for nonzero_bits (REG) == 8.
3056 Thu Jun 5 13:23:51 CEST 2003 Jan Hubicka <jh@suse.cz>
3058 * i386.md (align): Fix warning; clarify what to do when no p2align
3061 2003-06-05 Nick Clifton <nickc@redhat.com>
3063 * config.gcc (m32r-elf): Revert previous delta.
3064 * config/m32r/t-m32r (crtinit.o): Fix rule to work with
3065 multilibs. Remove m32rx specific version.
3066 (crtfini.o): Likewise.
3067 (EXTRA_MULTILIB_PARTS): Define.
3069 2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
3071 * doc/md.texi (Machine Constraints): Correct the meaning of
3072 constraints related to floating-point registers on SPARC.
3074 2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
3075 Paolo Bonzini <bonzini@gnu.org>
3078 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
3079 assembler and linker output to /dev/null.
3080 Use a 'sed' construct instead of 'grep -A1'.
3081 * configure: Regenerate.
3083 2003-06-04 Richard Henderson <rth@redhat.com>
3085 * config/i386/i386.c (struct ix86_address): Add seg.
3086 (no_seg_address_operand): New.
3087 (ix86_decompose_address): Restructure PLUS loop. Accept one
3088 UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS. Adjust ESP swap test
3089 to test for a regnum, not stack_pointer_rtx.
3090 (ix86_address_cost): Reduce cost if non-default segment.
3091 (legitimate_address_p): Remove UNSPEC_TP check.
3092 (get_thread_pointer): Add to_reg argument. Don't represent
3093 the thread pointer as a memory load.
3094 (legitimize_tls_address): Split out of ...
3095 (legitimize_address): ... here.
3096 (print_operand_address): Handle parts.seg.
3097 (ix86_expand_move): Use legitimize_tls_address.
3098 (ix86_rtx_costs): Handle UNSPEC_TP.
3099 * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
3100 (TARGET_TLS_DIRECT_SEG_REFS): New.
3101 (TARGET_SWITCHES): Add tls-direct-seg-refs.
3102 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
3103 (PREDICATE_CODES): Add no_seg_address_operand.
3104 * config/i386/i386.md (lea_1): Use it.
3105 (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
3106 (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
3107 * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
3108 * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
3109 * doc/invoke.texi: Add -mtls-direct-seg-refs.
3111 2003-06-04 Mark Mitchell <mark@codesourcery.com>
3113 * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
3114 (QMTEST_GPP_TESTS): Use "g++" by default.
3115 (stamp-qmtest): Tweak database creation.
3116 (QMTEST_DIR/context): Update context file format.
3117 (qmtest-g++): Tweak command-line.
3119 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3121 * Makefile.in (varasm.o): Don't set -Wno-error.
3122 * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
3124 2003-06-04 Zack Weinberg <zack@codesourcery.com>
3127 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
3128 (gcc_AC_FUNC_MMAP_BLACKLIST): New.
3129 * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
3130 and AC_CHECK_FUNCS lists, respectively. Use
3131 gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
3133 * configure, config.in: Regenerate.
3135 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3137 * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
3138 * arm.c (arm_output_function_prologue): Fix format specifiers.
3139 * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
3140 * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
3141 HOST_WIDE_INT_PRINT_DEC.
3142 * vax.c (vax_output_function_prologue): Fix format specifiers.
3144 2003-06-04 Richard Henderson <rth@redhat.com>
3146 * cse.c (find_best_addr): Consider binary operators even if second
3147 argument is not CONST_INT.
3149 2003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3151 * doc/invoke.texi (max-cse-path-length): Document.
3153 2003-06-04 Richard Henderson <rth@redhat.com>
3155 * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
3157 2003-06-04 Andrew Pinski <pinskia@physics.uc.edu>
3159 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
3160 Remove semi-colon at the end of the expression.
3162 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3164 * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
3165 * i370.h (mvs_function_name_length): Likewise.
3166 * i960.h (CONSTANT_ALIGNMENT): Likewise.
3167 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3168 * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3169 * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3170 * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
3173 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
3175 * config.gcc: Reorganize --with-cpu logic. Set
3176 configure_default_options according to the default CPU, --with-cpu,
3177 --with-arch, --with-tune, --with-schedule, --with-abi, and
3178 --with-float. Check for legal values of various options.
3179 * configure.in: Define configure_default_options in configargs.h.
3180 * configure: Regenerated.
3181 * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
3182 (TARGET_DEFAULT_FLOAT_P): New macros.
3183 * gcc.c (do_option_spec): New function.
3184 (struct default_spec, option_default_specs): New.
3185 (main): Call do_option_spec.
3186 * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
3187 config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
3188 config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
3190 * doc/install.texi: Update --with-cpu documentation. Mention
3191 --with-arch, --with-schedule, --with-tune, --with-abi, and
3193 * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
3195 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
3197 * config.gcc: Only process --with-cpu logic in the third pass.
3199 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
3201 * config.gcc: Reorganize --with-cpu section. Remove an
3202 obsolete comment about the default CPU for x86-64. Fix
3203 a typo for the ep9312. Update the list of supported PowerPC
3204 CPUs. Support a limited set of new --with-cpu options
3207 2003-06-04 Aldy Hernandez <aldyh@redhat.com>
3209 * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
3210 complex numbers <= 32 bits into two registers.
3212 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3214 * alpha.c (print_operand_address): Fix format specifier warnings.
3215 * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3216 * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3217 * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
3218 * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
3219 * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
3220 ASM_OUTPUT_SKIP): Likewise.
3221 * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3222 * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3223 * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
3225 * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3226 * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
3227 * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
3228 * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3229 * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
3230 * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3231 * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3232 * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3233 * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3234 * svr3.h (ASM_OUTPUT_COMMON): Likewise.
3236 2003-06-04 J"orn Rennecke <joern.rennecke@superh.com>
3238 * c-decl.c (c_init_decl_processing): Clear input_file_name
3239 while building common nodes.
3240 * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
3241 Don't add working directory for strings like <built-in> .
3243 2003-06-04 David Edelsohn <edelsohn@gnu.org>
3245 * doc/install.texi (*-ibm-aix*): Native as and ld required
3246 to bootstrap on AIX 5L.
3248 2003-06-04 Richard Henderson <rth@redhat.com>
3250 * c-common.c (handle_cleanup_attribute): New.
3251 (c_common_attributes): Add it.
3252 * c-decl.c (finish_decl): Honor the cleanup attribute.
3253 * doc/extend.texi (Variable Attributes): Document it.
3255 * unwind-c.c: New file.
3256 * Makefile.in (LIB2ADDEH): Add it.
3257 * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
3258 config/ia64/t-ia64: Likewise.
3260 2003-06-04 Jakub Jelinek <jakub@redhat.com>
3262 * function.c (trampolines_created): New variable.
3263 (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
3264 * function.h (trampolines_created): Add.
3265 * config/s390/linux.h (ASM_FILE_END): Define.
3266 * config/alpha/linux-elf.h (ASM_FILE_END): Define.
3267 * config/m68k/linux.h (ASM_FILE_END): Define.
3268 * config/rs6000/linux.h (ASM_FILE_END): Define.
3269 * config/rs6000/linux64.h (ASM_FILE_END): Define.
3270 * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
3271 * config/sparc/linux.h (ASM_FILE_END): Define.
3272 * config/sparc/linux64.h (ASM_FILE_END): Define.
3273 * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
3274 * config/i386/linux.h (SUBTARGET_FILE_END): Define.
3275 * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
3277 Wed Jun 4 18:39:33 CEST 2003 Jan Hubicka <jh@suse.cz>
3279 * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
3280 (ix86_reorg): Use it.
3281 * i386.md (align): New insn pattern.
3283 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3285 * toplev.c (rest_of_type_compilation): Fix typo.
3287 2003-06-04 Jakub Jelinek <jakub@redhat.com>
3288 Alan Modra <amodra@bigpond.net.au>
3290 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
3291 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
3292 * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
3293 * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
3294 * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
3295 * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
3296 (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
3297 * config/rs6000/rs6000.c (output_profile_hook): Likewise.
3299 * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
3300 Pass it to $gcc_cv_as.
3301 * configure: Rebuilt.
3303 * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
3304 (print_operand): Allow TARGET_AIX to be non-constant.
3305 (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
3306 Define unconditionally.
3307 (rs6000_elf_declare_function_name): New function.
3308 * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
3310 * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
3312 (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
3313 [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
3315 (TARGET_AIX): Define to 1 if TARGET_64BIT.
3316 (PROCESSOR_DEFAULT): Remove.
3317 (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
3318 INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
3319 [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
3320 (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
3322 (MULTILIB_DEFAULTS): Define.
3323 (SUBSUBTARGET_EXTRA_SPECS): Define.
3324 (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
3325 (TARGET_TOC): Define only if !RS6000_BI_ARCH.
3326 (TARGET_NO_TOC): Remove.
3327 [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
3328 TARGET_PROTOTYPE): Define to 0.
3329 (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
3330 (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
3331 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
3333 (USER_LABEL_PREFIX): Remove.
3334 (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
3335 (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
3337 (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
3338 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
3339 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
3340 (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
3341 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3342 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
3344 (RS6000_CALL_GLUE): Likewise.
3345 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
3346 RESTORE_FP_SUFFIX): Likewise.
3347 (ASM_DECLARE_FUNCTION_NAME): Remove.
3348 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
3349 DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
3350 name if TARGET_64BIT.
3351 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
3353 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
3354 (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
3355 (DRAFT_V4_STRUCT_RET): Define.
3356 (SIGNAL_FRAMESIZE): New enum value.
3357 (MD_FALLBACK_FRAME_STATE_FOR): Define.
3358 * config/rs6000/default64.h: New file.
3359 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
3361 (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
3362 to RS6000_ABI_NAME. Only disallow mixing of -fPIC with -mcall-aixdesc
3364 [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
3365 (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
3367 (TARGET_OS_SYSV_CPP_BUILTINS): Define.
3368 (TARGET_OS_CPP_BUILTINS): Use it.
3369 (CPP_SYSV_SPEC): Remove.
3370 (CPP_SPEC): Remove cpp_sysv.
3371 (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
3372 Add SUBSUBTARGET_EXTRA_SPECS.
3373 (SUBSUBTARGET_EXTRA_SPECS): Define.
3374 * config/rs6000/biarch64.h: New file.
3375 * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
3377 * config/rs6000/x-linux64: New file.
3378 * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
3380 * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
3381 * config/rs6000/eabi-cn.asm: Likewise.
3382 * config/rs6000/tramp.asm: Likewise.
3383 * config/rs6000/sol-ci.asm: Likewise.
3384 * config/rs6000/sol-cn.asm: Likewise.
3385 * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
3386 (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
3387 * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
3388 _CALL_AIXDESC section.
3389 * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
3390 defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
3393 2003-06-04 Daniel Jacobowitz <drow@mvista.com>
3395 * config.gcc: Revert accidentally committed ARM changes.
3397 2003-06-04 Roger Sayle <roger@eyesopen.com>
3399 * builtins.c (dconstpi, dconste): New mathematical constants.
3400 (init_builtin_dconsts): New function to initialize dconstpi
3402 (fold_builtin): Optimize exp(1.0) = e. Evaluate exp(x) at
3403 compile time with -ffast-math when x is an integer constant.
3404 Optimize tan(0.0) = 0.0. Optimize atan(0.0) = 0.0,
3405 atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
3407 2003-06-04 Roger Sayle <roger@eyesopen.com>
3409 * calls.c (expand_call): Avoid calling pure or const functions
3410 when the result is ignored (or void) and none of the arguments
3411 are volatile. Move warning diagnostic earlier in function.
3413 2003-06-04 Andreas Jaeger <aj@suse.de>
3415 * system.h: Do not poison TDESC_SECTION_ASM_OP,
3416 RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
3418 2003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3420 * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
3421 optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
3422 handle %ll, optimize regular character case.
3424 2003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3426 * Makefile.in (cse.o): Add params.h dependency.
3427 * cse.c: Include params.h.
3428 (PATHLENGTH): Removed.
3429 (struct cse_basic_block_data): Make path array dynamic.
3430 (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
3432 (cse_main, cse_basic_block): Allocate path array.
3433 * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
3435 Wed Jun 4 09:49:21 CEST 2003 Jan Hubicka <jh@suse.cz>
3437 * i386.c (ix86_reorg): Replace the jump instead of adding nop.
3438 * i386.md (UNSPEC_REP): New constant.
3439 (return_internal_long): New pattern.
3441 2003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3443 PR optimization/11018
3444 * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
3445 consistently to decide whether the scratch register is really
3448 2003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3450 PR optimization/10876
3451 * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
3452 new 'O' constraint for constant 4096.
3453 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
3454 * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
3455 Do not transform into MINUS insn for constant 4096.
3456 (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
3457 for constant 4096 as third operand.
3458 (addsi3 expander): Remove.
3459 (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
3460 new alternative for constant 4096 as third operand.
3461 (subdi3 expander): Do not transform into PLUS insn for constant 4096.
3462 (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
3464 (subsi3 expander): Remove.
3465 (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
3466 constant 4096 as third operand.
3467 * doc/md.texi (Machine Constraints): Document new 'O' constraint for
3470 2003-06-03 Chris Demetriou <cgd@broadcom.com>
3472 * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
3474 2003-06-04 Andreas Jaeger <aj@suse.de>
3476 * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
3478 * config/i386/i386.c (ix86_expand_prologue): Do not use
3481 * system.h: Poision SUBTARGET_PROLOGUE.
3483 * config/arm/arm-protos.h: Remove unused rdate_section prototype.
3485 * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
3488 * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
3490 * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
3491 INSN_CACHE_LINE_WIDTH.
3493 * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
3494 (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
3495 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
3497 * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
3498 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
3500 * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
3501 (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
3502 (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
3503 (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
3504 (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
3505 (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
3507 * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
3508 DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
3509 DBX_WORKING_DIRECTORY.
3511 * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
3512 DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
3514 * config/frv/frv-protos.h: Remove unused const_section
3516 * config/vax/vax-protos.h: Likewise.
3518 * output.h: Remove CONST_SECTION_ASM_OP usage.
3520 * system.h: Poison CONST_SECTION_ASM_OP.
3522 * crtstuff.c (__do_global_dtors_aux): Remove usage of
3524 (frame_dummy): Likewise.
3525 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
3526 * system.h: Poison CRT_GET_RFIB_TEXT.
3528 * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
3530 * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
3531 (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
3532 (recognized_function): Likewise.
3533 (read_scan_file): Likewise.
3535 2003-06-03 Roger Sayle <roger@eyesopen.com>
3537 * optabs.c (expand_binop): Optimize complex multiplication for
3538 the case of squaring a complex argument.
3540 2003-06-03 Roger Sayle <roger@eyesopen.com>
3542 * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
3543 non-volatile operands of binary operations.
3544 (prepare_cmp_insn): Likewise.
3546 2003-06-03 Roger Sayle <roger@eyesopen.com>
3548 * varasm.c (force_const_mem): Handle alignment of constants not
3549 representable as a type in the front-end language.
3551 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
3553 * flow.c (initialize_uninitialized_subregs): Use
3554 emit_move_insn instead of emitting a hardcoded move.
3556 2003-06-03 Richard Henderson <rth@redhat.com>
3558 * optabs.c (expand_abs_nojump): Split out from ...
3559 (expand_abs): ... here.
3560 * optabs.h (expand_abs_nojump): Declare.
3561 * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
3562 * Makefile.in (ifcvt.o): Depend on optabs.h.
3564 2003-06-03 Alan Modra <amodra@bigpond.net.au>
3566 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
3568 2003-06-03 Jason Thorpe <thorpej@wasabisystems.com>
3570 * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
3571 (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
3573 * configure.in: Allow default_use_cxa_atexit to determine the
3574 value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
3576 * configure: Regenerate.
3578 2003-06-03 Douglas B Rupp <rupp@gnat.com>
3580 * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
3581 * doc/gcc.texi: Remove vms.texi section.
3582 * doc/vms.texi: Remove obsolete file.
3584 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
3586 * configure.in (inhibit_libc): Don't define when configuring
3587 with --with-newlib --with-headers.
3588 * configure: Regenerate.
3590 * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
3592 2003-06-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3594 * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
3595 IRIX 6 without GNU ld.
3596 * configure: Regenerate.
3598 2003-06-03 Roger Sayle <roger@eyesopen.com>
3600 * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
3601 of a complex number rather than invoke mov_optab directly.
3603 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
3605 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
3606 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
3608 2003-06-03 Nathanael Nerode <neroden@gcc.gnu.org>
3610 * config/i386/x86-64.h: Remove two target-independent comments;
3611 replace "GNU CC" with "GCC".
3613 2003-06-03 Anthony Green <green@redhat.com>
3615 * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
3617 2003-06-03 Roger Sayle <roger@eyesopen.com>
3619 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
3620 New builtins representing ISO C99's cabs, cabsf and cabsl.
3621 * builtins.c (expand_builtin_fabs): New function.
3622 (expand_builtin_cabs): New function.
3623 (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
3624 using expand_builtin_fabs and expand_builtin_cabs respectively.
3626 * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
3628 2003-06-03 Aldy Hernandez <aldyh@redhat.com>
3630 * function.c (assign_parms): Split complex arguments.
3632 * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
3634 * expr.h (SPLIT_COMPLEX_ARGS): Define.
3635 (split_complex_types): Protoize.
3636 (split_complex_values): Protoize.
3638 * calls.c (expand_call): Split complex arguments on architectures
3640 (split_complex_values): New.
3641 (split_complex_types): New.
3643 * config/rs6000/rs6000.c (rs6000_libcall_value): New.
3644 (rs6000_function_value): Handle complex values on AIX.
3645 (rs6000_complex_function_value): New.
3647 * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
3649 * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
3650 (SPLIT_COMPLEX_ARGS): New.
3652 2003-06-03 Jakub Jelinek <jakub@redhat.com>
3654 * configure.in (HAVE_LD_PIE): Check for ld -pie.
3655 * config.in: Rebuilt.
3656 * configure: Rebuilt.
3657 * toplev.c (flag_pie, flag_shlib): New variables.
3658 (f_options): Add -fpie and -fPIE.
3659 (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
3660 Set flag_shlib if flag_pic and not -fpie/-fPIE.
3661 * flags.h (flag_pic, flag_shlib): Add.
3662 * varasm.c (default_binds_local_p): Use flag_shlib instead of
3664 * gcc.c (LINK_PIE_SPEC): Define.
3665 (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
3666 (option_map): Add --pie -> -pie mapping.
3667 * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
3668 and -fPIE the same way as -fPIC.
3669 * config/openbsd.h (ASM_SPEC): Likewise.
3670 * config/frv/frv.h (ASM_SPEC): Likewise.
3671 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
3672 * config/arm/semi.h (ASM_SPEC): Likewise.
3673 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
3674 * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
3675 * config/i386/beos-elf.h (CC1_SPEC): Likewise.
3676 * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
3677 * config/m68k/linux.h (CPP_SPEC): Likewise.
3678 * config/m68k/netbsd.h (ASM_SPEC): Likewise.
3679 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
3680 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
3681 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
3682 * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
3683 * config/pa/pa-linux.h (CPP_SPEC): Likewise.
3684 * config/netbsd-aout.h (ASM_SPEC): Likewise.
3685 * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
3686 * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
3687 * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
3688 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
3689 * config/sparc/sparc.h (ASM_SPEC): Likewise.
3690 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
3691 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
3692 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
3693 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
3694 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
3695 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
3697 * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
3698 * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
3699 * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
3700 * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
3701 * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
3702 * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
3703 * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
3704 * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
3706 2003-06-03 Jakub Jelinek <jakub@redhat.com>
3708 * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
3709 != 0 handling. Pass 0 to store_by_pieces.
3710 (expand_builtin_mempcpy): Add endp argument. Don't call
3711 expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
3712 directly. If ignoring result, only do expand_call.
3713 (expand_builtin_stpcpy): Likewise. Call expand_builtin_mempcpy
3715 (expand_builtin_strncpy, expand_builtin_memset): Adjust
3716 store_by_pices callers.
3717 (expand_builtin): Adjust expand_builtin_memcpy and
3718 expand_builtin_mempcpy callers.
3719 * expr.c (can_move_by_pieces): New function.
3720 (move_by_pieces): Add endp argument, return to resp. memory at end
3721 or one byte earlier depending on endp.
3722 (store_by_pieces): Likewise.
3723 (emit_block_move): Adjust call to move_by_pieces.
3724 (emit_push_insn): Adjust move_by_pieces caller.
3725 * expr.h (can_move_by_pieces): New prototype.
3726 (store_by_pieces): Adjust prototypes.
3727 * rtl.h (move_by_pieces): Adjust prototype.
3728 * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
3731 2003-06-03 Ben Elliston <bje@wasabisystems.com>
3733 * doc/md.texi (Processor pipeline description): Improve wording.
3735 2003-06-03 Neil Booth <neil@daikokuya.co.uk>
3737 * c-opts.c (c_common_handle_option): New, pulled out of
3738 c_common_decode_option. Substitute uses of argv.
3739 (c_common_decode_option): Broken into two.
3741 2003-06-02 Roger Sayle <roger@eyesopen.com>
3742 Zack Weinberg <zack@codesourcery.com>
3744 * emit-rtl.c (gen_complex_constant_part): Remove unnecessary
3745 test of TREE_CONSTANT_POOL_ADDRESS_P.
3747 2003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3749 * mips.c: Don't include output.h twice.
3750 * stormy16.c: Likewise.
3751 * xtensa.c: Likewise.
3752 * output.h: Protect against multiple inclusion.
3754 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
3756 * sh.h (OLD_ARG_MODE): New macro.
3757 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
3758 (FUNCTION_ARG_1): Break out of:
3759 (FUNCTION_ARG). Use OLD_ARG_MODE.
3761 2003-06-02 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3763 * gcc/config.gcc Add support multilib parts for m32rx processor.
3765 2003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3767 * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
3768 (mostlyclean): Delete c-options.c and c-options.h.
3770 2003-06-02 Neil Booth <neil@daikokuya.co.uk>
3772 * c-opts.c (CL_REJECT_NEGATIVE): New.
3773 (c_common_decode_option): Update to use it.
3774 * c.opt: Update documentation; use RejectNegative.
3775 * opts.sh: Handle RejectNegative.
3777 2003-06-01 Zack Weinberg <zack@codesourcery.com>
3779 * ggc-page.c (init_ggc): Give better diagnostics on failure to
3781 * toplev.c (crash_signal): Reset handling for received signal
3784 2003-06-02 Ben Elliston <bje@wasabisystems.com>
3786 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
3787 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
3788 (arm_use_dfa_pipeline_interface): Implement.
3789 * config/arm/arm.md (arm): New automaton.
3790 (write_buf): Remove function units; new cpu unit.
3791 (write_blockage): Remove function units; new cpu unit.
3792 (core): Remove function units; new cpu unit.
3793 (r_mem_f_wbuf): New instruction reservation.
3794 (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
3795 (store1_ldsched, store2, store3, store4): Likewise.
3796 (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
3797 (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
3798 (multi_cycle, single_cycle): Likewise.
3799 * config/arm/fpa.md (armfp): New automaton.
3800 (fpa): Remove function units; new cpu unit.
3801 (fpa_mem): Remove function unit; new cpu unit.
3802 (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
3803 (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
3805 2003-06-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3807 * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
3808 * c-format.c (enum format_type): Add asm_fprintf_format_type.
3809 (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
3810 asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
3811 (format_types_orig): Renamed from format_types. Add new data.
3812 (format_types): Declare as pointer.
3813 (handle_format_attribute): Move later in file so we have all
3814 necessary declarations. Add section to capture HOST_WIDE_INT.
3815 * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
3816 (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
3818 2003-06-01 Andreas Jaeger <aj@suse.de>
3820 * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
3821 ROUND_TYPE_SIZE_UNIT.
3823 * stor-layout.c (finalize_record_size): Remove usages of
3824 ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
3825 (finalize_type_size): Likewise.
3826 (layout_type): Likewise.
3828 * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
3830 * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
3832 * config/d30v/d30v.h: Remove text copied from the manual.
3834 2003-06-01 Roger Sayle <roger@eyesopen.com>
3835 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3836 Geoffrey Keating <geoffk@apple.com>
3838 * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
3839 constants as condition code values.
3841 2003-06-01 DJ Delorie <dj@redhat.com>
3843 * cppmacro.c (warn_of_redefinition): Handle cases where the two
3844 definitions have different numbers of tokens.
3846 2003-06-01 Andreas Jaeger <aj@suse.de>
3848 * gen-protos.c (main): Readd unused attribute for argc.
3850 2003-06-01 Neil Booth <neil@daikokuya.co.uk>
3852 * Makefile.in (c-options.c, c-options.h): Parallel make safe.
3853 * c.opt: End in blank line.
3854 * opts.sh: Take AWK from environment if available; use C locale.
3856 2003-06-01 Andreas Schwab <schwab@suse.de>
3858 * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
3860 2003-06-01 Andreas Jaeger <aj@suse.de>
3862 * gen-protos.c (main): Revert patch to check for argument.
3864 2003-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
3867 * config/i386/i386.md (length attribute): Set length to 4
3868 for instructions of type "fcmp".
3870 2003-06-01 Andreas Jaeger <aj@suse.de>
3872 * toplev.c: Use ISO C90 prototypes.
3874 * toplev.h: Use ISO C90 prototypes.
3876 * genrecog.c: Use ISO C90 prototypes.
3877 (nodes_identical): Correct declaration to match prototype.
3878 (maybe_both_true): Likewise.
3879 (merge_trees): Likewise.
3881 * genpeep.c (gen_peephole): Remove #if 0 code.
3882 Use ISO C90 prototypes.
3884 * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
3885 Remove #if 0'ed function simplify_by_alternatives.
3886 (optimize_attrs): Remove #if 0'ed code.
3888 Use ISO C90 prototypes.
3889 (make_canonical): Remove #if 0'ed code.
3890 (convert_const_symbol_ref): Remove #if 0'ed function.
3892 * gen-protos.c (main): Check for argument.
3894 * rtl.h: Use ISO C90 prototypes for functions from lists.c.
3896 * params.h: Use ISO C90 prototypes.
3897 * params.c: Likewise.
3900 * lists.c: Likewise.
3901 * errors.c: Likewise.
3902 * errors.h: Likewise.
3903 * gencodes.c: Likewise.
3904 * genpreds.c: Likewise.
3905 * genattr.c: Likewise.
3906 * gen-protos.c: Likewise.
3907 * genflags.c: Likewise
3908 * genconditions.c: Likewise.
3909 * genautomata.c: Likewise.
3910 * gencheck.c: Likewise.
3911 * genconfig.c: Likewise.
3912 * genconstants.c: Likewise.
3913 * genemit.c: Likewise.
3914 * genextract.c: Likewise.
3915 * gengenrtl.c: Likewise.
3916 * gengtype.c: Likewise.
3917 * gengtype.h: Likewise.
3918 * genopinit.c: Likewise.
3919 * genoutput.c: Likewise.
3920 * gensupport.c: Likewise.
3921 * gensupport.h: Likewise.
3923 * sdbout.h: Use ISO C90 prototypes.
3925 * sdbout.c (CONTIN): Removed empty macro.
3926 (sdbout_one_type): Remove CONTIN usages.
3928 (tag_of_ru_type): Remove #if 0'ed function.
3929 (sdbout_symbol): Remove #if 0'ed code.
3930 (sdbout_one_type): Remove a #if 1.
3931 (sdbout_one_type): Remove #if 0'ed code.
3932 (sdbout_init): Remove RMS_QUICK_HACK_1 code.
3933 Remove PARAMS, use ISO C90 prototypes for all functions.
3935 2003-06-01 Josef Zlomek <zlomekj@suse.cz>
3937 * rtl.def (CONST_DOUBLE): Update comment.
3939 2003-06-01 Neil Booth <neil@daikokuya.co.uk>
3941 * opts.sh: Remove path from sort.
3943 2003-06-01 Aldy Hernandez <aldyh@redhat.com>
3946 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
3947 TARGET_SPE for SPE_VECTOR_MODE.
3949 2003-05-31 Aldy Hernandez <aldyh@redhat.com>
3951 * toplev.c (botch): Remove.
3953 (set_Wunused): Comment.
3954 (set_Wextra): Comment.
3956 (rest_of_compilation): Factor out common code into functions.
3957 (rest_of_handle_inlining): New.
3958 (rest_of_handle_ssa): New.
3959 (rest_of_handle_cse): New.
3960 (rest_of_handle_gcse): New.
3961 (rest_of_handle_loop_optimize): New.
3962 (rest_of_handle_jump_bypass): New.
3963 (rest_of_handle_sibling_calls): New.
3964 (rest_of_handle_null_pointer): New.
3965 (rest_of_handle_addresof): New.
3966 (rest_of_handle_flow): New.
3967 (rest_of_handle_branch_prob): New.
3968 (rest_of_handle_if_conversion): New.
3969 (rest_of_handle_tracer): New.
3970 (rest_of_handle_loop2): New.
3971 (rest_of_handle_cse2): New.
3972 (rest_of_handle_life): New.
3973 (rest_of_handle_combine): New.
3974 (rest_of_handle_if_after_combine): New.
3975 (rest_of_handle_regmove): New.
3976 (rest_of_handle_sched): New.
3977 (rest_of_handle_old_regalloc): New.
3978 (rest_of_handle_new_regalloc): New.
3979 (rest_of_handle_regrename): New.
3980 (rest_of_handle_reorder_blocks): New.
3981 (rest_of_handle_sched2): New.
3982 (rest_of_handle_new_regalloc): New.
3983 (rest_of_handle_old_regalloc): New.
3984 (rest_of_handle_regrename): New.
3985 (rest_of_handle_reorder_blocks): New.
3986 (rest_of_handle_stack_regs): New.
3987 (rest_of_handle_machine_reorg): New.
3988 (rest_of_handle_delay_slots): New.
3989 (rest_of_handle_final): New.
3991 * toplev.h (botch): Remove prototype.
3994 2003-05-31 Neil Booth <neil@daikokuya.co.uk>
3996 * Makefile.in (c-opts.o, c-options.h): Update dependencies.
3997 * c-opts.c: Include c-options.h and c-options.c.
3998 (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
3999 Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
4000 (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
4001 OPT, opt_comp): Remove.
4002 (missing_arg, c_common_init_options, c_common_decode_option,
4003 write_langs): Update for macro redefinitions and enumeration
4005 * c.opt, opts.sh: New files.
4006 * doc/passes.texi: Update.
4008 2003-05-31 Andreas Jaeger <aj@suse.de>
4010 * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
4013 * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
4015 * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
4017 * system.h: Poison ALLOCATE_TRAMPOLINE.
4019 * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
4020 * system.h: Poison HANDLE_PRAGMA.
4022 2003-05-31 Kazu Hirata <kazu@cs.umass.edu>
4024 * doc/invoke.texi: Update dump file names.
4026 2003-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4028 * c-format.c (format_length_info, format_char_info,
4029 format_flag_spec, format_flag_pair, format_kind_info):
4030 De-const-ify structure members.
4032 2003-05-31 Roger Sayle <roger@eyesopen.com>
4034 * flags.h (flag_wrapv): New flag controlling overflow semantics.
4035 * toplev.c (flag_wrapv): Declare the variable with default false.
4036 (lang_independent_options): New option "-fwrapv" to set the above.
4038 * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
4039 as x, when signed arithmetic overflow wraps around.
4040 (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
4041 * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
4042 overflow when flag_wrapv is true.
4044 * doc/invoke.texi: Document new -fwrapv command line option.
4045 * doc/c-tree.texi: Mention that the overflow semantics of
4046 NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
4047 upon both flag_wrapv and flag_trapv.
4049 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
4051 * doc/install.texi (mips-sgi-irix5): Add missing
4054 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
4056 * doc/md.texi (Machine Constraints): Document
4057 missing SPARC constraints.
4059 2003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
4061 * doc/md.texi (Automaton pipeline description): Use
4062 "type" instead of "cpu" as the attribute in the examples.
4064 2003-05-30 Stan Shebs <shebs@apple.com>
4066 * system.h: Poison OBJC_PROLOGUE.
4068 2003-05-30 Roger Sayle <roger@eyesopen.com>
4070 * emit-rtl.c (gen_complex_constant_part): New function for getting
4071 the constant real or imaginary part of a complex constant.
4072 (gen_realpart): Use it.
4073 (gen_imagpart): Likewise.
4075 2003-05-30 Kazu Hirata <kazu@cs.umass.edu>
4077 * doc/invoke.texi: Fix typos.
4078 * doc/rtl.texi: Likewise.
4080 2003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
4082 * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
4084 * config/h8300/crtn.asm: Likewise.
4085 * config/h8300/lib1funcs.asm: Likewise.
4086 * config/h8300/h8300.c (asm_file_start): Likewise.
4087 * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
4088 h8300snelf emulations for normal mode.
4089 * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
4090 emulations for normal mode.
4092 2003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
4094 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
4095 true if TARGET_NORMAL_MODE.
4097 2003-05-30 Roger Sayle <roger@eyesopen.com>
4099 * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
4100 making a substitution.
4101 (dead_libcall_p): If directly replacing a libcall with a
4102 constant value produces an invalid instruction, also try forcing
4103 the constant into the constant pool.
4104 * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
4105 obvious that the source is a constant.
4106 (compress_float_constant): Use set_unique_reg_note to place
4107 REG_EQUAL notes on instructions.
4109 2003-05-30 Eric Christopher <echristo@redhat.com>
4111 * config/mips/mips.c (extern_list): Add GTY marker.
4112 (extern_head): Separate out definition. Add marker.
4113 (mips_output_external): Use ggc_alloc for extern_list
4115 (mips_output_external_libcall): Ditto.
4117 2003-05-30 Florian Weimer <fw@deneb.enyo.de>
4119 * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
4122 2003-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4124 * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
4126 (PRINT_OPERAND): Likewise.
4128 2003-05-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4130 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
4131 -mdebug/-no-mdebug switches ...
4132 (MDEBUG_ASM_SPEC): ... here.
4134 (EXTRA_SPECS): Initialize mdebug_asm_spec.
4136 2003-05-29 Matt Kraai <kraai@alumni.cmu.edu>
4138 * gthr-gnat.c: Remove #undef UNUSED.
4139 (__gnat_default_lock, __gnat_default_unlock): Prototype.
4140 (__gnat_task_lock, __gnat_task_unlock): Make declarations
4142 (__gnat_install_locks): Convert declaration to ISO C90, make
4143 parameter declarations prototypes, and remove blank line.
4144 * gthr-gnat.h (__gnat_install_locks): Make parameter
4145 declarations prototypes.
4147 2003-05-29 Jason Merrill <jason@redhat.com>
4149 * Makefile.in (unstrap): Remove stage_last after make unstage1.
4151 2003-05-29 Roger Sayle <roger@eyesopen.com>
4153 * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
4155 2003-05-29 Roger Sayle <roger@eyesopen.com>
4156 Kaveh Ghazi <ghazi@caip.rutgers.edu>
4159 * mips-tfile.c (main): Use getopt_long instead of getopt.
4160 Add new command line option --version to display version.
4161 Treat --verbose like -v to report a single line version.
4162 (options): New global variable for getopt_long.
4163 * mips-tdump.c (main): Use getopt_long instead of getopt.
4164 New command line options -v, --version and -verbose to display
4165 the program version number (to match mips-tfile's behavior).
4166 (options): New global variable for getopt_long.
4168 * gcov.c (options): Zero-terminate getopt_long array.
4169 * gcov-dump.c (options): Likewise.
4171 * Makefile.in (mips-tdump.o): Add dependency on version.h.
4173 2003-05-29 Stan Shebs <shebs@apple.com>
4175 Remove OBJC_PROLOGUE everywhere.
4176 * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
4177 * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
4178 * config/d30v/d30v.h: Similarly.
4179 * config/ip2k/ip2k.h: Similarly.
4180 * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
4182 2003-05-29 Roger Sayle <roger@eyesopen.com>
4184 * c-semantics.c (genrtl_do_stmt_1): New function split out from...
4185 (gen_rtl_do_stmt): ... here. Call genrtl_do_stmt_1.
4186 (expand_unreachable_stmt): Expand unreachable while statements
4187 using genrtl_do_stmt_1.
4189 2003-05-29 Richard Sandiford <rsandifo@redhat.com>
4191 * config/mips/mips-protos.h (mips_output_load_label): Declare.
4192 * config/mips/mips.c (mips_output_load_label): New function.
4193 (mips_output_conditional_branch): Use it.
4194 * config/mips/mips.md (jump): And here.
4196 2003-05-28 Bob Wilson <bob.wilson@acm.org>
4198 * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
4199 (xtensa_split_operand_pair): New proto.
4200 * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
4201 (smalloffset_double_mem_p): Delete.
4202 (gen_float_relational, printx, print_operand, xtensa_va_arg):
4204 (xtensa_split_operand_pair): New.
4205 (xtensa_dbx_register_number): Fix formatting.
4206 * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
4207 * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
4208 instead of splitting them into single-word moves. Remove unnecessary
4209 checks for reload_in_progress and reload_completed.
4210 (movdi_internal, movdf_internal): Change to post-reload split patterns.
4211 Add constraints to allow constant operands.
4212 (movsf_internal): Allow CONST_INT operands.
4214 2003-05-27 Danny Smith <dannysmith@users.sourceforge.net>
4216 * config.gcc (i[34567]86-*-mingw32*): Add host makefile
4217 fragment i386/x-mingw32.
4218 * config/i386/x-mingw32: New file. Make local_includedir
4219 relative to EXEC_PREFIX.
4221 2003-05-27 Aaron W. LaFramboise <awlaframboise@aol.com>
4223 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
4224 (MD_STARTFILE_PREFIX): Define.
4226 2003-05-27 Denis Chertykov <denisc@overta.ru>
4228 * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
4230 * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
4231 call of cselib_invalidate_regno.
4233 2003-05-28 Daniel Jacobowitz <drow@mvista.com>
4235 * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
4236 -lthread to -lpthread.
4238 2003-05-28 Eric Botcazou <ebotcazou@libertysurf.fr>
4239 Bruce Korb <bkorb@gnu.org>
4240 Arno Klaassen <arno@heho.snv.jussieu.fr>
4242 * fixinc/inclhack.def: Add missing declaration of getpagesize()
4243 to unistd.h on Solaris 2.5.1.
4244 Fix prototype of recv() and send() in sys/socket.h on
4245 Solaris 2.5.1 and 2.6.
4246 * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
4247 * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
4248 * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
4249 * fixinc/fixincl.x: Regenerate.
4251 2003-05-27 Jason Merrill <jason@redhat.com>
4253 * tree.c (expr_first, expr_length): New fns.
4254 * tree.h: Declare them.
4256 * tree.c (iterative_hash_expr): Hash commutative expressions
4259 2003-05-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4261 * tree.h (contains_placeholder_p): Now returns bool.
4262 (CONTAINS_PLACEHOLDER_P): New macro.
4263 (type_contains_placeholder_p): New function.
4264 * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
4265 (contains_placeholder_p): Now returns bool.
4266 Rework to use CONTAINS_PLACEHOLDER_P macro.
4267 (type_contains_placeholder_p): New function.
4268 * fold-const.c (fold, case COMPONENT_REF): Don't fold if
4269 type_contains_placeholder_p.
4270 (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
4271 Use CONTAINS_PLACEHOLDER_P macro.
4272 * builtins.c (fold_builtin): Likewise.
4273 * calls.c (initialize_argument_information): Likewise.
4274 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4275 * explow.c (expr_size): Likewise.
4276 * expr.c (store_constructor, get_inner_reference): Likewise.
4277 * function.c (assign_parms): Likewise.
4278 * stor-layout.c (variable_size): Likewise.
4280 2003-05-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4282 * diagnostic.h (output_verbatim, verbatim): Remove printf
4285 2003-05-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4287 * doc/contrib.texi (Contributors): Update Kean Johnston.
4289 2003-05-24 David Edelsohn <edelsohn@gnu.org>
4291 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
4293 2003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
4295 * config/rs6000/440.md, config/stormy16/stormy16protos.h,
4296 config/stormy16/stormy16.c, config/stormy16/stormy16.md:
4297 Replace "GNU CC" with "GCC".
4299 2003-05-24 Matt Kraai <kraai@alumni.cmu.edu>
4301 * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
4302 intermediate computation.
4304 2003-05-23 Eric Christopher <echristo@redhat.com>
4306 * config/mips/mips.md (clzsi, clzdi): New patterns.
4308 2003-05-23 Geoffrey Keating <geoffk@apple.com>
4310 * gcc.c (default_compilers): Use -o to specify preprocessor's output
4311 file. Make -no-integrated-cpp work when building PCH files.
4312 * objc/lang-specs.h: Likewise.
4314 2003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
4316 * fixinc/Makefile.in: Correct description.
4317 * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
4318 fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
4319 fixinc/genfixes: Replace "GNU CC" with "GCC".
4321 2003-05-23 Roger Sayle <roger@eyesopen.com>
4323 * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
4324 builtin functions (and their __builtin_* variants).
4325 * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
4326 (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
4329 * doc/extend.texi: Document new tan and atan builtins, and
4330 their float and long double variants.
4332 2003-05-23 Jason Thorpe <thorpej@wasabisystems.com>
4334 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
4335 __sparcv9 in the TARGET_ARCH64 case.
4337 Fri May 23 22:17:32 CEST 2003 Jan Hubicka <jh@suse.cz>
4339 * i386.c (ix86_reorg): Calls are also jumps.
4341 2003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
4343 * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
4344 note containing an EXPR_LIST, process all the arguments.
4346 Fri May 23 21:19:31 CEST 2003 Jan Hubicka <jh@suse.cz>
4347 Andreas Jaeger <aj@suse.de>
4349 * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
4350 do not use assertion.
4352 2003-05-23 Mike Stump <mrs@apple.com>
4354 * tlink.c (scan_linker_output): Add support for darwin linker, as it
4355 emits unresolved symbols one per line, consuming the entire line.
4357 2003-05-23 Larin Hennessy <larin@science.oregonstate.edu>
4358 Zack Weinberg <zack@codesourcery.com>
4360 * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
4361 * config/m68k/m68k.c (m68k_output_function_prologue):
4362 Remove code under #if NEED_PROBE.
4363 * config/m68k/m68k.h: Don't define NEED_PROBE.
4364 * config/m68k/m68k.md: Remove "probe" insn.
4365 * doc/md.texi: Remove documentation of "probe" pattern.
4367 2003-05-23 Dorit Naishlos <gcchaifa@il.ibm.com>
4369 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
4371 2003-05-23 Eric Botcazou <ebotcazou@libertysurf.fr>
4373 * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
4374 Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
4376 2003-05-22 Roger Sayle <roger@eyesopen.com>
4378 * real.c (real_maxval): New function to return the largest finite
4379 value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
4380 * real.h (real_maxval): Prototype here.
4381 * fold-const.c (fold_inf_compare): Transform comparisons against
4382 +-Infinity into comparisons against DBL_MAX (or equivalent).
4384 2003-05-22 Mike Stump <mrs@apple.com>
4386 * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
4389 2003-05-22 DJ Delorie <dj@redhat.com>
4391 * calls.c (expand_call): If the arg block is going to grow
4392 downward, we need argblock to point to the top of the block,
4395 2003-05-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4397 * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
4399 * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
4400 constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
4402 2003-05-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4404 * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
4408 2003-05-22 Zack Weinberg <zack@codesourcery.com>
4411 * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
4412 expressions to prevent triggering on recent curses.h,
4413 linux/nls.h, or X11/Xlib.h.
4414 (stdio_va_list): Add _G_va_list to bypass pattern.
4415 (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
4416 * fixinc/fixincl.x: Regenerate.
4418 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
4420 * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
4421 switches when --target-help option is specified.
4423 2003-05-22 Eric Botcazou <ebotcazou@libertysurf.fr>
4426 * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
4427 failure with Sun assembler 5.0 Alpha 03/27/98.
4429 2003-05-21 Loren James Rittle <ljrittle@acm.org>
4431 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
4432 to match system compiler convention.
4434 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4436 * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
4437 value, not just if defined.
4438 Update copyright year.
4440 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4443 * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
4444 directories from LIB_SPEC to LINK_SPEC. Emit warning if `-p' or `-pg'
4445 option is used without `-static'.
4446 * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
4447 * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
4449 2003-05-21 Bob Wilson <bob.wilson@acm.org>
4451 * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
4452 TARGET_SERIALIZE_VOLATILE): Delete.
4453 (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
4454 (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
4455 (TARGET_SWITCHES): Remove "-mserialize-volatile" and
4456 "-mno-serialize-volatile".
4457 * config/xtensa/xtensa.c (print_operand): Remove checks of
4458 TARGET_SERIALIZE_VOLATILE.
4459 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
4460 * doc/invoke.texi (Option Summary, Xtensa Options): Remove
4461 "-mserialize-volatile" and "-mno-serialize-volatile" options.
4463 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
4465 * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
4466 (nested_function): Likewise.
4467 (notype_nested_function): Likewise.
4469 2003-05-21 Nick Clifton <nickc@redhat.com>
4471 * config/stormy16/stormy-abi: Update overflow type for
4472 R_XSTORMY16_16 reloc.
4474 2003-05-21 Nathan Sidwell <nathan@codesourcery.com>
4476 * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
4477 * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
4478 (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
4479 * print-tree.c (print_node): Remove ambient-boundedness.
4480 * tree.h (tree_common): Remove bounded_flag.
4481 (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
4482 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
4483 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
4484 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
4485 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
4487 (TYPE_QUALS): Remove BOUNDED.
4488 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
4489 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
4490 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
4491 TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
4492 VA_LIST_POINTER_DEPTH): Remove.
4493 (struct tree_type): Remove pointer_depth.
4495 2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4497 * c-pretty-print.c (pp_c_integer_literal): Use
4498 HOST_WIDE_INT_PRINT_DOUBLE_HEX.
4500 2003-05-20 Roger Sayle <roger@eyesopen.com>
4501 Kazu Hirata <kazu@cs.umass.edu>
4502 Joern Rennecke <joern.rennecke@superh.com>
4504 * gcse.c (cprop_jump): Make use of REG_EQUAL notes on both
4505 setcc and jump, if they exist. If substituted instruction
4506 fails to validate, store current effort in a REG_EQUAL note.
4507 (cprop_insn): Don't attempt further substitutions if the
4508 current instruction has been deleted.
4509 (local_cprop_pass): Likewise.
4511 * jump.c (redirect_jump): Also update REG_EQUAL note, if
4512 one is attached to the jump instruction.
4513 (invert_jump): Delete REG_EQUAL note on jump, if one exists.
4515 2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
4518 * config/i386/winnt.c (i386_pe_encode_section_info): Enable
4521 2003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4523 * genautomata.c (output_description, output_automaton_units,
4524 output_state_arcs): Add missing specifiers.
4526 2003-05-20 Bob Wilson <bob.wilson@acm.org>
4528 * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
4529 (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
4530 (__mulsi3): Use do_addx* instead of ADDX* instructions. Formatting.
4531 (nsau): Rename to do_nsau. Provide alternate version for use when
4532 the NSAU instruction is available.
4533 (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
4534 (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
4535 * config/xtensa/xtensa-config.h: Update comments to match binutils.
4536 (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
4537 * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
4538 (TARGET_ABS, TARGET_ADDX): Define.
4539 (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
4540 (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
4541 * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
4542 *subx8): Set predicate condition to TARGET_ADDX.
4543 (abssi2): Set predicate condition to TARGET_ABS.
4544 * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
4545 "-maddx", and "-mno-addx" options.
4546 (Xtensa Options): Likewise. Also tag some opcode names with @code.
4548 2003-05-20 Kevin Ryde <user42@zip.com.au>
4549 Wolfgang Bangerth <bangerth@dealii.org>
4552 * doc/extend.texi: Put a warning into the documentation
4553 of attribute regparm.
4555 2003-05-20 Jason Merrill <jason@redhat.com>
4557 * tree.c (expr_last): New fn.
4558 * tree.h: Declare it.
4559 * objc/objc-act (expr_last): Rename to objc_expr_last.
4561 2003-05-20 J"orn Rennecke <joern.rennecke@superh.com>
4563 * sh.c (sh_register_move_cost): Add clase for moving between
4564 FP registers and MAC registers.
4566 2003-05-19 John David Anglin <dave.anglin@nrc-gnrc.gc.ca>
4568 * pa/milli64.S ($$mulI): Fix typo.
4570 2003-05-19 Matt Kraai <kraai@alumni.cmu.edu>
4572 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
4573 (nonlocal_set_p): Remove initial blank line.
4574 * dwarf2out.c (simple_type_size_in_bits): Likewise.
4575 * et-forest.c (et_forest_create): Likewise.
4576 * explow.c (stabilize): Likewise.
4577 * fix-header.c (write_lbrac): Likewise.
4578 * graph.c (start_fct, node_data): Likewise.
4579 * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
4580 * rtlanal.c (global_reg_mentioned_p): Likewise.
4581 * tree.c (bit_position): Likewise.
4583 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
4585 * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
4586 -lthread to -lpthread.
4588 2003-05-19 Neil Booth <neil@daikokuya.co.uk>
4590 * c-opts.c (c_common_decode_option): Don't accept dollars
4591 as identifier characters in assembly.
4592 * doc/cpp.texi: Document this.
4594 2003-05-19 Seth Arnold <sarnold@wirex.com>
4595 Aldy Hernandez <aldyh@redhat.com>
4597 * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
4600 2003-05-19 Aldy Hernandez <aldyh@redhat.com>
4602 * doc/tm.texi (function_arg): Fix typo.
4604 2003-05-19 Matt Austern <austern@apple.com>
4606 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
4607 * c-common.h (warn_invalid_offsetof): Declare.
4608 * c-common.c (warn_invalid_offsetof): Define.
4609 * doc/invoke.texi: Document -Winvalid-offsetof.
4610 * testsuite/g++.dg/other/offsetof3.C: New.
4611 * testsuite/g++.dg/other/offsetof4.C: New.
4613 2003-05-19 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
4614 David Edelsohn <edelsohn@gnu.org>
4616 * config/rs6000/rs6000.c (rs6000_alignment_string,
4617 rs6000_alignment_flags): New variables.
4618 (rs6000_parse_alignment_option): New function.
4619 (rs6000_override_options): Call it.
4620 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
4621 (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
4623 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
4624 natural alignment if TARGET_NATURAL_ALIGNMENT
4625 (ROUND_TYPE_ALIGN): Always use default record alignment if
4626 TAGET_NATURAL_ALIGNMENT.
4627 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
4628 (ROUND_TYPE_ALIGN): Same.
4629 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
4630 (ROUND_TYPE_ALIGN): Same.
4631 * doc/invoke.texi (Option Summary, PowerPC Options): Document
4634 2003-05-19 J"orn Rennecke <joern.rennecke@superh.com>
4636 * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
4637 of a function using ASMSPEC, prepend a star.
4639 2003-05-19 Jason Merrill <jason@redhat.com>
4641 * tree-inline.c (copy_body_r): Avoid generating &* during inline
4644 2003-05-19 Andrew Macleod <amacleod@redhat.com>
4646 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
4647 not mark assignments to the hard frame pointer as being stack
4649 (xstormy16_expand_epilogue): Mark adjustments to the stack
4650 pointer as being stack frame related.
4652 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
4654 * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
4655 ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
4656 (PREDICATE_CODES): Add hilo_operand.
4657 * config/mips/mips.c (hilo_operand): New predicate.
4658 (mips_adjust_insn_length): Account for the number nops that might
4659 be needed to avoid hardware hazards.
4660 * config/mips/mips.md (dslot): Remove attribute.
4661 (hazard): New attribute.
4662 (can_delay): Use it. Check for calls, branches & jumps.
4663 (muldi3): Use the standard dmult pattern for mips16 code.
4664 (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
4666 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
4668 * config/mips/mips-protos.h (final_prescan_insn,
4669 mips_count_memory_refs, mips_fill_delay_slot): Remove.
4670 * config/mips/mips.h (delay_type, dslots_load_total,
4671 dslots_load_filled, dslots_jump_total, dslots_jump_filled,
4672 dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
4673 mips_load_reg3, mips_load_reg4): Remove.
4674 (MASK_STATS): Remove.
4675 (MASK_EXPLICIT_RELOCS): Reuse its value.
4676 (TARGET_STATS): Remove.
4677 (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
4678 Warn that -mstats is now ignored.
4679 (FINAL_PRESCAN_INSN): Undefine.
4680 (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
4681 (ASM_OUTPUT_REG_POP): Likewise.
4682 * config/mips/mips.c (dslots_load_total, dslots_load_filled,
4683 dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
4684 mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
4685 mips_fill_delay_slot, mips_count_memory_refs,
4686 final_prescan_insn): Remove.
4687 (output_block_move): Remove calls to mips_count_memory_refs.
4688 (print_operand): Remove printing of #nop for TARGET_STATS.
4689 (mips_output_function_epilogue): Remove TARGET_STATS code.
4690 Reorganize setting of fnnmae.
4691 * config/mips/mips.md: Remove handling of dslot statistics
4692 throughout file. Change all fcmp patterns into normal asm
4693 templates, removing calls to mips_fill_delay_slot.
4694 * doc/invoke.texi: Remove documentation of -mstats.
4696 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
4698 * config/mips/mips.c (mips_class_max_nregs): Return the number of
4701 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
4703 * config/mips/mips.c (override_options): Disable explicit
4704 relocs for old ABIs unless using gas.
4706 2003-05-18 Eric Christopher <echristo@redhat.com>
4708 * config/mips/mips.h: Remove definition of g_switch_value.
4710 2003-05-18 Matt Kraai <kraai@alumni.cmu.edu>
4712 * flags.h (g_switch_value): Change to an unsigned
4714 * toplev.c (g_switch_value): Likewise.
4716 * config/alpha/alpha.c (small_symbolic_operand): Remove
4717 g_switch_value cast.
4718 (alpha_in_small_data_p): Cast size to an unsigned
4721 * config/frv/frv.c (frv_in_small_data_p): Cast size to an
4722 unsigned HOST_WIDE_INT.
4723 * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
4724 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
4726 * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
4727 unsigned HOST_WIDE_INT.
4728 (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
4729 * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
4730 (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
4732 * config/rs6000/rs6000.c (rs6000_file_start): Use
4733 HOST_WIDE_INT_PRINT_UNSIGNED.
4734 (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
4735 (rs6000_elf_in_small_data_p): Cast size to unsigned
4737 * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
4739 (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
4741 (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
4742 g_switch_value cast.
4744 2003-05-18 Roger Sayle <roger@eyesopen.com>
4745 Zack Weinberg <zack@codesourcery.com>
4748 * builtins.c (expand_builtin_memcpy): Call force_operand on
4749 expressions and use simplify_gen_binary to create the addition.
4751 2003-05-18 Andreas Schwab <schwab@suse.de>
4753 * config/m68k/m68k.md: Use define_constants for unspec numbers.
4755 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
4757 * config/sparc/sparc.h: Define sparc for now.
4758 2003-05-18 Nathanael Nerode <neroden@gcc.gnu.org>
4760 * config.gcc: Clear xm_file, md_file at the beginning of each pass.
4762 * config/stormy16/stormy16.h: Remove about 3000 lines of
4763 target-independent comments. Update copyright notice.
4765 * doc/collect2.texi: GNU CC -> GCC.
4766 * doc/headerdirs.texi: GNU CC -> GCC.
4768 2003-05-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
4770 * hashtable.h (struct ht_identifier): Add data member "hash_value".
4771 * hashtable.c (ht_lookup): Use it when searching, remember.
4772 (ht_expand): Do not recompute.
4773 * tree.h (IDENTIFIER_HASH_VALUE): New macro.
4775 2003-05-18 Nathan Sidwell <nathan@codesourcery.com>
4777 * gcov-io.c (gcov_read_bytes): Fix fread thinko.
4779 2003-05-18 Neil Booth <neil@daikokuya.co.uk>
4781 * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
4783 (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
4784 * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
4785 * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
4786 * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
4787 config/arm/linux-elf.h, config/arm/rtems-elf.h,
4788 config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
4789 config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
4790 config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
4791 config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
4792 config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
4793 config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
4794 config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
4795 config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
4796 config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
4797 config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
4798 config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
4799 Don't define __ELF__.
4800 * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
4802 * doc/cpp.texi: Document __ELF__.
4803 * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS. *
4805 2003-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4807 * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
4809 * c-errors.c (pedwarn_c99): Likewise.
4810 * c-format.c (status_warning): Likewise.
4811 * c-semantics.c (build_stmt): Likewise.
4812 * calls.c (emit_library_call, emit_library_call_value): Likewise.
4813 * collect2.c (notice, fatal_perror, fatal, error): Likewise.
4814 * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
4815 * diagnostic.c (build_message_string, output_printf,
4816 output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
4817 fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
4818 error_with_decl, fnotice): Likewise.
4819 * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
4820 dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
4821 dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
4822 dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
4823 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
4824 dw2_asm_output_encoded_addr_rtx): Likewise.
4825 * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
4826 * errors.c (warning, error, fatal, internal_error): Likewise.
4827 * final.c (output_operand_lossage, asm_fprintf): Likewise.
4828 * fix-header.c (fatal): Likewise.
4829 * gcc.c (fatal, error, notice): Likewise.
4830 * gcov.c (fnotice): Likewise.
4831 * genattrtab.c (attr_rtx, attr_printf): Likewise.
4832 * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
4833 * gensupport.c (message_with_line): Likewise.
4834 * mips-tfile.c (fatal, error): Likewise.
4835 * protoize.c (notice): Likewise.
4836 * ra-debug.c (ra_debug_msg): Likewise.
4837 * read-rtl.c (fatal_with_file_and_line): Likewise.
4838 * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
4839 * tree.c (build, build_nt, build_function_type_list): Likewise.
4841 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
4843 * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
4844 * gcc.c (cpp_predefines): Remove.
4845 (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
4846 (static_specs): Remove predefines.
4847 * system.h: Poison CPP_PREDEFINES.
4848 * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
4849 config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
4851 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
4853 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
4854 config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
4855 config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
4856 use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
4858 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
4861 * c-common.c, c-common.h (dollars_in_ident): Remove.
4862 * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
4863 (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
4864 * cpphash.h (warned_dollar): Rename warn_dollars.
4865 * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
4866 Permit dollars regardless of -std=.
4867 (post_options): Set warn_dollars.
4868 * cpplex.c (forms_identifier_p): Use warn_dollars.
4869 * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
4870 Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
4871 * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
4872 Update documentation.
4874 2003-05-17 Andreas Schwab <schwab@suse.de>
4876 * config/m68k/m68k.c (m68k_output_function_prologue): Use
4877 HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
4878 formatting a HOST_WIDE_INT.
4879 (m68k_output_function_epilogue): Likewise.
4881 2003-05-17 Zack Weinberg <zack@codesourcery.com>
4883 * doc/install.texi: Remove information about desupported targets.
4885 2003-05-17 Andreas Schwab <schwab@suse.de>
4887 * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
4888 * config/m68k/linux.h: Likewise.
4889 * config/m68k/m68k-none.h: Likewise.
4890 * config/m68k/netbsd-elf.h: Likewise.
4891 * config/m68k/sgs.h: Likewise.
4892 * config/m68k/m68k.h: Likewise.
4893 * config/m68k/m68k.md: Likewise.
4894 * config/m68k/m68k.c: Likewise.
4895 * doc/md.texi (Machine Constraints): Remove Sun FPA specific
4897 * doc/invoke.texi (Option Summary): Remove -mfpa.
4898 (M680x0 Options): Likewise.
4900 2003-05-17 David Edelsohn <edelsohn@gnu.org>
4902 * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
4904 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
4906 * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
4907 * config/sparc/liteelf.h, config/sparc/openbsd64.h,
4908 config/sparc/rtemself.h, config/sparc/sol2-64.h,
4909 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
4910 Update for use of TARGET_SUB_OS_CPP_BUILTINS.
4912 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
4914 * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
4915 TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
4917 2003-05-17 Neil Booth <neil@daikokuya.co.uk>
4919 * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
4920 * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
4921 sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
4922 sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
4923 sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
4924 sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
4926 * sparc/sysv4-only.h: New.
4928 2003-05-17 Alan Modra <amodra@bigpond.net.au>
4930 * function.c (assign_parms): Check for zero size args.
4932 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4934 * cfgloopanal.c (test_for_iteration): Use string concatentation on
4935 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
4936 function calls into one.
4937 * dbxout.c (dbxout_symbol): Likewise.
4938 * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
4939 * dwarf2asm.c (dw2_asm_output_data_uleb128,
4940 dw2_asm_output_data_sleb128): Likewise.
4941 * genrecog.c (debug_decision_2): Likewise.
4942 * loop.c (emit_prefetch_instructions): Likewise.
4943 * print-rtl.c (print_rtx): Likewise.
4944 * print-tree.c (print_node_brief, print_node): Likewise.
4945 * ra-debug.c (dump_igraph, dump_graph_cost,
4946 dump_static_insn_cost): Likewise.
4947 * ra-rewrite.c (dump_cost): Likewise.
4948 * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
4949 * sreal.c (dump_sreal): Likewise.
4950 * unroll.c (unroll_loop, precondition_loop_p): Likewise.
4951 * varasm.c (assemble_vtable_entry): Likewise.
4953 * avr.c (avr_output_function_prologue,
4954 avr_output_function_epilogue, print_operand): Fix format specifier
4956 (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
4957 * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
4959 2003-05-16 Geoffrey Keating <geoffk@apple.com>
4961 * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
4962 and ! TARGET_STRING cases.
4964 * doc/cppopts.texi (-undef): Fix texinfo warning.
4966 * doc/cppopts.texi (-H): Document that -H works for PCH files too.
4967 * cppfiles.c (validate_pch): When -H is used, print some information
4968 about PCH files found.
4970 2003-05-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4972 * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
4973 * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
4974 * config/mips/t-sr71k: Likewise.
4976 2003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4978 * arc.c (arc_output_function_prologue,
4979 arc_output_function_epilogue): Fix format specifier warnings.
4980 * arc.h (LARGE_INT): Fix signed/unsigned warnings.
4982 * v850.c (print_operand): Fix format specifier warnings.
4984 * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
4987 * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
4988 format specifier warnings.
4990 * ip2k.c (function_prologue, function_epilogue, print_operand):
4991 Fix format specifier warnings.
4992 * ip2k.md: Likewise.
4994 * i960.c (i960_output_function_prologue, i960_print_operand,
4995 i960_print_operand_addr): Fix format specifier warnings.
4997 * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
4998 (i370_output_function_prologue): Fix format specifier warnings.
4999 * i370.h (PRINT_OPERAND): Likewise.
5001 * fr30.c (fr30_print_operand): Fix format specifier warnings.
5003 * dsp16xx.c (print_operand_address): Fix format specifier warning.
5004 * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
5006 * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
5009 * alpha.c (print_operand_address, alpha_start_function,
5010 unicosmk_output_ssib): Use string concatentation on
5011 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
5012 function calls into one.
5013 * arm.c (arm_print_operand): Likewise.
5014 * cris.c (cris_asm_output_mi_thunk): Likewise.
5015 * frv.c (frv_asm_output_mi_thunk): Likewise.
5016 * ia64.c (ia64_print_operand, process_set): Likewise.
5017 * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
5019 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
5020 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
5021 * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
5022 * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
5023 * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
5024 * s390.c (s390_assemble_integer): Likewise.
5025 * sparc.c (sparc_flat_function_prologue,
5026 sparc_flat_function_epilogue): Likewise.
5027 * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
5028 * vax.c (vax_output_mi_thunk): Likewise.
5030 * frv.c (frv_print_operand_memory_reference): Fix format specifier
5032 (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
5034 * m68k.c (m68k_output_function_epilogue): Fix format specifier
5037 * stormy16-protos.h (xs_hi_general_operand,
5038 xs_hi_nonmemory_operand): Prototype.
5039 * stormy16.c (xstormy16_output_shift): Fix format specifier
5042 * cris.c: Fix format specifier warnings.
5044 2003-05-16 Nick Clifton <nickc@redhat.com>
5046 * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
5048 2003-05-16 Wolfgang Bangerth <bangerth@dealii.org>
5050 * doc/bugreport.texi: Remove most of the of the preface of the
5053 2003-05-16 Jakub Jelinek <jakub@redhat.com>
5055 * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
5058 2003-05-15 Roger Sayle <roger@eyesopen.com>
5060 * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
5062 2003-05-15 Eric Christopher <echristo@redhat.com>
5064 * cfgcleanup.c (merge_blocks): Fix return value.
5066 2003-05-15 Eric Christopher <echristo@redhat.com>
5068 * combine.c (expand_compound_operation): Make sure
5069 that zero_extend operation is profitable.
5071 2003-05-15 Richard Henderson <rth@redhat.com>
5073 * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
5074 code protected by USE_GNULIBC_1.
5076 2003-05-15 Zack Weinberg <zack@codesourcery.com>
5078 * config.gcc: Purge all targets obsoleted in GCC 3.3. Also
5079 remove hppa*-*-mpeix* which could not be built, and prune
5080 files from tmake_file= or tm_file= lists that don't exist.
5082 * config/alpha/alpha-interix.h, config/alpha/alpha32.h
5083 * config/alpha/t-interix, config/arm/conix-elf.h
5084 * config/arm/t-arm-aout, config/arm/t-strongarm-coff
5085 * config/arm/unknown-elf-oabi.h, config/i386/win32.h
5086 * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
5087 * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
5088 * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
5089 * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
5090 * config/m68k/m68k-psos.h, config/m68k/mot3300.h
5091 * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
5092 * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
5093 * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
5094 * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
5095 * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
5096 * config/m68k/tower-as.h, config/m68k/tower.h
5097 * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
5098 * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
5099 * config/m88k/m88k-protos.h, config/m88k/m88k.c
5100 * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
5101 * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
5102 * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
5103 * config/mips/rtems64.h, config/mips/sni-gas.h
5104 * config/mips/sni-svr4.h, config/mips/t-ecoff
5105 * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
5106 * config/mn10200/mn10200.c, config/mn10200/mn10200.h
5107 * config/mn10200/mn10200.md, config/mn10200/t-mn10200
5108 * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
5109 * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
5110 * config/romp/romp-protos.h, config/romp/romp.c
5111 * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
5112 * config/rs6000/aix3newas.h, config/rs6000/mach.h
5113 * config/sparc/bsd.h, config/sparc/hal.h
5114 * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
5115 * config/sparc/lynx.h, config/sparc/netbsd.h
5116 * config/sparc/sp86x-aout.h, config/sparc/splet.h
5117 * config/sparc/sun4gas.h, config/sparc/sun4o3.h
5118 * config/sparc/sunos4.h, config/sparc/t-chorus-elf
5119 * config/sparc/t-halos, config/sparc/t-sparcbare
5120 * config/sparc/t-splet, config/sparc/t-sunos41
5121 * config/v850/rtems.h: Delete file.
5123 2003-05-15 Aldy Hernandez <aldyh@redhat.com>
5125 * config/rs6000/rs6000-protos.h (function_value): Protoize.
5127 * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
5129 * config/rs6000/rs6000.c (rs6000_function_value): New.
5131 2003-05-15 Philip Blundell <philb@gnu.org>
5133 * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
5135 (arm_tune_xscale): New variable.
5136 (arm_override_options): Set it.
5137 (arm_adjust_cost): Use it in place of arm_arch_xscale.
5138 (arm_gen_load_multiple): Likewise.
5139 (arm_gen_store_multiple): Likewise.
5140 * config/arm/arm.md (is_xscale): Likewise.
5141 * config/arm/arm.h (arm_tune_xscale): Declare.
5143 2003-05-15 Philip Blundell <philb@gnu.org>
5146 * config/arm/arm.c (adjacent_mem_locations): Reject offsets
5147 involving invalid constants.
5149 2003-05-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5151 * pa.c (hppa_expand_prologue): Remove blockage.
5153 2003-05-15 Wolfgang Bangerth <bangerth@dealii.org>
5155 * doc/bugreport.texi: Remove most of the bug reporting
5156 instructions and merge them into bugs.html.
5158 2003-05-14 Matt Kraai <kraai@alumni.cmu.edu>
5160 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
5161 g_switch_value to unsigned HOST_WIDE_INT.
5163 2003-05-14 Eric Christopher <echristo@redhat.com>
5165 * combine.c: Fix header comments.
5166 (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
5167 to all calls and prototype.
5169 2003-05-14 Roger Sayle <roger@eyesopen.com>
5171 PR optimization/10764
5172 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
5173 Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
5174 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): Likewise,
5175 add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
5176 (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
5177 the corresponding *fyl2x_?fxf3 instructions.
5179 2003-05-14 Bob Wilson <bob.wilson@acm.org>
5181 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
5182 * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
5183 XCHAL_HAVE_L32R): New.
5184 * config/xtensa/xtensa-protos.h (non_const_move_operand,
5185 xtensa_load_constant, xtensa_function_prologue,
5186 xtensa_function_epilogue): Delete prototypes.
5187 (xtensa_expand_prologue): New.
5188 * config/xtensa/xtensa.c (frame_size_const,
5189 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
5190 non_const_move_operand, xtensa_load_constant, xtensa_reorg,
5191 xtensa_function_prologue): Delete.
5192 (add_operand, xtensa_mem_offset): Formatting.
5193 (move_operand): If the const16 option is available, allow any SFmode
5194 and SImode constants.
5195 (xtensa_emit_move_sequence): Inline the former contents of
5196 xtensa_load_constant with modifications to handle the const16 option.
5197 (override_options): Add xtensa_char_to_class['W'] and set it to
5198 the general register class only if the const16 option is enabled.
5199 Fix formatting. Disallow PIC when using the const16 option.
5200 (print_operand): Reorganize to switch on "letter" instead of the
5201 RTL code. Add output_operand_lossage calls for invalid cases.
5202 Add support for 't' and 'b' letters.
5203 (xtensa_expand_prologue): New function to replace
5204 xtensa_function_prologue and xtensa_reorg.
5205 (xtensa_function_epilogue): Declare this as static. Delete code
5206 to print the retw.n or retw instruction.
5207 (xtensa_return_addr): Use A0_REG instead of 0.
5208 (xtensa_rtx_costs): Add costs for using the const16 option.
5209 * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
5210 (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
5211 (TARGET_SWITCHES): Add "const16" and "no-const16".
5212 (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
5213 (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
5214 using the const16 option.
5215 (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
5216 (TRAMPOLINE_SIZE): Change from 49 to 59.
5217 (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
5218 (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
5219 when using the const16 option.
5220 (PREDICATE_CODES): Delete non_const_move_operand.
5221 * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
5223 (movdi, movdf): If the source is a constant, always expand to a
5224 sequence of movsi insns.
5225 (movdi_internal, movdf_internal): Remove alternative using l32r insns.
5226 (movsi_internal, movsf_internal): Add alternative using const16 insns.
5227 (movsf): Add const16 support.
5228 (entry, prologue, epilogue): New.
5229 (set_frame_ptr): Add missing mode for unspec_volatile operation.
5230 Likewise for subsequent split pattern.
5231 * doc/invoke.texi (Option Summary, Xtensa Options): Document new
5232 "-mconst16" and "-mno-const16" options.
5234 2003-05-14 Richard Henderson <rth@redhat.com>
5236 * config/ia64/ia64.c (ia64_expand_load_address): Force destination
5237 to be DImode register. Merge load_symptr.
5238 * config/ia64/ia64.md (load_symptr): Remove.
5240 2003-05-14 Richard Henderson <rth@redhat.com>
5242 * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
5243 DEFERRED_CONSTANT_P.
5244 * integrate.c (copy_rtx_and_substitute): Update use.
5245 * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
5246 to the copy generated.
5247 (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
5248 of the constant to see if we should emit.
5249 (mark_constant): Similarly.
5250 (output_constant_def_contents): Set TREE_ASM_WRITTEN.
5252 2003-05-14 David Edelsohn <edelsohn@gnu.org>
5254 * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
5255 move record condition.
5256 (movdi_internal2): Same.
5258 2003-05-14 Nathan Sidwell <nathan@codesourcery.com>
5260 * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
5261 (GCOV_TAG_*) Force type to gcov_unsigned_t.
5262 (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
5263 (struct gcov_var): Remove modified. Add start, length, offset,
5264 overread. Have buffer array for libgcov.
5265 (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
5266 (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
5267 * gcov-io.c (gcov_open): Set mode, do not read anything.
5268 (gcov_close): Write final block.
5269 (gcov_write_block, gcov_allocate): New.
5270 (gcov_write_bytes): Make static. Write or allocate buffer.
5271 (gcov_write_unsigned, gcov_write_counter): Buffer can never be
5273 (gcov_write_string): Adjust.
5275 (gcov_write_length): Adjust. Flush the block.
5276 (gcov_write_tag_length): Buffer can never be null.
5277 (gcov_read_bytes): Make static. Read in block.
5278 (gcov_sync): Moved here. Adjust.
5279 (gcov_seek): Moved here. Adjust.
5280 * coverage.c (read_counts_file): Adjust.
5281 * gcov-dump.c (print_prefix): Add position parameter.
5282 (flag_dump_positions): New flag.
5283 (options, main, print_usage): Add it.
5284 (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
5285 tag_summary): Adjust.
5286 * gcov.c (read_graph_file, read_count_file): Adjust.
5287 * libgcov.c (gcov_exit): Adjust.
5289 * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
5290 (libgcov.a): Depend on libgcc.a.
5291 (gcov.o, gcov-dump.o): Add gcov-io.c.
5292 * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
5294 * loop.c (check_dbra_loop): Factor common test.
5296 2003-05-14 Ben Elliston <bje@wasabisystems.com>
5298 * doc/md.texi (Automaton pipeline description): Grammar fixes.
5300 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
5302 * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
5303 (TARGET_INITIALIZER): Include it.
5304 * target.h (struct gcc_target): Add machine_dependent_reorg field.
5305 * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
5306 * system.h: Poison MACHINE_DEPENDENT_REORG.
5308 * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
5309 * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
5310 * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5311 (alpha_handle_trap_shadows): Remove "first insn" parameter.
5312 (alpha_align_insns): Likewise.
5313 (alpha_reorg): Likewise. Make static. Update calls to above
5316 * config/arm/arm-protos.h (arm_reorg): Remove declaration.
5317 * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
5318 * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5319 (arm_reorg): Remove parameter. Make static.
5321 * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
5322 * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
5323 * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5324 (avr_reorg): Renamed from machine_dependent_reorg. Make static.
5327 * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
5328 * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
5329 * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5330 (c4x_reorg): Renamed from c4x_process_after_reload. Make static.
5333 * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
5334 * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
5335 * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
5337 * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
5338 * config/frv/frv.c: Remove orphaned comment.
5340 * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
5341 * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
5342 * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5343 (ix86_reorg): Renamed from x86_machine_dependent_reorg. Make static.
5346 * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
5347 * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
5348 * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5349 (emit_insn_group_barriers): Remove "first insn" parameter.
5350 (emit_all_insn_group_barriers): Likewise.
5351 (ia64_reorg): Likewise. Make static. Update calls to above functions.
5352 (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
5354 * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
5355 * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
5356 * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5357 (ip2k_reorg): Renamed from machine_dependent_reorg. Make static.
5360 * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
5361 * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
5362 * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5363 (m68hc11_reorg): Make static. Remove parameter.
5365 * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
5366 * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
5367 * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5368 (conditionalize_optimization): Remove parameter.
5369 (mcore_reorg): Renamed from mcore_dependent_reorg. Remove parameter.
5370 Make static. Update call to conditionalize_optimization.
5372 * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
5373 * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
5374 * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5375 (mips_reorg): Renamed from machine_dependent_reorg. Remove parameter.
5378 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
5379 * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
5380 * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5381 (mmix_reorg): Renamed from mmix_machine_dependent_reorg. Make static.
5384 * config/pa/pa-protos.h (pa_reorg): Remove declaration.
5385 * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
5386 * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5387 (pa_combine_instructions): Remove "first insn" parameter.
5388 (remove_useless_addtr_insns): Likewise.
5389 (pa_reorg): Likewise. Make static. Update calls to above functions.
5391 * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
5392 commented-out definition.
5394 * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
5395 * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
5396 * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5397 (s390_reorg): Renamed from s390_machine_dependent_reorg. Make static.
5400 * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
5401 * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
5402 * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5403 (sh_reorg): Renamed from machine_dependent_reorg. Make static.
5405 (sh_output_mi_thunk): Call sh_reorg directly.
5406 * config/sh/sh.md: Update comment.
5408 * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
5409 commented-out definition.
5411 * config/v850/v850-protos.h (v850_reorg): Remove declaration.
5412 * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
5413 * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5414 (v850_reorg): Make static. Remove parameter.
5416 * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
5417 * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
5418 * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
5419 (xtensa_reorg): Make static. Remove parameter.
5421 * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
5422 (TARGET_MACHINE_DEPENDENT_REORG): Document.
5424 2003-05-13 Richard Henderson <rth@redhat.com>
5426 * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
5427 the old decl had instantiated DECL_RTL.
5429 2003-05-13 Mike Stump <mrs@apple.com>
5431 * doc/invoke.texi (Option Summary): Kill off documentation for -$.
5433 2003-05-13 Janis Johnson <janis187@us.ibm.com>
5435 * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
5436 HOST_WIDE_INT argument.
5438 2003-05-13 Jason Merrill <jason@redhat.com>
5440 * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
5442 * tree.c (iterative_hash_expr): New fn.
5444 * c-semantics.c (emit_local_var): Don't mess with temp slots if
5445 there's no initializer.
5447 2003-05-13 Richard Sandiford <rsandifo@redhat.com>
5449 * final.c (final_scan_insn): Apply the effects of frame-related
5450 delay slot insns before emitting a delayed branch.
5452 2003-05-13 Nick Clifton <nickc@redhat.com>
5454 * config/mcore/mcore.md (jump): Use emit_jump_insn.
5456 2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5458 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
5459 parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
5461 2003-05-12 DJ Delorie <dj@redhat.com>
5463 * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
5464 (emit_push_insn): Don't use push when the source alignment is less
5465 than the stack's push rounding.
5467 2003-05-13 Zack Weinberg <zack@codesourcery.com>
5469 * diagnostic.c (output_format): Add support for %m.
5470 (output_printf, output_verbatim, diagnostic_set_info,
5471 verbatim): Set err_no field of the text_info structure being
5473 (fatal_io_error): Delete function.
5474 * diagnostic.h (text_info): Add err_no field.
5475 * toplev.h (fatal_io_error): Delete prototype.
5477 * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
5478 * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
5479 * objc/objc-act.c: Replace all calls to fatal_io_error with
5480 calls to fatal_error; add ": %m" to the end of all the affected
5483 2003-05-13 Zack Weinberg <zack@codesourcery.com>
5485 * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
5486 * rtl.h: Prototype it.
5487 * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
5490 2003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
5492 * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
5493 ("*iorsi3_oi"): Likewise.
5495 2003-05-13 Richard Earnshaw <rearnsha@arm.com>
5497 * arm.md (compare_scc): Use shorter sequence for EQ case.
5498 (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
5499 (and_scc_scc): Ensure split only applies when there is a dominance
5501 (and_scc_scc_nodom): New insn-and-split pattern.
5503 2003-05-13 Richard Sandiford <rsandifo@redhat.com>
5505 * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
5506 to _Unwind_SetGRPtr().
5508 2003-05-13 Michael Eager <eager@mvista.com>
5510 * Makefile.in: Initialize program_transform_cross_name from
5511 @program_transform_name@ instead of target_alias.
5513 2003-05-12 Janis Johnson <janis187@us.ibm.com>
5514 Alan Modra <amodra@bigpond.net.au>
5515 Jakub Jelinek <jakub@redhat.com>
5517 * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
5518 * configure: Rebuild.
5519 * config/rs6000/rs6000-protos.h: Update.
5520 * config/rs6000/rs6000.c (rs6000_tls_size): New.
5521 (rs6000_tls_size_string): New.
5522 (rs6000_parse_tls_size_option): New.
5523 (rs6000_legitimize_tls_address): New.
5524 (rs6000_tls_get_addr): New.
5525 (rs6000_got_sym): New.
5526 (rs6000_tls_symbol_ref): New.
5527 (rs6000_tls_symbol_ref_1): New.
5528 (rs6000_get_some_local_dynamic_name): New.
5529 (rs6000_get_some_local_dynamic_name_1): New.
5530 (TARGET_HAVE_TLS): New.
5531 (TARGET_CANNOT_FORCE_CONST_MEM): New.
5532 (rs6000_override_options): Handle -mtls-size option.
5533 (constant_pool_expr_1): Handle TLS symbols.
5534 (rs6000_legitimize_address): Handle TLS symbols.
5535 (rs6000_tls_referenced_p): New.
5536 (rs6000_legitimate_address): Handle TLS symbols.
5537 (rs6000_emit_move): Handle TLS symbols.
5538 (print_operand): Handle TLS symbols.
5539 (uses_TOC): Handle TLS symbols.
5540 (rs6000_emit_prologue): Use symbol for unspec constant.
5541 * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
5542 (some_ld_name): New.
5543 (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
5544 (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
5545 (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
5546 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
5548 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
5549 tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
5550 tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
5551 tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
5552 tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
5554 * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
5556 2003-05-12 Neil Booth <neil@cat.daikokuya.co.uk>
5558 * Makefile.in (stage2_build, stage3_build, stage4_build):
5559 Set BUILD_CC to the same as CC.
5561 2003-05-12 Neil Booth <neil@daikokuya.co.uk>
5563 * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
5565 2003-05-12 Andreas Schwab <schwab@suse.de>
5567 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
5569 (bundling): Initialize 'pos'.
5570 (ia64_expand_builtin): Initialize 'rmode'.
5572 2003-05-12 David Edelsohn <edelsohn@gnu.org>
5574 * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
5575 (ASM_OUTPUT_ALIGNED_COMMON): Same.
5576 (ASM_OUTPUT_LOCAL): Same.
5578 Mon May 12 21:53:29 CEST 2003 Jan Hubicka <jh@suse.cz>
5580 * varasm.c (output_constant): Fix underflow.
5582 2003-05-12 Mark Mitchell <mark@codesourcery.com>
5585 * configure.in: Correct detection of GNU ld version number.
5586 * configure: Regenerated.
5588 2003-05-12 Zack Weinberg <zack@codesourcery.com>
5590 * diagnostic.c (diagnostic_for_decl): Take a
5591 diagnostic_context argument. Restructure to be consistent
5592 with diagnostic_report_diagnostic.
5593 (diagnostic_count_diagnostic): Now static. Take a
5594 diagnostic_info argument, not just a diagnostic_t. Some code
5595 moved here from internal_error. Move a case label for
5597 (diagnostic_action_after_output): New function. Code moved
5598 here from internal_error and fatal_error.
5599 (bug_report_request): New #define so that this text appears in
5601 (diagnostic_report_diagnostic): Update to match changes to
5602 diagnostic_count_diagnostic. Call diagnostic_action_after_output.
5603 (diagnostic_set_info): Call gettext here.
5605 (pedwarn): Update comment. Don't call gettext here.
5606 (sorry): Use report_diagnostic. Don't call gettext here.
5607 (fatal_error): Remove final fnotice and exit, but call
5608 real_abort to prevent warnings about noreturn function returning.
5609 (internal_error): Likewise. Don't do ICE suppression here nor
5610 call context->internal_error.
5611 (warning_with_decl): Suppress for decls in system headers.
5612 Adjust call to diagnostic_for_decl.
5613 (pedwarn_with_decl): Likewise.
5614 (error_with_decl): Adjust call to diagnostic_for_decl.
5615 (error_recursion): Use bug_report_request.
5617 * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
5618 * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
5619 diagnostic_count_diagnostic.
5621 2003-05-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5623 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
5625 Mon May 12 15:57:54 CEST 2003 Jan Hubicka <jh@suse.cz>
5627 * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
5628 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
5629 * mips/mips.h (ASM_OUTPUT_SKIP): Fix typo in the previous patch.
5631 2003-05-12 Roger Sayle <roger@eyesopen.com>
5633 * doc/rtl.texi: Document zero_extract as a valid destination
5636 2003-05-12 Richard Earnshaw <rearnsha@arm.com>
5638 * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
5639 '.'. Change all local symbol definitions and references to use LSYM.
5641 Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
5643 * expr.h (assemble_static_space): Update prototype.
5644 * output.h (assemble_zeros, output_constant): Likewise.
5645 * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
5646 * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
5648 * elf.h (ASM_OTUPUT_SKIP): Likewise.
5649 * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
5650 * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
5651 Expect HOST_WIDE_INT operand.
5652 * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
5653 Expect HOST_WIDE_INT operand.
5654 * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
5655 Expect HOST_WIDE_INT operand.
5656 * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
5657 HOST_WIDE_INT operand.
5658 * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
5659 ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
5660 * aout.h (ASM_OTUPUT_SKIP): Likewise.
5661 * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
5662 * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
5663 * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
5664 * frv.h (ASM_OTUPUT_SKIP): Likewise.
5665 * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
5666 * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
5669 * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
5670 * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
5671 Make it 64bit clean.
5672 * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
5673 * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
5674 HOST_WIDE_INT operand
5675 * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
5676 Expect HOST_WIDE_INT operand
5677 * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
5678 * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
5679 ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
5680 * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
5682 * m32r.h (ASM_OUTPUT_COMMON): Likewise.
5683 * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
5685 * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5686 * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5687 * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
5688 ASM_OUTPUT_SKIP): Likewise.
5689 * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
5691 * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
5692 ASM_OUTPUT_SKIP): Likewise.
5693 * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
5694 ASM_OUTPUT_SKIP): Likewise.
5695 * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
5696 * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
5697 ASM_OUTPUT_SKIP): Likewise.
5698 * sgs.h (ASM_OUTPUT_SKIP): Likewise.
5699 * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
5700 ASM_OUTPUT_SKIP): Likewise.
5701 * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
5703 * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
5704 * iris.h (ASM_OUTPUT_LOCAL): Likewise.
5705 * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
5706 * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
5707 ASM_OUTPUT_SKIP): Make it 64bit clean.
5708 * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
5709 Make it 64bit clean.
5710 * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
5711 ASM_OUTPUT_SKIP): Make it 64bit clean.
5712 * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
5714 * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
5715 HOST_WIDE_INT argument
5716 * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
5717 * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
5718 HOST_WIDE_INT argument
5719 * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
5720 * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
5721 * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
5722 * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
5723 HOST_WIDE_INT argument
5724 * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
5725 * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
5726 * varasm.c (asm_output_bss, asm_output_aligned_bss,
5727 asm_emit_uninitialized, assemble_zeros, assemble_static_space):
5728 HOST_WIDE_INT argument
5730 2003-05-10 Steven Bosscher <steven@gcc.gnu.org>
5732 * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
5733 favor of walk_tree_without_duplicates. Add comments.
5735 2003-05-12 Josef Zlomek <zlomekj@suse.cz>
5737 * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
5738 (struct alloc_pool_def): New element 'id'.
5739 * alloc-pool.c (fancy_abort): Extern function prototype.
5740 (abort): Macro which uses fancy_abort.
5741 (struct allocation_object_def): New structure.
5742 (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
5743 (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
5744 (last_id): New variable.
5745 (create_alloc_pool): Add the offset of u.data to size of element,
5746 increase and use last_id.
5747 (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
5748 (pool_alloc): Likewise. Set ID for elements.
5749 (pool_free): Check whether the PTR was allocated from POOL.
5751 2003-05-11 Richard Henderson <rth@redhat.com>
5754 * c-decl.c: Include hashtab.h.
5755 (detect_field_duplicates): New.
5756 (finish_struct): Use it.
5757 * Makefile.in (c-decl.o): Update.
5758 * c-parse.in (structsp_attr): Nreverse component_decl_list results.
5759 (component_decl_list, component_decl_list2,
5760 components, components_notype): Build list in reverse order.
5761 (enumlist): Clarify docs. Use TREE_CHAIN not chainon.
5763 * tree.c (chainon): Special case op2 null as well.
5766 2003-05-11 Roger Sayle <roger@eyesopen.com>
5768 * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
5769 to implement log, logf and logl built-ins as inline x87 intrinsics.
5770 (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
5771 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
5772 patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
5774 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
5775 UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
5777 2003-05-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5779 * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
5781 * sparc.c (print_operand): Fix uninitialized warning.
5783 2003-05-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5785 * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
5787 * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
5790 2003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
5792 * doc/cpp.texi: Fix typos.
5794 2003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5796 * config/s390/s390.c (s390_function_arg_float): New function.
5797 (s390_function_arg_pass_by_reference): Use it.
5798 (s390_function_arg_advance): Likewise.
5799 (s390_function_arg): Likewise.
5800 (s390_va_arg): Likewise
5802 2003-05-11 Nathan Sidwell <nathan@codesourcery.com>
5804 * coverage.h (coverage_counter_alloc): New function.
5805 * function.h (struct function): Remove arc_profile flag.
5806 * coverage.c (fn_ident): Remove.
5807 (fn_b_ctrs, no_coverage): New.
5808 (get_coverage_counts): Use current_function_funcdef_no.
5809 (coverage_counter_alloc): New.
5810 (coverage_counter_ref): Adjust.
5811 (coverage_begin_output): Check no_coverage. Use
5812 current_function_funcdef_no.
5813 (coverage_end_function): Likewise.
5814 (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
5815 than clearing flag_inline_functions. Do not clear arc_profile
5817 * function.c (prepare_function_start): Do not set arc_profile
5819 * profile.c (instrument_edges): Return number of instrumented
5820 edges. Use a for loop.
5821 (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
5822 local to here and simplify. Use profile_arc_flag not arc_profile
5824 (find_spanning_tree): Reformat.
5825 * toplev.c (rest_of_compilation): Use profile_arc_flags and
5826 flag_test_coverage rather than arc_profile flag.
5828 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5830 * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
5832 2003-05-11 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5834 * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
5836 2003-05-11 Bruno Haible <bruno@clisp.org>
5838 * cppfiles.c (find_or_create_entry): Preserve errno.
5840 2003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
5842 * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
5843 cpplib as it's a Standard Predefined Macro.
5844 * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
5845 * cppinit.c (_cpp_init_builtins): Take HOSTED. Define
5846 __STDC_HOSTED__ appropriately.
5847 * cpplib.h (_cpp_init_builtins): Update.
5848 * fix-header.c (read_scan_file): Update.
5849 * doc/cpp.texi, doc/cppopts.texi: Update documentation.
5851 2003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
5855 * c-opts.c (c_common_decode_option): Don't set
5856 warn_ctor_dtor_privacy wen -Wall.
5857 * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
5859 2003-05-10 Alexandre Oliva <aoliva@redhat.com>
5861 * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
5864 2003-05-10 Zack Weinberg <zack@codesourcery.com>
5866 * diagnostic.c: Reorder functions for clarity, putting all the
5867 functions in the "error" family next to each other, and
5868 likewise all the functions in the "error_with_decl" family.
5869 Some other routines were moved too. Add comments.
5870 (vbuild_message_string): Fold into sole caller.
5873 2003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
5875 * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
5876 (EH_RETURN_HANDLER_RTX): Likewise.
5877 (expand_builtin_eh_return): Do not copy stack adjustment
5878 if EH_RETURN_STACKADJ_RTX is not defined.
5879 (expand_eh_return): Likewise. Also, do not pass stack
5880 adjustment as argument to the eh_return pattern.
5881 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
5882 because EH_RETURN_STACKADJ_RTX is not defined.
5883 * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
5884 is not defined, treat stack pointer like a regular register.
5885 (uw_init_context_1): Set up fake initial stack pointer register.
5886 (uw_install_context_1): Do not compute stack adjustment if
5887 EH_RETURN_STACKADJ_RTX is not defined.
5889 * config/i386/i386.md ("eh_return"): Remove first argument.
5890 * config/mips/mips.md ("eh_return"): Likewise.
5891 * config/rs6000/rs6000.md ("eh_return"): Likewise.
5892 * config/sh/sh.md ("eh_return"): Likewise.
5894 * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
5896 2003-05-10 Alexander Aganichev <aaganichev@yandex.ru>
5898 * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
5900 2003-05-10 Nathan Sidwell <nathan@codesourcery.com>
5902 * defaults.h (GCOV_TYPE_SIZE): Remove.
5903 * gcov-io.h (gcov_type): Set to specific mode int on target.
5904 (gcov_unsigned_t, gcov_position_t): New.
5905 (GCOV_TYPE_NODE): New.
5906 (GCOV_TAG_SUMMARY_LENGTH): Adjust.
5907 (GCOV_COUNTERS_SUMMABLE): New.
5908 (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
5909 gcov_ctr_info, gcov_info): Adjust types.
5910 (gcov_var): Adjust types.
5911 (gcov_write_unsigned, gcov_write_tag,
5912 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
5913 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
5914 (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
5915 * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
5916 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
5917 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
5918 * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
5919 __gcov_init, __gcov_merge_add): Adjust gcov types.
5920 * coverage.c (ctr_merge_functions): Constify.
5922 (read_counts_file): Adjust gcov types. Only summarize & merge
5924 (coverage_counter_ref): Use GCOV_TYPE_NODE.
5925 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
5926 build_ctr_info_value, build_gcov_info): Adjust types.
5927 * profile.c (branch_prob): Adjust gcov types.
5928 * gcov_dump (dump_file): Adjust gcov types.
5930 2003-05-10 Richard Earnshaw <rearnsha@arm.com>
5932 * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
5934 (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
5935 * arm.c (arm_select_dominance_cc_mode): Renamed from
5936 select_dominance_cc_mode, no-longer static. Use DOM_CC... constants.
5938 * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
5940 2003-05-09 Roger Sayle <roger@eyesopen.com>
5942 * config/alpha/alpha.c (alpha_start_function): Declare frame_size
5943 as unsigned to avoid signed/unsigned comparison warnings.
5945 2003-05-09 Bob Wilson <bob.wilson@acm.org>
5947 * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
5948 instruction if the Xtensa density option is enabled.
5950 2003-05-09 Matt Kraai <kraai@alumni.cmu.edu>
5952 * mklibgcc.in: Remove extra quotes.
5954 2003-05-09 Mark Mitchell <mark@codesourcery.com>
5956 * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
5959 2003-05-09 Alexandre Oliva <aoliva@redhat.com>
5961 * reload1.c (reload_cse_move2add): Don't turn an implicit
5962 truncation into a self-set in the narrow mode.
5964 2003-05-09 Richard Earnshaw <rearnsha@arm.com>
5966 * arm.md (clzsi2): The CLZ instruction is predicable.
5968 2003-05-09 Bob Wilson <bob.wilson@acm.org>
5970 * config/xtensa/xtensa.c: Formatting.
5972 2003-05-09 Diego Novillo <dnovillo@redhat.com>
5974 * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
5975 instead of TREE_OPERAND to access the operand of a
5978 2003-05-09 Diego Novillo <dnovillo@redhat.com>
5980 * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
5983 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5985 * toplev.h (warning_with_file_and_line): Don't declare.
5986 (error_with_file_and_line): Likewise.
5987 * diagnostic.c (error_with_file_and_line): Remove.
5988 (warning_with_file_and_line): Likewise.
5990 2003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
5992 * c-parse.in (if_stmt_locus): New object.
5993 (if_prefix rule): Use it. Don't use warning_with_file_and_line.
5994 (select_or_iter_stmt rule): Likewise.
5995 (if_stmt_file): Remove.
5996 (if_stmt_line): Likewise.
5997 * jump.c: include "diagnostic.h"
5998 (never_reached_warning): Don't use warning_with_file_and_line.
5999 * Makefile.in (jump.o): Add dependce on diagnostic.h
6001 2003-05-09 Alan Modra <amodra@bigpond.net.au>
6003 * expr.c (move_block_from_reg): Remove "size" parm. Localize vars.
6004 Move code handling pieces not larger than a word to..
6005 * function.c (assign_parms): ..here, but use change_address instead
6006 of adjust_address and operand_subword, and expand_binop instead of
6007 expand_shift. Adjust calls to move_block_from_reg.
6008 * expr.h (move_block_from_reg): Update declaration.
6009 (copy_blkmode_from_reg): Formatting.
6010 * Makefile.in (function.o): Add $(OPTABS_H) to deps.
6011 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
6012 move_block_from_reg calls.
6013 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6014 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
6015 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6016 * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
6017 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6018 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
6019 * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
6020 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
6021 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
6023 2003-05-08 DJ Delorie <dj@redhat.com>
6025 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
6026 to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
6027 variable-sized types).
6028 (xstormy16_function_arg): New. Pass them that way too.
6029 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
6030 * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
6032 2003-05-08 Aldy Hernandez <aldyh@redhat.com>
6034 * mklibgcc.in: Use mkinstalldirs when installing multilib
6037 2003-05-08 J"orn Rennecke <joern.rennecke@superh.com>
6039 * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
6040 instead of CODE_FOR_jump
6042 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
6044 * objc/objc-act.c (error_with_ivar): Don't use
6045 error_with_file_and_line.
6046 (warn_with_method): Don't use warning_with_file_and_line.
6048 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
6050 * stmt.c (emit_locus): New macro.
6051 (emit_filename): Remove.
6052 (emit_lineno): Likewise.
6053 (struct stmt_status): Replace members x_emit_filename and
6054 x_emit_lineno with x_emit_locus.
6055 (set_file_and_line_for_stmt): Adjust.
6056 (expand_expr_stmt_value): Don't use warning_with_file_and_line.
6057 (warn_if_unused_value): Likewise.
6058 (check_seenlabel): Likewise.
6060 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
6062 * c-decl.c (define_label): Tidy. Don't use any of
6063 error_with_file_and_line or warning_with_file_and_file.
6064 (pending_xref_error): Likewise.
6065 (store_parm_decls): Likewise.
6066 (current_function_prototype_locus): New object. Package from
6067 current_function_prototype_file and current_function_prototype_line.
6068 (start_function): Use it.
6069 (current_function_prototype_file): Remove.
6070 (current_function_prototype_line): Remove;
6072 2003-05-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6074 * builtins.c (readonly_data_expr): New function.
6075 (expand_builtin_memmove): Optimize any rodata source, not just
6078 2003-05-07 David Mosberger <davidm@hpl.hp.com>
6080 * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
6082 2003-05-07 Richard Henderson <rth@redhat.com>
6084 * config/i386/i386.c (ix86_split_long_move): Fix base register
6085 mode for XFmode splits for TARGET_64BIT.
6087 2003-05-07 Richard Henderson <rth@redhat.com>
6089 * sched-ebb.c (schedule_ebb): Supply the correct starting
6090 block number to save_line_notes.
6092 2003-05-07 Richard Henderson <rth@redhat.com>
6094 * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
6095 (dump_file): Likewise.
6097 2003-05-07 David Mosberger <davidm@hpl.hp.com>
6099 * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
6100 forget to preserve gp.
6101 * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
6103 * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
6104 .prologue directive.
6105 Use .skip instead of data8 for .bss section to make Intel
6106 Assembler (ias) happy. Minor whitespace fixups. Make "nop 0"
6107 explicit in the .mib bundles and remove the unnecessary stop
6108 bits. Replace local labels with normal labels, to make ias
6109 happy. Don't register __do_global_ctors_aux here, do it in
6112 * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
6113 __do_global_ctors_aux in .init_array section instead of
6114 declaring it as a hidden global. Replace local labels with
6115 ordinary labels to make ias happy.
6117 2003-05-07 Richard Henderson <rth@redhat.com>
6120 * except.c: Revert 04-01 and 04-02 forced-unwind changes.
6121 * flags.h, toplev.c, doc/invoke.texi: Likewise.
6123 * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
6124 * unwind.inc (_Unwind_DeleteException): Check for null
6127 * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
6128 * unwind.inc (_Unwind_Resume_or_Rethrow): New.
6129 * unwind.h: Declare them.
6130 * libgcc-std.ver (GCC_3.3): Export them.
6132 2003-05-07 Richard Henderson <rth@redhat.com>
6134 * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
6137 2003-05-07 Zack Weinberg <zack@codesourcery.com>
6139 * stmt.c (force_label_rtx): New function, based on logic
6140 formerly found in expand_expr.
6141 * expr.h: Prototype it.
6142 * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
6144 * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
6146 * print-tree.c (debug_tree): Free the table after we're done
6149 2003-05-07 Aldy Hernandez <aldyh@redhat.com>
6151 * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
6152 Unreverse arguments for __ev_subw.
6154 * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
6156 2003-05-07 Nick Clifton <nickc@redhat.com>
6158 * config/stormy16/stormy-abi: Update to include
6159 R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
6160 R_XSTORMY16_12 relocs.
6162 2003-05-07 Alan Modra <amodra@bigpond.net.au>
6164 * function.c (assign_parms): Correct reversed reg_parm_stack_space
6165 test. Add partial in-regs size to stack_args_size.
6167 2003-05-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6169 * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
6172 2003-05-07 Nathan Sidwell <nathan@codesourcery.com>
6174 * gcov-io.h (GCOV_LOCKED): New #define.
6175 (GCOV_LINKAGE): Make sure it is #defined.
6176 (gcov_write_string, gcov_write_tag, gcov_write_length,
6177 gcov_read_string, gcov_time): Poison in libgcov.
6178 (gcov_seek_end): Remove.
6179 (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
6180 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
6181 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
6182 GCOV_TAG_SUMMARY_LENGTH): New #defines.
6183 (gcov_write_tag, gcov_write_length): Not in libgcov.
6184 * gcov-io.c (gcov_open): Use GCOV_LOCKED.
6185 (gcov_write_tag, gcov_write_length): Not in libgcov.
6186 (gcov_write_tag_length): New.
6187 (gcov_write_summary): Use gcov_write_tag_length.
6188 * libgcov.c: Always #include gcov-io.h.
6189 (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
6190 (GCOV_LINKAGE): Define to nothing for L_gcov.
6191 (gcov_exit): Replace gcov_write_tag, gcov_write_length with
6192 gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
6193 * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
6194 (read_count_file): Likewise.
6195 * gcov-dump.c (dump_file): Likewise.
6196 * coverag.c (read_counts_file): Likewise.
6198 2003-05-06 Mark Mitchell <mark@codesourcery.com>
6201 * gcc.c (process_command): Update copyright date.
6203 2003-05-06 Phil Edwards <pme@gcc.gnu.org>
6205 * doc/install.texi (mips-*-*): Add note about libstdc++.
6207 2003-05-06 DJ Delorie <dj@redhat.com>
6209 * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
6210 * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
6211 * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
6213 2003-05-06 <neil@cat.daikokuya.co.uk>
6215 * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
6216 and -Wstrict-prototypes if C++.
6218 2003-05-06 Aldy Hernandez <aldyh@redhat.com>
6220 * config/rs6000/linuxspe.h: New file.
6222 * config.gcc: Add powerpc-*-linux-gnuspe* target.
6224 2003-05-06 Richard Henderson <rth@redhat.com>
6226 * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
6227 previous frame didn't save sp. Clear sp for next frame.
6228 (uw_install_context_1): Honor saved sp from frame.
6230 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
6232 * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
6233 (mips_move_1word, mips_move_2words): Remove declaration.
6234 (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
6235 (mips_restore_gp): Remove insn argument.
6236 * config/mips/mips.h (FP_REG_RTX_P): New macro.
6237 * config/mips/mips.c (volatile_buffer): Remove.
6238 (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
6239 (mips_move_1word, mips_move_2words): Remove, replacing with...
6240 (mips_output_move): ...this new function.
6241 (mips_restore_gp): Remove insn argument. Adjust for above changes.
6242 (print_operand): Make '%h' print %hi(op) for HIGH operands. Remove
6243 handling of floating-point constants. Handle zero CONST_DOUBLE
6245 (mips_annotate_frame_insn): Replace with...
6246 (mips_set_frame_expr): ...this, which just takes one argument.
6247 (mips_frame_set): Change the register argument to an rtx.
6248 (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
6249 check whether moves should be split. Use mips_split_64bit_move
6250 to split them. Use mips_subword to generate the high and low
6251 parts of a paired FPR. Adjust calls to frame_set and
6252 mips_set_frame_expr.
6253 (mips_expand_prologue): Simplify due to above changes.
6254 * config/mips/mips.md: Add splitters for 64-bit moves on 32-bit
6255 targets, replacing xisting register-only versions.
6256 (UNSPEC_STORE_DF_HIGH): New unspec.
6257 (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
6258 (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
6259 (*paradoxical_extendhidi2): Remove.
6260 (movdi_internal, movdi_internal2): Use mips_output_move.
6261 (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
6262 (movsf_internal1, movsf_internal2): Likewise.
6263 (movdf_internal1a): Likewise. Fix length and type of f <- G case.
6264 (movdf_internal1b): Use mips_output_move. Fix type of f <- G case.
6265 (movdf_internal2): Use mips_output_move. Fix lengths of FPR moves.
6266 Add m <- G alternative.
6267 (load_df_low, load_df_high, store_df_low): New patterns.
6268 (movhi_internal): Use @ template instead of calling a function.
6269 Remove unnecessary 'z' alternatives.
6270 (movqi_internal): Likewise.
6271 (exception_receiver): Update call to mips_restore_gp.
6273 2003-05-06 Richard Sandiford <rsandifo@redhat.com>
6275 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
6276 (mips_delegitimize_address): Declare.
6277 * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
6278 (FIND_BASE_TERM): Define.
6279 * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6280 (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
6281 Handle small-data addresses.
6283 2003-05-05 Roger Sayle <roger@eyesopen.com>
6285 * real.c (real_powi): New function to calculate the value of
6286 a real raised to an integer power, i.e. pow(x,n) for int n.
6287 (real_sqrt): Convert to using the faster do_add, do_multiply
6288 and do_divide API for consistency with the rest of real.c.
6289 * real.h (real_powi): Prototype here.
6290 * builtins.c (fold_builtin): Avoid local variable mode when
6291 evaluating sqrt at compile time. Attempt to evaluate pow at
6292 compile-time, by checking for an integral exponent.
6294 2003-05-05 Richard Henderson <rth@redhat.com>
6296 * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
6298 2003-05-05 David O'Brien <obrien@FreeBSD.org>
6300 * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
6301 other FreeBSD ports.
6302 (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
6303 (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
6305 2003-05-05 Janis Johnson <janis187@us.ibm.com>
6307 * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
6309 * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
6311 2003-05-05 Zack Weinberg <zack@codesourcery.com>
6313 * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
6314 * varasm.c (struct varasm_status): Add deferred_constants field.
6315 (n_deferred_strings): Delete variable.
6316 (n_deferred_constants): New #define.
6317 (struct constant_descriptor_tree): Kill next and label fields.
6318 (const_hash_table, MAX_HASH_TABLE): Delete.
6319 (const_desc_htab): New static variable.
6320 (const_hash): Rename const_desc_hash, and make it fit the
6321 hashtab.h interface.
6322 (const_desc_eq): New.
6323 (const_hash_1, compare_constant): Const-ify arguments.
6324 (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
6325 SYMBOL_REFs. Clarify comments. Don't set desc->label.
6326 (output_constant_def): Do the lookup/insert using the
6327 hashtab.h interface. Don't muck with n_deferred_constants or
6328 DEFERRED_CONSTANT_P here.
6329 Always call maybe_output_constant_def_contents.
6330 (maybe_output_constant_def_contents): Take a pointer to the
6331 descriptor, not the EXP and RTL separately. Return
6332 immediately if this constant is not deferred. Defer output of
6333 everything, except writable string constants. Update
6334 n_deferred_constants here.
6335 (output_constant_def_contents): Now takes just one argument,
6336 an rtx. Clear DEFERRED_CONSTANT_P here.
6337 (mark_constant_pool): Update for rename of n_deferred_strings.
6338 (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
6340 (init_varasm_status): Clear p->deferred_constants.
6341 (init_varasm_once): Call htab_create_ggc for const_desc_htab.
6343 2003-05-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6345 * builtins.c (expand_builtin_stpcpy): Only expand when the length
6346 of the source string can be evaluated at compile-time.
6348 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
6350 * testsuite/gcc.c-torture/compile/simd-6.c: New.
6352 * c-typeck.c (digest_init): Handle arrays of vector constants.
6354 2003-05-05 Jakub Jelinek <jakub@redhat.com>
6356 * builtins.c (expand_builtin_mempcpy): New function.
6357 (expand_builtin_stpcpy): Optimize stpcpy whose return value is
6358 ignored into strcpy no matter what arguments it has.
6359 (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
6360 expand_builtin_mempcpy.
6362 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
6364 * testsuite/gcc.dg/20030505.c: New.
6366 * c-typeck.c (convert_for_assignment): Opaque pointers can
6369 * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
6370 (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
6371 (spe_init_builtins): Rename all pv2si_type_node to
6372 opaque_p_V2SI_type_node.
6373 Remove declaration of pv2si_type_node.
6374 (is_ev64_opaque_type): Accept opaque pointers.
6376 2003-05-05 Geoffrey Keating <geoffk@apple.com>
6378 * config/rs6000/rs6000.c (validate_condition_mode): Use
6379 flag_finite_math_only.
6380 (rs6000_reverse_condition): Never return UNKNOWN; use
6381 flag_finite_math_only.
6382 (rs6000_generate_compare): Use flag_finite_math_only.
6383 (rs6000_emit_cmove): Handle UNLE. Support UNEQ under -ffast-math.
6384 Use HONOR_* rather than flag_unsafe_math_optimizations. Correct
6385 UNGE and GT cases. Handle UNEQ and LTGT when ! HONOR_NANS.
6387 * toplev.c (check_global_declarations): Suppress not-used warning
6388 for volatile variables.
6390 2003-05-05 Olivier Hainque <hainque@act-europe.fr>
6392 * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
6393 usage of bitfield instructions for mode1 != BLKmode, only ignoring
6394 SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
6395 (store_field): Likewise.
6397 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
6399 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
6400 evsubifw to builtins accepting 5-bit unsigned constants.
6401 (easy_vector_constant): Return if V1DImode. Fix typo.
6403 2003-05-05 Aldy Hernandez <aldyh@redhat.com>
6405 * config/rs6000/spe.h: Revert licensing change from last patch.
6407 2003-05-05 DJ Delorie <dj@redhat.com>
6409 * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
6410 before reload, but defer the split until after.
6411 * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
6414 2003-05-05 David Edelsohn <edelsohn@gnu.org>
6416 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
6417 * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
6419 2003-05-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6421 * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
6424 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6426 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
6427 ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
6428 ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
6430 (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
6431 ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
6432 ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
6435 * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
6436 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
6438 (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
6439 BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
6440 BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
6441 BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
6442 BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
6443 BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
6444 BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
6445 BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
6446 BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
6447 BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
6448 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
6449 BUILT_IN_STRDUP): Add "nonnull" attribute.
6451 2003-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6453 * expr.c (store_field): Don't clobber TEMP in shift: it might be
6455 (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
6456 whose purpose is to step up the alignment.
6457 (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
6459 * stor-layout.c (compute_record_mode): Relax restriction
6460 on fields crossing word boundaries forcing BLKmode.
6462 2003-05-04 Neil Booth <neil@daikokuya.co.uk>
6464 * cppinit.c (cpp_create_reader, post_options): Warn about
6465 trigraphs unless explicity set or -trigraphs.
6466 * cpplex.c (warn_in_comment): New.
6467 (_cpp_process_line_notes): Better handling of -Wtrigraphs.
6468 (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
6469 * doc/cppopts.texi, doc/cpp.texi: Update.
6471 2003-05-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6473 * Makefile.in (LIBGCOV): Add _gcov_merge_add.
6474 * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
6476 (GCOV_MERGE_FUNCTIONS): New.
6477 (gcov_merge_fn): Declare.
6478 (struct gcov_ctr_info): New field "merge".
6479 (__gcov_merge_add): Declare.
6480 * coverage.c (ctr_merge_functions): New.
6481 (build_ctr_info_type, build_ctr_info_value): Initialize merge field
6482 of gcov_ctr_info type.
6483 * libgcov.c (__gcov_merge_add): New.
6484 (gcov_exit): Call a hook to merge values of counters.
6486 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6488 * toplev.h (pedwarn_with_file_and_line): Don't declare.
6489 * diagnostic.c (pedwarn_with_file_and_line): Remove.
6491 2003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6493 * varasm.c (assemble_variable): Don't use error_with_file_and_line.
6495 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6497 * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
6498 expand_builtin_frame_address): Update prototypes.
6499 (expand_builtin_constant_p, expand_builtin_strlen,
6500 expand_builtin_strcpy, expand_builtin_memset,
6501 expand_builtin_bzero, expand_builtin_args_info,
6502 expand_builtin_frame_address): Pass in just the argument(s)
6503 needed, not the entire expression `exp'.
6504 (expand_builtin): Update all calls to these functions.
6506 2003-05-03 Richard Henderson <rth@redhat.com>
6508 * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
6509 <BUILT_IN_DWARF_SP_COLUMN>: New.
6510 * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
6511 (BUILT_IN_DWARF_SP_COLUMN): New.
6512 * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
6513 (expand_builtin_dwarf_sp_column): New.
6514 * except.h: Update to match.
6515 * unwind-dw2.c (execute_stack_op): Correct stack push typo.
6516 (execute_cfa_program): Record location expression address
6517 before extracting length.
6518 (uw_update_context_1): Install old CFA into stack pointer column.
6519 (uw_init_context_1): Set cfa_reg to stack pointer column.
6521 2003-05-03 Richard Henderson <rth@redhat.com>
6523 * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
6525 (toc_relative_expr_p): Likewise.
6526 (SPE_CONST_OFFSET_OK): Move from rs6000.h.
6527 (legitimate_constant_pool_address_p): Move from rs6000.h, change
6528 into a function, downcase all users.
6529 (legitimate_small_data_p): Likewise.
6530 (legitimate_offset_address_p): Likewise.
6531 (legitimate_indexed_address_p): Likewise.
6532 (legitimate_indirect_address_p): Likewise.
6533 (legitimate_lo_sum_address_p): Likewise.
6534 (rs6000_mode_dependent_address): Likewise.
6535 * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
6536 (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
6537 LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
6538 LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
6539 LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
6540 (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
6541 (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
6542 * config/rs6000/rs6000-protos.h: Update.
6544 2003-05-03 Geoffrey Keating <geoffk@apple.com>
6546 * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
6547 (REVERSE_CONDITION): Define.
6549 * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
6550 to branch_positive_comparison_operator.
6551 (ccr_bit): Check that sCOND conditions are actually a positive bit.
6552 (print_operand): Remove %D substitution.
6553 (rs6000_emit_sCOND): Generate complement operation to ensure that
6554 sCOND input is a positive bit.
6555 * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
6556 same order as bCOND, and add the missing ones. Remove the %D
6557 substitutions from the scc patterns.
6559 * simplify-rtx.c (simplify_relational_operation): Add case for
6562 2003-05-03 Bruce Korb <bkorb@gnu.org>
6564 * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
6566 * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
6568 2003-05-03 Aldy Hernandez <aldyh@redhat.com>
6570 * config/rs6000/spe.h: Remove unecessary casts. Misc cleanups.
6572 2003-05-03 Zack Weinberg <zack@codesourcery.com>
6575 * c-common.c (warn_sign_compare): Initialize to -1.
6576 * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
6577 (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
6579 (c_common_post_options): Set warn_sign_compare from extra_warnings
6580 if it's still -1 at this point.
6582 * toplev.c (maybe_warn_unused_parameter): New static variable.
6583 (set_Wextra): New static function.
6584 (W_options): Remove "extra".
6585 (decode_W_option): Call set_Wextra.
6586 (independent_decode_option): Likewise.
6587 (set_Wunused): Cooperate with set_Wextra in setting
6588 warn_unused_parameter.
6589 (rest_of_compilation): No need to check extra_warnings as
6590 well as warn_uninitialized.
6592 * c-typeck.c (build_binary_op, build_conditional_expr):
6593 No need to check extra_warnings as well as warn_sign_compare.
6594 (internal_build_compound_expr): No need to check extra_warnings
6595 as well as warn_unused_value.
6596 * function.c (expand_function_end): No need to check extra_warnings
6597 as well as warn_unused_parameter.
6598 * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
6599 as well as warn_unused_value.
6601 * doc/invoke.texi: Clarify documentation of -Wsign-compare.
6603 * Makefile.in: Disable -Werror for gengtype-lex.o.
6605 2003-05-03 Olivier Hainque <hainque@act-europe.fr>
6607 * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
6608 * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
6609 * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
6610 * calls.c (emit_call_1): Likewise.
6611 (expand_call): For calls initializing constant memory, replace
6612 emission of standalone mem /u clobber with function usage entry.
6613 * expr.c (emit_block_move_via_libcall): Likewise.
6614 * cse.c (count_reg_usage, case EXPR_LIST): New case.
6615 * flow.c (propagate_one_insn): Pass entire operand of
6616 CALL_INSN_FUNCTION_USAGE to mark_used_regs.
6617 * integrate.c (try_constants): For CALL_INSNs, substitute constants
6618 within the FUNCTION_USAGE also.
6619 * loop.c (prescan_loop): Note clobbers of const mem mentioned in
6620 FUNCTION_USAGE lists.
6621 * reload1.c (replace_pseudos_in): Renamed.
6622 (reload): Use it for clobbers surviving until the end of the reload.
6624 2003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6626 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
6627 gen_lowpart on non-integer modes.
6629 * stor-layout.c (place_field): When adjusting offset_align, use
6630 desired_align, not DECL_ALIGN.
6632 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
6634 * c-decl.c (pending_invalid_xref_file): Remove.
6635 (pending_invalid_xref_line): Remove.
6636 (pending_invalid_xref_location): New.
6637 (lookup_label): Use location_t and input_location directly.
6638 (lookup_tag): Likewise.
6639 (pending_xref_error): Likewise.
6640 (c_expand_body_1): Likewise.
6641 * c-common.c (x_expand_start_cond): Likewise.
6642 * c-semantics.c (genrtl_for_stmt): Likewise.
6643 (find_reachable_label): Likewise.
6644 * expr.c (expand_expr): Likewise.
6645 * integrate.c (output_inline_function): Likewise.
6646 * tree-inline.c (find_alloca_call): Likewise.
6647 (find_builtin_longjmp_call): Likewise.
6648 * gcc.c (input_filename): Make static.
6650 2003-05-03 Richard Sandiford <rsandifo@redhat.com>
6652 * config/mips/mips.md: Fix comment typo.
6654 * config/mips/mips.c (mips_integer_op): New structure.
6655 (MIPS_MAX_INTEGER_OPS): Define.
6656 (mips_const_insns): Use mips_build_integer to determine the number
6657 of instructions needed to load a CONST_INT.
6658 (move_operand): Reject compound CONST_INTs.
6659 (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
6660 (mips_move_integer): New fn.
6661 (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
6662 (mips_legitimize_move): Only legitimize constants when moving
6663 word or subword values.
6665 2003-05-02 Matt Kraai <kraai@alumni.cmu.edu>
6667 * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
6669 2003-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6671 * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
6674 2003-05-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6675 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6677 * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
6678 Hernandez, and Kazu Hirata. Update Richard Henderson.
6680 2003-05-02 Geoffrey Keating <geoffk@apple.com>
6682 * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
6683 to tentative declaration.
6685 * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
6686 (SYMBOL_FLAG_SMALL_V4): Delete.
6687 * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
6688 (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
6689 (rs6000_elf_in_small_data_p): Add extra section names. Add
6690 comment about TREE_PUBLIC test.
6692 * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
6693 expand_stmt on result of expand_unreachable_stmt.
6695 2003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6697 * doc/contrib.texi (Contributors): Add Daniel Berlin.
6699 2003-05-02 David Edelsohn <edelsohn@gnu.org>
6701 * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
6704 * config/rs6000/rs6000.c (symbol_ref_operand): Check
6705 SYMBOL_REF_FUNCTION_P on AIX.
6706 (current_file_function_operand): Same.
6707 * config/rs6000/rs6000.md (call,call_value): Force non-function
6708 symbol_ref into register on AIX.
6710 2003-05-02 Alan Modra <amodra@bigpond.net.au>
6712 * calls.c (struct arg_data): Move offset, slot_offset, size and
6713 alignment_pad to struct locate_and_pad_arg_data. Update all refs.
6714 (initialize_argument_information): Adjust call to locate_and_pad_parm.
6715 Delete alignment_pad var. Don't calculate slot_offset here.
6716 (emit_library_call_value_1): Delete alignment_pad, offset and size
6717 vars. Use struct locate_and_pad_arg_data instead. Adjust refs.
6718 Adjust call to locate_and_pad_parm. Don't tweak arg size for
6719 partial in-regs here. Formatting fixes.
6720 * expr.h (struct locate_and_pad_arg_data): New struct.
6721 (locate_and_pad_parm): Adjust declaration.
6722 * function.c (assign_parms): Localize vars. Use "locate" instead of
6723 other arg location vars. Don't invoke FUNCTION_ARG or
6724 FUNCTION_INCOMING_ARG unless pretend_named is different from
6725 named_arg. Heed MUST_PASS_IN_STACK and set up "partial" before
6726 calling locate_and_pad_parm. Adjust locate_and_pad_parm call.
6727 Use slot_offset for stack home of reg parms. Correct test for
6728 parm passed in memory. Formatting fixes.
6729 (locate_and_pad_parm): Add "partial" to params. Replace offset_ptr
6730 arg_size_ptr and alignment pad with "locate". Set slot_offset here.
6731 Correct initial_offset_ptr handling. Localize vars. Always pad
6732 locate->offset even when in_regs.
6734 2003-05-02 Nathan Sidwell <nathan@codesourcery.com>
6736 * Makefile.in (TREE_H): Replace location.h with input.h.
6737 (GTFILES) Remove location.h
6738 (gt-lists.h): Replace gt-location.h with gt-input.h
6739 * input.h (input_filename, input_line): Remove variables.
6740 (location_s, location_t): Move from location.h.
6741 (input_location): New.
6742 (input_filename, input_line): New #defines.
6743 * location.h: Remove.
6744 * tree.h: Replace location.h with input.h.
6745 (input_filename, input_line): Remove.
6746 * diagnostic.h: Replace location.h with input.h.
6747 * gcc.h (input_filename, input_filename_length): Remove declarations.
6748 * toplev.c (input_filename, input_line): Remove.
6749 (input_location): Define.
6750 (push_srcloc, pop_srcloc): Adjust.
6751 * diagnostic.c (diagnostic_report_current_module): Adjust.
6753 2003-05-02 Nick Clifton <nickc@redhat.com>
6755 * configure.in: Add xstormy16 to list of targets that has a nop
6756 instruction and hence which can be tested to see if the
6757 assembler supports the --gdwarf2 switch.
6758 * configure: Regenerate.
6760 2003-05-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
6763 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
6764 alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
6765 Avoid undefined shifts by making the shift operand unsigned.
6767 2003-05-01 DJ Delorie <dj@redhat.com>
6769 * reload.c (find_reloads): Also check that all of a multi-reg
6770 value is in the class.
6772 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
6774 * scan.h (lineno): Revert the rename here.
6776 2003-05-01 Stan Shebs <shebs@apple.com>
6778 * config/darwin.c (darwin_encode_section_info): Call
6779 default_encode_section_info.
6781 2003-05-01 David Edelsohn <edelsohn@gnu.org>
6783 * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
6784 (movsi_internal1): Use new mfjmpr attribute.
6785 (movhi_internal): Same.
6786 (movqi_internal): Same.
6787 (movcc_internal1): Same.
6788 (movdi_internal64): Same.
6789 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
6790 power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
6791 * config/rs6000/40x.md: Add fpu_405.
6792 * config/rs6000/power4.md: Merge power4lsu and power4disp automata
6793 into power4misc automata. Remove extraneous parentheses.
6794 * config/rs6000/440.md: New file.
6795 * config/rs6000/rs6000.c (processor_target_table): Add 440,
6796 440fp. Rename 405f to 405fp.
6797 (function_arg_padding): Correct formatting.
6798 (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
6800 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
6802 * input.h (lineno): Rename to ...
6803 (input_line): ... here.
6804 * tree.h (lineno): Rename to ...
6805 (input_line): ... here.
6806 * scan.h (lineno): Rename to ...
6807 (input_line): ... here.
6808 * toplev.c (lineno): Rename to ...
6809 (input_line): ... here.
6810 (push_srcloc, pop_srcloc): Rename lineno to input_line.
6811 * c-common.c (c_expand_start_cond, fname_decl): Likewise.
6812 * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
6813 store_parm_decls, c_expand_body_1): Likewise.
6814 * c-errors.c (pedwarn_c99): Likewise.
6815 * c-format.c (status_warning): Likewise.
6816 * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
6817 * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
6818 * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
6819 * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
6820 gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
6821 genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
6822 genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
6823 build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
6824 prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
6825 * coverage.c (create_coverage): Likewise.
6826 * diagnostic.c (pedwarn, sorry, error, fatal_error,
6827 internal_error, warning, diagnostic_report_current_module,
6829 * expr.c (expand_expr): Likewise.
6830 * integrate.c (expand_inline_function,
6831 output_inline_function): Likewise.
6832 * rtl-error.c (file_and_line_for_asm): Likewise.
6833 * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
6834 walk_tree): Likewise.
6835 * tree.c (make_node): Likewise.
6836 * ada, cp, f, java, objc, treelang: Likewise.
6837 * objc/objc-act.c (objc_init): Rename lineno to input_line.
6838 (build_module_descriptor, build_selector_translation_table,
6839 build_protocol_template, build_method_prototype_list_template,
6840 build_category_template, build_selector_table,
6841 build_class_template, build_super_template, build_ivar_template,
6842 build_ivar_list_template, build_method_list_template,
6843 build_method_template, add_instance_variable): Likewise.
6845 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
6846 name from input_filename.
6848 2003-04-30 Eric Christopher <echristo@redhat.com>
6849 Richard Sandiford <rsandifo@redhat.com>
6851 * configure: Regenerate from patches below.
6852 * combine.c (gen_lowpart_for_combine): Fix comment and add tests
6853 for all symbolic operands.
6854 * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
6856 * config/mips/linux.h: Fix typo.
6857 * Merge from mips-3_4-rewrite branch:
6859 2003-04-07 Richard Sandiford <rsandifo@redhat.com>
6861 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
6862 handling local labels when TARGET_ABICALLS.
6864 2003-04-04 Richard Sandiford <rsandifo@redhat.com>
6866 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
6868 (mips_expand_call): Likewise.
6869 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
6870 (FIXED_REGISTERS): Clear $31 entry.
6871 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
6872 (EPILOGUE_USES): Define.
6873 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
6874 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
6875 (override_options): Add a 'j' register class.
6876 (mips_expand_call): Handle sibcalls
6877 (mips_expand_epilogue): Handle epilogues for sibcalls.
6878 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
6879 (sibcall_epilogue): New pattern.
6880 (call, call_value): Adjust calls to mips_expand_call.
6881 (sibcall, sibcall_value): New expanders.
6882 (sibcall_internal, sibcall_value_internal): New patterns.
6883 (sibcall_value_multiple_internal): New pattern.
6885 2003-03-25 Richard Sandiford <rsandifo@redhat.com>
6887 * config/mips/mips.md (extended_mips16): New attribute.
6888 (define_attr length): Default to 8 if extended_mips16 == yes.
6889 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
6890 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
6891 (call_internal): Set extended_mips16 to yes for direct jumps.
6892 Remove redundant mode attribute.
6893 (call_value_internal, call_value_multiple_internal): Likewise.
6894 (call_split): Remove redundant mode attribute.
6895 (call_value_split, call_value_multiple_split): Likewise.
6897 * config/mips/mips.c (mips_symbol_insns): Rework. Fix handling
6898 of unaligned offsets.
6900 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
6903 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
6905 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
6906 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
6909 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
6911 * config/mips/mips.h (ADDRESS_COST): Define.
6913 2003-03-20 Richard Sandiford <rsandifo@redhat.com>
6915 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
6916 'R' to 'U'. Make 'R' mean a single-instruction memory reference.
6917 * config/mips/mips.md: Replace 'R' constraints with 'U'.
6919 2003-03-18 Richard Sandiford <rsandifo@redhat.com>
6921 * config/mips/mips.md (truncdisi2): Add commentary. Use sll instead
6922 of a two-instruction sequence. Add register->memory alternative.
6923 (truncdihi2, truncdiqi2): Likewise.
6924 Rework shift/truncate instructions so that they only handle right
6925 shifts of 32 (or more, in the case of arithmetic shifts).
6926 Add patterns for truncate/sign-extend.
6928 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
6930 * configure.in (mips*-*-*): Check for explicit relocation support.
6931 * configure: Regenerate.
6933 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
6935 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
6936 and -mno-explicit-relocs.
6937 (MASK_EXPLICIT_RELOCS): Define.
6938 (TARGET_EXPLICIT_RELOCS): Use it.
6939 (mips_split_addresses): Remove declaration.
6940 * config/mips/mips.c (override_options): Update comment for
6941 mips_split_addresses. Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
6943 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
6945 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
6946 a CONST as identity. Check the return value of gen_lowpart_common.
6948 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
6950 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
6951 references for TARGET_EXPLICIT_RELOCS.
6952 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
6955 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
6957 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
6958 (addsi3): Remove redundant constraints.
6959 (addsi3_internal): Use separate register & constant alternatives.
6960 Use a 'Q' constraint and "addiu" insn for the latter.
6961 (adddi3_internal_3, addsi3_internal_2): Likewise.
6963 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
6965 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
6966 (mips_expand_unaligned_store): Declare.
6967 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
6968 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
6969 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
6970 (UNSPEC_ULD, UNSPEC_USD): Remove.
6971 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
6972 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
6973 (extv, extzv): Use mips_expand_unaligned_load.
6974 (insv): Use mips_expand_unaligned_store. Use a reg_or_0_operand
6975 predicate for operand 3.
6976 (movsi_ulw, movsi_usw): Replace with...
6977 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
6978 (movdi_uld, movdi_usd): Likewise replace with...
6979 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
6981 2003-02-26 Richard Sandiford <rsandifo@redhat.com>
6983 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
6984 * config/mips/mips.h (LEA_REGS): New register class.
6985 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
6986 (GR_REG_CLASS_P): Include LEA_REGS.
6987 (DANGEROUS_FOR_LA25_P): New macro.
6988 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
6989 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
6990 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
6991 entries to LEA_REGS.
6992 (mips_global_pic_constant_p): New function.
6993 (override_options): Add 'e' register constraint.
6994 (mips_secondary_reload_class): Return LEA_REGS when reloading
6995 a dangerous constant into a class containing $25.
6996 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
6997 (movsi_internal): Likewise.
6999 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
7001 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
7002 * config/mips/mips.md (call_split): New insn.
7003 (call_value_split, call_value_multiple_split): New insns.
7004 (call_internal): Turn into a define_insn_and_split. Split the
7005 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
7006 (call_value_internal, call_value_multiple_internal): Likewise.
7008 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
7010 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
7011 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
7012 (mips_encode_section_info): Don't take symbol visibility into
7013 account if TARGET_ABICALLS. Add more commentary.
7014 * config/mips/mips.md: Add commentary above reloc constants.
7016 2003-02-12 Richard Sandiford <rsandifo@redhat.com>
7018 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
7019 from mips_legitimize_move. Legitimize constant pool references.
7020 (mips_legitimize_move): Call mips_legitimize_const_move. Attach
7021 a REG_EQUAL note to the last instruction.
7023 2003-02-11 Richard Sandiford <rsandifo@redhat.com>
7025 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
7026 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
7027 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
7028 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
7029 * config/mips/mips.md (UNSPEC_HIGH): New constant.
7030 (UNSPEC_RELOC_GPREL16): Rename to...
7031 (RELOC_GPREL16): ...this.
7032 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
7033 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
7034 (macro_calls): New attribute.
7035 (length): Use it to set the default length of calls. Don't allow
7036 calls to have delay slots if macro_calls is "yes".
7037 (luisi, luidi): New patterns.
7038 (lowsi, lowdi): Use '%R' to print the relocation.
7039 (lowdi_extend): Remove.
7040 (loadgp): Remove mode from operand 0. Use '%0' instead of '%a0'.
7041 (call_internal): Merge alternatives. Always use "jal".
7042 (call_value_internal, call_value_multiple_internal): Likewise.
7043 (reloc_gprel16): Remove.
7044 * config/mips/mips.c (mips_got_alias_set): New variable.
7045 (mips_classify_constant): Handle the new relocation constants.
7046 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
7047 (mips_symbolic_address_p): Return false if generating explicit relocs.
7048 Otherwise allow local PIC symbols to have an offset.
7049 (mips_splittable_symbol_p): New function.
7050 (mips_classify_address): Use it to check whether a LO_SUM is valid.
7051 (mips_const_insns): Always accept HIGH.
7052 (call_insn_operand): Don't accept global symbols if using explicit
7054 (move_operand): Don't accept HIGH when generating PIC.
7055 (mips_reloc, mips_lui_reloc): New functions.
7056 (mips_force_temporary): Remove MODE argument. Expect VALUE to
7057 be a valid right-hand-side for a SET pattern.
7058 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
7059 (mips_emit_high): New function.
7060 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
7061 case. Use mips_splittable_symbol_p to check whether a LO_SUM
7062 address should be used. Use mips_emit_high to generate the
7063 high part of such an address. Adjust the global symbol + offset
7064 case to match the change to mips_force_temprorary.
7065 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
7066 If generating explicit-reloc PIC, load the address of global
7067 symbols from the GOT. Use mips_emit_high to emit the high part
7069 (mips_simplify_dwarf_addr): New function.
7070 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
7071 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
7072 (mips_expand_call): Load the addresses of global functions using
7073 %call* relocs if generating explicit-reloc PIC. Don't generate
7074 an exception_receiver pattern.
7075 (override_options): Initialize mips_got_alias_set.
7076 (print_relocation): Remove in favor of...
7077 (mips_reloc_string): ...this new function.
7078 (print_operand): Handle '%R'. Use mips_reloc_string.
7079 (print_operand_address): Use print_operand to print the symbolic
7080 part of a LO_SUM address.
7081 (mips_output_function_prologue): Use .cprestore, reverting last patch.
7082 (mips_encode_section_info): Factor out DECL_RTL accesses. Reverse
7083 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
7086 2003-02-02 Eric Christopher <echristo@redhat.com>
7088 * config/mips/mips.c (mips_sign_extend): Remove.
7089 * config/mips/mips-protos.h: Ditto.
7090 * config/mips/mips.md (movdi_internal2_extend): Remove.
7091 (extendsidi2): Fix mode of convert_memory_address.
7093 2003-01-24 Eric Christopher <echristo@redhat.com>
7095 * config/mips/mips.md: Rewrite zero_extend* and extend*
7096 patterns. Use explicit instructions and split after reload
7097 for register extensions.
7098 (ashlsi3_internal1_extend): New combiner pattern for
7099 shift and extend combinations.
7100 * config/mips/mips.h: Change Pmode back to ptr_mode
7101 for performance enhancement.
7102 * combine.c (expand_compound_operation): Make sure
7103 that zero_extend operation is profitable.
7105 2003-01-14 Richard Sandiford <rsandifo@redhat.com>
7107 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
7108 addresses depend on ptr_mode rather than Pmode.
7109 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
7110 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
7111 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
7112 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
7113 * config/mips/mips.md (tablejump): Likewise. Remove Pmode
7114 condition for selecting cpaddsi or cpadddi: use cpadd instead.
7115 (tablejump_internal1): Remove condition.
7116 (tablejump_internal2): Change condition to TARGET_64BIT.
7117 (cpaddsi): Rename to...
7121 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
7123 * config/mips/mips-protos.h (mips16_constant_after_function_p,
7124 mips_address_cost, mips_check_split, double_memory_operand,
7125 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
7126 pic_address_needs_scratch, symbolic_operand): Remove declarations.
7127 (mips_legitimate_address_p): Return bool.
7128 (mips_address_insns, mips_fetch_insns, mips_const_insns,
7129 mips_legitimize_address, mips_legitimize_move,
7130 mips_expand_call): Declare.
7131 (mips_return_addr): Move outside #ifdef RTX_CODE.
7133 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
7134 (PIC_FN_ADDR_REG): New reg_class.
7135 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
7136 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
7137 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
7138 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
7139 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
7140 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
7141 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
7142 (LEGITIMATE_PIC_OPERAND): Undefine.
7143 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
7144 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
7145 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
7146 (FUNCTION_MODE): Change to SImode.
7147 (CONST_COSTS): Use mips_const_insns to calculate the cost of
7148 most constants. Treat const_artih_operands specially if they
7149 occur in a PLUS or MINUS.
7150 (CONSTANT_POOL_COST): New macro.
7151 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
7152 Add LO_SUM handling.
7153 (ADDRESS_COST): Undefine.
7154 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
7155 Add CONST to the list of codes for arith_operand. Add LABEL_REF
7156 to call_insn_operand and remove CONST_INT.
7158 * config/mips/mips.c: Include integrate.h.
7159 (SINGLE_WORD_MODE_P): New macro.
7160 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
7161 (mips_constant_info, mips_address_info): New structs.
7162 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
7163 (mips_classify_constant, mips_classify_symbol,
7164 mips_valid_base_register_p, mips_symbolic_address_p,
7165 mips_classify_address, mips_symbol_insns,
7166 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
7167 mips_fetch_insns, mips_force_temporary, mips_add_offset,
7168 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
7169 mips_print_relocation): New functions.
7170 (const_arith_operand): New operand predicate.
7171 (arith_operand): Use it.
7172 (mips_const_double_ok, mips16_simple_memory_operand,
7173 simple_memory_operand, double_memory_operand, mips_check_split,
7174 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
7175 mips16_gp_offset_p, mips16_output_gp_offset,
7176 mips16_constant_after_function_p, mips16_constant): Remove.
7177 (call_insn_operand): Be more fussy about symbolic constants.
7178 Use register_operand.
7179 (move_operand): Use mips_symbolic_address_p to check symbolic
7180 operands and general_operand to check the rest.
7181 (symbolic_operand): Use mips_classify_constant.
7182 (mips_legitimate_address_p): Use mips_classify_address.
7183 (mips_move_1word): Combine handling of symbolic addresses.
7184 Remove special treatment of gp-relative loads for TARGET_MIPS16.
7185 (move_move_2words): Likewise. Assume addresses are offsettable
7186 if they need to refer to more than one word. Add HIGH handling.
7187 (mips_restore_gp): Use ptr_mode for the GP save slot.
7188 (mips_expand_call): New function, combining the old mips.md
7189 call and call_internal define_expands. If the address isn't
7190 a call_insn_operand, force it into a register. For SVR4 PIC,
7191 emit an exception_receiver instruction after the call.
7192 (override_options): Only override flag_pic for TARGET_ABICALLS
7193 if it is currently zero. Allow mips_split_addresses when
7194 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
7195 Add new register class letter, 'c'.
7196 (print_operand): Use mips_classify_constant for constant operands.
7197 (print_operand_address): Use mips_classify_address.
7198 (mips_output_function_prologue): Don't use .cprestore.
7199 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
7200 via the frame pointer if current_function_calls_eh_return.
7201 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
7202 to mark whether a symbol is local or global.
7203 (build_mips16_call_stub): Expect the address of the function rather
7204 than a MEM reference to it. Update call generation sequences.
7205 (mips16_optimize_gp): Remove Pmode checks. Temporarily disable
7206 small-data adjustments.
7208 * config/mips/mips.md: Remove 'R'/'m' memory distinction. Use default
7209 length for loads and stores.
7210 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
7211 (define_attr type): Add const and prefetch.
7212 (define_attr length): Use mips_const_insns for const instructions.
7213 Use mips_fetch_insns for load and store instructions.
7214 (define_attr single_insn): New.
7215 (define_attr can_delay): Use it.
7216 (define_attr abicalls): Remove.
7217 (define_delay): Use can_delay. Always allow calls to have delay slots.
7218 (addsi3_internal_2): Add 'Q' constraint.
7219 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
7221 (lowsi): Renamed from low.
7222 (lowdi): New pattern.
7223 (movdi, movsi): Use mips_legitimize_move. Remove define_split.
7224 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
7225 (loadgp): Change operand 0 to an immediate_operand.
7226 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
7228 (cpaddsi, cpadddi): New patterns.
7229 (tablejump_internal3, tablejump_internal4): Remove define_expands
7230 and associated define_splits.
7231 (call, call_value): Use mips_expand_call.
7232 (call_internal): New, replacing all existing call_internal* insns.
7233 (call_value_internal): Likewise call_value_internal*.
7234 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
7235 (untyped_call): Remove if (operands[0]) magic.
7236 (prefetch_si_address, prefetch_si): Change type to "prefetch".
7237 (prefetch_di_address, prefetch_di): Likewise.
7238 (leasi, leadi): Remove.
7239 (reloc_gprel16): New.
7241 * config/mips/5400.md (ir_vr54_hilo): Include const type.
7242 * config/mips/5500.md (ir_vr55_hilo): Likewise.
7243 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
7245 2003-01-08 Eric Christopher <echristo@redhat.com>
7247 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
7248 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
7249 configure check for libgloss.
7250 * config/mips/elf64.h: Ditto.
7251 * config/mips/mips.c: Remove ABI_MEABI.
7252 * config/mips/mips.h: Ditto.
7254 2002-11-05 Richard Sandiford <rsandifo@redhat.com>
7257 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
7258 (muldi3_internal): Remove outdated comment.
7259 (*muls_di, *umuls_di): Fix comment and 64-bitness.
7260 (*smsac_di, *umsac_di): Likewise. Reformat.
7261 (umulsi3_highpart): Minor formatting tweaks.
7262 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI. Remove
7263 redundant scratch operand. Minor formatting tweak.
7264 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
7265 (umulsi3_highpart_neg_mulhi_internal): Likewise. Fix asm template.
7266 (smulsi3_highpart): As for the unsigned version.
7267 (smulsi3_highpart_internal): Likewise.
7268 (smulsi3_highpart_mulhi_internal): Likewise.
7269 (smulsi3_highpart_neg_mulhi_internal): Likewise.
7270 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
7271 (*smul_acc_di): Remove duplicated pattern.
7272 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
7273 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
7274 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
7276 2002-10-22 Eric Christopher <echristo@redhat.com>
7278 * config/mips/mips-protos.h (mips_return_addr): New.
7279 * config/mips/mips.c (mips_return_addr): New.
7280 (movdi_operand): Remove.
7281 (se_register_operand): Ditto.
7282 (se_reg_or_0_operand): Ditto.
7283 (se_uns_arith_operand): Ditto.
7284 (se_arith_operand): Ditto.
7285 (se_nonmemory_operand): Ditto.
7286 (extend_operator): Ditto.
7287 (highpart_shift_operator): Ditto.
7288 (mips_initial_elimination_offset): Remove return address pointer
7290 (mips_reg_names): Remove $ra.
7291 (mips_regno_to_class): Ditto.
7292 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
7294 (POINTER_BOUNDARY): Remove.
7295 (POINTERS_EXTEND_UNSIGNED): Define to 0.
7296 (PROMOTE_MODE): Promote to Pmode.
7297 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
7298 (Pmode): Define to TARGET_64BIT.
7299 (FUNCTION_MODE): Define as Pmode.
7300 (mips_args): Remove deleted functions.
7301 (SIZE_TYPE): Depend on POINTER_SIZE.
7302 (PTRDIFF_TYPE): Ditto.
7303 (FIXED_REGISTERS): Fix extra registers.
7304 (CALL_USED_REGISTERS): Ditto.
7305 (CALL_REALLY_USED_REGISTERS): Ditto.
7306 (RAP_REG_NUM): Remove.
7307 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
7308 (RETURN_ADDR_RTX): Define to mips_return_addr.
7309 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
7310 (CAN_ELIMINATE): Ditto.
7311 * config/mips/mips.md: For DImode patterns, take into account
7312 deletions above. Split mulsidi patterns into sign_extend and
7315 2002-10-16 Richard Sandiford <rsandifo@redhat.com>
7316 Michael Meissner <meissner@redhat.com>
7318 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
7319 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
7320 mop up unnecessarly moves through LO.
7321 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
7322 (*macc): New pattern for ISA_HAS_MACC. Add define_peephole2s to
7323 change mtlo/macc sequences into mul/add sequences when a three-
7324 address mul is available.
7325 (*macc2): New pattern. Add a define_peephole2 to generate it.
7326 (*mul_sub_si): Fix contraint for operand 5.
7327 (*muls): Use in 32-bit code as well.
7328 (*msac): Likewise. Use msub instead of msac in vr5500 code
7329 if the destination is LO. Remove duplicate define_split.
7330 (*muls_di): Use only in 32-bit code. Adjust rtl accordingly.
7331 (*msac_di): Likewise. Fix formatting.
7332 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
7333 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
7334 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
7335 (*xmulsi3_neg_highpart_mulhi): Likewise.
7336 (*mul_acc_64bit_di): Remove.
7337 (*mul_acc_di): Use only in 32-bit code. Handle ISA_HAS_MACC as well.
7339 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
7341 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
7342 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
7343 (MULTILIB_DIRNAMES): Remove long32.
7344 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
7345 (MULTILIB_REDUNDANT_DIRS): Remove.
7347 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
7349 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
7350 * gcc.c (driver_self_specs): New variable.
7351 (do_self_spec): New function.
7352 (main): Use it to process driver_self_specs.
7354 2002-10-09 Richard Sandiford <rsandifo@redhat.com>
7356 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
7357 Remove DImode define_split for !TARGET_64BIT.
7358 (anddi3): Remove !TARGET_64BIT support from here as well.
7359 Change operand 2's predicate to se_uns_arith_operand.
7360 Add constant alternatives to define_insn.
7361 (iordi3, xordi3, *nordi3): Likewise.
7362 (anddi3_internal1, xordi3_immed): Remove.
7364 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7366 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
7367 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
7368 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
7369 * config/mips/mips.md: Apply same renaming here.
7371 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7373 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
7374 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
7375 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
7376 * config/mips/mips.md (define_attr cpu): Remove r4320.
7377 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
7379 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7381 * config/mips/mips.c (mips16_strings): New variable.
7382 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
7383 symbol in mips16_strings. Free the list.
7384 (mips_encode_section_info): Keep track of local strings.
7386 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7388 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
7389 (sordered_df, sordered_sf): Remove.
7390 * config/mips/mips.c (get_float_compare_codes): New fn.
7391 (gen_int_relational, gen_conditional_move): Use it.
7393 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
7395 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
7396 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
7397 * config/mips/mips.c (fcc_register_operand): New function.
7398 (mips_emit_fcc_reload): New function, extracted from reload_incc.
7399 (override_options): Allow TFmode values in float registers
7401 * cnfig/mips/mips.md (reload_incc): Change destination prediate
7402 to fcc_register_operand. Remove misleading source constraint.
7403 Use mips_emit_fcc_reload.
7404 (reload_outcc): Duplicate reload_incc.
7407 2003-04-30 Diego Novillo <dnovillo@redhat.com>
7409 * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
7411 2003-04-30 Geoffrey Keating <geoffk@apple.com>
7413 * tree-inline.c (inlinable_function_p): Back out last change, it's
7416 2003-04-30 Steven Bosscher <steven@gcc.gnu.org>
7418 * ggc-page.c (TREE_EXP_SIZE): Define.
7419 (extra_order_size_table): New entry for expr trees with
7422 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
7424 * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
7425 (c_expand_start_cond): Adjust.
7426 (c_expand_end_cond): Don't use warning_with_file_and_file.
7427 (shadow_warning): Likewise.
7429 2003-04-30 Nathan Sidwell <nathan@codesourcery.com>
7431 * tree.h (DECL_POINTER_DEPTH): Remove.
7432 (struct tree_decl): Remove pointer_depth.
7434 2003-04-30 Janis Johnson <janis187@us.ibm.com>
7436 * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
7437 * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
7438 (rs6000_xcoff_encode_section_info): Remove.
7439 (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
7440 (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
7441 (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
7442 Use SYMBOL_REF_FLAGS.
7443 (rs6000_elf_encode_section_info): Call default_encode_section_info for
7444 generic flags, use SYMBOL_REF_FLAGS; code cleanups.
7445 * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
7446 (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
7447 * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
7448 (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
7450 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
7452 * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
7454 2003-04-30 Andreas Schwab <schwab@suse.de>
7456 * doc/extend.texi (Other Builtins): Enclose multiple word data
7457 type in braces for @deftypefn.
7459 2003-04-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7461 * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
7463 * doc/install.texi (--enable-threads): Document "gnat" option.
7465 2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
7467 * diagnostic.h (output_formatted_scalar): Tweak.
7468 * diagnostic.c (output_long_decimal): Likewise.
7469 (output_unsigned_decimal): Likewise.
7470 (output_long_unsigned_decimal): Likewise.
7471 (output_octal): Likewise.
7472 (output_long_octal): Likewise.
7473 (output_hexadecimal): Likewise.
7474 (output_long_hexadecimal): Likewise.
7475 (output_pointer): New function.
7476 (output_format): Use it. Recognize "%p" format specifier.
7478 2003-04-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7480 * function.c (purge_addressof_1): Postpone insn in fewer cases.
7482 2003-04-29 Geoffrey Keating <geoffk@apple.com>
7484 * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
7485 call abort() after running out of stack space.
7487 * c-typeck.c (function_types_compatible_p): Ignore incompatible
7488 'volatile' qualifiers on a function's return type in GNU mode.
7490 2003-04-29 Aldy Hernandez <aldyh@redhat.com>
7492 * expr.c (emit_group_load): Dump parallels of simd types to
7495 2003-04-29 Vladimir Makarov <vmakarov@redhat.com>
7497 * genautomata.c (add_vect): Check undefined value for range type
7500 2003-04-29 Phil Edwards <pme@gcc.gnu.org>
7502 * configure.in: More general test for cmp --ignore-initial.
7503 * configure: Regenerate.
7505 2003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7507 * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
7508 (layout_decl, place_field): Likewise.
7509 Also make minor type and whitespace changes.
7511 * tree.c (save_expr): Don't fold a COMPONENT_REF.
7513 2003-04-29 Olivier Hainque <hainque@act-europe.fr>
7515 * calls.c (expand_call): When modes of target and valreg match, force
7516 sibcall failure when target is a MEM.
7518 2003-04-29 Geoffrey Keating <geoffk@apple.com>
7520 * tree-inline.c (inlinable_function_p): Don't support inlining
7521 functions using varargs.
7523 * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
7525 * dwarf2out.c (output_call_frame_info): No need to output EH
7526 unwind information if all_throwers_are_sibcalls.
7528 * c-semantics.c (expand_unreachable_stmt): Return a tree.
7529 (expand_stmt): Update for change to expand_unreachable_stmt.
7530 (expand_unreachable_if_stmt): Likewise.
7532 * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
7534 2003-04-29 Jason Merrill <jason@redhat.com>
7537 * jump.c (never_reached_warning): Really stop looking if we reach
7538 the beginning of the function.
7540 2003-04-29 Bob Wilson <bob.wilson@acm.org>
7542 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
7543 Remove redundant macros.
7544 (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
7545 (LOCAL_LABEL_PREFIX): Define unconditionally.
7546 (NO_DOT_IN_LABEL): Clarify comment.
7547 * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
7548 definition to "long int".
7550 2003-04-29 Alexander Kabaev <kan@FreeBSD.ORG>
7553 * gengtype-yacc.y: Improve portability.
7555 2003-04-29 Zack Weinberg <zack@codesourcery.com>
7557 * config.gcc: Install obsolete target list for GCC 3.3.
7558 * doc/install.texi: Mention in specific-target instructions
7559 that certain configurations are deprecated.
7561 2003-04-29 Zack Weinberg <zack@codesourcery.com>
7563 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
7565 2003-04-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
7567 * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
7568 * gcc.c (display_help): Likewise.
7569 * toplev.c (f_options): Likewise.
7570 * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
7571 * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
7572 * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
7573 * config/s390/s390.h (TARGET_SWITCHES): Likewise.
7574 * config/v850/v850.h (TARGET_SWITCHES): Likewise.
7576 2003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
7578 * varasm.c (default_assemble_visibility): Use assemble_name.
7580 2003-04-29 David O'Brien <obrien@FreeBSD.org>
7582 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
7583 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
7584 (SIZE_TYPE): New macro.
7585 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
7586 (SET_ASM_OP): New macro.
7587 (HANDLE_SYSV_PRAGMA): New macro.
7588 (ASM_WEAKEN_LABEL): New macro.
7590 2003-04-28 Mark Mitchell <mark@codesourcery.com>
7593 * tree-inline.c (expand_call_inline): Call push_srcloc when
7594 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
7596 2003-04-28 Mike Stump <mrs@apple.com>
7598 * gdbinit.in: Update to reflect new identifier structure.
7600 2003-04-28 Zack Weinberg <zack@codesourcery.com>
7602 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
7603 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
7604 struct tree_complex, struct tree_vector): Remove RTL field.
7605 (CONSTRUCTOR_ELTS): Use elt 0.
7606 * tree.def (CONSTRUCTOR): Delete first of its two operands.
7607 * varasm.c (output_constant_def): Remove early exit if
7608 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
7609 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
7610 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
7611 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
7613 2003-04-28 Jakub Jelinek <jakub@redhat.com>
7615 * c-decl.c (finish_decl): When prototype with asmspec is found
7616 for built-in, adjust built_in_decls as well as expr.c decls.
7617 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
7618 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
7619 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
7621 2003-04-28 Richard Henderson <rth@redhat.com>
7623 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
7624 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
7625 integral constant mult operand.
7626 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
7627 (const_smulsi3_highpart_v8plus): Likewise.
7628 (const_smulsi3_highpart): Likewise.
7629 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
7630 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
7631 (const_umulsi3_highpart_v8plus): Likewise.
7632 (const_umulsi3_highpart): Likewise.
7634 2003-04-28 David O'Brien <obrien@FreeBSD.org>
7636 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
7639 2003-04-28 David O'Brien <obrien@FreeBSD.org>
7641 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
7643 2003-04-28 Jakub Jelinek <jakub@redhat.com>
7645 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
7646 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
7647 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
7649 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
7651 2003-04-28 Nick Clifton <nickc@redhat.com>
7653 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
7655 2003-04-27 Zack Weinberg <zack@codesourcery.com>
7657 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
7658 output_constant_def, use its result instead of TREE_CST_RTL (exp).
7659 Can assume it has the form (mem (symbol_ref ".LCxxx")).
7660 (expand_expr <COMPONENT_REF>): Can always just extract the
7661 relevant field of a CONSTRUCTOR.
7662 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
7663 ARRAY_RANGE_REF>): Make control flow explicit.
7664 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
7667 2003-04-27 Kazu Hirata <kazu@cs.umass.edu>
7669 * reload1.c (reg_set_luid): Fix a comment typo.
7671 2003-04-27 Zack Weinberg <zack@codesourcery.com>
7673 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
7674 struct deferred_string, const_str_htab): Kill.
7675 (n_deferred_strings): New static variable.
7676 (build_constant_desc): Set SYMBOL_REF_DECL of the new
7677 symbol_ref to point to the constant.
7678 (output_constant_def): When a deferred string is forced out,
7679 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
7680 (mark_constant): Likewise.
7681 (maybe_output_constant_def_contents): When deferring a string
7682 constant, just set STRING_POOL_ADDRESS_P and increment
7684 (mark_constant_pool): Check n_deferred_strings, not the size
7686 (init_varasm_once): No need to create const_str_htab.
7688 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
7689 SYMBOL_REF_DECL points to a constant.
7691 2003-04-26 Zack Weinberg <zack@codesourcery.com>
7693 * varasm.c (output_constant_def): Split out two new static
7694 functions, build_constant_desc and maybe_output_constant_def_contents.
7695 Restructure for comprehensibility. Don't call
7696 output_addressed_constants. Treat defstr being non-NULL for
7697 STRING_POOL_ADDRESS_P constants as an invariant.
7698 (struct deferred_string): Remove labelno field.
7699 (output_constant_def_contents): Kill labelno argument. Call
7700 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
7701 asm_out.internal_label.
7702 (mark_constant): Update call to output_constant_def_contents.
7703 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
7704 constants as an invariant.
7706 2003-04-26 Richard Henderson <rth@redhat.com>
7708 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
7709 (ix86_expand_call, ix86_rtx_consts): Likewise.
7711 2003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7713 * doc/md.texi (cmpstr): Document additional restrictions.
7715 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
7717 * flags.h (time_report): Remove.
7718 * timevar.c (timevar_enable): New.
7719 (TIMEVAR_ENABLE): Remove, use timevar_enable.
7720 (timevar_init): Rename from init_timevar.
7721 * timevar.h (timevar_init): Rename from init_timevar.
7722 * toplev.c (time_report): Make static.
7723 (do_compile): Conditionally call init_timevar first.
7724 (preprocess_options): Move some code to do_compile.
7726 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
7728 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
7730 2003-04-26 Neil Booth <neil@daikokuya.co.uk>
7732 * _cpp_lex_direct: Remove pointless code.
7734 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
7736 * doc/extend.texi (Function Attributes): Document "near" and "far"
7737 for 68HC11 and 68HC12.
7739 2003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7741 * expr.c (store_field): When making temporary for store, don't
7742 make it TYPE_QUAL_CONST.
7744 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
7746 * toplev.c (read_integral_parameter): Use "argument" in error
7747 message to distinguish it from actual invalid options.
7749 2003-04-25 Bob Wilson <bob.wilson@acm.org>
7751 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
7752 addition of __PIC__ and __pic__ macros.
7753 * config/xtensa/xtensa.h: Clean up indentation.
7755 2003-04-25 Bob Wilson <bob.wilson@acm.org>
7757 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
7758 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
7759 (SUBTARGET_CPP_SPEC): Define.
7761 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
7762 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
7763 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
7765 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7766 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
7768 2003-04-25 H.J. Lu <hjl@gnu.org>
7770 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
7772 (ia64_expand_builtin): Set rmode to SImode for
7773 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
7774 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
7775 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
7776 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
7778 2003-04-25 Phil Edwards <pme@gcc.gnu.org>
7780 * configure.in (make_compare_target): Test for GNU cmp and set this
7781 variable appropriately.
7782 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
7783 compare4-lean): Rename actual targets to slowcompare*. New compare*
7784 targets depend on names based on make_compare_target.
7785 * configure: Regenerated.
7787 2003-04-25 Richard Henderson <rth@redhat.com>
7789 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
7790 to clobber ar.pfs and ar.unat.
7791 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
7792 fix test for spilling ar.pfs to the stack.
7794 2003-04-25 Richard Henderson <rth@redhat.com>
7797 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
7798 checks during reload; use validize_mem instead of adjust_address.
7800 2003-04-26 Ben Elliston <bje@wasabisystems.com>
7802 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
7803 return values from recog_memoized().
7805 2003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7808 * gcse.c (try_replace_reg): On a successful substitution of a constant
7809 into a single set, try to simplify the source of the set.
7810 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
7813 2003-04-24 Neil Booth <neil@daikokuya.co.uk>
7815 * cpplex.c (cpp_token_len): Tighten up.
7816 (cpp_token_as_text): Need extra byte now.
7817 * cpplib.c (glue_header_name): Need extra 2 bytes.
7818 * cppmacro.c (cpp_macro_definition): Need extra byte.
7820 2003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
7822 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
7823 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
7824 where they might be not present. Use their _sp64 equivalent
7827 Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
7829 * i386.md (cvtsi2sdq): Fix typo in previous patch.
7831 2003-04-24 Krister Walfridsson <cato@df.lth.se>
7833 * configure.in: Check whether mbstowcs works.
7834 * configure, config.in: Regenerate.
7835 * intl.c: Use HAVE_WORKING_MBSTOWCS.
7837 2003-04-24 H.J. Lu <hjl@gnu.org>
7839 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
7840 for __sync_bool_compare_and_swap_di for int return type.
7842 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
7843 Change return type to int.
7844 (__sync_bool_compare_and_swap): Likewise.
7846 Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
7848 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
7849 looking for fallthru edge.
7851 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
7853 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
7854 athlon-fvector): New.
7855 (athlon_*): Revisit to match new optimization guide.
7856 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
7857 * i386.md (cvt??2?? patterns): Fix modes.
7858 (fistp patterns): Set modes.
7860 Accidentaly commited with my earlier reload patch:
7862 * reload.c (find_reloads_address_1): Reload plus at the place of
7865 2003-04-24 Nathan Sidwell <nathan@codesourcery.com>
7867 New GCOV_TAG_FUNCTION layout
7868 * coverage.c (struct function_list): Replace name with ident.
7869 (struct counts_entry): Likewise.
7871 (htab_counts_entry_hash, htab_counts_entry_eq,
7872 htab_counts_entry_del): Adjust.
7873 (reads_count_file, get_coverage_counts,
7874 coverage_begin_output, coverage_end_function): Adjust.
7875 (build_fn_info_type, build_fn_info_value): Likewise.
7876 * gcov-dump.c (tag_function): Adjust.
7877 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
7878 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
7879 * gcov.c (struct function_info): Add ident.
7880 (read_graph_file, read_count_file): Adjust.
7881 * libgcov.c (gcov_exit): Adjust.
7883 2003-04-23 Richard Henderson <rth@redhat.com>
7886 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
7887 after initialize_uninitialized_subregs; update reg info assuming
7888 new pseudos were created.
7890 2003-04-23 Neil Booth <neil@daikokuya.co.uk>
7892 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
7893 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
7894 (lex_string): Take cpp_string with full spelling.
7896 (c_lex): Update diagnostics.
7897 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
7898 (create_literal): New.
7899 (lex_string): Unterminated literals have type CPP_OTHER.
7900 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
7902 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
7903 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
7904 * cpplib.c (parse_include, do_line, do_linemarker,
7905 destringize_and_run): Update for token storing full spelling.
7906 * cpplib.h: Update token spelling types.
7907 * cppmacro.c (stringify_arg, check_trad_stringification):
7908 Update for token storing full spelling.
7910 2003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
7912 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
7914 2003-04-23 Richard Earnshaw <rearnsha@arm.com>
7916 * arm.h (TARGET_OPTIONS): Add value field.
7918 2003-04-23 Mark Mitchell <mark@codesourcery.com>
7920 * doc/extend.texi: Remove duplicate 2003 copyright date.
7922 2003-04-23 Nathan Sidwell <nathan@codesourcery.com>
7924 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
7925 (libgcov.a): Depends on LIBGCC_DEPS.
7926 * basic-block.h (profile_info): Moved here from coverage.h. Made
7928 * coverage.c (struct function_list): Fixed array of counter types.
7929 (struct counts_entry): Keyed by counter type, contains summary.
7930 (profile_info): Moved to profile.c.
7931 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
7933 (profiler_label): Remove.
7935 (set_purpose, label_for_tag, build_counter_section_fields,
7936 build_counter_section_value, build_counter_section_data_fields,
7937 build_counter_section_data_values, build_function_info_fields,
7938 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
7939 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
7940 build_ctr_info_value, build_gcov_info): New.
7941 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
7942 (reads_counts_file): Adjust.
7943 (get_coverage_counts): Takes counter number. Add summary
7945 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
7946 create counter array labels.
7947 (coverage_end_function): Adjust.
7948 (create_coverage): Adjust.
7949 (find_counters_section): Remove.
7950 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
7951 (struct section_info, struct profile_info): Remove.
7952 (profile_info): Moved to basic-block.h.
7953 (coverage_counter_ref): Takes a counter number.
7954 (get_coverage_counts): Takes a counter number. Added summary
7956 (find_counters_section): Remove.
7957 * gcov-dump.c (tag_arc_counts): Rename to ...
7958 (tag_counters): ... here. Adjust.
7959 (tag_table): Move tag_counters to 3rd entry. Remove
7960 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
7961 (dump_file): Check for counter tag values here.
7962 (tag_summary): Adjust.
7963 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
7964 * gcov-io.h (GCOV_LOCKED): New.
7965 (GCOV_TAG_ARC_COUNTS): Rename to ...
7966 (GCOV_TAG_COUNTS_BASE): ... here.
7967 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
7969 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
7970 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
7971 GCOV_TAG_IS_COUNTER): New.
7972 (struct gcov_ctr_summary): New.
7973 (struct gcov_summary): Adjust.
7974 (struct gcov_counter_section): Remove.
7975 struct gcov_counter_section_data): Remove.
7976 (struct gcov_function_info): Rename to ...
7977 (struct gcov_fn_info): ... here. Adjust.
7978 (struct gcov_ctr_info): New.
7979 (struct gcov_info): Adjust.
7980 * gcov.c (read_count_file): Adjust.
7981 (output_lines): Adjust.
7982 * libgcov.c (gcov_exit): Adjust.
7983 (__gcov_flush): Adjust.
7984 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
7985 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
7986 probably_never_executed_bb_p, compute_frequency_function): Adjust
7988 * profile.c (struct counts_entry): Remove.
7989 (profile_info): Define here.
7990 (get_exec_counts): Adjust get_coverage_counts call.
7991 (compute_branch_probablilities): Remove find_counters_section
7993 (gen_edge_profiler): Adjust coverage_counter_ref call.
7994 * tracer.c (tail_duplicate): Adjust profile_info use.
7996 2003-04-23 Roger Sayle <roger@eyesopen.com>
7998 PR optimization/10339
7999 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
8000 directly instead of unsafely transforming call into a memcmp.
8001 (expand_builtin_strncmp): Likewise.
8003 2003-04-22 Roger Sayle <roger@eyesopen.com>
8005 * alias.c (mark_constant_function): Check for constancy and
8006 purity even of void functions. Update both the function decl
8007 and the cgraph RTL info with the results.
8009 2003-04-22 Roger Sayle <roger@eyesopen.com>
8011 * real.c (do_add): Change to return a bool indicating that the
8012 result of the operation may be inexact due to loss of precision.
8013 (do_multiply): Likewise.
8014 (do_divide): Likewise.
8016 2003-04-22 Geoffrey Keating <geoffk@apple.com>
8017 Loren James Rittle <ljrittle@acm.org>
8019 * dwarf2out.c (fde_table_allocated): Mark with GTY.
8020 (decl_die_table_allocated): Likewise.
8021 (abbrev_die_table_allocated): Likewise.
8022 (line_info_table_allocated): Likewise.
8023 (separate_line_info_table_allocated): Likewise.
8024 (pubname_table_allocated): Likewise.
8025 (arange_table_allocated): Likewise.
8026 (ranges_table_allocated): Likewise.
8027 (decl_die_table_in_use): Unconditionalize; mark with GTY.
8028 (abbrev_die_table_in_use): Likewise.
8029 (line_info_table_in_use): Likewise.
8030 (separate_line_info_table_in_use): Likewise.
8031 (pubname_table_in_use): Likewise.
8032 (arange_table_in_use): Likewise.
8033 (ranges_table_in_use): Likewise.
8034 (have_location_lists): Likewise.
8035 (emitcount): New GTY-marked static, moved...
8036 (maybe_emit_file): ...from here.
8037 (label_num): New GTY-marked static, moved...
8038 (gen_internal_sym): ...from here.
8040 2003-04-22 Richard Henderson <rth@redhat.com>
8043 * rtl.h (MEM_NOTRAP_P): New.
8044 (MEM_COPY_ATTRIBUTES): Copy it.
8045 * rtlanal.c (may_trap_p): Check it.
8046 * expr.c (do_tablejump): Set it.
8047 * doc/rtl.texi (Flags): Document it.
8049 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
8051 2003-04-22 Olivier Hainque <hainque@act-europe.fr>
8053 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
8054 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
8056 2003-04-22 Vincent Celier <celier@gnat.com>
8058 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
8059 --enable-threads=gnat.
8060 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
8061 * configure.in: Add gnat to the list of thread packages
8062 * configure: Rebuild.
8063 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
8065 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
8067 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
8069 2003-04-22 Devang Patel <dpatel@apple.com>
8071 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
8073 (_cpp_copy_replacement_text): Same.
8075 2003-04-22 Neil Booth <neil@daikokuya.co.uk>
8077 * c-lex.c (c_lex): Handle CPP_OTHER differently.
8078 * cppexp.c (_cpp_parse_expr): Similarly.
8079 * cpplex.c (SPELL_CHAR): Remove.
8080 (_cpp_lex_direct): Stray chars are saved as byte strings.
8081 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
8083 (cpp_avoid_paste): Update handling of CPP_OTHER.
8084 * cpplib.h: Spell CPP_OTHER like a number.
8085 (struct cpp_token): Remove member c.
8086 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
8088 2003-04-22 David Turner <novalis@gnu.org>
8090 * gbl-ctors.h: Add special license exception.
8091 * libgcc2.h: Likewise.
8092 * tsystem.h: Likewise.
8093 * gcov-io.h: Likewise.
8095 2003-04-22 David Edelsohn <edelsohn@gnu.org>
8097 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
8098 macro defaulting to original BRANCH_COST heuristic.
8099 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
8101 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
8103 2003-04-22 Aldy Hernandez <aldyh@redhat.com>
8105 * config/rs6000/t-spe: Merge in t-fprules into file.
8107 * config.gcc: Add t-spe to powerpc-eabispe.
8109 2003-04-22 Kean Johnston <jkj@sco.com>
8111 * tlink.c (recompile_files): Add missing '=' to putenv calls
8113 2003-04-22 Nathan Sidwell <nathan@codesourcery.com>
8115 * ginclude/stddef.h: Provide C++ safe offsetof.
8117 2003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
8119 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
8120 for reg notes, if there are no substitutions, just use a SUBREG.
8122 2003-04-21 Mark Mitchell <mark@codesourcery.com>
8124 * Makefile.in (calls.o): Depend on except.h.
8125 * calls.c: Include except.h.
8126 (emit_call_1): Call note_eh_region_may_contain_throw if
8128 * except.c (eh_region): Add may_contain_throw.
8129 (expand_eh_region_end_cleanup): Do not include handler code when
8130 it cannot be reached.
8131 (note_eh_region_may_contain_throw): New function.
8132 * except.h (note_eh_region_may_contain_throw): New function.
8134 2003-04-21 Mark Mitchell <mark@codesourcery.com>
8136 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
8139 2003-04-21 Aldy Hernandez <aldyh@redhat.com>
8141 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
8142 64-bit long doubles.
8144 2003-04-21 Olivier Hainque <hainque@act-europe.fr>
8146 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
8147 a number of conversions required for type consistency and previously
8148 stripped off by STRIP_NOPS.
8150 * calls.c (expand_call): Prevent sibcall optimization for calls to
8153 * expmed.c (extract_bit_field): Reverse operands of && condition to
8154 prevent a potential division by zero in the previously first branch.
8155 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
8157 2003-04-21 Joel Brobecker <brobecker@gnat.com>
8159 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
8160 (subrange_type_die): Likewise.
8161 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
8162 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
8164 2003-04-21 Nathan Sidwell <nathan@codesourcery.com>
8166 Break out coverage routines to new file.
8167 * Makefile.in (COVERAGE_H): New variable
8168 (C_OBJS): Add coverage.o
8169 (coverage.o): New target.
8170 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
8173 (gt-coverage.h): New target.
8174 (gt-profile.h): Remove.
8175 * profile.h: Remove. Move to ...
8176 * coverage.h: ... here. New. #include gcov-io.h.
8177 * gcov-io.h: Move function definitions to ...
8178 * gcov-io.c: ... here. New.
8179 * profile.c: Move coverage routines to coverage.c.
8180 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
8181 end_branch_prob): Adjust.
8182 * coverage.c: New. Coverage routines from profile.c
8183 (coverage_counter_ref, coverage_init, coverage_finish,
8184 coverage_end_function, coverage_begin_output,
8185 coverage_counter_ref, get_coverage_counts): Define.
8186 * gcov-dump.c, gcov.c: #include gcov-io.c.
8187 * libgcov.c: Likewise. Adjust.
8188 * loop-init.c: Don't #include profile.h
8189 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
8190 * rtl.h: Add coverage prototypes.
8191 * toplev.c (compile_file): Init coverage, not branch_prob.
8192 Always call coverage_finish.
8193 (rest_of_compilation): Call coverage_end_function.
8195 2003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
8197 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
8199 2003-04-21 Neil Booth <neil@daikokuya.co.uk>
8201 * c-ppoutput.c (cb_include): Don't take a cpp_token.
8202 * cppfiles.c: Don't undef strcmp.
8203 (find_include_file): Don't take a cpp_token. Check for empty
8205 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
8206 (cpp_push_include): Simplify.
8207 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
8208 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
8209 (parse_include): Similary. Don't check for zero-length filenames.
8210 (do_include_common, do_pragma_dependency): Update accordingly.
8211 * cpplib.h (struct cpp_callbacks): Change prototype of include.
8213 2003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8215 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
8216 details of conflict handling.
8218 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
8219 when conversion overflows.
8221 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
8223 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
8226 2003-04-21 Mark Mitchell <mark@codesourcery.com>
8228 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
8229 have the same form as the old RTL.
8231 2003-04-21 Andreas Jaeger <aj@suse.de>
8233 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
8235 2003-04-20 Chris Lattner <sabre@nondot.org>
8236 Zack Weinberg <zack@codesourcery.com>
8238 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
8239 genrtl_cleanup_stmt. Correct comment at head of
8240 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
8242 * stmt.c (struct nesting): Kill n_function_calls.
8243 (expand_start_bindings): Don't set
8244 thisblock->data.block.n_function_calls.
8245 (expand_end_bindings): Compare function_call_count against 0.
8246 (expand_cleanups): Kill DONT_DO argument; all callers passed
8247 NULL_TREE. All callers updated to match.
8249 2003-04-20 Zack Weinberg <zack@codesourcery.com>
8251 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
8252 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
8253 (output_constant_def): Remove code predicated on
8254 defer_addressed_constants_flag.
8256 * output.h: Remove prototypes of deleted functions.
8257 * c-typeck.c (constructor_subconstants_deferred): Kill.
8258 (struct initializer_stack): Remove 'deferred' field.
8259 (start_init): Remove all references to the above.
8260 (finish_init): Likewise. Also remove never-executed call to
8261 output_deferred_addressed_constants. Pull assignment to
8262 defstr out of if expression.
8264 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
8266 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
8267 NOTE_NEWLINE): Remove.
8268 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
8269 to handle new form of line note type.
8271 2003-04-20 Zack Weinberg <zack@codesourcery.com>
8273 * target.h (encode_section_info): Add new argument carrying
8274 the RTL to be modified by the hook.
8276 * varasm.c (make_decl_rtl, output_constant_def): Update calls
8277 to encode_section_info.
8278 (default_encode_section_info): Take and use RTL argument,
8279 don't use TREE_CST_RTL or DECL_RTL.
8280 * output.h: Update prototype of default_encode_section_info.
8281 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
8282 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
8283 Update calls to encode_section_info.
8285 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
8286 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
8287 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
8288 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
8289 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
8290 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
8291 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
8292 except for PE dllimport/dllexport. Update calls to
8293 default_encode_section_info.
8295 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
8298 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
8300 2003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8303 * pa.md (movccfp): New expander.
8304 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
8305 Reverse fcmp conditions.
8307 2003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
8309 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
8310 of operand 1 correctly.
8312 2003-04-20 Nathan Sidwell <nathan@codesourcery.com>
8314 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
8315 * gcov.c (output_lines): Don't be so fussy about going past EOF.
8317 2003-04-20 Neil Booth <neil@daikokuya.co.uk>
8319 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
8320 (cppcharset.o): New target.
8321 * c-lex.c (is_extended_char): Move to cppcharset.c.
8322 (utf8_extend_token): Delete.
8323 * cppcharset.c: New file.
8324 * cpphash.h (_cpp_valid_ucn): New.
8325 * cpplex.c (lex_identifier): Update prototype.
8326 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
8328 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
8330 (lex_number, lex_identifier, cpp_parse_escape): Update.
8331 (_cpp_lex_direct): Update to handle UCNs.
8332 (cpp_avoid_paste): Don't paste to form a UCN.
8334 2003-04-19 Roger Sayle <roger@eyesopen.com>
8336 * builtins.c (expand_builtin): Don't expand a pure or const
8337 built-in function if the result will be ignored and none of
8338 its arguments are volatile.
8340 2003-04-19 Kean Johnston <jkj@sco.com>
8342 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
8343 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
8344 target fragment now: t-sco5; dont compile crti.o.
8345 * config/i386/sco5.h: major overhaul to remove all COFF remnants
8346 and to use elfos.h for most definitions.
8347 (BSS_SECTION_ASM_OP): set correct segment attributes.
8348 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
8349 (DWARF2_UNWIND_INFO): Always set to 1.
8350 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
8351 (MD_STARTFILE_PREFIX_1): Define.
8352 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
8353 (DEFAULT_LINKER): Define if not specified to configure.
8354 (CTORS_SECTION_ASM_OP): Remove COFF crud.
8355 (DTORS_SECTION_ASM_OP): Remove COFF crud.
8356 (WINT_TYPE): Define.
8357 (SDB_DEBUGGING_INFO): Remove.
8358 (EXTRA_SECTIONS): Likewise.
8359 (EXTRA_SECTION_FUNCTIONS): Likewise.
8360 (CTOR_LIST_BEGIN): Likewise.
8361 (CTOR_LIST_END): Likewise.
8362 (INIT_SECTION_FUNCTION): Likewise.
8363 (FINI_SECTION_FUNCTION): Likewise.
8364 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
8365 (LOCAL_LABEL_PREFIX): Likewise.
8366 (NON_SAVING_SETJMP): Likewise.
8367 (RETURN_POPS_ARGS): Likewise.
8368 (ASM_OUTPUT_SKIP): Likewise.
8369 (TARGET_ASM_NAMED_SECTION): Likewise.
8370 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
8371 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8372 (ASM_OUTPUT_IDENT): Likewise.
8373 (ASM_OUTPUT_CASE_LABEL): Likewise.
8374 (ASM_OUTPUT_ASCII): Likewise.
8375 (ASM_OUTPUT_LIMITED_STRING): Likewise.
8376 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8377 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8378 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
8379 (ASM_FINISH_DECLARE_OBJECT): Likewise.
8380 (ASM_DECLARE_OBJECT_NAME): Likewise.
8381 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
8382 (ASM_DECLARE_FUNCTION_NAME): Likewise.
8383 (ASM_DECLARE_RESULT): Likewise.
8384 (ASM_WEAKEN_LABEL): Likewise.
8385 (SUPPORTS_WEAK): Likewise.
8386 (APPLY_RESULT_SIZE): Likewise.
8387 (LPREFIX): Likewise.
8388 (ALIGN_ASM_OP): Likewise.
8389 (ASCII_DATA_ASM_OP): Likewise.
8390 (IDENT_ASM_OP): Likewise.
8391 (ASM_SHORT): Likewise.
8392 (ASM_LONG): Likewise.
8393 (TYPE_ASM_OP): Likewise.
8394 (SIZE_ASM_OP): Likewise.
8395 (STRING_ASM_OP): Likewise.
8396 (SKIP_ASM_OP): Likewise.
8397 (EH_FRAME_SECTION_ASM_OP): Likewise.
8398 (READONLY_DATA_SECTION_ASM_OP): Likewise.
8399 (INIT_SECTION_ASM_OP): Likewise.
8400 (FINI_SECTION_ASM_OP): Likewise.
8401 (TEXT_SECTION_ASM_OP): Likewise.
8402 (DATA_SECTION_ASM_OP): Likewise.
8403 (TYPE_OPERANT_FORMAT): Likewise.
8404 (ASM_SPEC): Remove COFF code.
8405 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
8406 cause -pg to emit an error; use pcrt1elf.o with -pp
8407 (ENDFILE_SPEC): Likewise.
8408 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
8409 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
8410 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
8411 add -z alt_resolve to support weak symbols the way GCC wants them.
8412 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
8413 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
8414 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
8415 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
8416 (CRTSTUFF_T_CFLAGS_S): Define.
8417 (MULTILIB_OPTIONS): Likewise.
8418 (MULTILIB_DIRNAMES): Likewise.
8419 (MULTILIB_MATCHES): Likewise.
8420 (MULTILIB_EXTRA_OPTS): Likewise.
8422 (INSTALL_LIBGCC): Likewise.
8424 * config/i386/t-sco5gas: Remove.
8425 * doc/install.texi: Updated for new OpenServer instructions.
8426 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
8428 2003-04-19 Kean Johnston <jkj@sco.com>
8430 * fixinc/check.tpl: Allow user to over-ride diff program.
8431 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
8432 (sco_math): Added test for SCO math header files.
8433 (sco_regset): Added check for conflicts with ieeefp.h.
8434 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
8435 * fixinc/fixincl.x: Regenerated
8436 * fixinc/tests/base/math.h: Added sco_math tests.
8437 * fixinc/tests/base/string.h: New file.
8438 * fixinc/tests/base/sys/regset.h: New file.
8440 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8442 * cpphash.h (struct cpp_buffer): Remove backup_to.
8443 * cpplex.c (BACKUP, get_effective_char): Die.
8444 (_cpp_skip_block_comment): Assume '*' is location on entry.
8445 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
8446 (IF_NEXT_IS): Update.
8447 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
8449 2003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
8451 * README.Portability: Move to a new section and obsolete K+R
8454 Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
8456 * rtlanal.c (subreg_offset_representable_p): Fix call of
8459 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8461 * cpphash.h (struct cpp_reader): New member warned_dollar.
8462 * cpplex.c (continues_identifier_p): New function.
8463 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
8464 lex_number and lex_string, and simplify.
8465 (parse_slow, unescaped_terminator_p): Die.
8466 (_cpp_lex_direct): Update.
8468 2003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8470 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
8472 2003-04-19 Nathan Sidwell <nathan@codesourcery.com>
8474 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
8477 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8479 * cppexp.c (eval_token): Permit true and false even if pedantic.
8481 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8483 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
8485 2003-04-19 Neil Booth <neil@daikokuya.co.uk>
8487 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
8488 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
8489 (struct include_file): Remove fefcnt, mapped members.
8490 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
8491 (read_include_file): Don't use mmap, terminate buffers in '\r'.
8492 (purge_cache): Don't use munmap.
8493 * cpphash.h (CPP_BUF_COLUMN): Update.
8494 (lexer_state): Remove lexing_comment.
8495 (struct _cpp_line_note): New.
8496 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
8497 next_line and need_line. Remove col_adjust and saved_flags.
8498 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
8499 _cpp_skip_block_comment, scan_out_logical_line): New.
8500 (_cpp_init_mbchar): Remove.
8501 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
8502 (cpp_read_main_file): Set line to 1 earlier.
8503 (post_options): -traditional-cpp doesn't want trigraphs.
8504 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
8505 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
8506 _cpp_get_fresh_line): New.
8507 (handle_newline, skip_escaped_newlines, trigraph_p,
8508 continue_after_nul, _cpp_init_mbchar): Remove.
8509 (get_effective_char): Update.
8510 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
8511 (skip_line_comment): Simplify.
8512 (skip_whitespace, parse_identifier, parse_slow, parse_number,
8513 parse_string): Update.
8514 (cpp_lex_direct): Use clean lines and process line notes. Update.
8515 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
8516 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
8518 (_cpp_handle_directive): Don't set saved_flags.
8519 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
8520 cpp_undef, handle_assertion, cpp_push_buffer): Update.
8521 (_cpp_pop_buffer): Free notes.
8522 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
8523 * cpppch.c (cpp_read_state): \n terminate buffer.
8524 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
8525 (copy_comment): Use _cpp_skip_block_comment.
8526 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
8528 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
8529 save_replacement_text): Update.
8530 (scan_out_logical_line): Update to use clean lines and process
8532 * fix-header.c (read_scan_file): Update.
8534 2003-04-18 Douglas B Rupp <rupp@gnat.com>
8536 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
8537 null begin parameter (as well as pointer to null).
8538 (__deregister_frame_info_bases): Likewise.
8540 2003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8542 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
8543 hard or virtual register and copy into pseudo if replacement fails.
8545 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
8547 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
8549 2003-04-18 Olivier Hainque <hainque@act-europe.fr>
8551 * calls.c (expand_call): Move special case for constructor calls
8552 to right place. Ensures constructor calls used to initialize
8553 arguments get a clean outgoing argument block for themselves.
8554 Move check for stack deallocation completeness until after last
8555 deallocation. Add stack_pointer_delta to set of state
8556 variables saved and restored along with current stack_level.
8558 * integrate.c (expand_inline_function): Ensure non-const actuals
8559 don't end up const in the caller's flow after conversion to possibly
8562 2003-04-18 Vincent Celier <celier@gnat.com>
8564 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
8565 and *_DIV_EXPR as TRUNC_*_EXPR.
8567 2003-04-18 Mark Mitchell <mark@codesourcery.com>
8569 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
8570 for orphaned jump tables.
8572 2003-04-18 Kazu Hirata <kazu@cs.umass.edu>
8574 * reload1.c: Revert my previous patch on 2002-04-17.
8576 2003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8578 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
8579 Add Segher Boessenkool.
8581 2003-04-18 Alexander Sotirov <sluncho@mirizma.org>
8584 * c-decl.c (c_expand_body): Don't garbage collect the function
8585 body if we are going to dump it later.
8587 2003-04-18 Richard Henderson <rth@redhat.com>
8589 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
8590 (alpha_end_function): Don't set them.
8591 (decl_in_text_section): Remove.
8592 (alpha_encode_section_info): Remove.
8593 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
8594 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
8595 sections, rather than decl_in_text_section results.
8597 2003-04-18 Roger Sayle <roger@eyesopen.com>
8599 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
8602 2003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
8604 PR optimization/7675
8605 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
8606 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
8607 nested functions if they refer to declarations from parent functions.
8608 * stmt.c (expand_decl): Don't put automatic variables in registers
8609 if the DECL_NONLOCAL flag is set.
8611 2003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
8613 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
8614 consider those to be movable where the source matches
8616 (update_ld_motion_stores): In comment, refer to
8617 compute_ld_motion_mems for validity of replacement.
8619 Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
8621 * gcov-dump.c (tag_summary): Remove max_sum
8622 * gcov-io.h (gcov_summary, gcov_write_summary,
8623 gcov_read_summary): Kill max_sum.
8624 * libgcov.c (gcov_exit): Do one pass over the data. Make error
8625 message more verbose.
8627 * emit-rtl.c (subreg_hard_regno): Check that register is
8630 * reload.c (reload_inner_reg_of_subreg): When register is not
8631 representable, reload the whole thing.
8632 (find_reloads): Likewsie.
8633 * rtlanal.c (subreg_representable_p): New function.
8635 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
8636 allow negative probabilities for edges from the call to exit.
8637 (branch_prob): Do not add fake edges for functions that may return
8640 2003-04-17 DJ Delorie <dj@redhat.com>
8642 * toplev.c (target_options): Add value field.
8643 (set_target_switch): Handle target options with values.
8644 * doc/tm.texi: Document how fixed vs variable target
8646 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8647 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
8648 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8649 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
8650 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
8651 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
8652 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
8653 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
8654 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
8655 Add value initializer to target options.
8657 2003-04-07 Loren James Rittle <ljrittle@acm.org>
8659 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
8661 2003-04-17 Kazu Hirata <kazu@cs.umass.edu>
8663 * reload1.c (move2add_last_cc0): New.
8664 (reload_cse_move2add): Detect implicit sets.
8665 (move2add_note_store): Notice a store into cc0.
8667 2003-04-17 Roger Sayle <roger@eyesopen.com>
8670 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
8671 function attributes.
8673 2003-04-17 Janis Johnson <janis187@us.ibm.com>
8675 * doc/sourcebuild.texi (Test Suites): Document support for testing
8676 binary compatibility (moved from testsuite/README.compat).
8678 2003-04-17 Richard Henderson <rth@redhat.com>
8680 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
8682 2003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
8684 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
8685 the one provided by the FSF.
8687 2003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8689 * doc/install.texi (Binaries): Update URL and list of platforms
8690 provided by ftp.thewrittenword.com.
8692 2003-04-17 Richard Henderson <rth@redhat.com>
8694 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
8695 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
8696 * config/xtensa/xtensa.md (call, call_value): Likewise.
8698 2003-04-17 Richard Henderson <rth@redhat.com>
8700 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
8701 (print_operand_address): Likewise.
8702 (ep_memory_operand): Likewise.
8703 (special_symbolref_operand): Likewise.
8704 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
8705 (v850_encode_section_info): Call default_encode_section_info.
8706 (v850_strip_name_encoding): Remove.
8707 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
8708 (ASM_OUTPUT_LABELREF): Remove.
8709 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
8710 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
8711 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
8712 (ENCODED_NAME_P): Remove.
8713 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
8714 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
8715 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
8717 2003-04-17 Richard Henderson <rth@redhat.com>
8719 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
8720 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
8721 SYMBOL_REF_FUNCTION_P.
8723 2003-04-17 Richard Henderson <rth@redhat.com>
8725 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
8726 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
8727 (text_segment_operand): Likewise.
8729 2003-04-17 Richard Henderson <rth@redhat.com>
8731 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
8732 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
8733 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
8734 (sh_encode_section_info): Remove.
8735 (sh_strip_name_encoding): Remove.
8736 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
8737 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
8738 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
8739 (ASM_OUTPUT_LABELREF): Remove.
8740 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
8741 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
8743 2003-04-17 Richard Henderson <rth@redhat.com>
8745 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
8746 (tls_model_chars): Remove.
8747 (larl_operand): Use SYMBOL_REF_FLAGS.
8748 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
8749 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
8750 (s390_output_mi_thunk): Likewise.
8751 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
8752 (s390_function_profiler): Likewise.
8753 (s390_encode_section_info): Use default_encode_section_info
8754 and SYMBOL_FLAG_ALIGN1.
8755 (s390_strip_name_encoding): Remove.
8756 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
8757 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
8758 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
8760 2003-04-17 Richard Henderson <rth@redhat.com>
8762 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
8763 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
8764 (print_operand_address): Likewise.
8766 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
8767 * config/ns32k/ns32k.c (expand_block_move): Don't check
8770 2003-04-17 Richard Henderson <rth@redhat.com>
8772 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
8775 2003-04-17 Richard Henderson <rth@redhat.com>
8777 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
8779 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
8780 (SYMBOL_REF_MODEL): New.
8781 (LIT_NAME_P): Move from m32r.h.
8782 (m32r_select_section): Remove.
8783 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
8784 (m32r_strip_name_encoding): Remove.
8785 (m32r_in_small_data_p): New.
8786 (small_data_operand): Use SYMBOL_REF_SMALL_P.
8787 (addr24_operand): Use SYMBOL_REF_MODEL.
8788 (call26_operand): Likewise.
8789 (addr32_operand): Tidy.
8790 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
8791 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
8792 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
8793 (READONLY_DATA_SECTION_ASM_OP): Remove.
8794 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
8795 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
8796 (TARGET_ASM_SELECT_SECTION): Remove.
8797 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
8798 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
8799 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
8800 (ASM_OUTPUT_LABELREF): Remove.
8802 2003-04-17 Richard Henderson <rth@redhat.com>
8804 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
8805 (encode_section_info): Remove.
8806 * config/ip2k/ip2k-protos.h: Update.
8808 2003-04-17 Richard Henderson <rth@redhat.com>
8810 * varasm.c (default_encode_section_info): Don't set
8811 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
8812 * config/i370/i370.c (i370_encode_section_info): Remove.
8813 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
8814 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
8815 * config/i370/i370.md (movsi): Likewise.
8817 * config/i370/t-i370: Add missing backslash.
8819 2003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8821 * doc/invoke.texi (inline-limit): Fix pasto.
8823 2003-04-17 Richard Henderson <rth@redhat.com>
8825 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
8826 (small_call_insn_operand): Use it.
8827 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
8828 (h8300_eightbit_constant_address_p): Use it.
8829 (SYMBOL_FLAG_TINY_DATA): New.
8830 (h8300_tiny_constant_address_p): Use it.
8831 (h8300_encode_label, h8300_strip_name_encoding): Remove.
8832 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
8833 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
8834 (ASM_OUTPUT_LABELREF): Remove.
8836 2003-04-16 Richard Henderson <rth@redhat.com>
8838 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
8839 all users with SYMBOL_REF_SMALL_P.
8840 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
8841 (frv_encode_section_info): Remove.
8842 (frv_strip_name_encoding): Remove.
8843 (frv_in_small_data_p): Merge tests from encode_section_info.
8844 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
8845 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
8846 (SDATA_NAME_P): Remove.
8847 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
8848 (ASM_OUTPUT_LABELREF): Remove.
8849 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
8851 * config/frv/frv.c (frv_asm_out_constructor): New.
8852 (frv_asm_out_destructor): New.
8853 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
8854 (DTORS_SECTION_ASM_OP): New.
8855 (ASM_OUTPUT_CONSTRUCTOR): Remove.
8856 (ASM_OUTPUT_DESTRUCTOR): Remove.
8858 2003-04-16 Richard Henderson <rth@redhat.com>
8860 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
8861 SYMBOL_REF_LOCAL_P; abort if not pic.
8862 (cris_encode_section_info): Remove.
8864 2003-04-16 Richard Henderson <rth@redhat.com>
8866 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
8867 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
8869 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
8872 2003-04-16 Richard Henderson <rth@redhat.com>
8874 * config/avr/avr.c (avr_encode_section_info): Remove.
8875 (avr_insert_attributes): New.
8876 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
8877 (avr_assemble_integer): Likewise.
8879 2003-04-16 Richard Henderson <rth@redhat.com>
8881 * arc.c (arc_encode_section_info): Remove.
8882 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
8883 (arc_print_operand, arc_print_operand_address): Likewise.
8884 * arc.h (EXTRA_CONSTRAINT): Likewise.
8886 2003-04-16 Roger Sayle <roger@eyesopen.com>
8888 * c-semantics.c (find_reachable_label): New function to find a
8889 potentially reachable label in an expression.
8890 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
8891 assumes the start of the IF_STMT is unreachable (dead) code.
8892 (expand_unreachable_stmt): Similar to expand_stmt but assumes
8893 the start of the statement list is unreachable (dead) code.
8894 (genrtl_if_stmt): If the controlling expression of the IF
8895 is constant, use expand_unreachable_stmt for the THEN or ELSE
8896 clause as appropriate.
8897 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
8898 the body of a SWITCH statement.
8899 (expand_stmt): The code immediately following a "return",
8900 "break", "continue" or "goto" is unreachable.
8901 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
8903 2003-04-16 Richard Henderson <rth@redhat.com>
8905 * rtl.h (MEM_ALIAS_SET): Update documentation.
8906 * doc/rtl.texi (Special Accessors): New node.
8907 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
8909 2003-04-16 Alexandre Oliva <aoliva@redhat.com>
8911 * reload1.c (reload_cse_noop_set_p): Return false if mode of
8912 SET_DEST is not the same as that returned by...
8913 * cselib.h (cselib_reg_set_mode): ... new function.
8914 * cselib.c (cselib_reg_set_mode): Define it.
8915 (REG_VALUES): Document semantics of first element as set mode.
8916 (cselib_subst_to_values): Skip first element if ELT is NULL.
8917 (cselib_lookup): Likewise. Insert past the first element.
8918 (cselib_invalidate_regno): NULLify first element.
8919 (cselib_record_set): Set first element.
8921 2003-04-16 Olivier Hainque <hainque@act-europe.fr>
8923 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
8924 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
8925 * tree.h: Add prototypes for the two new functions.
8926 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
8927 updates introduced in the previous revision by call to saved_expr_p.
8928 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
8930 * expr.c (store_field): Force usage of bitfield instructions when
8931 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
8932 (expand_expr, case BIT_FIELD_REF): likewise.
8934 2003-04-16 Mark Mitchell <mark@codesourcery.com>
8937 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
8940 2003-04-16 Richard Henderson <rth@redhat.com>
8942 * config/ia64/ia64.c (sdata_symbolic_operand): Use
8943 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
8944 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
8945 (function_operand): Use SYMBOL_REF_FUNCTION_P.
8946 (ia64_expand_load_address): Likewise.
8947 (ia64_assemble_integer): Likewise.
8948 (ia64_encode_section_info): Remove.
8949 (ia64_strip_name_encoding): Remove.
8950 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
8951 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
8953 2003-04-16 Richard Henderson <rth@redhat.com>
8955 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
8956 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
8957 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
8958 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
8959 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
8960 (global_symbolic_operand): Similarly.
8961 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
8962 (tls_symbolic_operand_type): Likewise.
8963 (alpha_encode_section_info): Use default_encode_section_info.
8964 (alpha_strip_name_encoding): Remove.
8965 (get_tls_get_addr): Split out from ...
8966 (alpha_legitimize_address): ... here.
8967 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
8968 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
8969 (alpha_initialize_trampoline): Use init_one_libfunc.
8970 (alpha_setup_incoming_varargs): Mark unused parameters.
8971 (alpha_initial_elimination_offset): Likewise.
8972 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
8973 (unicosmk_unique_section): Use default_strip_name_encoding.
8974 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
8976 2003-04-16 Aldy Hernandez <aldyh@redhat.com>
8978 * config.gcc: Add t-spe for eabispe.
8980 * config/rs6000/t-spe: New.
8982 2003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
8984 Re-apply this patch:
8986 2002-05-16 Dale Johannesen <dalej@apple.com>
8987 * combine.c (cant_combine_insn_p): Reenable combinations
8988 involving hard regs unless CLASS_LIKELY_SPILLED_P.
8990 2003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8993 * pa-protos.h (function_arg): Remove last argument.
8994 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
8995 * pa.h (struct hppa_args): Add member incoming.
8996 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
8998 (FUNCTION_ARG): Revise call to function_arg.
8999 (FUNCTION_INCOMING_ARG): Delete.
9001 2003-04-15 Zack Weinberg <zack@codesourcery.com>
9003 * configure.in: Unify the code which creates symlinks to a
9004 just-built as, ld, objdump, and nm with the code that detects
9005 their presence for purposes of feature tests.
9006 * configure: Regenerate.
9008 2003-04-15 Zack Weinberg <zack@codesourcery.com>
9010 * varasm.c (output_constant_def): Do not consult
9011 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
9012 (after_function_constants, output_after_function_constants): Delete.
9013 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
9014 * config/mips/mips-protos.h, config/mips/mips.c
9015 (mips16_constant_after_function_p): Delete.
9016 * config/mips/mips.h: Delete #if-0-ed definition of
9017 CONSTANT_AFTER_FUNCTION_P.
9018 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
9019 mention of CONSTANT_AFTER_FUNCTION_P in comment.
9021 2003-04-15 Geoffrey Keating <geoffk@apple.com>
9023 * tree.c (next_decl_uid): Mark with GTY.
9024 (next_type_uid): Likewise.
9026 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
9029 * sh.c (barrier_align): Also recognize stuff_delay_slot as
9030 an indicator that a barrier was created by branch splitting.
9032 2003-04-15 Mark Mitchell <mark@codesourcery.com>
9034 * c-decl.c (implicitly_declare): Copy declarations that are going
9035 to be placed in a local scope.
9037 2003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
9039 * invoke.texi (Spec Files): Wrap if-exists-else example.
9040 (MCore): Remove duplicate @itemx entries and @opindex entries.
9042 2003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
9044 * unwind.inc (_Unwind_Backtrace): New function.
9045 * unwind.h (_Unwind_Backtrace): Declare it.
9046 * libgcc-std.ver (_Unwind_Backtrace): Export it.
9048 2003-04-14 Jason Merrill <jason@redhat.com>
9050 PR middle-end/10336, c++/10401
9051 * jump.c (never_reached_warning): Also stop looking if we reach the
9052 beginning of the function.
9054 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9059 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
9061 2003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
9063 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
9065 2003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9067 * optabs.c (expand_binop): In multi-word add cases, ensure
9068 XTARGET is copied to TARGET if they are different.
9070 2003-04-15 Olivier Hainque <hainque@act-europe.fr>
9072 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
9073 to region, possible after integration of function with unreachable
9074 regions that were optimized away.
9076 2003-04-15 Jakub Jelinek <jakub@redhat.com>
9078 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
9079 instead of TOC_REGISTER in epilogue in
9080 current_function_calls_eh_return functions.
9082 2003-04-14 Mark Mitchell <mark@codesourcery.com>
9084 * doc/extend.texi (Empty Structures): Correct description of G++'s
9085 handling of these structures.
9087 * c-decl.c (grokdeclarator): Reject extern redeclarations of
9090 2003-04-14 Janis Johnson <janis287@us.ibm.com>
9092 * config/rs6000/rs6000.md (define_constants): Define constants for
9093 all UNSPEC usage, including new values for TLS support.
9094 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
9095 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
9096 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
9097 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
9098 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
9099 eh_set_lr_di): Use them.
9100 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
9101 rs6000_emit_epilogue) Use them.
9103 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
9105 2003-04-14 Neil Booth <neil@daikokuya.co.uk>
9107 * Makefile.in (c-opts.o): Use custom action.
9109 2003-04-14 Douglas B Rupp <rupp@gnat.com>
9111 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
9113 2003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9115 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
9116 handle "superflat arrays" in Ada.
9118 * integrate.c (expand_inline_function): Don't inline if would
9119 lose /u on a BLKmode TARGET.
9121 2003-04-14 Joel Brobecker <brobecker@gnat.com>
9123 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
9124 extracted from dbxout_type.
9125 (dbxout_range_type): print large bounds in octal format.
9126 (dbxout_type): Replace extracted code by call to
9127 print_int_cst_bounds_in_octal_p.
9129 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
9130 of DW_LANG_Ada83 for Ada units.
9132 2003-04-14 Olivier Hainque <hainque@act-europe.fr>
9134 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
9135 temporary used to round CONST_INT sizes.
9137 * tree.c (int_fits_type_p): Extract generic checks from the case
9138 of constant type bounds. Refine the checks against constant type
9139 bounds to allow for possible decisions against each of these bounds
9140 without requiring both bounds to be constant.
9141 (tree_int_cst_msb): Put back.
9142 * tree.h (tree_int_cst_msb): Likewise.
9144 * global.c (global_conflicts): Prevent allocation of call clobbered
9145 hard regs to pseudos live across abnormal edges, as later passes are
9146 not ready to handle them.
9148 * fold-const.c (fold): Reorder tests for conditional expressions.
9150 * expr.c (highest_pow2_factor): Return unsigned.
9151 * expr.h (offset_address): Likewise.
9152 * emit-rtl.c (offset_address): POW2 argument now unsigned.
9154 2003-04-14 Roger Sayle <roger@eyesopen.com>
9156 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
9157 string literals at compile-time.
9159 2003-04-14 Roger Sayle <roger@eyesopen.com>
9161 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
9162 comparison operation and c1/c2 are floating point constants into
9163 x swap(cmp) (c1 - c2).
9165 2003-04-14 Vladimir Makarov <vmakarov@redhat.com>
9167 * genautomata.c (output_translate_vect): Fix a typo in loop
9170 2003-04-14 Hans-Peter Nilsson <hp@axis.com>
9173 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
9174 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
9175 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
9176 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
9177 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
9178 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
9179 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
9180 ("*extopqihi_swap_side", "*extopqisi_swap_side")
9181 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
9182 When next to constraint R, replace constraint i with n.
9184 Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
9187 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
9189 2003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9191 * doc/contrib.texi (Contributors): Correct my entry.
9193 2003-04-13 Roger Sayle <roger@eyesopen.com>
9195 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
9196 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
9197 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
9198 implies DECL_BUILT_IN to simplify logic.
9199 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
9201 2003-04-13 Roger Sayle <roger@eyesopen.com>
9203 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
9204 (BT_FN_PTR_SIZE_SIZE): Likewise.
9205 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
9206 New built-in functions for malloc, calloc and strdup respectively.
9207 * calls.c (special_function_p): No need to handle malloc-like
9208 functions any longer. ECF_MALLOC is set via built-in attributes.
9210 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
9212 * doc/extend.texi: Document these new built-in functions.
9214 2003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9216 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
9217 (expand_builtin_stpcpy): New.
9218 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
9219 * builtins.def: Add mempcpy & stpcpy support.
9220 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
9222 2003-04-13 Nick Clifton <nickc@redhat.com>
9224 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
9226 * config/rs6000/40x.md, config/rs6000/603.md,
9227 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
9228 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
9229 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
9230 config/rs6000/aix43.h, config/rs6000/aix51.h,
9231 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
9232 config/rs6000/altivec.h, config/rs6000/altivec.md,
9233 config/rs6000/beos.h, config/rs6000/darwin.h,
9234 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
9235 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
9236 config/rs6000/freebsd.h, config/rs6000/gnu.h,
9237 config/rs6000/host-darwin.c, config/rs6000/linux.h,
9238 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
9239 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
9240 config/rs6000/netbsd.h, config/rs6000/power4.md,
9241 config/rs6000/rios1.md, config/rs6000/rios2.md,
9242 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
9243 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
9244 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
9245 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
9246 config/rs6000/spe.md, config/rs6000/sysv4.h,
9247 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
9248 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
9250 2003-04-13 Nick Clifton <nickc@redhat.com>
9252 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
9253 support for -mcall-aix switch.
9254 * config/rs6000/eabiaix.h: Delete.
9255 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
9256 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
9257 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
9258 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
9259 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
9260 debug_stack_info, output_function_profiler,
9261 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
9262 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
9263 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
9264 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
9265 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
9266 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
9268 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
9269 (MULTILIB_EXCEPTIONS): Delete.
9270 (MULTILIB_MATCHES): Remove mcall-aix matches.
9272 * doc/fragments.texi: Replace -mcall-aix example with an ARM
9274 * doc/install.texi: Delete powerpc-*-eabiaix target.
9275 * doc/invoke.texi: Remove documentation of mcall-aix switch.
9276 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
9277 * config.gcc: Delete powerpc-*-eabiaix target.
9279 2003-04-13 Kazu Hirata <kazu@cs.umass.edu>
9281 * doc/invoke.texi: Fix typos.
9282 * doc/tm.texi: Likewise.
9284 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9286 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
9288 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9290 * tree.c (build_constructor): New function.
9291 * tree.h: Prototype it.
9293 * c-typeck.c (build_c_cast, pop_init_level)
9294 * profile.c (build_function_info_value, build_gcov_info_value)
9296 Use build_constructor.
9298 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
9300 * objc/objc-act.c (build_constructor):
9301 Rename objc_build_constructor. Use build_constructor.
9302 (build_objc_string_object, objc_add_static_instance)
9303 (init_def_list, init_objc_symtab, init_module_descriptor)
9304 (generate_static_references, build_selector_translation_table)
9305 (build_descriptor_table_initializer, generate_descriptor_table)
9306 (build_protocol_initializer, build_ivar_list_initializer)
9307 (generate_ivars_list, build_dispatch_table_initializer)
9308 (generate_dispatch_table, generate_protocol_list)
9309 (build_category_initializer, build_shared_structure_initializer):
9312 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9314 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
9316 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9318 * config/m68hc11/m68hc11-protos.h
9319 (m68hc11_eq_compare_operator): Declare
9320 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
9321 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
9322 (d_register_operand): Check the operand mode.
9323 (hard_addr_reg_operand): Likewise.
9325 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9327 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
9328 pattern for dbcc/ibcc generation for 68HC12.
9329 ("doloop_end"): New pattern.
9330 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
9331 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
9332 ("m68hc12_dbcc_dec_qi"): New pattern.
9333 ("m68hc12_dbcc_inc_qi"): New pattern.
9334 (split): Add split for the above when we can't use dbcc/ibcc due to
9336 (peephole2): Add peephole2 to generate the above when possible.
9338 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9340 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
9342 (peephole2 optimize const load): Likewise for operand 2.
9343 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
9345 ("*rotrhi3_with_carry"): Likewise.
9346 (ashift:DI 1 split): Update pattern to create the above rotate.
9347 (lshiftrt:DI 1 split): Likewise.
9349 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9351 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
9352 ("tstqi_z_used" split): Use it.
9353 ("cmphi_z_used"): Likewise.
9354 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
9355 ("cmpqi_z_used"): Likewise.
9357 2003-04-12 Mark Mitchell <mark@codesourcery.com>
9360 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
9362 2003-04-12 Zack Weinberg <zack@codesourcery.com>
9364 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
9365 * configure, config.in: Regenerate.
9366 * intl.c (gcc_gettext_width): New function.
9367 * intl.h: Prototype it.
9369 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9371 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
9372 recognize -mnorelax.
9373 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
9374 (REG_CLASS_NAMES): Add its name.
9375 (REG_CLASS_CONTENTS): Define its content.
9377 2003-04-12 Stephane Carrez <stcarrez@nerim.fr>
9379 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
9380 parameters so that offsets are valid for far definition.
9381 (__mulsi3): Likewise and use ret to return.
9382 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
9384 2003-04-12 David Edelsohn <edelsohn@gnu.org>
9386 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
9388 2003-04-12 Alexandre Oliva <aoliva@redhat.com>
9390 * mklibgcc.in (libgcc-stage-start): For every multilib directory
9391 containing a libgcc.a, move lib* to the corresponding stage dir.
9393 * Makefile.in (stage1-start, stage2-start, stage3-start,
9394 stage4-start): Move $(SPECS) to specs in stage dir.
9395 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
9398 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
9399 object files from the non-libgcc/ multilib directories as well.
9401 2003-04-11 Geoffrey Keating <geoffk@apple.com>
9403 * profile.c (read_counts_file): Initialise 'checksum'.
9405 * emit-rtl.c (gen_rtx): Really correct typo.
9408 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
9409 * configure.in: Check for gettimeofday.
9410 * tree.c (flag_random_seed): Define.
9411 (default_flag_random_seed): New.
9412 (append_random_chars): Use flag_random_seed rather than trying
9413 to acquire randomness here.
9414 * tree.h (default_flag_random_seed): Declare.
9415 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
9417 (decode_f_option): Handle -frandom-seed.
9418 (print_switch_values): Call default_flag_random_seed.
9419 * flags.h (flag_random_seed): Declare.
9420 * configure: Regenerate.
9421 * config.in: Regenerate.
9422 * config/alpha/t-crtfm: Use -frandom-seed.
9424 * doc/extend.texi (Empty Structures): New.
9426 * c-pch.c: Include flags.h. Add comments to routines.
9427 (struct c_pch_validity): New.
9428 (get_ident): Update PCH file version number.
9429 (pch_init): Output current debugging type.
9430 (c_common_valid_pch): Check debugging type.
9431 * Makefile.in (c-pch.o): Update dependencies.
9432 * flags.h (debug_type_names): Declare.
9433 * toplev.c (debug_type_names): Move out of decode_g_option.
9435 2003-04-11 Eric Christopher <echristo@redhat.com>
9437 * emit-rtl.c (gen_rtx): Fix typos.
9439 2003-04-11 Richard Henderson <rth@redhat.com>
9441 * emit-rtl.c (gen_rtx): Zero '0' fields.
9443 2003-04-11 Richard Henderson <rth@redhat.com>
9446 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
9447 not COMPLETE_TYPE_P for re-invoking layout_decl.
9449 2003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
9451 * doc/bugreport.texi: Fix paragraph breaking between sections
9452 in preparation for TeXinfo's paragraph indentation fixes.
9453 * doc/extend.texi: Ditto.
9454 * doc/invoke.texi: Ditto.
9455 * doc/objc.texi: Ditto.
9456 * doc/gcov.texi: Wrap 'gcov' in @command{}.
9457 * doc/invoke.texi (Darwin Options): Add a preamble.
9459 2003-04-11 Richard Henderson <rth@redhat.com>
9461 * config/i386/i386.c (tls_model_chars): Remove.
9462 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
9463 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
9464 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
9465 (tls_symbolic_operand_1): Likewise.
9466 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
9467 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
9468 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
9469 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
9470 bits "copied from i386.h" with default_encode_section_info.
9472 2003-04-11 Richard Henderson <rth@redhat.com>
9474 * rtl.def (SYMBOL_REF): Add two 0 fields.
9475 * gengtype.c (adjust_field_rtx_def): Handle them.
9476 * print-rtl.c (print_rtx): Print them.
9477 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
9478 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
9479 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
9480 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
9481 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
9482 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
9483 (SYMBOL_FLAG_MACH_DEP): New.
9484 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
9485 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
9486 (assemble_static_space): Set SYMBOL_REF_FLAGS.
9487 (assemble_trampoline_template): Likewise.
9488 (output_constant_def, force_const_mem): Likewise.
9489 (default_encode_section_info): New.
9490 * output.h: Declare it.
9491 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
9493 2003-04-11 Richard Henderson <rth@redhat.com>
9495 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
9496 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
9497 * optabs.c (init_optabs): Initialize them.
9498 (init_libfuncs): Use init_one_libfunc.
9499 * calls.c (expand_call): Use gcov_flush_libfunc.
9500 * expr.c (store_constructor): Use setbits_libfunc.
9501 * function.c (expand_main_function): Use init_one_libfunc.
9502 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
9504 2003-04-11 Mark Mitchell <mark@codesourcery.com>
9506 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
9507 documentation; add DECL_FRIEND_CONTEXT.
9509 2003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9511 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
9512 notes on linker selection and configuration for 64-bit HP-UX port.
9513 * doc/invoke.texi (hppa): Remove hppa text from description for
9514 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
9515 and -threads options.
9517 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
9518 libc.a on libdld.sl when -static is specified and -nolibdld is not
9520 * pa64-hpux.h (LIB_SPEC): Likewise.
9521 * pa-hpux11.h (LIB_SPEC): Likewise.
9522 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
9525 2003-04-11 Zack Weinberg <zack@codesourcery.com>
9527 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
9528 not IDENTIFIER_LOCAL_VALUE.
9530 2003-04-11 Richard Henderson <rth@redhat.com>
9533 * expr.c (expand_expr): Move DECL_RTL frobbing ...
9534 * stor-layout.c (layout_decl): ... here.
9536 2003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
9538 * doc/invoke.texi: Eliminate extra white-space caused by
9539 @gccoptlist{ on its own line.
9540 * doc/invoke.texi: Ensured there are two spaces between each option.
9541 * doc/invoke.texi: Re-wrapped option lines that were too wide.
9542 Added @gol to options that didn't have them.
9544 2003-04-11 Nathan Sidwell <nathan@codesourcery.com>
9546 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
9549 Simplify interface to gcov reading and writing.
9550 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
9551 gcov_alloc, gcov_modified, gcov_errored): Move into ...
9552 (struct gcov_var gcov_var): ... this static structure.
9553 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
9555 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
9557 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
9558 (gcov_reserve_length): Remove.
9559 (gcov_write_tag): New.
9560 (gcov_write_length): Adjust.
9561 (gcov_read_summary, gcov_write_summary): Adjust.
9562 (gcov_eof, gcov_ok): Rename to ...
9563 (gcov_is_eof, gcov_is_error): ... here. Return error code.
9564 (gcov_save_position, gcov_resync): Rename to ...
9565 (gcov_position, gcov_seek): ... here.
9566 (gcov_skip, gcov_skip_string): Remove.
9567 (gcov_error): Remove.
9568 (gcov_open, gcov_close): Adjust.
9569 * gcov.c (find_source): Take const char *, copy it on allocation.
9570 (read_graph_file): Adjust.
9571 (read_count_file): Adjust.
9572 * libgcov.c (gcov_exit): Adjust.
9573 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
9574 tag_arc_counts, tag_summary): Return void. Adjust.
9575 (struct tag_format): Adjust proc member.
9576 (dump_file): Adjust gcov calls.
9578 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
9580 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
9582 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
9583 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
9584 build != host sysrooted builds.
9585 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
9586 TARGET_SYSTEM_ROOT even on sysrooted natives.
9587 * configure: Rebuilt.
9589 2003-04-10 Zack Weinberg <zack@codesourcery.com>
9591 * c-decl.c (struct binding_level): Add shadowed_tags and
9592 function_body; remove this_block, tag_transparent, and
9593 subblocks_tag_transparent; update comments.
9594 (clear_binding_level, lookup_tag_reverse): Kill.
9595 (make_binding_level): Use ggc_alloc_cleared or memset.
9596 (lookup_tag): Remove struct binding_level* parameter. All
9597 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
9598 current_binding_level->tags if asked for thislevel_only or if
9599 we might have to diagnose "struct foo; union foo;"
9600 (pushlevel): Ignore argument. Do not push another binding
9601 level on the transition from the parameters to the top level
9602 of the function body; just tweak the flags and proceed.
9603 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
9604 a function body, separate the parameter list from the
9605 top-level local variables.
9606 (set_block): Do nothing.
9607 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
9608 shadowed_tags if necessary.
9609 (warn_if_shadowing): Nuke the special case for local shadowing
9611 (pushdecl): Do not create a shadow entry if we are replacing
9612 an older decl in the same binding level.
9613 (pushdecl_function_level): Tweak for new way of indicating
9615 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
9616 (start_function): Don't set subblocks_tag_transparent.
9617 (finish_function): Fix up the binding_level stack for totally
9618 empty functions. Otherwise, don't call poplevel.
9620 * c-common.c (shadow_warning): MANDATORY argument is no longer
9621 necessary. Always use plain warning.
9622 * c-common.h: Update to match.
9624 * cfglayout.c (scope_to_insns_initialize): Clear block when we
9625 hit the FUNCTION_DECL.
9626 * function.c: Do not create cyclic tree structure.
9628 2003-04-10 Zack Weinberg <zack@codesourcery.com>
9630 * c-tree.h (struct lang_identifier): Replace global_value,
9631 local_value members with symbol_value, tag_value. Kill
9632 implicit_decl and limbo_value.
9633 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
9634 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
9635 C_MISSING_PROTOTYPE_WARNED): Kill.
9636 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
9637 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
9638 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
9639 (implicit_decl_warning, lookup_name_current_level,
9640 record_function_scope_shadow): Don't prototype.
9641 (pushdecl_function_level): Prototype.
9643 * c-decl.c (truly_local_externals): New variable.
9644 (struct binding_level): Adjust commentary.
9645 (get_function_binding_level, clear_limbo_values,
9646 record_function_scope_shadow): Kill.
9647 (lookup_name_current_level, implicit_decl_warning): Are now static.
9648 (any_external_decl, record_external_decl): New static functions.
9649 (clone_underlying type): Split out of pushdecl.
9650 (c_print_identifier): Update to match changes to struct
9652 (poplevel): Delete #if 0 block. Make externals invisible
9653 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
9654 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
9655 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
9656 (duplicate-decls): For real parm decl after a forward decl,
9657 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
9658 foo(...) { } with only a warning. Say whether a previous
9659 declaration was implicit.
9660 (warn_if_shadowing): Now handles all shadowing, not just
9661 local-over-local. Clarify comments.
9662 (pushdecl): Rewritten. There is no longer a distinction
9663 between global and local symbol values; they're all
9664 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
9665 DECL_EXTERNAL decls, and use any_external_decl to check
9666 against previous externals. Kill #if 0 blocks. Don't
9667 tolerate error_mark_node being NULL.
9668 (pushdecl_top_level): Handle only those cases which
9669 Objective C (the only user) needs.
9670 (pushdecl_function_level): New function.
9671 (implicitly_declare): Create ordinary decls with
9672 C_DECL_IMPLICIT set. Recycle old decls, however they got
9674 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
9675 for C_DECL_INVISIBLE symbols.
9676 (lookup_name_current_level): Likewise. Use chain_member.
9677 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
9678 Use pushdecl_function_level.
9679 (builtin_function): Use C_DECL_INVISIBLE.
9680 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
9681 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
9682 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
9683 (identifier_global_value): Same. Must scan
9684 global_binding_level in extremis.
9686 * c-typeck.c (undeclared_variable): New static function, split
9687 from build_external_ref.
9688 (build_external_ref): Use DECL_CONTEXT, not
9689 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
9690 an instance variable. Restructure for clarity.
9691 * objc/objc-act.c: Use identifier_global_value, not
9692 IDENTIFIER_GLOBAL_VALUE.
9694 2003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
9696 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
9698 * doc/invoke.texi (C++ Dialect Options): Same.
9700 2003-04-10 Zack Weinberg <zack@codesourcery.com>
9702 * tree.c (tree_operand_check_failed): New function.
9703 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
9704 TREE_RTL_OPERAND_CHECK): New checking macros.
9705 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
9706 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
9707 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
9708 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
9709 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
9710 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
9713 Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
9716 * function.c (instantate_virtual_regs): Verify that all ASM statements
9717 match after the virutal regs instantiation.
9719 2003-04-10 Steve Ellcey <sje@cup.hp.com>
9721 * ia64-protos.h (addp4_optimize_ok): New.
9722 * ia64.c (addp4_optimize_ok): New.
9723 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
9724 (*ptr_extend_plus_2): Ditto.
9726 2003-04-10 Steve Ellcey <sje@cup.hp.com>
9728 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
9729 not with convert_memory_address.
9730 (store_constructor): Ditto, and same for copy_size_rtx.
9731 (expand_expr): Ditto.
9733 2003-04-10 Douglas B Rupp <rupp@gnat.com>
9735 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
9737 2003-04-10 Bob Wilson <bob.wilson@acm.org>
9739 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
9740 even if it is configured to be write-through.
9742 2003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
9744 * config/s390/s390.c (larl_operand): Do not allow symbols
9746 (s390_encode_section_info): Mark symbols with forced 1-byte
9748 (s390_strip_name_encoding): Strip '@'.
9749 (legitimize_pic_address): Handle symbols that are not valid
9750 LARL operands in 64-bit mode.
9752 2003-04-10 Andrew Haley <aph@redhat.com>
9754 * tree-inline.c (inlinable_function_p): Disable inlining for
9755 synchronized methods.
9757 2003-04-09 Steven Bosscher <steven@gcc.gnu.org>
9759 * c-common.h (lang_statement_code_p): Remove declaration.
9760 (statement_code_p): Ditto.
9761 (c_common_stmt_codes): Define; list of c-common statement codes.
9762 (statement_code_p): New extern declaration.
9763 (STATEMENT_CODE_P): Define.
9764 (INIT_STATEMENT_CODES): Define.
9765 * c-common.c (statement_code_p): Kill the function, declare
9766 as an array of bools instead.
9767 (lang_statement_code_p): Remove.
9768 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
9769 (c_safe_from_p): Ditto.
9770 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
9771 to initialize the statement_code_p array.
9772 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
9774 (copy_tree_r): Ditto.
9775 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
9776 statement tree codes.
9777 * cp/lex.c (cxx_init): Add missing print line break. Use
9778 INIT_STATEMENT_CODES to initialize the statement_code_p array.
9779 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
9780 instead of statement_code_p.
9781 * cp/pt.c (tsubst_expr): Ditto.
9782 * cp/tree.c (verify_stmt_tree_r): Ditto.
9783 (cp_statement_code_p): Remove.
9784 (init_tree): Don't set lang_statement_code_p, it's gone.
9786 2003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
9787 Zack Weinberg <zack@codesourcery.com>
9789 * regrename.c (struct du_chain): Use a bitfield for reg_class.
9790 * cse.c (struct qty_table_elem, struct table_elt, struct set):
9791 Use bitfields for fields holding enum rtx_code or
9792 enum machine_mode values. Add comments explaining size choices.
9794 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
9796 * config/fp-bit.c (unpack_d): Handle pair of doubles with
9797 different signs correctly.
9799 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
9801 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
9802 (reg_pending_barrier): Make it of the enumeration type.
9803 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
9805 (sched_analyze): Ditto.
9806 (sched_analyze_insn): Ditto. Use anti-dependencies for
9807 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
9808 (init_deps_global): Initialize the barrier as NO_BARRIER.
9810 2003-04-09 Vladimir Makarov <vmakarov@redhat.com>
9812 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
9813 Check that asm insn starts on a new cycle. Add nops after asm
9815 (bundling): Move insn type evaluation from the loop. Call
9816 issue_nops_and_insn with the new parameter. Ignore changing
9817 position for nops after asm insn.
9819 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
9821 * optabs.c: Comment that gen_add2_insn and others may actually
9822 return emitted insns, if the gen functions turn out to return
9824 * reload1.c (reload_cse_move2add): Cope with emitted insns from
9827 2003-04-09 Richard Henderson <rth@redhat.com>
9829 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
9830 but not tls_symbolic_operand.
9831 (ia64_expand_load_address): Remove scratch operand.
9832 (ia64_expand_tls_address): Split out from ia64_expand_move.
9833 (ia64_expand_move): Split symbolics only after reload.
9834 (ia64_emit_cond_move): New.
9835 * config/ia64/ia64-protos.h: Update.
9836 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
9837 (symbolic splitter): Accept SImode operands too.
9838 (cmove splitter): Use ia64_emit_cond_move.
9840 2003-04-09 Nick Clifton <nickc@redhat.com>
9842 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
9844 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
9845 instead of -mno-fpu.
9846 * config/arm/semi.h (ASM_SPEC): Likewise.
9847 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
9848 but only if -msoft-float is specified pass. Otherwise pass
9851 2003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9853 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
9854 free_EXPR_LIST_node.
9856 2003-04-08 Roger Sayle <roger@eyesopen.com>
9858 * fold-const.c (fold): Use "fold" following build in more places.
9859 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
9860 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
9862 2003-04-08 Roger Sayle <roger@eyesopen.com>
9864 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
9865 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
9866 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
9867 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
9868 Delete function scope "fcode" variable to avoid shadowing.
9870 2003-04-08 Kevin Buettner <kevinb@redhat.com>
9872 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
9873 Take into account DWARF_INITIAL_LENGTH_SIZE.
9875 2003-04-08 Hans-Peter Nilsson <hp@axis.com>
9877 * reorg.c (fill_slots_from_thread): When considering changing the
9878 insn following a reg-to-reg copy insn to use the source reg of the
9879 copy, bail out if there's overlap between the registers.
9881 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9883 * function.c (postponed_insns): New.
9884 (purge_addressof_1): Postpone processing of insns if addressofs
9885 are not put into stack.
9886 (purge_addressof): Process postponed insns.
9888 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
9890 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
9891 this is FP_MODE_DOUBLE .
9892 * sh.c (ra.h): #include.
9893 (push_regs): Add second parameter. Changed all callers.
9894 If necessary, set fpscr before saving floating point registers.
9895 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
9896 do saves / restores with SZ == 1.
9897 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
9898 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
9899 registers are being restored, restore FPSCR only after restoring them.
9901 2003-04-08 Aldy Hernandez <aldyh@redhat.com>
9903 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
9904 regardless of architecture.
9905 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
9907 2003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
9909 * sh.c (push_regs, calc_live_regs): Return int. Take single
9910 HARD_REG_SET * parameter. Changed all callers.
9912 Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
9914 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
9916 (legitimize_pic_address): Move plus outside the unspec.
9917 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
9920 2003-04-08 Nathan Sidwell <nathan@codesourcery.com>
9922 * gcov-io.h (gcov_save_position): Remove __inline__ from
9925 2003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
9927 * doc/install.texi: Use @command and @samp for single- and
9928 multi-word commands respectively.
9929 * doc/makefile.texi: Likewise.
9930 * doc/sourcebuild.texi: Likewise.
9932 2003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
9933 Richard Henderson <rth@redhat.com>
9936 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
9937 favor of looping and tail recursion for TREE_LIST and binops.
9939 2003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9941 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
9942 for insns without luid.
9944 2003-04-07 Glen Nakamura <glen@imodulo.com>
9947 * explow.c (maybe_set_unchanging): Don't flag non-static const
9948 aggregate type initializers with RTX_UNCHANGING_P.
9950 2003-04-07 Richard Henderson <rth@redhat.com>
9953 * function.c (purge_addressof_1): Don't try arithmetics for
9954 unchanging memories.
9956 2003-04-07 Janis Johnson <janis187@us.ibm.com>
9958 * doc/sourcebuild.texi (Test Suites): Document testing support for
9959 gcov and profile-directed optimizations; describe gcc.misc-tests.
9961 Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
9964 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
9966 2003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
9968 * doc/rtl.texi (Comparison operations): Update to
9969 record the allowed comparison modes.
9971 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
9973 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
9974 V2SI_type_node to opaque_V2SI_type_node. Rename all
9975 V2SF_type_node to opaque_V2SF_type_node.
9976 (rs6000_init_builtins): Define opaque_V2SI_type_node and
9977 opaque_V2SF_type_node.
9978 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
9979 opaque_V2SF_type_node are opaque types.
9981 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
9983 * gcse.c (replace_store_insn): Use single_set.
9985 2003-04-07 Nathan Sidwell <nathan@codesourcery.com>
9987 Change gcov file interface to single file at a time.
9988 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
9989 Convert to C89 prototypes.
9990 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
9991 gcov_error, gcov_modified): New static variables.
9992 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
9994 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
9995 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
9996 (gcov_read_summary, gcov_write_summary): Adjust.
9997 (gcov_save_position, gcov_reserve_length, gcov_write_length):
9999 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
10000 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
10001 (da_file_position, da_file_seek, da_file_write, da_file_read):
10003 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
10004 * gcov.c (gcov_type): Don't typedef here.
10006 (read_graph_file, read_count_file): Adjust.
10007 * gcov-dump.c (gcov_type): Don't typedef here.
10008 (IN_GCOV): #define.
10009 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
10010 Remove FILE parameter, adjust.
10011 (struct tag_format): Adjust proc member.
10012 (dump_file): Adjust.
10013 * libgcov.c (IN_LIBGCOV): #define.
10014 (gcov_exit): Adjust.
10015 * loop-init.c: Don't #include gcov-io.h
10016 * profile.c (struct counts_entry): New structure to hold counter
10018 (struct section_reference, struct da_index_entry): Remove.
10019 (bbg_file, da_file): Remove.
10020 (htab_counts_index_hash, htab_counts_index_eq,
10021 htab_counts_index_del): Replace with ...
10022 (htab_counts_entry_hash, htab_counts_entry_eq,
10023 htab_counts_entry_del): ... these.
10024 (cleanup_counts_index, index_counts_file): Remove.
10025 (read_counts_file): New function.
10026 (get_exec_counts): Adjust.
10027 (compute_branch_probabilities): Don't free the exec counts here.
10028 (branch_prob): Adjust.
10029 (init_branch_prob): Adjust.
10030 (end_branch_prob): Adjust.
10032 2003-04-07 Aldy Hernandez <aldyh@redhat.com>
10034 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10037 * config/rs6000/rs6000.c: Delete rs6000_fprs.
10038 Declare rs6000_float_gprs.
10039 Declare rs6000_float_gprs_string.
10040 (rs6000_parse_float_gprs_option): New.
10041 (rs6000_override_options): Genericize rs6000_parse_* calls to use
10042 rs6000_parse_yes_no_option.
10043 Change check for cpu=8540, to use TARGET_E500.
10044 (rs6000_parse_isel_option): Delete.
10045 (rs6000_parse_spe_option): Delete.
10046 (rs6000_parse_vrsave_option): Delete.
10048 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
10049 Define rs6000_float_gprs_string.
10050 (TARGET_OPTIONS): Add rs6000_float_gprs option.
10052 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
10054 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
10056 Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
10059 * cfglayout.c (cfg_layout_redirect_edge):
10060 Redirect any branch edges unified with the fallthru one.
10061 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
10062 case fallthru edges when called via cfglayout.c
10064 2003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
10066 * c-typeck.c (output_init_element): Check for type == error_mark_node.
10068 2003-04-07 Kazu Hirata <kazu@cs.umass.edu>
10070 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
10072 (a splitter): Do zero-extension via HImode.
10074 2003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
10076 * doc/invoke.texi: Eliminate extra white-space caused by
10077 @gccoptlist{ on its own line.
10078 * doc/invoke.texi: Ensured there are two spaces between each option.
10079 * doc/invoke.texi: Re-wrapped option lines that were too wide.
10080 Added @gol to options that didn't have them.
10082 2003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
10084 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
10086 2003-04-06 Zack Weinberg <zack@codesourcery.com>
10088 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
10089 at the sizes of the relevant structures, rather than relying
10090 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
10091 sizes of any such we don't know about. Use
10092 lang_hooks.identifier_size for IDENTIFIER_NODE.
10094 (initializer_zerop): Use CONSTRUCTOR_ELTS.
10095 * tree.def: Update commentary. Make fourth element of
10096 the definition for all 'c' and 'x' nodes zero.
10098 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
10099 * langhooks-def.h: Update to match.
10100 * langhooks.c: New default, lhd_tree_size.
10102 * c-common.def (SRCLOC): Kill.
10103 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
10104 Remove entirely - was already #if-ed out.
10107 2003-04-06 Zack Weinberg <zack@codesourcery.com>
10109 * mklibgcc.in: Use a here document to avoid running afoul of
10110 shells that generate control-A from "echo \1".
10112 2003-04-06 Aldy Hernandez <aldyh@redhat.com>
10114 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
10117 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
10120 * config/rs6000/eabi.h (TARGET_E500): Define.
10122 * config/rs6000/rs6000.h (TARGET_E500): Define.
10123 (TARGET_OPTIONS): Add spe= option.
10124 Declare rs6000_spe and rs6000_spe_string extern.
10126 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
10127 Change TARGET_SPE to TARGET_E500.
10128 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
10130 (print_operand): Same.
10131 (rs6000_generate_compare): Same.
10132 (output_cbranch): Same.
10133 (rs6000_spe): Declare.
10134 (rs6000_spe_string): Declare.
10135 (rs6000_override_options): Call rs6000_parse_spe_option.
10136 (rs6000_parse_spe_option): New.
10138 2003-04-06 Steven Bosscher <steven@gcc.gnu.org>
10140 * hashtable.c (gcc_obstack_init): Delete this function
10141 and everything related to it.
10142 * hashtable.h: Remove prototype.
10143 * bitmap.c (bitmap_element_allocate): Cleanup redundant
10144 defines. Cleanup some unnecessary whitespace.
10145 * defaults.h (obstack_chunk_alloc): Redefine with
10146 appropriate casts for libiberty obstacks.
10147 (obstack_chunk_free): Ditto.
10148 (OBSTACK_CHUNK_SIZE): Define, default to 0.
10149 (gcc_obstack_init): Define as a call to _obstack_begin.
10150 * tree.c (print_obstack_statistics): Delete this unused
10152 * tree.h (obstack): Don't forward-declare.
10153 (print_obstack_statistics): Delete prototype.
10154 (print_obstack_name): Ditto.
10155 (gcc_obstack_init): Ditto.
10156 * rtl.h (gcc_obstack_init): Ditto.
10157 * java/jv-scan.c (gcc_obstack_init): Delete this
10158 function, its prototype and related defines.
10159 * java/jvgenmain.c (gcc_obstack_init): Delete this
10160 function, and related defines.
10161 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
10162 (obstack_chunk_free): Ditto
10164 2003-04-06 Geoffrey Keating <geoffk@apple.com>
10166 * dbxout.c (dbxout_handle_pch): Move prototype out from
10167 #if defined DBX_DEBUGGING_INFO.
10169 2003-04-05 Nathan Sidwell <nathan@codesourcery.com>
10171 * gcov.c (struct arc_info): Replace local_span with cycle.
10172 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
10173 (solve_flow_graph): Set is_call_return.
10174 (add_line_counts): Adjust. In block mode, blocks attach to last line.
10175 (accumulate_line_counts): Find graph cycles, not spanning tree.
10176 (output_branch_count): Adjust.
10177 (output_lines): Adjust.
10178 * doc/gcov.texi: Update.
10180 2003-04-06 Kazu Hirata <kazu@cs.umass.edu>
10182 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
10183 the second alternative to "#".
10185 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
10187 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
10188 (single_zero_operand): Likewise.
10190 2003-04-05 Daniel Berlin <dberlin@dberlin.org>
10192 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
10193 * df.c: Include alloc-pool.h, not obstack.h.
10194 (df_ref_obstack): Remove.
10195 (df_ref_pool, df_link_pool): Add pools.
10196 (df_alloc): Init the new pools.
10197 (df_free): And free them.
10198 (df_link_create): Use the pools.
10199 (df_ref_create): Ditto.
10201 2003-04-05 Kazu Hirata <kazu@cs.umass.edu>
10203 * simplify-rtx.c: Fix formatting.
10205 2003-04-05 Andrew Pinski <apinski@apple.com>
10207 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
10208 reg with reg1 == reg2 and offset1 = -8.
10210 2003-04-05 David Edelsohn <edelsohn@gnu.org>
10212 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
10213 multiply costs. Correct Power4 divide costs.
10214 * config/rs6000/power4.md: Restore multiply and FP latency.
10216 2003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10218 * alias.c (find_base_term): Export.
10219 * rtl.h (find_base_term): Declare.
10220 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
10221 instead of flag_exceptions. Move test for parameter passing ...
10222 (store_killed_in_insn): ... here.
10224 2003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10227 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
10230 2003-04-04 Geoffrey Keating <geoffk@apple.com>
10232 * dbxout.c (scope_labelno): Add GTY.
10233 (have_used_extensions): Add GTY.
10234 (source_label_number): Add GTY.
10235 (lastfile): Add GTY.
10236 (lastfile_is_base): New.
10237 (base_input_file): New.
10238 (dbxout_handle_pch): New.
10239 (dbx_debug_hooks): Add handle_pch.
10240 (xcoff_debug_hooks): Likewise.
10241 (dbxout_function_end): Remove scope_labelno.
10242 (dbxout_init): Set base_input_file.
10243 (dbxout_handle_pch): New.
10244 (dbxout_source_file): Honour lastfile_is_base.
10245 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
10246 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
10247 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
10248 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
10249 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
10250 * debug.h (struct gcc_debug_hooks): Add handle_pch.
10251 * c-pch.c (pch_init): Don't call start_source_file, but do call
10253 (c_common_write_pch): Call handle_pch.
10254 (c_common_read_pch): Don't call start_source_file,
10255 or end_source_file.
10257 Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
10259 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
10260 use of default attributes to agree MEM_ALIGN macro.
10262 Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
10264 * dbxout.c (dbxout_type): When printing type index of range type
10265 whose bounds are printed in octal format, print type of parent type if
10266 it exists so enumerated type descriptions are not transformed
10267 into unsigned types.
10269 2003-04-04 Kazu Hirata <kazu@cs.umass.edu>
10271 * config/h8300/h8300-protos.h: Add a prototype for
10272 compute_a_shift_cc.
10273 * config/h8300/h8300.c (shift_one): Update the CC status.
10274 (shift_two): Likewise.
10275 (output_a_shift_cc): Set cc_inline and cc_special.
10276 (compute_a_shift_cc): New.
10277 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
10279 2003-04-04 Richard Henderson <rth@redhat.com>
10281 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
10283 2003-04-04 Loren James Rittle <ljrittle@acm.org>
10285 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
10286 * fixinc/fixincl.x: Rebuilt.
10287 * fixinc/tests/base/stdio.h: Regenerated.
10289 2003-04-04 Nathan Sidwell <nathan@codesourcery.com>
10291 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
10293 Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
10295 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
10297 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
10299 2003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10301 * doc/contrib.texi (Contributors): Add entries for Wolfgang
10302 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
10303 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
10304 Danny Smith, and Ulrich Weigand.
10305 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
10308 2003-04-04 Nick Clifton <nickc@redhat.com>
10310 * config/sparc/sol2-bi.h: Revert previous delta.
10311 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
10313 2003-04-04 Nick Clifton <nickc@redhat.com>
10315 * config/v850/v850.c (expand_prologue): Only use register save
10316 helper functions if long calls are not being used.
10317 Add a clobber of r11 id using long calls.
10318 (pattern_is_ok_for_prologue): Account for the extra clobber.
10319 (construct_save_jarl): Likewise.
10320 * config/v850/v850.md (prolog pattern): Do not use this pattern
10323 2003-04-04 Andreas Schwab <schwab@suse.de>
10325 * stor-layout.c (layout_decl): Avoid syntax error in last change
10326 when PCC_BITFIELD_TYPE_MATTERS is defined but not
10327 EMPTY_FIELD_BOUNDARY.
10329 2003-04-03 Jason Merrill <jason@redhat.com>
10332 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
10333 Look backwards for a line note.
10335 2003-04-03 Neil Booth <neil@daikokuya.co.uk>
10337 * fix-header.c (read_scan_file): Defer switch processing.
10339 2003-04-03 Matt Austern <austern@apple.com>
10341 * cpppch.c (reset_ht): Remove.
10342 (cpp_read_state): Remove loop to reset hashtable identifiers.
10343 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
10344 after pch file is written.
10345 * ggc.h (gt_pch_fixup_stringpool): Declare.
10346 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
10347 hashnode's value to another hashtable, then clear the original.
10348 (saved_ident_hash): Define.
10349 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
10350 store definitions in ident_hash, and clear ident_hash.
10351 (gt_pch_fixup_stringpool): Define. Restore definitions from
10352 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
10354 Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
10356 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
10358 2003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10360 PR optimization/10157
10361 * gcse.c (can_copy_p): Rename it to can_copy.
10362 (can_copy_init_p): Remove.
10363 (compute_can_copy): Use can_copy instead of can_copy_p.
10364 (can_copy_p): New exported function. Call compute_can_copy.
10365 (hash_scan_set): Use it.
10366 (gcse_main): Don't call compute_can_copy.
10367 (bypass_jumps): Don't call compute_can_copy.
10368 * rtl.h (can_copy_p): Declare.
10369 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
10370 copy if the mode doesn't support copy operations.
10372 2003-04-03 Jason Merrill <jason@redhat.com>
10374 * Makefile.in (unstrap): Also remove stage_last.
10376 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
10377 (dwarf2out_source_line): Don't do anything if line==0.
10379 * stor-layout.c (do_type_align): New fn, split out from...
10380 (layout_decl): ...here. Do all alignment calculations for
10382 (update_alignment_for_field): Not here.
10383 (start_record_layout, debug_rli): Remove unpadded_align.
10384 * tree.h (struct record_layout_info_s): Remove unpadded_align.
10385 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
10386 or DECL_MODE on the CONST_DECLs.
10387 (finish_struct): Don't mess with DECL_ALIGN.
10389 Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
10391 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
10393 Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
10395 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
10396 function is an interrupt handler.
10398 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
10399 restoring target registers with EH_RETURN_STACKADJ_RTX; use
10400 multiple registers in round-robin fashion.
10402 2003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10404 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
10405 * system.h (CHAR_BITFIELD): New.
10407 2003-04-03 Kazu Hirata <kazu@cs.umass.edu>
10409 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
10411 (another peephole2): Likewise.
10413 2003-04-03 Nick Clifton <nickc@redhat.com>
10415 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
10416 (DEF_ARCH64_SPEC): Likewise.
10418 Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
10420 * i386.c (constant_address_p): Use legitimate_constant_p.
10421 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
10423 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
10425 * config/h8300/h8300-protos.h: Add a prototype for
10427 * config/h8300/h8300.c (gtle_operator): New.
10428 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
10430 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
10433 2003-04-02 Richard Henderson <rth@redhat.com>
10435 * libgcc-std.ver (_Unwind_GetCFA): New.
10436 * unwind-dw2.c (_Unwind_GetCFA): New.
10437 * unwind-libunwind.c (_Unwind_GetCFA): New.
10438 * unwind-sjlj.c (_Unwind_GetCFA): New.
10439 * unwind.h: Declare it.
10441 Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
10444 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
10445 when MMX/SSE is not available.
10447 2003-04-02 Mike Stump <mrs@apple.com>
10449 * doc/install.texi (Specific): Update pointers to apple.com.
10451 Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
10453 * i386.c (override_options): Disable red zone by default on i386.
10454 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
10455 Do not test TARGET_64BIT together with TARGET_RED_ZONE
10457 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
10459 * config/h8300/h8300.md (a peephole2): Tighten the condition.
10461 2003-04-02 Richard Henderson <rth@redhat.com>
10463 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
10465 2003-04-02 Kazu Hirata <kazu@cs.umass.edu>
10467 * config/h8300/h8300.md (a peephole2): New.
10469 2003-04-02 Richard Henderson <rth@redhat.com>
10471 * except.c (sjlj_find_directly_reachable_regions): Recognize when
10472 must-not-throw region has been deleted.
10474 2003-04-02 Richard Henderson <rth@redhat.com>
10476 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
10477 optimization when flag_exceptions not enabled.
10479 2003-04-02 Vladimir Makarov <vmakarov@redhat.com>
10481 * config/rs6000/rs6000.c
10482 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
10484 (rs6000_issue_rate): Add case for 8540.
10485 (rs6000_use_sched_lookahead): New function.
10487 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
10488 units into MU ones.
10489 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
10490 reservation before retirement.
10491 (ppc8540_multiply, ppc8540_load, ppc8540_store,
10492 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
10493 Remove additional cycle in the reservation before retirement.
10494 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
10495 reservation of ppc8540_issue.
10497 2003-04-02 Andreas Schwab <schwab@suse.de>
10499 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
10501 2003-04-01 Richard Henderson <rth@redhat.com>
10503 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
10504 notes for nothrow calls if flag_forced_unwind_exceptions.
10505 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
10506 (sjlj_find_directly_reachable_regions): Likewise.
10507 (reachable_handlers): Likewise.
10508 (can_throw_external): Likewise.
10509 (collect_one_action_chain): Record cleanups after catch-all and
10510 must-not-throw if flag_forced_unwind_exceptions.
10511 * flags.h (flag_forced_unwind_exceptions): Declare.
10512 * toplev.c (flag_forced_unwind_exceptions): New.
10513 (lang_independent_options): Add it.
10514 * doc/invoke.text: Add it.
10516 2003-04-01 David Mosberger <davidm@hpl.hp.com>
10518 * config/ia64/crti.asm: Clean up trailing whitespace.
10519 Remove trailing hashes (#) from identifiers.
10521 * config/ia64/crtn.asm: Ditto.
10523 * config/ia64/crtend.asm: Remove trailing hashes (#) from
10525 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
10526 directives. Drop explicit bundling---it just makes the code
10527 harder to read. Don't save/restore gp needlessly.
10529 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
10530 identifiers (they're only needed if the identifier would clash
10531 with a register name otherwise).
10532 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
10533 directives. Drop explicit bundling---it just makes the code
10535 (__do_jv_register_classes): Ditto.
10536 (.fini_array): Remove "progbits" (newer
10537 assemblers don't like wrong section-types).
10538 (.init_array): Ditto.
10540 2003-04-01 Roger Sayle <roger@eyesopen.com>
10543 * gcse.c (reg_killed_on_edge): New function to test whether the
10544 given reg is overwritten by any instruction queued on an edge.
10545 (bypass_block): Ignore substitutions killed on incoming edges.
10546 Don't bypass outgoing edges that have queued instructions.
10548 2003-04-01 Alexandre Oliva <aoliva@redhat.com>
10550 * real.h (EXP_BITS): Make room for...
10551 (struct real_value): ... added canonical bit.
10552 (struct real_format): Added pnan.
10553 (mips_single_format, mips_double_format, mips_extended_format,
10554 mips_quad_format): New.
10555 * real.c: Copy p to pnan in all formats.
10556 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
10557 (real_nan): Use pnan to compute significand's shift.
10558 (real_identical): Disregard significand in canonical
10560 (real_hash): Likewise. Take signalling into account.
10561 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
10562 Disregard significand bits in canonical NaNs. Set all bits of
10563 canonical NaN if !qnan_msb_set.
10564 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
10565 qnan_msb_set to tell the base double format.
10566 (ibm_extended_format): Use 53 as pnan.
10567 (mips_single_format, mips_double_format, mips_extended_format,
10568 mips_quad_format): Copied from the corresponding ieee/ibm
10569 formats, with qnan_msb_set false.
10570 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
10571 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
10572 * config/mips/mips.c (override_options): Use mips_single_format
10573 and mips_double_format. Default TFmode to mips_quad_format.
10574 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
10575 * config/mips/t-irix6: Likewise.
10576 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
10577 * config/fp-bit.c (pack_d, unpack_d): Obey it.
10579 2003-04-01 Geoffrey Keating <geoffk@apple.com>
10581 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
10582 (live_image_destructor): Reset image to initial state.
10583 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
10585 2003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
10587 * config/sparc/sparc.c (input_operand): Accept bare
10588 CONSTANT_P_RTX operands.
10590 2003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10592 * gcse.c (struct ls_expr): Added pattern_regs field.
10593 (ldst_entry): Initialize it.
10594 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
10595 (store_ops_ok): Use regs precomputed by them.
10596 (find_loads, store_killed_in_insn, load_kills_store): Change return
10598 (store_killed_before, store_killed_after): Take position of register
10600 (reg_set_info): Store position of the setter.
10601 (gcse_main): Enable store motion.
10602 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
10603 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
10605 (simple_mem): Enable store motion of non-symbol mems.
10606 (regvec): Type changed.
10607 (LAST_AVAIL_CHECK_FAILURE): New.
10608 (compute_store_table_current_insn): New.
10609 (build_store_vectors): Computation of availability and anticipatability
10611 (compute_store_table, find_moveable_store): ... here.
10612 (delete_store): Remove senseless comment.
10613 (store_motion): Reorganize.
10615 2003-04-01 Kevin Buettner <kevinb@redhat.com>
10617 * config/mips/mips.c (override_options): Provide mappings for
10618 HI_REGNUM and LO_REGNUM.
10619 * config/mips/mips.h (MD_DBX_FIRST): Define.
10621 2003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
10623 * combine.c (merge_outer_ops): Fix typo.
10625 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
10627 2003-04-01 David Edelsohn <edelsohn@gnu.org>
10629 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
10630 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
10631 imul_compare. Add lmul_compare.
10632 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
10633 in second pair of dispatch slots. Model stores more accurately.
10634 Tweak multiply model. Add bypasses for CR instructions dependent
10635 on complicated compares.
10636 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
10637 (muldi3): Add lmul_compare patterns.
10638 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
10639 and FPSTORE_UX to split instructions and add COMPARE,
10640 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
10641 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
10642 (rs6000_rtx_costs): Separate POWER4 multiply case.
10644 2003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
10646 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
10647 Do nothing if __builtin_return_address was not used.
10649 Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
10651 * i386.md (test patterns): Allow memory operand in operand1.
10653 2003-02-31 Aldy Hernandez <aldyh@redhat.com>
10655 * testsuite/gcc.c-torture/execute/simd-3.c: New.
10657 * expr.c (expand_expr): Handle VECTOR_CST.
10658 (const_vector_from_tree): New.
10660 * varasm.c (output_constant): Handle VECTOR_CST.
10662 * c-typeck.c (digest_init): Build a vector constant from a
10665 * config/rs6000/rs6000.c: Remove prototype for
10666 easy_vector_constant.
10667 (easy_vector_constant): Add mode parameter. Rewrite to handle
10668 more easy constants.
10669 (rs6000_emit_move): Pass mode to easy_vector_constant.
10670 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
10671 (emit_easy_vector_insn): New.
10672 (easy_vector_same): New.
10673 (EASY_VECTOR_15): New macro.
10674 (EASY_VECTOR_15_ADD_SELF): New macro.
10675 (bdesc_2arg): Rename to xorv2si3.
10676 (easy_vector_constant_add_self): New.
10677 (input_operand): Allow vector constants.
10679 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
10680 easy_vector_constant, easy_vector_constant_add_self.
10681 (EXTRA_CONSTRAINT): Add 'W'.
10683 * config/rs6000/rs6000-protos.h: Add prototype for
10684 easy_vector_constant, emit_easy_vector_insn.
10686 * config/rs6000/altivec.md (xorv8hi3): New.
10688 Remove all _const0 patterns.
10689 (movv4si_internal): Rewrite to use code. Add vector constant to
10690 vector alternative. Add splitter.
10691 (movv8hi_internal): Same.
10692 (movv16qi_internal): Same.
10693 (movv4sf_internal): Same.
10694 Change the unspecs for vspltis* to use constants.
10696 * config/rs6000/spe.md ("xorv4hi3"): New.
10697 ("spe_evxor"): Rename to xorv2si3.
10699 Remove all _const0 patterns.
10700 (movv2si_internal): Rewrite to use code. Add vector constant to
10701 alternatives. Add splitter.
10702 (movv4hi_internal): Add vector constant to alternatives.
10703 (movv1di_internal): Same.
10704 (movv2sf_internal): Same.
10706 2003-03-31 Mark Mitchell <mark@codesourcery.com>
10709 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
10710 variably-sized arrays in parameters.
10711 (set_save_expr_context): New function.
10712 (c_expand_body): Use it, via walk_tree.
10714 2003-03-31 Eric Christopher <echristo@redhat.com>
10716 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
10717 (combinable_i3pat): Remove call to expand_field_assignment and
10720 2003-03-31 Mark Mitchell <mark@codesourcery.com>
10723 * c-common.c (finish_label_address_expr): Handle the
10726 2003-03-31 Richard Henderson <rth@redhat.com>
10728 * real.c (real_identical): Reorg so as to not compare
10729 signalling for normals.
10731 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
10733 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
10735 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
10737 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
10738 notes as they are boggus.
10739 (m68hc11_gen_movqi): Likewise.
10741 2003-03-31 Stephane Carrez <stcarrez@nerim.fr>
10743 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
10744 save the soft registers after the frame pointer so that gdb can unwind
10745 the frame more easily.
10746 (expand_epilogue): Likewise in opposite order; allow to use X register
10747 as scratch if the return value is by reference.
10749 2003-03-31 Jason Merrill <jason@redhat.com>
10752 * stor-layout.c (update_alignment_for_field): Respect
10753 DECL_USER_ALIGN for zero-length bitfields, too.
10754 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
10757 2003-03-31 Matt Austern <austern@apple.com>
10759 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
10760 (count_defs): Keep track of number of defs as well as total size.
10761 (write_defs): Put every definition in cpp_savedstate's defs array.
10762 (comp_hashnode): Define. Comparison function for qsort.
10763 (cpp_write_pch_deps): Sort definitions before writing them.
10764 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
10765 (collect_ht_nodes): Define.
10766 (cpp_valid_state): When verifying that undefined identifiers in
10767 the pch file are still undefined, read a sorted list of undefined
10768 identifiers, collect all defined identifiers into a sorted list,
10769 and walk through both lists to make sure there's no match.
10771 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
10773 * config/h8300/h8300.md (a peephole2): New.
10775 2003-03-31 Michael Matz <matz@suse.de>
10777 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
10779 2003-03-31 Segher Boessenkool <segher@koffie.nl>
10782 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
10783 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
10784 all call-clobbered registers as used.
10786 2003-03-31 Michael Matz <matz@suse.de>
10788 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
10789 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
10791 2003-03-31 Nathan Sidwell <nathan@codesourcery.com>
10793 * gcov.c: Add -a & -u options.
10794 (struct arc_info): Add local_span, is_call_non_return,
10795 is_nonlocal_return, is_unconditional flags, remove is_call flag.
10796 (struct block_info): Add flags, is_call_site, is_nonlocal_return
10797 members. Make encodings a union with span member.
10798 (struct function_info): Add blocks_executed, line, src, line_next
10800 (struct coverage_info): Make branches a union with blocks member.
10801 (struct source_info): Add functions member.
10802 (object_summary, program_count): New global variables.
10803 (flag_all_blocks, flag_unconditional): New flags.
10804 (find_source, output_branch_count): New functions.
10805 (print_usage): Adjust.
10807 (process_args): Adjust.
10808 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
10809 <GCOV_TAG_BLOCKS>: Read flags.
10810 <GCOV_TAG_LINES>: Adjust.
10811 (read_count_file): Process SUMMARY tags.
10812 (solve_flow_graph): Set is_unconditional and clear is_call_site
10814 (add_branch_counts): Adjust. Don't count unconditional branches.
10815 (add_line_counts): Deal with all-blocks mode, accumulate block
10817 (accumulate_line_counts): Adjust, generate local spanning tree for
10819 (output_lines): Adjust.
10820 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
10821 * doc/gcov.texi: Document.
10823 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
10825 * config/h8300/h8300.md: Organize peephole2's that transform
10826 (compare (reg:HI) (const_int)).
10828 2003-03-31 Roger Sayle <roger@eyesopen.com>
10830 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
10831 (init_emit_once): Initialize dconstm2 and dconsthalf here.
10832 * real.h (dconstm2, dconsthalf): Add prototypes here.
10833 * real.c (real_sqrt): Use dconsthalf rather than local copy.
10834 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
10835 exp(x/2.0) remember to fold the division if possible.
10836 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
10837 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
10838 1.0/(x*x) and pow(x,0.5) as sqrt(x).
10840 2003-03-31 Kazu Hirata <kazu@cs.umass.edu>
10842 * config/h8300/h8300.md (a new peephole2): New.
10844 2003-03-31 Richard Sandiford <rsandifo@redhat.com>
10846 * gcse.c (simple_mem): Return false for floating-point accesses
10847 if flag_float_store is true.
10849 2003-03-30 Roger Sayle <roger@eyesopen.com>
10851 * gcse.c (gcse_constant_p): New function to identify constants
10852 suitable for constant propagation, including COMPARE with two
10853 integer constant arguments.
10854 (hash_scan_set): Use gcse_constant_p.
10855 (find_avail_set): Likewise.
10856 (cprop_insn): Likewise.
10857 (do_local_cprop): Likewise.
10858 (find_implicit_sets): Likewise.
10859 (find_bypass_set): Likewise.
10861 2003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
10863 * except.h: Remove definition of varray_type.
10865 2003-03-30 Richard Henderson <rth@redhat.com>
10867 PR opt/10011, opt/10252:
10868 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
10869 before post-gcse cse pass.
10871 2003-03-30 Roger Sayle <roger@eyesopen.com>
10873 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
10875 2003-03-30 DJ Delorie <dj@redhat.com>
10877 * profile.c (instrument_edges): Make sure any newly created
10878 jump insns have correct jump label info.
10880 2003-03-30 Richard Henderson <rth@redhat.com>
10882 * cfgbuild.c (make_edges): Use tablejump_p.
10883 * cfgcleanup.c (label_is_jump_target_p): Likewise.
10884 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
10885 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
10886 (try_redirect_by_replacing_jump): Likewise.
10887 (redirect_edge_and_branch): Likewise.
10888 * cse.c (fold_rtx): Likewise.
10889 * jump.c (delete_related_insns): Likewise.
10890 * rtlanal.c (get_jump_table_offset): Likewise.
10891 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
10893 2003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
10895 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
10896 (STRICT2_WARN): Likewise.
10898 2003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10901 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
10902 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
10904 2003-03-30 Richard Henderson <rth@redhat.com>
10907 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
10908 don't zero_extend const inputs.
10910 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
10912 * reload1.c (reload_cse_move2add): Fix a comment typo.
10914 2003-03-30 Kazu Hirata <kazu@cs.umass.edu>
10916 * config/h8300/h8300.md (a peephole2): Remove useless code.
10918 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
10920 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
10921 (*iorsi3_and_lshiftrt): Likewise.
10922 (*iorsi3_zero_extract): Likewise.
10924 2003-03-29 Kazu Hirata <kazu@cs.umass.edu>
10926 * config/h8300/h8300.md (*insv_si_8_8): New.
10927 (*insv_si_8_8_lshiftrt_8): Likewise.
10928 (a peephole2): Likewise.
10930 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10932 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
10933 Uniformly use bugfix instead of bug fix.
10935 2003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10938 * ONEWS: Remove those items that already appear in the EGCS
10939 release notes on our web pages.
10941 2003-03-29 Alan Modra <amodra@bigpond.net.au>
10943 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
10944 TARGET_HARD_FLOAT. Reformat.
10945 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
10947 2003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
10949 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
10950 work on Solaris 2.5.1.
10952 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>
10954 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
10955 section of h8300.md
10956 (*addsi3_and_nor_r_1): Likewise.
10958 2003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
10960 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
10961 set up before any trapping memory access if flag_non_call_exceptions.
10963 2003-03-29 Alan Modra <amodra@bigpond.net.au>
10965 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
10967 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
10969 2003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
10971 * configure.in: Clarify comments.
10972 * configure: Regenerate.
10974 2003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
10976 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
10977 label even if pool empty when generating PIC.
10978 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
10980 2003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
10981 Dhananjay Deshpande <dhananjayd@kpit.com>
10984 * config/h8300/h8300.c (h8300_initial_elimination_offset):
10985 Correct the offset computation when TARGET_NORMAL.
10987 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
10990 * config/sparc/sparc.md (jump pattern): Correct order
10991 when issuing the annuling marker.
10993 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
10996 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
10997 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
10999 2003-03-28 Alan Modra <amodra@bigpond.net.au>
11001 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
11003 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11004 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11005 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11006 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11007 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11008 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11009 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
11011 2003-03-28 Alan Modra <amodra@bigpond.net.au>
11013 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
11014 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
11015 notes after hoisting.
11016 (load_mems): Adjust replace_loop_mems call.
11018 2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
11019 Richard Henderson <rth@redhat.com>
11021 PR target/10114 and PR target/10084
11022 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
11024 2003-03-27 Richard Henderson <rth@redhat.com>
11026 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
11028 2003-03-27 Roger Sayle <roger@eyesopen.com>
11030 * fold-const.c (fold_inf_compare): New function to simplify FP
11031 comparisons against +Infinity or -Infinity.
11032 (fold): Optimize floating point comparisons against Infs and NaNs.
11034 2003-03-27 Janis Johnson <janis187@us.ibm.com>
11036 * libgcov.c: Provide only dummy functions if libc is not available.
11038 2003-03-27 Richard Henderson <rth@redhat.com>
11040 * real.h (struct real_value): Add signalling.
11041 (EXP_BITS): Decrement.
11042 * real.c (get_canonical_qnan): Don't set MSB-1.
11043 (get_canonical_snan): Likewise. Set signalling.
11044 (real_identical): Compare signalling.
11045 (round_for_format): Remove force-one-bit on code.
11046 (real_nan): Likewise. Set signalling.
11047 (encode_ieee_single): Add force-one-bit code; honor signalling.
11048 (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
11049 (decode_ieee_single): Set signalling.
11050 (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
11052 2003-03-27 Olivier Hainque <hainque@act-europe.fr>
11055 * ada/Makefile.in (gnatlib configuration for HPUX): Split
11056 the general section for HPUX into specific sections for
11057 HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
11060 2003-03-27 Glen Nakamura <glen@imodulo.com>
11063 * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
11064 while incrementing giv.
11065 (record_biv): Check for duplicate biv locations and
11066 set (struct induction *) v->same if found.
11068 2003-03-27 David Mosberger <davidm@hpl.hp.com>
11070 * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
11071 v0.9 API change: replace read of UNW_REG_HANDLER with
11072 unw_get_proc_info().
11073 (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
11074 with unw_get_proc_info().
11075 (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
11076 unw_get_proc_info().
11078 2003-03-27 Vladimir Makarov <vmakarov@redhat.com>
11080 * config/rs6000/8540.md: Use presence_set instead of absence_set.
11082 2003-03-26 Richard Henderson <rth@redhat.com>
11084 * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
11086 2003-03-26 Roger Sayle <roger@eyesopen.com>
11088 PR bootstrap/10051, PR bootstrap/10169.
11089 * mips-tfile.c (init_file): Don't provide a static initializer.
11090 (initialize_init_file): Initialize the contents of init_file.
11091 (add_file): Call initialize_init_file if not already initialized.
11093 2003-03-26 Ulrich Weigand <uweigand@de.ibm.com>
11095 * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
11096 registers used for global asm variables.
11097 (s390_frame_info, s390_arg_frame_offset): Likewise.
11098 (s390_emit_prologue, s390_emit_epilogue): Likewise.
11100 2003-03-26 Vladimir Makarov <vmakarov@redhat.com>
11102 * config/rs6000/8540.md: New file.
11104 * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
11105 power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
11106 reservations for imul.
11108 * config/rs6000/rs6000.md: Include 8540.md. Change
11109 delayed_compare onto mult_compare for insns generating
11111 (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
11112 New type attribute values.
11114 * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
11115 fpsimple instead of fp.
11116 (*divsf3_gpr): Use type vecfdiv instead of fp.
11117 (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
11118 instead of vecfloat.
11119 (spe_evfsdive): Use type vecfdiv instead of vecfloat.
11120 (spe_brinc): Use type brinc instead of veccomplex.
11121 (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
11123 (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
11124 (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
11125 *movv2sf_internal): Define type attribute values for all
11127 (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
11129 (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
11130 instead of fpcompare.
11132 2003-03-26 David Edelsohn <edelsohn@gnu.org>
11134 * config/rs6000/power4.md: Allow delay between dispatch and
11135 function units for simple instructions. Correct store units.
11136 Allow branch to occupy as many dispatch slots as necessary.
11138 2003-03-26 Jakub Jelinek <jakub@redhat.com>
11140 * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
11141 (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
11142 zero extend old to it.
11143 * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
11146 2003-03-26 Eric Botcazou <ebotcazou@libertysurf.fr>
11149 * reload.c (find_reloads_address): Handle
11150 (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
11151 all base registers.
11153 2003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br>
11156 * version.c: Reference the GCC web site in the URL.
11158 2003-03-26 Alan Modra <amodra@bigpond.net.au>
11160 * c-incpath.c (add_standard_paths): Add both "translated" and
11161 non-translated header paths.
11163 2003-03-25 Loren James Rittle <ljrittle@acm.org>
11165 * doc/install.texi (*-*-freebsd*): Update with known status.
11167 2003-03-21 Jason Merrill <jason@redhat.com>
11169 PR optimization/10171
11170 * unroll.c (unroll_loop): Don't delete the jump at the end unless
11171 we also delete a jump at the beginning.
11173 2003-03-25 Stephane Carrez <stcarrez@nerim.fr>
11175 * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
11178 Tue Mar 25 20:35:51 CET 2003 Jan Hubicka <jh@suse.cz>
11180 * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
11181 constants are not expensive.
11183 Mon Mar 24 20:03:03 CET 2003 Jan Hubicka <jh@suse.cz>
11186 * cfglayout.c (fixup_reorder_chain): Fix dealing with the conditional
11187 jump jumping to the next instruction.
11188 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
11190 2003-03-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11192 * doc/passes.texi (Passes): Properly document that we do not
11193 perform jump2 any longer; remove command-line option -dJ.
11195 2003-03-25 Eric Botcazou <ebotcazou@libertysurf.fr>
11197 PR optimization/8746
11198 * config/i386/i386.md (and promoting splitters): Disable HImode to
11199 SImode promoting when the sign bit matters and is not preserved, or
11200 when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
11203 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
11205 * config/h8300/h8300.md (a peephole2): Extend to support loads
11206 in QImode and HImode.
11208 2003-03-24 Stephane Carrez <stcarrez@nerim.fr>
11210 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
11212 (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
11213 (MULTILIB_EXCEPTIONS): Likewise.
11214 * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
11215 by calling some board support routine.
11216 ("call_value"): Likewise.
11217 ("*return_void"): Likewise for return.
11218 ("*return_16bit"): Likewise.
11219 ("*return_32bit"): Likewise.
11220 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
11222 (DWARF2_ADDR_SIZE): Use 4 so that addresses can
11223 * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
11224 -mlong-calls for 68HC11.
11225 * config/m68hc11/larith.asm (declare_near): New macro.
11226 (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
11227 (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
11228 (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
11229 (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
11230 (__mulhi32): Likewise.
11231 (ret): Update macro for 68HC11.
11232 (__far_trampoline): Implement for 68HC11.
11233 (__call_a16, __call_a32, __return_void, __return_16): New support
11234 routines for 68HC11 memory bank switching calling support.
11235 (__return_32): Likewise.
11237 2003-03-24 Neil Booth <neil@daikokuya.co.uk>
11239 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
11241 2003-03-24 Janis Johnson <janis187@us.ibm.com>
11243 * doc/install.texi (Testing): Mention test result links from build
11246 2003-03-24 Mark Mitchell <mark@codesourcery.com>
11248 * function.c (put_var_into_stack): Change bool parameter to int.
11249 (gen_mem_addressof): Likewise.
11250 * rtl.h (gen_mem_addressof): Likewise.
11251 * tree.h (put_var_into_stack): Likewise.
11252 * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
11253 gen_mem_addressof or put_var_into_stack.
11254 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
11255 * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
11257 2003-03-24 Kazu Hirata <kazu@cs.umass.edu>
11259 * config/h8300/h8300.md (a peephole2): New.
11261 2003-03-24 Jakub Jelinek <jakub@redhat.com>
11263 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
11265 2003-03-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11267 * doc/contrib.texi (Contributors): Update Janis Johnson.
11269 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
11272 * combine.c (simplify_if_then_else): Check that the mode
11273 has MODE_INT class before applying the (OP Z (mult COND C2))
11276 2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
11278 PR optimization/9414
11279 * config/sparc/sparc.md (widening peepholes): Use
11280 widen_memory_access instead of change_address.
11282 2003-03-23 Mark Mitchell <mark@codesourcery.com>
11285 * c-typeck.c (c_mark_addressable): Adjust calls to
11286 put_var_into_stack.
11287 * expr.c (expand_expr): Likewise.
11288 * function.c (put_var_into_stack): Add rescan parameter. Do not
11289 call fixup_var_refs when rescan is false.
11290 (gen_mem_addressof): Likewise.
11291 (assign_parms): Adjust calls to put_var_into_stack.
11292 (setjmp_protect): Likewise.
11293 (setjmp_protect_args): Likewise.
11294 * rtl.h (gen_mem_addressof): Change prototype.
11295 * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
11296 * tree.h (put_var_into_stack): Change prototype.
11298 2003-03-23 Arpad Beszedes <beszedes@cc.u-szeged.hu>
11301 * builtins.c (expand_builtin_fputs): When optimizing for size,
11302 don't transform fputs into fwrite.
11304 2003-03-23 Glen Nakamura <glen@imodulo.com>
11307 * fold-const.c (extract_muldiv_1): Don't pass through type conversions
11308 when signedness changes for division or modulus.
11310 2003-03-24 Alan Modra <amodra@bigpond.net.au>
11312 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
11315 2003-03-23 Roger Sayle <roger@eyesopen.com>
11318 * stmt.c (expand_end_case_type): Check for overflow in range when
11319 determining whether to use a bit-test implementation.
11321 2003-03-23 Richard Henderson <rth@redhat.com>
11323 * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
11325 * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
11327 2003-03-23 Richard Henderson <rth@redhat.com>
11330 * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
11331 from then_bb or else_bb after flow2.
11333 2003-03-23 Zack Weinberg <zack@codesourcery.com>
11335 * configure.in: Check whether it is necessary to link against
11337 * configure: Regenerate.
11338 * Makefile.in: Add LDEXP_LIB substitution variable.
11340 2003-03-23 Kazu Hirata <kazu@cs.umass.edu>
11342 * config/h8300/h8300.md: Fix comment typos.
11344 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11346 * pa.c (output_cbranch): Fix typo in comment.
11348 2003-03-22 Richard Henderson <rth@redhat.com>
11350 * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
11353 2003-03-22 DJ Delorie <dj at redhat dot com>,
11354 Bruce Korb <bkorb at gnu dot org>
11356 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
11357 buggy Solaris 2.6 mutex/cond initializers.
11358 (solaris_mutex_init): Rename to solaris_mutex_init_2.
11359 * fixinc/fixincl.x: Regenerate.
11360 * fixinc/tests/base/pthread.h: Update.
11361 * fixinc/fixincl.c(initialize): be explicit about the default case
11362 and indicate verbose level when being very, very verbose.
11363 * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
11365 2003-03-22 Andreas Jaeger <aj@suse.de>
11367 * config/i386/i386.c (ix86_init_machine_status): Return value.
11369 2003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11371 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
11372 conditional branch to the following instruction. Use next_real_insn
11373 instead of next_active_insn.
11374 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
11375 instead of next_active_insn.
11377 2003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
11379 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
11380 instead of 'm' constraint in forced-split alternatives.
11381 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
11382 VALIDATE_ADDRESS parameter to operand_subword.
11384 2003-03-22 Kazu Hirata <kazu@cs.umass.edu>
11386 * config/h8300/h8300.c (notice_update_cc): Correctly handle
11387 the case where the set destination is STRICT_LOW_PART.
11389 2003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
11391 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
11392 c30 instead of a c40 processor.
11394 2003-03-22 Alan Modra <amodra@bigpond.net.au>
11396 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
11398 2003-03-21 Zack Weinberg <zack@codesourcery.com>
11400 * c-common.c: Include intl.h.
11401 (shadow_warning): Rewrite to allow better diagnostic translations.
11402 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
11403 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
11405 * Makefile.in (c-common.o): Add intl.h.
11407 2003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
11409 * config.gcc: Remove 'float_format'.
11411 * fixproto: Define NULL and size_t in generated stdlib.h and
11412 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
11413 Rearrange file generation loop for readability. Generate time.h,
11414 string.h if missing.
11415 * tsystem.h: Include <string.h>, <time.h> unconditionally.
11416 * config.gcc: Blow away POSIX defines.
11418 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
11420 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
11422 2003-03-22 Stephane Carrez <stcarrez@nerim.fr>
11424 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
11425 writing .interrupt command.
11426 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
11427 if it's a far or near function.
11428 ("call_value"): Likewise.
11429 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
11431 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
11432 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
11433 (m68hc11_initial_elimination_offset): Set current_function_far
11434 according to attributes.
11435 (expand_prologue): Likewise.
11436 (trap_handler_symbol): New global to keep track of trap handlers.
11437 (m68hc11_encode_section_info): Mark symbol as far if needed; set
11439 (m68hc11_is_far_symbol): New function.
11440 (m68hc11_is_trap_symbol): New function.
11441 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
11442 (m68hc11_is_trap_symbol): Declare.
11444 2003-03-21 Jan Hubicka <jh@suse.cz>
11446 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
11447 only when amount of saved regs changed.
11448 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
11449 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
11451 2003-03-21 Jan Hubicka <jh@suse.cz>
11454 * function.c (instantiate_virtual_regs_lossage): New function.
11455 (instantiate_virtual_regs_1): Use it.
11456 (instantiate_virtual_regs): Do not continue in substition when insn has
11459 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
11461 * combine.c (make_field_assignment): Fix a warning.
11463 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
11465 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
11467 2003-03-21 Dale Johannesen <dalej@apple.com>
11469 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
11470 priority for R2 on Darwin.
11471 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
11473 2003-03-21 Kazu Hirata <kazu@cs.umass.edu>
11475 * combine.c (make_field_assignment): Remove unnecessary AND
11476 when storing into zero_extract.
11478 2003-03-21 Zack Weinberg <zack@codesourcery.com>
11480 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
11481 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
11482 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
11485 2003-03-21 DJ Delorie <dj@redhat.com>
11487 * optabs.c (init_integral_libfuncs): Make sure we init at least up
11488 to "long long" size words.
11490 2003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
11492 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
11493 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
11494 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
11496 2003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
11499 * doc/extend.texi: Move misplaced paragraph about underscores in
11500 variables in macros.
11502 2003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
11503 Richard Henderson <rth@redhat.com>
11505 PR optimization/8366
11506 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
11507 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
11508 PIC+SYMBOLIC_CONST in other modes than Pmode.
11509 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
11510 the form PIC+SYMBOLIC_CONST as mode dependent.
11512 2003-03-21 DJ Delorie <dj@redhat.com>
11514 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
11515 sure we always emit at least one insn.
11517 2003-03-21 Christopher Faylor <cgf@redhat.com>
11519 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
11520 stub t-cygming. Use common target header cygming.h. Add extra
11521 c_target_obj and cxx_target_obj file. Default cygwin to posix
11522 threading. Enforce i386 as float format.
11523 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
11524 Remove cygwin.h as target header. Use common target header
11525 cygming.h Enforce i386 as float format. Correct typo.
11526 * config/i386/cygming.h: New file, containing definitions
11527 common to mingw32 and cygwin.
11528 * config/i386/cygwin.h: Remove definitions common to cygwin and
11529 mingw. Simplify special spec logic. Define "wrappers" around
11530 certain include path defines to accommodate -mno-cygwin.
11531 Remove some #if 0'ed code.
11532 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
11533 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
11534 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
11535 * config/i386/mingw32.h: Remove definitions common to cygwin and
11537 (EXTRA_OS_CPP_BUILTINS): Adjust.
11538 (TARGET_VERSION): Define.
11539 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
11540 mingw32.h definitions.
11541 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
11542 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
11543 Add compilation rules for cygwin1.o cygwin2.o.
11544 * config/i386/cygwin1.c: New file.
11545 * config/i386/cygwin2.c: New file.
11546 * config/i386/t-cygming: New makefile stub.
11548 2003-03-20 Richard Henderson <rth@redhat.com>
11550 * fold-const.c (extract_muldiv_1): Revert changing order of
11551 operands in case MULT_EXPR of 2003-02-16 patch.
11553 2003-03-20 Daniel Berlin <dberlin@dberlin.org>
11554 Merge changes from new-regalloc-branch
11556 From Michael Matz <matz@suse.de>
11557 * df.c (df_ref_record_1): Move init of loc to safe point.
11558 Only recurse on interesting things in parallels.
11559 Handle CLASS_CANNOT_CHANGE_MODE smarter.
11560 (df_uses_record): Ditto.
11562 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
11563 it's already okay to use memory operands in (IE doesn't require
11564 adding another insn or anything).
11566 2003-03-20 Richard Henderson <rth@redhat.com>
11569 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
11570 different from word_mode.
11572 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
11574 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
11575 source operand to those that can be extracted with bld.
11577 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
11580 * arm.md (UNSPEC_PIC_BASE): New constant.
11581 (pic_add_dot_plus_four): Wrap with unspec.
11582 (pic_add_dot_plus_eight): Likewise.
11584 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
11586 * config/h8300/h8300.md (*insv_si_1_n): New.
11587 (*insv_si_1_n_lshiftrt): Likewise.
11589 2003-03-20 Roger Sayle <roger@eyesopen.com>
11591 * fold-const.c (fold_mathfn_compare): New function to simplify
11592 comparisons against built-in math functions. Fold comparisons
11593 of sqrt against constants.
11594 (fold): Call fold_mathfn_compare when appropriate.
11596 2003-03-20 Richard Earnshaw <rearnsha@arm.com>
11598 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
11601 2003-03-20 Per Bothner <pbothner@apple.com>
11603 Various cleanups to help compile server.
11605 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
11606 and pass that to _cpp_init_hashtable.
11607 (cpp_read_main_file): Drop hash_table* argument; don't call
11608 _cpp_init_hashtable.
11609 * cpplib.h: Update declarations to match.
11610 * c-opts.c (c_common_init_options): Pass ident_hash to
11612 (c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
11613 * fix-header.c (read_scan_file): Likewise pass NULL table to
11614 cpp_create_reader rather than cpp_read_main_file.
11616 * cppfiles.c (cpp_rename_file): Generalized and renamed
11617 to cpp_change_file.
11618 * cpplib.h: Update declaration to match.
11619 * c-opts.c (push_command_line_line, finish_options): Change
11620 cpp_rename_file calls to cpp_change_file.
11622 * line-map.c (add_line_map): Allow leaving the outermost file.
11623 Allowing entering an outermost-file after the initial time.
11625 * toplev.c (pop_srcloc): Allow popping from initial file.
11627 2003-03-20 Kazu Hirata <kazu at cs dot umass dot edu>
11629 * fold-const.c (fold): Fold A - (A & B) into ~B & A.
11631 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
11633 * config/h8300/h8300.md (a peephole2): New.
11635 2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
11637 * config/h8300/h8300.md (*addsi3_and_r_1): New.
11638 (*addsi3_and_not_r_1): Likewise.
11640 2003-03-19 Loren James Rittle <ljrittle@acm.org>
11642 * Makefile.in (STRICT2_WARN): Add @WERROR@.
11643 (GCC_WARN_CFLAGS): Remove $(WERROR).
11644 (fixinc.sh-warn): New.
11645 * ada/Make-lang.in (ada-warn): Add $(WERROR).
11646 * cp/Make-lang.in (cp-warn): Add $(WERROR).
11647 * f/Make-lang.in (f-warn): Add $(WERROR).
11648 * java/Make-lang.in (java-warn): Add $(WERROR).
11649 * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
11651 2003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
11653 * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
11654 langhooks-def.h (lhd_tree_dump_dump_tree),
11655 langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
11656 Change return type from 'int' to 'bool'. Replace 0 and 1 with
11657 true and false in return statements.
11659 2003-03-19 Kevin Buettner <kevinb@redhat.com>
11661 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
11662 (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
11663 DWARF_INITIAL_LENGTH_SIZE.
11664 (output_compilation_unit_header, output_pubnames, output_aranges)
11665 (output_line_info): Output 0xffffffff escape value for 64-bit
11667 * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
11669 2003-03-19 Ulrich Weigand <uweigand@de.ibm.com>
11671 * config/s390/s390.c (s390_preferred_reload_class): Do not
11672 force constants to the pool unless necessary.
11673 (s390_decompose_address): Prefer to use pointer as base,
11674 not index register.
11675 * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
11677 ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
11678 "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
11679 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
11680 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
11681 "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
11683 2003-03-19 Jan Hubicka <jh@suse.cz>
11685 * i386.h (machine_function): New fields use_fast_prologue_epilogue.
11686 * i386.c (use_fast_prologue_epilogue): Remove.
11687 (ix86_frame): New field save_regs-using_mov;
11688 (ix86_compute_frame_layout): Decide on fast prologues;
11689 allocate saved registers in red zone.
11690 (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
11692 2003-03-19 Nick Clifton <nickc@redhat.com>
11694 * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
11696 2003-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11699 * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
11700 * pa-protos.h (output_lbranch): New prototype.
11701 * pa.c (compute_frame_size): Change size of the frame marker on the
11702 64-bit ports to 48 bytes.
11703 (pa_output_function_prologue): Document why SAVE_SP is set.
11704 (hppa_expand_prologue): Save previous stack pointer into frame marker
11705 on targets which use the hpux unwind library.
11706 (output_cbranch): Use output_lbranch.
11707 (output_lbranch): New function to output long unconditional branches.
11708 * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
11709 (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
11711 * pa.md (jump): Use output_lbranch.
11712 (allocate_stack): New expander for dynamic stack allocation.
11714 2003-03-19 Alan Modra <amodra@bigpond.net.au>
11716 * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
11717 when debugging on XCOFF targets. Delete "abi" temp.
11720 * combine.c (force_to_mode <NOT>): Use gen_int_mode.
11722 2003-03-18 Jakub Jelinek <jakub@redhat.com>
11724 * config/s390/s390.c (s390_output_dwarf_dtprel): New.
11725 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
11726 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
11728 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
11729 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
11730 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
11732 2003-03-18 Geoffrey Keating <geoffk@apple.com>
11734 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
11735 the result of machopic_function_base_name.
11736 * config/darwin.c (machopic_function_base_name): Use a gc-allocated
11737 string rather than a static array.
11739 * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
11741 * gengtype.c: Include rtl.h.
11742 (enum rtx_code): Don't define.
11743 (rtx_format): Make declaration match rtl.h.
11744 (rtx_next_new): Rename from rtx_next to avoid conflict. Change all
11746 (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
11747 * Makefile.in (gengtype.o): Update dependencies.
11749 2003-03-18 Andreas Schwab <schwab@suse.de>
11751 * config/m68k/m68k.md (iordi3): Fix setting low half to -1. From
11754 2003-03-18 Geoffrey Keating <geoffk@apple.com>
11756 * function.c (next_block_index): Mark with GTY.
11758 * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
11760 2003-03-18 Richard Henderson <rth@redhat.com>
11762 * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
11763 (builtin_setjmp_receiver): Delay call to ia64_reload_gp
11764 until after reload.
11766 2003-03-18 Richard Henderson <rth@redhat.com>
11768 * builtins.c (expand_builtin_unop): New target_mode operand;
11769 use it to convert the result to the correct mode.
11770 (expand_builtin): Update all callers.
11772 2003-03-18 Ulrich Weigand <uweigand@de.ibm.com>
11774 * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
11776 2003-03-18 Jan Hubicka <jh@suse.cz>
11778 * i386.md: Fix previous commit that mistakely applied the patch
11781 * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
11783 (memrefs_conflict_p): Likewise.
11784 (addr_side_effect_eval): Canonicalize the constructed address.
11786 2003-03-18 Jan Hubicka <jh@suse.cz>
11788 * i386.md (cvtts?2si peep2): New.
11790 2003-03-18 Kazu Hirata <kazu@cs.umass.edu>
11792 * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
11794 2003-03-18 Andreas Schwab <schwab@suse.de>
11796 * dwarf2out.c (output_file_names): Cast size_t to unsigned long
11799 2003-03-17 Jason Merrill <jason@redhat.com>
11802 * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
11803 an unaligned member of TREE_ADDRESSABLE type.
11805 2003-03-18 Alan Modra <amodra@bigpond.net.au>
11807 * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
11808 (TARGET_PROFILE_KERNEL): Define.
11809 (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
11810 (PROFILE_BEFORE_PROLOGUE): Don't define.
11811 (PROFILE_KERNEL): Remove hacks.
11812 * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
11813 (rs6000_stack_info): No need to save lr if just for profiling when
11814 TARGET_PROFILE_KERNEL.
11815 (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
11816 (output_function_profiler): Localize label generation. Emit code
11817 for kernel profiling.
11819 2003-03-17 Kazu Hirata <kazu@cs.umass.edu>
11821 * config/h8300/h8300-protos.h: Add a prototype for
11822 byte_accesses_mergeable_p.
11823 * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
11824 * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
11825 (a splitter): Likewise.
11826 (*iorsi3_ashift_16_ashift_24): Likewise.
11827 (*iorsi3_ashift_16_ashift_24_mem): Likewise.
11829 2003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11831 * dwarf2asm.h: Delete obsolete comment.
11832 (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
11833 dw2_asm_output_pcrel, dw2_asm_output_addr,
11834 dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
11835 dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
11836 dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
11837 dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
11839 2003-03-17 Zack Weinberg <zack@codesourcery.com>
11841 * c-tree.h (struct lang_identifier): Remove error_locus field.
11842 (IDENTIFIER_ERROR_LOCUS): Kill.
11843 (record_function_scope_shadow): New prototype.
11844 * c-typeck.c (build_external_ref): Don't complain if
11845 decl is error_mark_node. When not at file scope, bind the
11846 decl's local value to error_mark_node to suppress further
11847 warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
11849 * c-decl.c (get_function_binding_level): New static function.
11850 (record_function_scope_shadow): New exported function.
11851 (c_make_fname_decl): Use get_function_binding_level.
11853 2003-03-17 Steve Ellcey <sje@cup.hp.com>
11855 * stmt.c (tail_recursion_args): Call promote_mode to set
11856 unsignedp flag correctly before calling convert_move.
11858 2003-03-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11860 * loop-unroll.c (decide_peel_completely,
11861 decide_unroll_constant_iterations, decide_unroll_stupid,
11862 decide_unroll_runtime_iterations, decide_peel_simple): Set
11865 2003-03-17 Jan Hubicka <jh@suse.cz>
11867 * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
11869 2003-03-17 Olivier Hainque <hainque@act-europe.fr>
11871 * function.c (assign_parms): For a struct value address passed as
11872 first argument, delay the function's result RTL setup code until
11873 after the emission of parameter conversions.
11875 2003-03-17 Dave Love <fx@gnu.org>
11876 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11878 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
11879 __arch64__ to match Compaq cc.
11881 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
11883 * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
11884 (c_common_init): Set EBCDIC in cpp options.
11885 * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
11886 not conditional compilation.
11887 * cpplib.h (struct cpp_options): New entry EBCDIC.
11889 2003-03-17 Neil Booth <neil@daikokuya.co.uk>
11891 * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
11893 2003-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
11895 * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
11896 argument to 0 for redirect_jump.
11898 2003-03-16 Mark Mitchell <mark@codesourcery.com>
11901 * except.c (eh_region_u_cleanup): Add prev_try.
11902 (expand_eh_region_end_cleanup): Set it.
11903 (reachable_handlers): Use it to skip over cleanup blocks.
11905 2003-03-17 Andreas Jaeger <aj@suse.de>
11907 * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
11909 2003-03-17 Alan Modra <amodra@bigpond.net.au>
11911 * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
11912 (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
11913 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
11914 (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
11916 2003-03-16 Richard Henderson <rth@redhat.com>
11918 * simplify-rtx (simplify_binary_operation): Don't abort for
11919 SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
11921 2003-03-16 Richard Henderson <rth@redhat.com>
11923 * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
11924 optimize_size as well.
11926 2003-03-16 Stephane Carrez <stcarrez@nerim.fr>
11928 * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
11929 for D register to specify the low part of it, aka B.
11930 (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
11931 the register if we are loading 1 or -1 to it; avoid using temp
11932 register when moving X/Y to Y/X.
11933 (m68hc11_gen_movqi): Likewise.
11934 (m68hc11_check_z_replacement): Fix last insn setting for compare case.
11936 2003-03-14 Mark Mitchell <mark@codesourcery.com>
11938 PR optimization/9016
11939 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
11940 into the constant pool.
11942 2003-03-16 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
11945 * tree.c (get_narrower): For extensions with unchanged bit number,
11946 return the unsignedness of the outer mode.
11948 2003-03-16 Roger Sayle <roger@eyesopen.com>
11950 * c-typeck.c (build_component_ref): Turn "for" into "do .. while"
11951 to avoid "may be used uninitialized" warning on ia64-hpux.
11952 * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
11954 2003-03-16 Andreas Jaeger <aj@suse.de>
11956 * configure.in: Improve check for memcheck.h.
11957 * configure: Regenerated.
11959 2003-03-16 Neil Booth <neil@daikokuya.co.uk>
11961 * doc/cppopts.texi: Remove documentation of -A-.
11963 2003-03-15 Zack Weinberg <zack@codesourcery.com>
11965 * doc/libgcc.texi: Remove @tie.
11967 2003-03-15 Josef Zlomek <zlomekj@suse.cz>
11969 * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
11970 (rtx_pair): Added new element update_label_nuses, renamed to
11971 replace_label_data.
11972 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
11973 replace_label_data instead of rtx_pair.
11974 * loop.c (load_mems): Likewise.
11975 * rtlanal.c (replace_label): Replace label in pool constants and in
11976 INSN_LIST (in REG_LABEL note).
11977 (subrtx_p): Renamed to rtx_referenced_p.
11978 (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
11979 LABEL_REF with CODE_LABEL, traverse constants from pool.
11981 2003-03-15 Aldy Hernandez <aldyh@redhat.com>
11982 Zack Weinberg <zack@codesourcery.com>
11984 * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
11985 * doc/libgcc.texi: New file.
11986 * doc/interface.texi: Delete paragraph about libgcc interface.
11987 * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
11989 2003-03-15 Jason Merrill <jason@redhat.com>
11992 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
11995 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
11996 function DIEs at toplevel.
11997 (decls_for_scope): At -g1, don't descend into subblocks.
11999 2003-03-15 Ulrich Weigand <uweigand@de.ibm.com>
12001 * varasm.c (struct rtx_const): Change type of un.addr member
12002 to struct holding an additional 'symbol' member.
12003 (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
12004 with equal string addresses as equal.
12005 (simplify_subtraction): Adapt to struct rtx_const change.
12007 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
12009 * fix-header.c (read_scan_file): Read main file before handling -D.
12011 2003-03-15 Roger Sayle <roger@eyesopen.com>
12013 * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
12014 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
12015 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
12016 (find_sub_basic_blocks): Likewise.
12017 * cgraphunit.c (cgraph_expand_functions): Likewise.
12018 * dwarf2out.c (prune_unused_types): Likewise.
12019 * expr.c (store_field): Likewise.
12020 * genextract.c (print_path): Likewise.
12021 * haifa-sched.c (schedule_insn): Likewise.
12022 * lcm.c (compute_antinout_edge): Likewise.
12023 * loop-unroll.c (decide_peel_once_rolling): Likewise.
12024 * ra-colorize.c (ra_colorize_free_all): Likewise.
12025 * ra-debug.c (dump_igraph): Likewise.
12026 (debug_hard_reg_set): Likewise.
12027 * reg-stack.c (reg_to_stack): Likewise.
12028 * rtlanal.c (refers_to_regno_p): Likewise.
12029 * tracer.c (layout_superblocks): Likewise.
12031 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
12033 * fix-header.c (read_scan_file): Fix thinko.
12035 2003-03-15 Glen Nakamura <glen@imodulo.com>
12037 * reload1.c (choose_reload_regs): Use && instead of ||
12038 with REG_CANNOT_CHANGE_MODE_P condition.
12040 2003-03-15 Neil Booth <neil@daikokuya.co.uk>
12042 * Makefile.in: Update.
12043 * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
12044 * c-lex.c (init_c_lex): Register builtins hook is dead.
12045 * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
12046 (c_common_decode_option): Don't call cpp_handle_option.
12047 Handle -A, -D and -U.
12048 (handle_deferred_opts): Simplify.
12049 (finish_options): Define builtins and command line macros.
12050 * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
12051 * cppinit.c: Don't include intl.h.
12052 (init_builtins): Rename cpp_init_builtins. No hook to call.
12053 (init_library): Don't need to sort options.
12054 (cpp_create_reader): Don't set pending.
12055 (cpp_destroy): Don't free pending.
12056 (struct pending_option, cl_directive_handler, struct cpp_pending,
12057 APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
12058 cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
12059 cl_options, cpp_handle_option): Remove.
12060 * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
12061 cpp_finish_options): Remove.
12062 (cpp_init_builtins): New.
12063 * fix-header.c (read_scan_file): Update to handle -D. Fix
12064 handling of -I. Replace call to cpp_finish_options.
12066 2003-03-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
12068 PR optimization/9387
12069 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
12070 for conditional returns.
12072 2003-03-14 Jason Merrill <jason@redhat.com>
12074 PR optimization/6871
12075 * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
12077 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
12079 * c-opts.c (finish_options): New.
12080 (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
12081 (missing_arg): Handle OPT_include and OPT_imacros.
12082 (c_common_init, c_common_parse_file): Use finish_options.
12083 (handle_deferred_opts): Update.
12084 * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
12085 (cpp_finish_options): Don't handle -imacros here.
12087 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
12089 2003-03-14 Jakub Jelinek <jakub@redhat.com>
12091 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
12092 rs6000_maybe_dead if !fromprolog.
12094 2003-03-14 Neil Booth <neil@daikokuya.co.uk>
12096 * Makefile.in: Update.
12097 * c-common.h (fe_file_change, pp_file_change): New.
12098 * c-lex.c (init_c_lex): Don't set cb_file_change.
12099 (c_common_parse_file): Move to c-opts.c.
12100 (cb_file_change): Rename fe_file_change.
12101 * c-opts.c: Include debug.h.
12102 (warn_unused_macros, include_cursor): New.
12103 (push_command_line_include, cb_file_change): New.
12104 (COMMAND_LINE_OPTIONS): Handle -include.
12105 (c_common_decode_option): Use local warn_unused_macros.
12106 Handle OPT_include.
12107 (c_common_post_options): Set file change callback.
12108 (handle_deferred_opts): Skip -include. Don't free the array.
12109 (c_common_init): Call cpp_finish_options here, and push an
12110 initial -include file.
12111 * c-ppoutput.c (cb_file_change): Rename pp_file_change.
12112 (preprocess_file): Don't call cpp_finish_options.
12113 (init_pp_output): Don't set the file change callback.
12114 (pp_file_change): Return if no line commands or no output.
12115 * cpphash.h (next_include_file, first_unused_line): Remove.
12116 * cppinit.c (include_head, include_tail): Remove.
12117 (cpp_destroy): Don't free -include chain.
12118 (cpp_finish_options): Don't handle -include, or worry about
12120 (_cpp_maybe_push_include_file): Remove.
12121 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
12122 * cpplib.c (_cpp_pop_buffer): Don't handle -include.
12123 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
12124 Used flag is set based upon the state of the warn_unused_macros
12125 flag, and so use of first_unused_line is unnecessary.
12127 2003-03-13 Jan Hubicka <jh@suse.cz>
12129 * cselib.c (clear_table): Do not take argument; always clear just
12131 (cselib_process_insn): Update call of clear_table
12132 (cselib_init): Do not call clear_table.
12133 (cselib_finish): Clear table.
12135 * cse.c (count_reg_usage): Do not check side_effects_p.
12136 * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
12138 (find_reg_equal_equiv_note): Do not use find_reg_note.
12140 2003-03-14 Richard Henderson <rth@redhat.com>
12143 * config/alpha/alpha.c (alpha_va_start): Account for
12144 current_function_pretend_args_size in the AP offset.
12146 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
12147 (INITIAL_ELIMINATION_OFFSET): Move out of line.
12148 * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
12149 (alpha_initial_elimination_offset) New.
12150 * config/alpha/alpha-protos.h: Update.
12152 2003-03-14 Jakub Jelinek <jakub@redhat.com>
12154 * stmt.c (expand_start_case): Call emit_queue ().
12156 2003-03-14 Chris Demetriou <cgd@broadcom.com>
12157 Alexandre Oliva <aoliva@redhat.com>
12159 * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
12162 2003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
12164 PR optimization/8396
12165 * tree-inline.c (initialize_inlined_parameters): Make sure the value
12166 of read-only constant arguments is passed with the right type.
12168 2003-03-14 Steven Bosscher <steven@gcc.gnu.org>
12170 * doc/extend.texi (Function Names): Make the example compilable.
12172 2003-03-13 David Edelsohn <edelsohn@gnu.org>
12174 * config/rs6000/rs6000.c (processor_target_table): Really allow
12175 GP optional instructions on Power4.
12177 2003-03-13 Roger Sayle <roger@eyesopen.com>
12179 * calls.c (flags_from_decl_or_type): Factor and remove redundant
12182 2003-03-13 Mike Stump <mrs@apple.com>
12184 * ggc-page.c (struct page_entry): Remove varray.h header.
12185 Add index_by_depth field.
12186 Remove save_in_use_p field.
12187 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
12188 by_depth_max, by_depth, and save_in_use fields.
12189 (INITIAL_PTE_COUNT): Add.
12190 (save_in_use_p_i): Add.
12191 (save_in_use_p): Add.
12192 (adjust_depth): Add.
12193 (move_ptes_to_front): Add.
12195 (push_by_depth): Add.
12197 (free_page): Add support for and use faster data structures.
12198 (ggc_alloc): Likewise.
12199 (init_ggc): Likewise.
12200 (ggc_recalculate_in_use_p): Likewise.
12201 (ggc_pop_context): Likewise.
12202 (clear_marks): Likewise.
12203 (ggc_pch_read): Likewise.
12204 * Makefile.in (ggc-page.o): Remove varray.h.
12206 2003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
12208 * ChangeLog: Rotated last year's entries to...
12209 * ChangeLog.8: New.
12211 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
12212 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
12213 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
12214 config/ia64/ia64-protos.h, config/ia64/ia64.c,
12215 config/ia64/ia64.h, config/ia64/ia64.md,
12216 config/ia64/itanium1.md, config/ia64/itanium2.md,
12217 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
12218 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
12220 2003-03-13 Aldy Hernandez <aldyh@redhat.com>
12222 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
12223 Differentiate endianness.
12224 (s6000_override_options): Use cpu type instead of TARGET_SPE.
12226 2003-03-13 Nick Clifton <nickc@redhat.com>
12228 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
12229 LDM instructions with writeback enabled.
12230 (output_return_instruction): Likewise.
12232 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
12233 (CALL_USED_REGISTERS): Remove definition.
12234 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
12236 2003-03-13 Alan Modra <amodra@bigpond.net.au>
12238 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
12239 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
12240 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
12241 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
12242 (rs6000_legitimize_address): Formatting.
12243 (rs6000_emit_move): Likewise.
12244 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
12245 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
12246 (rs6000_elf_select_section): Comment reason for shlib being
12248 (rs6000_elf_unique_section): Likewise.
12249 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
12250 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
12251 as well as flag_pic.
12252 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
12253 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
12254 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
12256 2003-03-13 Richard Henderson <rth@redhat.com>
12258 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
12260 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
12261 (ia64_gp_save_reg): Remove.
12262 (struct ia64_frame_info): Move to the beginning of the file;
12264 (ia64_expand_call): Rearrange for new call patterns.
12265 (ia64_reload_gp): New.
12266 (ia64_split_call): New.
12267 (ia64_compute_frame_size): Allocate reg_save_gp.
12268 (ia64_expand_prologue): Save reg_save_gp.
12269 (ia64_expand_epilogue): Don't restore gp.
12270 (ia64_hard_regno_rename_ok): Remove R4 hack.
12271 (ia64_function_ok_for_sibcall): New.
12272 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
12273 call try_split on sibcall pattern.
12274 * config/ia64/ia64-protos.h: Update.
12275 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
12276 Rename from nopic versions. Confiscate 2nd argument to call as
12278 (call_pic, call_value_pic, sibcall_pic): Remove.
12279 (call_gp, call_value_gp, sibcall_gp): New.
12280 (builtin_setjmp_setup): Remove.
12281 (builtin_setjmp_receiver): Call ia64_reload_gp.
12283 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12285 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
12286 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
12287 "GNU CC" with "GCC".
12289 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
12290 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12291 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
12294 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
12295 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
12297 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
12298 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
12299 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
12300 "GNU CC" with "GCC".
12302 * config/v850/lib1funcs.asm, config/v850/rtems.h,
12303 config/v850/v850-c.c, config/v850/v850-protos.h,
12304 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
12307 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
12308 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
12309 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
12310 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
12313 2003-03-12 Benjamin Kosnik <bkoz@redhat.com>
12315 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
12317 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12319 * fixinc/fixinc.interix: Remove dead code (most of it).
12320 * fixinc/fixinc.dgux: Remove.
12322 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
12323 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
12325 2003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12327 * pa.c (pa_init_builtins): Fix warning.
12329 2003-03-12 Steve Ellcey <sje@cup.hp.com>
12331 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
12332 (ASM_OUTPUT_XDATA_SHORT): Remove.
12333 (ASM_OUTPUT_XDATA_INT): Remove.
12334 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
12335 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
12336 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
12337 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
12339 2003-03-12 Andrew Lewycky <andrew@mxc.ca>
12342 * expr.c (store_expr): Don't attempt to store void-typed trees,
12343 just evaluate them for side effects.
12345 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
12347 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
12348 * cppinit.c (push_include): Move with changes to cppfiles.c.
12349 (cpp_read_main_file): Mark named operators here...
12350 (cpp_finish_options): ...not here. Update.
12351 (_cpp_maybe_push_include_file): Update.
12352 * cpplib.h (cpp_push_include, cpp_rename_file): New.
12354 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12356 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
12357 _gcc_COMPUTE_GAS_VERSION.
12358 * configure.in: Use them.
12359 * configure: Regenerate.
12361 2003-03-12 Bob Wilson <bob.wilson@acm.org>
12363 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
12365 (subdi3): Reorder emitted instructions.
12367 2003-03-12 Andreas Jaeger <aj@suse.de>
12369 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
12370 NETBSD_OS_CPP_BUILTINS_LP64.
12372 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12374 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
12375 Rearrange. Reorganize.
12376 * configure.in: Rearrange.
12377 * configure: Regenerate.
12379 2003-03-12 Andreas Jaeger <aj@suse.de>
12381 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
12384 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
12387 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
12389 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
12391 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
12392 NETBSD_OS_CPP_BUILTINS_LP64.
12393 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
12394 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
12396 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
12398 2003-03-12 Jan Hubicka <jh@suse.cz>
12400 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
12402 2003-03-12 Daniel Jacobowitz <drow@mvista.com>
12404 Fix PR target/9797 and PR c/9853.
12405 * stmt.c (expand_decl_init): Call push_temp_slots () and
12408 2003-03-12 J"orn Rennecke <joern.rennecke@superh.com>
12410 * sh.c: Include basic-block.h.
12411 (sh_output_mi_thunk, emit_load_ptr): New functions.
12412 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
12414 2003-03-12 Nick Clifton <nickc@redhat.com>
12416 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
12417 (CALL_USED_REGISTERS): Likewise.
12418 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
12419 describing how this value is calculated.
12421 2003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
12423 * configure.in (rlim_t): Define to long if no valid definition
12424 found in sys/resource.h.
12425 * config.in, configure: Regenerate.
12427 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
12429 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
12430 TARGET_OS_CPP_BUILTINS.
12431 * config/mcore/mcore-pe.h: Similarly.
12432 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
12433 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
12435 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
12438 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
12439 only if it is a VAR_DECL.
12441 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
12443 PR optimization/9888
12444 * config/i386/i386.md (jcc_1): Fix range.
12447 (doloop_end_internal): Likewise.
12449 2003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
12451 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
12452 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
12453 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
12454 DLL_IMPORT_EXPORT_PREFIX and "i."
12455 (i386_pe_dllexport_name_p): Here.
12456 (i386_pe_dllimport_name_p): Here.
12457 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
12458 not 9 chars when getting identifier name.
12459 (i386_pe_mark_dllimport): Here.
12460 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
12461 not 9 chars when getting identifier name. Correct comment.
12462 (i386_pe_strip_name_encoding): Here. Add comments for different
12464 (gen_fastcall_suffix): Break down xmalloc() argument to
12466 (gen_stdcall_suffix): Likewise.
12467 Update copyright year.
12469 2003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
12471 PR optimization/9888
12472 * config/i386/i386.md (movsi_1): Remove special alternatives
12474 (movsi_1_nointernunit): Likewise.
12475 (movhi_1): Likewise.
12476 * config/i386/i386.c (memory_address_length): Do not use
12477 short displacement when there is no base.
12478 (ix86_attr_length_address_default): Handle LEA instructions.
12480 2003-03-12 Neil Booth <neil@daikokuya.co.uk>
12482 * c-cppbuiltin.c (builtin_define_std): Make non-static.
12484 2003-03-11 Loren James Rittle <ljrittle@acm.org>
12486 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
12487 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
12488 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
12489 * config/freebsd.h (CPP_PREDEFINES): Remove.
12490 (TARGET_OS_CPP_BUILTINS): New.
12491 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
12492 instead of TARGET_OS_CPP_BUILTINS.
12493 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
12495 2003-03-11 Geoffrey Keating <geoffk@apple.com>
12497 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
12499 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
12501 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
12502 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
12504 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
12506 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
12508 * toplev.c (independent_decode_option): Return success for --help,
12509 --target-help and --version.
12511 2003-03-11 Alexandre Oliva <aoliva@redhat.com>
12513 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
12514 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
12516 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
12518 (LINK_SPEC): Let endian options affect the linker emulation name.
12520 2003-03-11 J"orn Rennecke <joern.rennecke@superh.com>
12522 * sh.md (reload_inqi): Fix mode for source in second set.
12524 2003-03-11 Jan Hubicka <jh@suse.cz>
12526 * cselib.c (cselib_invalidate_mem_1): Move too ...
12527 (cselib_invalidate_mem): ... here; use new list
12528 (dummy_val, first_containing_mem): New static variables.
12529 (clear_table): Initialize first_containing_mem.
12530 (discard_useless_values): Compact the containing_mem list.
12531 (add_mem_for_addr): Add to the list.
12532 * cselib.h (cselib_val): Add next_containing_mem.
12534 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
12536 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
12537 instructions for e500.
12539 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
12541 * Makefile.in: Update.
12542 * c-cppbuiltin.c: Include tm_p.h.
12544 2003-03-11 Aldy Hernandez <aldyh@redhat.com>
12546 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
12548 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
12549 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
12550 (_Unwind_SetGR): Same.
12551 (_Unwind_GetGRPtr): New.
12552 (_Unwind_SetGRPtr): New.
12553 (uw_update_context_1): Use accesor functions instead of accessing
12554 context->reg[] directly.
12555 (uw_install_context_1): Same.
12556 (execute_cfa_program): Same.
12557 (__frame_state_for): Same.
12559 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
12560 the synthetic register offset.
12562 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
12564 2003-03-11 Hans-Peter Nilsson <hp@axis.com>
12566 * config/cris/cris.md: Remove lingering EGCS reference.
12567 ("*extopqihi_side_biap"): For HI operation, match
12568 cris_additive_operand_extend_operator, not
12569 cris_operand_extend_operator. Adjust condition.
12570 ("*extopqihi_side", "*extopqihi"): Ditto.
12571 ("*extopqisi_side_biap"): Correct operand numbers in condition.
12572 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
12573 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
12574 ("*extophisi_swap"): Ditto.
12575 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
12576 PLUS, not cris_operand_extend_operator. Adjust condition and
12578 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
12579 * config/cris/cris.h (PREDICATE_CODES): Add
12580 cris_additive_operand_extend_operator.
12581 * config/cris/cris.c (cris_additive_operand_extend_operator):
12584 2003-03-11 Hartmut Penner <hpenner@de.ibm.com>
12586 * df.c (read_modify_subreg_p): Change from static to global.
12587 * df.h (read_modify_subreg_p): Add prototype.
12588 * sched-deps.c (sched_analyze_1): Generate true dependency for
12589 strict_low_part, certain subregs and zero/sign_extract.
12591 2003-03-11 Neil Booth <neil@daikokuya.co.uk>
12593 * Makefile.in: Update.
12594 * c-common.c: Don't include real.h or except.h.
12595 (REGISTER_PREFIX): Remove.
12596 (builtin_define_std, builtin_define_with_value,
12597 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
12598 builtin_define_type_max, builtin_define_type_precision,
12599 builtin_define_float_constants): Move to c-cppbuiltin.c.
12600 (c_stddef_cpp_builtins): New.
12601 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
12602 * c-cppbuiltin.c: New, extracted from c-common.c.
12603 (define__GNUC__): New.
12604 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
12605 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
12606 (cpp_unique_options): Don't support no-gcc.
12607 (do_spec_1): Remove support of version specs.
12608 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
12609 * doc/passes.texi: Update.
12610 * doc/tm.texi: Update.
12612 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
12614 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
12616 2003-03-10 Andrew Pinski <apinski@apple.com>
12618 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
12619 is on should not get here.
12620 (machopic_indirect_data_reference): If dynamic-no-pic is on just
12621 generate high/low parts of the address.
12622 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
12623 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
12624 symbol and labels with a new reg. Dynamic-no-pic does not have a
12625 pic_offset_table_rtx.
12626 (machopic_select_section): Change references of flag_pic to
12628 (machopic_asm_out_destructor): Likewise.
12629 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
12630 reference of flag_pic to MACHOPIC_INDIRECT.
12631 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
12632 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
12633 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
12634 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
12635 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
12636 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
12637 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
12638 (TARGET_DYNAMIC_NO_PIC): Define.
12639 (SUBTARGET_SWITCHES): Define, have sub-target switches for
12641 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
12642 rs6000_override_options to here. Dynamic-no-pic overrides
12644 (CC1_SPEC): Change from not static then pic to not static and not
12645 dynamic-no-pic then pic.
12646 * config/rs6000/rs6000.c (rs6000_override_options): Move the
12647 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
12648 (rs6000_legitimize_reload_address): Add case for loading floating in
12650 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
12651 of flag_pic to MACHOPIC_INDIRECT.
12652 (secondary_reload_class): Conditional change the reference of
12653 flag_pic to MACHOPIC_INDIRECT.
12654 (rs6000_output_mi_thunk): Change reference of flag_pic to
12656 (output_profile_hook): Likewise.
12657 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
12658 * config/rs6000/rs6000.md (movdf_low): Add the case for
12659 MACHO_DYNAMIC_NO_PIC_P.
12660 (call): Change references for flag_pic in TARGET_MACHO to
12662 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
12663 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
12664 * doc/invoke.texi (-mdynamic-no-pic): Document.
12666 2003-03-10 Devang Patel <dpatel@apple.com>
12669 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
12670 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
12671 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
12672 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
12673 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
12674 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
12676 2003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
12678 PR optimization/7189
12679 * toplev.c (rest_of_compilation): Move
12680 check_function_return_warnings up to just after
12681 delete_unreachable_blocks.
12683 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
12685 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
12686 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
12688 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
12689 for reg rename optimization to avoid using Z and Y registers.
12691 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
12693 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
12694 when adding to X and Y since leax/leay are fast.
12695 ("*addhi3"): Accept 'I' constraint when adding to address register.
12696 ("rotlhi3"): Operand 1 must be a register_operand.
12697 (peephole2): New peephole to optimize some adds.
12698 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
12699 to represent -2 .. 2 small integer range.
12701 2003-03-10 Stephane Carrez <stcarrez@nerim.fr>
12703 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
12704 each 16-bit rotation.
12706 2003-03-10 Zack Weinberg <zack@codesourcery.com>
12708 * c-opts.c (add_prefixed_path): Don't use concat. When
12709 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
12710 cpp_GCC_INCLUDE_DIR_len characters.
12712 2003-03-10 Segher Boessenkool <segher@koffie.nl>
12714 * testsuite/gcc.dg/altivec-9.c: New file.
12716 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
12717 (rs6000_emit_prologue): Use rs6000_frame_related instead.
12719 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
12721 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
12723 (__ev_convert_u64): Remove macro. Define as inline.
12724 (__ev_convert_s64): Same.
12726 2003-03-10 Aldy Hernandez <aldyh@redhat.com>
12728 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
12729 (rs6000_stack_t): Add spe_64bit_regs_used.
12731 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
12732 spe_64bit_regs_used, and use it to determine the size of the
12734 (spe_func_has_64bit_regs_p): New.
12735 (spe_synthesize_frame_save): New.
12736 (rs6000_frame_related): Handle SPE synthetic registers.
12737 (rs6000_emit_prologue): Only save in 64-bits if the function used
12738 any registers in 64-bit mode.
12739 (rs6000_emit_epilogue): Same, but for restore.
12741 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
12743 * arm.h (enum floating_point_type): Delete. Replace with...
12744 (enum fputype): ... new.
12745 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
12746 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
12747 * arm.md (attr fpu): Reworked for new underlying enum values.
12748 * arm.c (arm_fpu_arch): Now enum fputype.
12749 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
12750 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
12751 Update uses of arm_fpu_arch and arm_fpu_tune.
12753 2003-03-10 Josef Zlomek <zlomekj@suse.cz>
12755 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
12756 (try_crossjump_to_edge): Replace refereces to one jump table by
12757 references to identical jump table.
12758 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
12759 (replace_label): Moved to rtlanal.c.
12760 (struct rtx_pair): Moved to rtl.h.
12761 * rtl.h (struct rtx_pair): Moved from loop.c.
12762 (replace_label): New extern function.
12763 (subrtx_p): New extern function.
12764 (tablejump_p): New extern function.
12765 * rtlanal.c (replace_label): Moved from loop.c.
12766 (subrtx_p_1): New static function.
12767 (subrtx_p): New function.
12768 (tablejump_p): New function.
12770 2003-03-10 Jan Hubicka <jh@suse.cz>
12772 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
12774 * cfgcleanup.c (merge_blocks): Return where to iterate next.
12775 (try_optimize_cfg): Use return value of merge_blocks
12777 2003-03-10 Michael Matz <matz@suse.de>
12779 * cfg.c (unchecked_make_edge): New.
12780 (cached_make_edge): Use it.
12781 * basic-block.h (unchecked_make_edge): Declare.
12782 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
12784 2003-03-10 Richard Earnshaw <rearnsha@arm.com>
12786 * fpa.md: New file. Move all patterns relating to FPA co-processor
12788 * arm.md: ... from here.
12789 (cirrus.md, fpa.md): Include at end of description.
12790 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
12791 (pic_load_addr_based): Remove register constraint from expander.
12792 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
12793 (sordered, sungt, sunle, sunge, sunlt): Likewise.
12794 (eh_epilogue, tablejump): Likewise.
12796 2003-03-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12798 * tree.c (substitute_in_expr, case 'e'): Only make recursive call
12799 on operands if it has a PLACEHOLDER_EXPR.
12801 2003-03-09 David Edelsohn <edelsohn@gnu.org>
12804 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
12807 2003-03-09 Neil Booth <neil@daikokuya.co.uk>
12809 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
12810 * config/ip2k/ip2k.h: Similarly.
12811 * config/m32r/m32r.h: Similarly.
12812 * config/m68hc11/m68hc11.h: Similarly.
12813 * config/mn10200/mn10200.h: Similarly.
12814 * config/mn10300/mn10300.h: Similarly.
12815 * config/pdp11/pdp11.h: Similarly.
12816 * config/v850/v850.h: Similarly.
12817 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
12818 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
12819 * config/mips/iris3.h: Remove #if 0 block.
12821 2003-03-09 Roger Sayle <roger@eyesopen.com>
12822 Joern Rennecke <joern.rennecke@superh.com>
12824 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
12825 pending argument upon return from handle_braces here.
12826 (do_spec_2): Instead handle it upon return from do_spec_1 here.
12828 2003-03-09 Roger Sayle <roger@eyesopen.com>
12829 Joern Rennecke <joern.rennecke@superh.com>
12831 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
12832 pending argument upon return from handle_braces here.
12833 (do_spec_2): Instead handle it upon return from do_spec_1 here.
12835 2003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12837 * varasm.c (make_decl_one_only): Use declare_weak().
12839 2003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12842 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
12843 after the common builtins.
12844 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
12845 * pa.c (TARGET_INIT_BUILTINS): Define.
12846 (pa_init_builtins): New function.
12848 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
12849 space has been allocated for the outgoing arguments, set the arg
12850 pointer for a call emitted after virtuals have been instantiated
12851 using the stack pointer offset, otherwise abort.
12853 2003-03-09 DJ Delorie <dj@redhat.com>
12855 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
12857 2003-03-09 Richard Earnshaw <rearnsha@arm.com>
12859 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
12860 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
12861 conversion to integer.
12862 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
12864 2003-03-09 Roger Sayle <roger@eyesopen.com>
12866 * builtins.def: Fix typo and improve grammar.
12867 * loop-unroll.c (decide_peel_completely): Tidy log message.
12869 2003-03-09 Kazu Hirata <kazu@cs.umass.edu>
12871 * config/h8300/h8300.md (*tstsi_upper_bit): New.
12872 (*iorsi3_e2f): Likewise.
12874 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
12876 * config/h8300/h8300.c (h8300_and_costs): Return the number of
12877 assembly instructions needed.
12878 (h8300_shift_costs): Likewise.
12880 2003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
12882 * config/cris/aout.h (ENDFILE_SPEC): Undef.
12884 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
12885 moves from here ...
12886 * expr.c (emit_move_insn_1): ... to here.
12888 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
12889 (TARGET_OS_CPP_BUILTINS): New macro.
12890 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
12891 (TARGET_OS_CPP_BUILTINS): New macro.
12892 (CPP_PREDEFINES): Don't define. Move old definitions and...
12893 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
12894 (TARGET_CPU_CPP_BUILTINS): New macro.
12895 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
12896 definitions and the optional __PIC__, __pic__ and
12897 __NO_UNDERSCORES__ definitions to...
12898 (TARGET_OS_CPP_BUILTINS): New macro.
12900 * flags.h (flag_leading_underscore): Declare.
12902 * c-opts.c (c_common_post_options): On fopen failure, return
12905 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
12907 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
12909 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
12910 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
12912 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
12914 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
12916 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
12919 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
12921 * c-common.h (c_common_init, c_common_post_options): Update.
12922 * c-objc-common.c (c_objc_common_init): Update for new prototype.
12923 * c-opts.c (saved_lineno): New.
12924 (c_common_post_options, c_common_init): Update prototypes,
12925 move call to cpp_read_main_file from latter to former.
12926 * c-tree.h (c_ojbc_common_init): Update.
12927 * langhooks-def.h (lhd_post_options): New.
12928 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
12929 * langhooks.c (lhd_post_options): New.
12930 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
12931 * toplev.c (no_backend): New.
12932 (process_options): Call post_options hook and set main_input_filename
12933 and input_filename here.
12934 (lang_dependent_init, do_compile): post_options hook moved to
12936 * objc/objc-act.c (objc_init): Update prototype.
12937 * objc/objc-act.h (objc_init): Update prototype.
12939 2003-03-08 Roger Sayle <roger@eyesopen.com>
12941 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
12942 a complex or vector type, using a load in the original mode.
12944 2003-03-08 Jan Hubicka <jh@suse.cz>
12946 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
12947 * gt-cgraph.h: New GC file.
12948 * cgraph.c (known_fns): New static variable.
12949 (cgraph_node): Add the decl into varray.
12951 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
12953 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
12955 2003-03-08 Richard Earnshaw <rearnsha@arm.com>
12957 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
12958 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
12959 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
12960 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
12961 All callers changed.
12962 * arm.md, arm.h, arm-protos.h: Updated.
12964 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
12965 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
12966 * arm.c (arm_regno_class, f_register_operand): Updated.
12968 2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
12970 * config/cris/cris.h: Remove EGCS references.
12971 (CPP_SPEC): Remove "-$".
12972 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
12974 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
12976 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
12977 preference to CPP_PREDEFINES.
12979 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
12981 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
12983 2003-03-08 Kazu Hirata <kazu@cs.umass.edu>
12985 * config/h8300/h8300.md (*extzv_16_8): New.
12987 2003-03-08 Jan Hubicka <jh@suse.cz>
12989 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
12990 * cgraph.h: (cgraph_local_info): Add can_inline_once
12991 (cgraph_global_info): Add inline_once.
12992 (cgraph_node): Add previous.
12993 (cgraph_remove_node): New.
12994 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
12996 (cgraph_optimize): Call it.
12997 (cgraph_finalize_function): Set inlinable flags.
12998 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
12999 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
13000 (cgraph_expand_function): Likewise.
13002 (cgraph_node): Put nodes into doubly linked chain.
13003 (cgraph_remove_node): New function.
13004 * flags.h (flag_inline_functions_called_once): Declare.
13005 * tree-inline.c: Include cgraph.h
13006 (inlinable_functions_p): Add extra argument to bypass limits.
13007 (expand_call_inline): Obey cgraph flag.
13008 * tree-inline.h (tree_inlinable_function_p): Update prototype.
13010 2003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13012 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
13015 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
13016 loops info correctly.
13018 2003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
13021 * unroll.c (calculate_giv_inc): Handle constants being
13022 loaded with LSHIFTRT.
13024 2003-03-07 David Edelsohn <edelsohn@gnu.org>
13026 * config/rs6000/rs6000.c (processor_target_table): Do not disable
13027 GP optional instructions on Power3, Power4, 620, and 630.
13029 2003-03-07 Kazu Hirata <kazu@cs.umass.edu>
13031 * calls.c: Fix comment formatting.
13032 * cfgloopanal.c: Likewise.
13033 * cfgloopmanip.c: Likewise.
13034 * combine.c: Likewise.
13035 * dwarf2out.c: Likewise.
13036 * ggc-common.c: Likewise.
13037 * langhooks.c: Likewise.
13038 * loop-unroll.c: Likewise.
13039 * loop.c: Likewise.
13040 * ra-build.c: Likewise.
13041 * sbitmap.c: Likewise.
13042 * toplev.c: Likewise.
13044 2003-03-07 James E Wilson <wilson@tuliptree.org>
13046 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
13048 2003-03-07 Geoffrey Keating <geoffk@apple.com>
13050 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
13051 support -no-integrated-cpp.
13053 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
13054 than langhooks.name.
13056 2003-03-07 Michael Matz <matz@suse.de>
13058 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
13059 (DF_FOR_REGALLOC): New.
13060 * df.c (df_ref_record): Set DF_REF_STRIPPED.
13061 (read_modify_subreg_p): Simplify.
13062 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
13063 Use DF_FOR_REGALLOC.
13064 * ra.h (struct web): New member subreg_stripped.
13065 (invalid_mode_change_regs): Declare.
13066 * ra.c (invalid_mode_change_regs): New.
13067 (init_ra): Initialize it.
13068 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
13069 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
13070 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
13071 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
13072 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
13074 2003-03-07 Richard Earnshaw <rearnsha@arm.com>
13076 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
13077 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
13078 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
13079 machine description file from ...
13080 * cirrus.md: ... here.
13082 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
13084 * config/h8300/h8300.md (a peephole2): Don't use
13085 reg_overlap_mentioned_p.
13087 2003-03-06 Geoffrey Keating <geoffk@apple.com>
13089 * c-pch.c: Include langhooks.h.
13090 (IDENT_LENGTH): New.
13092 (pch_ident): Delete.
13093 (pch_init): Use get_ident, IDENT_LENGTH.
13094 (c_common_valid_pch): Likewise. Also, use actual language
13095 in warning message.
13096 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
13098 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
13100 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
13101 gt-objc-objc-act.h.
13102 (gt-objc-objc-act.h): New rule.
13103 * objc/lang-specs.h: Support PCH.
13104 * objc/objc-act.c: Include gt-objc-objc-act.h.
13105 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
13106 (build_selector_reference_decl): Move idx out, mark for PCH.
13107 (build_class_reference_decl): Likewise.
13108 (build_objc_string_decl): Move *_idx out, mark for PCH.
13109 (build_tmp_function_decl): Move xxx out, mark for PCH.
13111 2003-03-06 Dale Johannesen <dalej@apple.com>
13113 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
13114 global functions for inlining on Darwin.
13116 2003-03-06 Vladimir Makarov <vmakarov@redhat.com>
13118 * haifa-sched.c (schedule_block): Don't call reorder when sorting
13121 2003-03-06 Neil Booth <neil@daikokuya.co.uk>
13123 * Makefile.in (c-ppoutput.o): Update.
13124 * c-common.h (init_pp_output): New.
13125 (preprocess_file): Update.
13126 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
13128 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
13129 Make call to cpp_read_main_file common to whether preprocessing
13130 or not. Don't register builtins.
13131 * c-ppoutput.c: Include c-pragma.h.
13132 (setup_callbacks): Rename init_pp_output.
13133 (preprocess_file): No longer setup callbacks or call
13134 cpp_read_main_file.
13135 * cpphash.h (_cpp_init_mbchar): New.
13136 * cppinit.c (init_library): Call _cpp_init_mbchar.
13137 * cpplex.c (_cpp_init_mbchar): New.
13139 2003-03-06 Roger Sayle <roger@eyesopen.com>
13141 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
13142 MEM, try loading the MEM into a register and taking the low-part
13143 of that, to help CSE see the use of the MEM in its true mode.
13145 2003-03-05 Tom Tromey <tromey@redhat.com>
13147 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
13150 2003-03-05 Nick Clifton <nickc@cambridge.redhat.com>
13152 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
13154 ("*ineqbranchsi"): Likewise.
13156 2003-03-05 Andrew Haley <aph@cambridge.redhat.com>
13158 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
13159 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
13160 register store followed by a stack increment.
13162 2003-03-05 Chris Moller <cmoller@redhat.com>
13164 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
13165 to inhibit saving CARRY_REGS.
13167 * config/stormy16/stormy16.c (xs_hi_general_operand):
13168 added predicate to detect and error-out on out-of-range
13169 const_ints for movhi.
13170 * config/stormy16/stormy16.md (movhi): use
13171 xs_hi_general_operand.
13173 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
13174 added a check for local vbl size overflow.
13175 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
13176 added predicate to detect and error-out on out-of-range
13177 const_ints for addhi and subhi.
13178 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
13179 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
13181 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13182 add a term to accept PRE_MODIFY addresses.
13183 * config/stormy16/stormy16.c (xstormy16_expand_move):
13184 add code to expand PRE_MODIFY addresses to an add followed
13187 2003-03-06 Jason Merrill <jason@redhat.com>
13189 * tree-inline.c (inlinable_function_p): Revert earlier change
13190 pending investigation.
13192 2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
13194 * config/h8300/h8300.md (a new peephole2): New.
13196 2003-03-06 Jan Hubicka <jh@suse.cz>
13198 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
13200 2003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13202 * dwarf2out.c (size_of_die): Compute size of external reference to
13205 2003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
13207 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
13208 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
13211 2003-03-05 Roger Sayle <roger@eyesopen.com>
13213 * expr.h (lang_expand_expr): Delete obsolete prototype.
13215 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
13217 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
13219 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
13221 * config/h8300/h8300.md (a peephole2): Generalize to
13222 accept a memory operand.
13224 2003-03-05 Olivier Hainque <hainque@act-europe.fr>
13226 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
13227 * config/alpha/alpha.c (print_operand, case '+'): New.
13228 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
13229 (call_value_osf_1_noreturn): Likewise.
13231 2003-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13233 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
13234 (expand_end_bindings): Likewise.
13236 2003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13238 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
13239 (epilogue): Don't generate return_external_pic when emitting PA 2.0
13242 2003-03-05 Aldy Hernandez <aldyh@redhat.com>
13244 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
13246 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
13248 * hooks.c (hook_rtx_rtx_null): New.
13250 * hooks.h (hook_rtx_rtx_null): Protoize.
13252 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
13253 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
13255 * target.h (struct gcc_target): Add dwarf_register_span.
13257 * dwarf2out.c (multiple_reg_loc_descriptor): New.
13258 (one_reg_loc_descriptor): New.
13259 (reg_loc_descriptor): Add support for values that span more than
13262 2003-03-05 Jan Hubicka <jh@suse.cz>
13264 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
13265 * alias.c: Include cgraph.h
13266 (mark_constant_function): Use cgraph_rtl_info.
13267 * calls.c: Include cgraph.h
13268 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
13270 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
13271 * cgraph.c (cgraph_rtl_info): New function.
13272 * cgraph.h (cgraph_rtl_info): Declare
13273 (cgraph_rtl_info): Likewise.
13274 * function.h (struct function): Add recursive_call_emit.
13275 * toplev.c: Include cgraph.h.
13276 (rest_of_compilation): Set preferred_incoming_stack_boundary.
13278 2003-03-05 Kazu Hirata <kazu@cs.umass.edu>
13280 * config/h8300/h8300.c (output_simode_bld): Clear the
13281 destination first if possible.
13282 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
13284 (extzv_1_r_inv_h8300hs): Likewise.
13286 2003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13288 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
13289 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
13290 * cfgloop.c (flow_loop_free): Made global.
13291 (establish_preds): New static function.
13292 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
13293 (get_loop_exit_edges): New.
13294 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
13295 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
13296 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
13298 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
13299 removability of an edge.
13300 (fix_irreducible_loops): New static function.
13301 (find_path, remove_path): Add ability to remove enclosing loops.
13303 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
13305 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
13306 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
13308 (decide_peel_completely, peel_loops_completely): Allow complete peeling
13309 of non-duplicable once rolling loops.
13310 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
13312 2003-03-05 J"orn Rennecke <joern.rennecke@superh.com>
13314 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
13315 for align_jumps is 4.
13317 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
13320 2003-03-05 Stephane Carrez <stcarrez@nerim.fr>
13322 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
13323 according to va_arg type.
13324 (EXPAND_BUILTIN_VA_ARG): Remove.
13325 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
13326 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
13328 2003-03-05 David Edelsohn <edelsohn@gnu.org>
13330 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
13333 2003-03-05 Michael Matz <matz@suse.de>
13335 * i386/i386.c (ix86_save_reg): Also test
13336 current_function_uses_const_pool.
13338 2003-03-05 Michael Matz <matz@suse.de>
13340 * unwind.h: Add the GPL exception.
13341 * Makefile.in (USER_H): Add unwind.h.
13343 2003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
13346 * c-typeck.c (push_init_level): Add sanity check.
13348 2003-03-05 Jan Hubicka <jh@suse.cz>
13350 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
13351 RTL inlining is done.
13353 * cgraphunit.c (cgraph_mark_local_functions): New local function.
13354 (cgraph_optimize): Mark local functions.
13355 * i386-protos.h (init_cumulative_args): Update prototype.
13356 * i386.c (init_cumulative_args): Use register passing convention for
13359 * cgraph.c (cgraph_global_info_ready): New global variable
13360 (cgraph_local_info, cgraph_global_info): New functions.
13361 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
13363 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
13365 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
13366 (cgraph_mark_functions_to_output): Use inline_many.
13367 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
13368 (cgraph_expand_functions): Expand inline functions last.
13369 (cgraph_optimize): Do not emit uneeded functions.
13371 2003-03-04 Steve Ellcey <sje@cup.hp.com>
13373 * expr.c (convert_modes): Check for legal hard register.
13375 2003-03-04 Tom Tromey <tromey@redhat.com>
13377 * doc/sourcebuild.texi (Front End Directory): Document tags.
13378 * configure: Rebuilt.
13379 * configure.in (target_list): Added tags.
13380 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
13381 TAGS files by reference.
13382 * objc/Make-lang.in (objc.tags): New target.
13384 2003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13386 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
13387 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
13388 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
13389 gcov_read_string, gcov_write_length): Modified to enable reading/
13390 writing of whole .da file just once.
13391 (da_file_open, da_file_close, da_file_eof, da_file_error,
13392 da_file_position, da_file_seek, da_file_write, da_file_read): New
13394 (actual_da_file, actual_da_file_position, actual_da_file_length,
13395 actual_da_file_buffer, actual_da_file_buffer_size): New static
13397 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
13401 2003-03-04 Andreas Schwab <schwab@suse.de>
13403 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
13404 offset without frame pointer.
13406 2003-03-04 Steve Ellcey <sje@cup.hp.com>
13408 * expr.c (expand_expr): Call promote_mode to set unsignedp.
13410 2003-03-04 Daniel Jacobowitz <drow@mvista.com>
13412 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
13413 * configure: Regenerated.
13414 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
13416 2003-03-04 Andreas Jaeger <aj@suse.de>
13418 * configure.in: Check for <memcheck.h>.
13419 * configure: Regenerated.
13421 * config.in: Define HAVE_MEMCHECK_H.
13423 * ggc-common.c: Use <memcheck.h> if available instead of
13425 * ggc-page.c: Likewise.
13426 * cppfiles.c: Likewise.
13428 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
13430 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
13432 2003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
13435 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
13436 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
13438 2003-03-04 Jan Hubicka <jh@suse.cz>
13440 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
13441 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
13444 2003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
13446 * configure.in: Delete three unused variables. Move a variable
13447 definition closer to its use. Simplify use_collect2 logic. Start to
13448 organize. Simplify tests for in-tree gas and ld.
13449 * configure: Regenerate.
13451 2003-03-04 Neil Booth <neil@daikokuya.co.uk>
13453 * Makefile.in: Update.
13454 * c-common.c (flag_no_line_commands, flag_no_output,
13455 flag_dump_macros, flag_dump_includes): New.
13456 * c-common.h (flag_no_line_commands, flag_no_output,
13457 flag_dump_macros, flag_dump_includes, preprocess_file): New.
13458 (init_c_lex): Update prototype.
13459 * c-lex.c (init_c_lex): Update prototype; move some code to
13461 * c-opts.c (preprocess_file): Subsume into c_common_init.
13462 (c_common_decode_option): Update flags.
13463 (c_common_init): Move code from preprocess_file and init_c_lex.
13464 (sanitize_cpp_opts): Update.
13465 * c-ppoutput.c: New, cppmain.c almost verbatim.
13466 * cpphash.h (struct printer): Remove.
13467 (struct cpp_reader): Remove print.
13468 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
13469 cpp_preprocess_file): Remove.
13470 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
13472 * cppmain.c: Remove.
13473 * doc/passes.texi: Update.
13475 2003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13477 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
13478 (assign_stack_local_1): Perform overall stack alignment only when
13479 STACK_ALIGNMENT_NEEDED is nonzero.
13480 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
13482 * pa.c (compute_frame_size): Rename fsize to size. Account for
13483 alignment to a word boundary before general register save block. Only
13484 account for double-word alignment before floating point register save
13485 block if one or more are saved. Don't allocate space for %r3 when
13486 frame pointer is needed.
13487 (hppa_expand_prologue): Include alignment to word boundary in local
13489 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
13490 (STACK_ALIGNMENT_NEEDED): Define.
13492 2003-03-04 Kevin Buettner <kevinb@redhat.com>
13494 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
13495 global register variables.
13497 2003-03-04 Alexandre Oliva <aoliva@redhat.com>
13499 * reload.c (reload_adjust_reg_for_mode): New function.
13500 (subst_reloads): Call it.
13501 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
13502 * reload.h (reload_adjust_reg_for_mode): Declare.
13503 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
13506 2003-03-03 James E Wilson <wilson@tuliptree.org>
13508 * optabs.c (add_equal_note): Delete SUBREG_REG use.
13511 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
13513 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
13514 (*ixorsi3_lshiftrt_16): New.
13515 (*iorsi3_ashift_16): Remove.
13517 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
13519 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
13522 2003-03-03 Geoffrey Keating <geoffk@apple.com>
13524 * doc/install.texi (Specific): Update entry for powerpc-darwin.
13526 2003-03-03 Richard Henderson <rth@redhat.com>
13528 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
13530 2003-03-03 David Edelsohn <edelsohn@gnu.org>
13532 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
13533 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
13534 (rs6000_variable_issue): Do not return negative value.
13535 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
13538 2003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13540 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
13541 prune_unused_types calls.
13543 2003-03-03 Jason Merrill <jason@redhat.com>
13545 * tree-inline.c (find_builtin_longjmp_call): Save and restore
13546 lineno and input_filename.
13547 (find_alloca_call): Likewise.
13548 (inlinable_function_p): Run the langhook earlier.
13550 * calls.c (compute_argument_addresses): Give the new MEMs a
13551 minimum alignment of PARM_BOUNDARY.
13553 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
13555 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
13556 subtarget_asm_isa_spec.
13557 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
13558 (ASM_SPEC): Define as SH_ASM_SPEC.
13559 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
13560 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
13561 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
13562 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
13564 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
13565 and align_jumps if not set.
13566 Force align_jumps to be at least 2.
13567 When relaxing, force align_functions to be at least the maximum of
13568 align_loops, align_jumps and 4.
13569 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
13570 (sh_loop_align): Honour align_loops_log.
13572 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
13573 to check for indirect_jump_scratch.
13574 (indirect_jump_scratch): Add second set.
13575 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
13576 when looking for indirect_jump_scratch.
13577 Extract scratch register taking new structure of indirect_jump_scratch
13579 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
13581 2003-03-03 Jan Hubicka <jh@suse.cz>
13583 * calls.c (rtx_for_function_call): Take the address as an argument
13584 (expand_call): Do not modify the expression.
13586 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
13589 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
13591 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
13592 TARGET_H8300H and TARGET_H8300S.
13594 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
13596 * config/h8300/h8300.md (a peephole2): New.
13598 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
13600 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
13601 operands[0] and operands[1] are different.
13603 2003-03-03 Kazu Hirata <kazu@cs.umass.edu>
13605 * reload1.c (reload_cse_move2add): Remove variable success.
13607 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13609 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
13612 2003-03-02 Richard Henderson <rth@redhat.com>
13614 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
13615 * config.in, configure: Rebuild.
13616 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
13617 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
13618 paired ldtoffx and ldxmov annotations.
13619 (load_symptr_internal1): Remove.
13620 (load_symptr_high, load_symptr_low): New.
13622 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
13624 * c-incpath.c (add_path): Fix sysp assignment.
13626 2003-03-02 Kurt Garloff <garloff@suse.de>
13628 * params.def: Introduce parameter max-inline-insns-rtl for
13629 a separate limit for the RTL inliner.
13630 * params.h: Likewise.
13631 * integrate.c (function_cannot_inline_p): Use it.
13632 * toplev.c (decode_f_option): Set multiple parameters
13633 controlling inlining with -finline-limit.
13634 * params.def: Fix orthographic and typographic errors.
13635 * doc/invoke.texi: Document parameters controlling inlining
13636 and the way -finline-limit sets multiple of them.
13638 * tree.h (struct tree_decl): Introduce inlined_function_flag,
13639 recording whether the function became eligible for inlining
13640 by a compiler flag rather than the declaration.
13641 Provide DID_INLINE_FUNC macro to access it.
13642 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
13643 * cp/decl.c (grokfndecl): Likewise.
13644 * toplev.c (rest_of_compilation): Likewise.
13645 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
13646 * print-tree.c (print_node): Report it.
13647 * params.def: Introduce new max-inline-insns-auto limit.
13648 * params.h: Likewise.
13649 * tree-inline.c (inlinable_function_p): Apply it to functions
13650 with DID_INLINE_FUNC set.
13651 * toplev.c (decode_f_option): Initialize it from -finline-limit
13653 * doc/invoke.texi: Document new parameter.
13655 2003-03-02 Geoffrey Keating <geoffk@apple.com>
13657 * fix-header.c (read_scan_file): Don't reference simplify_path.
13659 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
13661 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
13662 min/max instructions by default as may result in reload errors.
13664 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
13666 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
13667 avoid reload problems; define split for it.
13669 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
13671 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
13672 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
13673 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
13674 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
13675 rotatert and rotate.
13676 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
13677 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
13678 ("*rotrhi3_addr"): New split for shift insns on address register.
13679 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
13680 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
13681 (___rotrhi3): Likewise.
13682 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
13684 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
13686 * toplev.c (aux_base_name): Moved from toplev.h.
13687 (filename): Constify.
13688 (lang_dependent_init): Don't duplicate name.
13689 (process_options): Set aux_base_name here, not...
13690 (do_compile): ...here. Change protoype.
13691 (toplev_main): Move some code from do_compile.
13692 * toplev.h: Remove aux_base_name.
13694 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
13696 * config/h8300/h8300-protos.h: Add a prototype for
13698 * config/h8300/h8300.c (print_operand): Handle 'c'.
13699 (iorxor_operator): New.
13700 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
13701 * config/h8300/h8300.md (*iorhi3_zext): Remove.
13702 (*iorsi3_zexthi): Likewise.
13703 (*iorsi3_zextsi): Likewise.
13704 (*xorhi3_zextqi): Likewise.
13705 (*xorsi3_zexthi): Likewise.
13706 (*xorsi3_zextsi): Likewise.
13707 (*ixorhi3_zext): New.
13708 (*ixorsi3_zext_qi): Likewise.
13709 (*ixorsi3_zext_hi): Likewise.
13711 2003-03-02 Neil Booth <neil@daikokuya.co.uk>
13713 * c-incpath.c (remove_component_p, simplify_path): Move back to
13715 (remove_duplicates): Use cpp_simplify_path.
13716 * c-incpath.h (simplify_path): Remove.
13717 * c-lex.c: Don't include c-incpath.h.
13718 (init_c_lex): Remove simplify_path.
13719 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
13720 (find_or_create_entry, validate_pch): Revert.
13722 2003-03-02 Ashif Harji <asharji@uwaterloo.ca>
13724 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
13725 an external cpp during compilation.
13726 (option_map): Likewise.
13727 * objc/lang-specs.h (default_compilers): Similarly.
13728 * doc/invoke.texi: Document -no-integrated-cpp flag.
13730 2003-03-02 Kazu Hirata <kazu@cs.umass.edu>
13732 * config/h8300/h8300.md (zero_extendqisi2): Change to an
13734 (*zero_extendqisi2_h8300): New.
13735 (*zero_extendqisi2_h8300hs): New.
13736 (two splitters): New.
13738 2003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13740 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
13742 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
13744 * config/h8300/h8300.md (a peephole2): Remove dead code.
13746 2003-03-01 Roger Sayle <roger@eyesopen.com>
13749 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
13750 (BT_FN_INT_CONST_STRING_VALIST_ARG,
13751 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
13752 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
13753 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
13754 BT_FN_INT_STRING_CONST_STRING_VAR,
13755 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
13756 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
13757 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
13758 ATTR_NONNULL_3): Also include the nothrow attribute.
13759 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
13760 vsnprintf, vscanf, vsscanf): Don't define attributes here.
13761 * builtins.def (putchar, puts): Make full C89 built-ins.
13762 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
13763 vsscanf, vsnprintf, vsprintf): New built-ins.
13764 * c-common.c (c_common_nodes_and_builtins): Handle new macro
13765 DEF_FUNCTION_TYPE_VAR_3.
13767 * doc/extend.texi: Document these new built-in functions.
13769 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
13771 * config/h8300/h8300.md (a peephole2): New.
13773 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
13775 * predict.c (estimate_bb_frequencies): Correctly set
13776 real_values_initialized after initialization.
13778 2003-03-01 Neil Booth <neil@daikokuya.co.uk>
13780 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
13781 cppinit.o, cppdefault.o, fix-header): Update.
13782 * c-incpath.c: New file.
13783 * c-incpath.h: New file.
13784 * c-lex.c: Include c-incpath.h.
13785 (init_c_lex): Register path simplifier.
13786 * c-opts.c: Include cppdefault.h and c-incpath.h.
13787 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
13788 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
13789 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
13790 (missing_arg, c_common_decode_option): Handle them.
13791 (c_common_post_options): Register include chains.
13792 (print_help): Update.
13793 * cppdefault.h (struct default include): Update.
13794 Move some macros to ...
13795 * cppdefault.c: ... here.
13796 (cpp_include_defaults): Add extra field add_sysroot.
13797 * cppfiles.c (include_file, search_from, find_or_create_entry,
13798 cpp_included, find_include_file, remap_filename): Update for
13799 renaming of search_path to cpp_path, and of the chain headers.
13800 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
13801 * cpphash.h (struct search_path): Move to cpplib.h.
13802 (struct cpp_buffer, struct cpp_reader): Update.
13803 (_cpp_simplify_pathname): Remove.
13804 * cppinit.c: Don't include prefix.h and cppdefault.h.
13805 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
13806 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
13807 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
13808 no_pth, cpp_handle_options): Remove.
13809 (struct pending_option): Remove chain members.
13810 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
13811 cpp_handle_option): Update.
13812 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
13813 (struct cpp_options): Remove quote_include, bracket_include,
13814 include_prefix, include_prefix_len, verbose, ignore_srcdir,
13815 no_standard_includes, no_standard_cplusplus_includes.
13816 (struct cpp_callbacks): Add simplify_path.
13817 (cpp_handle_options): Remove.
13818 * fix-header.c: Include c-incpath.h.
13819 (read_scan_file): Update to use c-incpath functionality.
13820 * doc/passes.texi: Update.
13822 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
13824 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
13825 satisfies EXTRA_CONSTRAINT 'U'.
13827 2003-03-01 Kazu Hirata <kazu@cs.umass.edu>
13829 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
13831 (*tst_extzv_memqi_1_n): Change to a splitter.
13832 (a peephole2): Update.
13834 2003-03-01 Richard Earnshaw <rearnsha@arm.com>
13836 * predict.c (estimate_bb_frequencies): Initialize the sreal
13837 constants once per compilation.
13839 2003-02-28 Richard Henderson <rth@redhat.com>
13841 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
13843 2003-02-28 scott snyder <snyder@fnal.gov>
13845 * flags.h: Add flag_eliminate_unused_debug_types.
13846 * toplev.c: Add flag_eliminate_unused_debug_types.
13847 (f_options): Add -feliminate-unused-debug-types.
13848 * dwarf2out.c (struct file_table): Add emitted member.
13849 (splice_child_die): Fix the parent pointer for the child being
13851 (lookup_filename): Maintain file_table.emitted array. Don't
13852 output .file directive here.
13853 (maybe_emit_file): (new)
13854 (init_file_table): Set up file_table.emitted.
13855 (dwarf2out_source_line): Use maybe_emit_file.
13856 (dwarf2out_start_source_file): Use maybe_emit_file.
13857 (dwarf2out_init): Use maybe_emit_file.
13858 (prune_unused_types_walk_attribs): (new)
13859 (prune_unused_types_mark): (new)
13860 (prune_unused_types_walk): (new)
13861 (prune_unused_types_prune): (new)
13862 (prune_unused_types): (new)
13863 (dwarf2out_finish): Call prune_unused_types if
13864 flag_eliminate_unused_debug_types is set.
13865 * doc/invoke.texi (Option Summary): Add
13866 -feliminate-unused-debug-types.
13867 (Debugging Options): Likewise.
13869 2003-02-28 Geoffrey Keating <geoffk@apple.com>
13871 * doc/invoke.texi: Change .pch to .gch.
13872 * cppfiles.c (open_file_pch): Likewise.
13873 * gcc.c (default_compilers): Likewise.
13875 2003-02-28 Aldy Hernandez <aldyh@redhat.com>
13877 * floatlib.c: Remove.
13879 2003-02-28 Jason Merrill <jason@redhat.com>
13881 * stor-layout.c (variable_size): Leave a "minus 1" outside the
13884 2003-02-28 David Edelsohn <edelsohn@gnu.org>
13886 * config/rs6000/power4.md: Add compare bypass.
13888 2003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
13890 * config/netbsd.h: Update copyright years.
13891 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
13892 -pthread is specified on the command line.
13894 2003-02-28 Dale Johannesen <dalej@apple.com>
13896 * loop.c (struct movable): Add insert_temp, shrink savemode.
13897 (scan_loop): Accept invariants that require copying; mark as
13899 (combine_movables): Don't combine insert_temp movables.
13900 (move_movables): Insert copies for insert_temp movables.
13901 Don't record the info based on regno for insert_temp's.
13903 2003-02-28 Joel Sherrill <joel@OARcorp.com>
13906 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
13907 this constant defaults to 1.
13909 2003-02-28 Bob Wilson <bob.wilson@acm.org>
13911 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
13913 2003-02-28 Richard Earnshaw <rearnsha@arm.com>
13915 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
13916 ARMv5e processor, not just for XScale. Instructions are predicable.
13917 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
13919 2003-02-28 Nick Clifton <nickc@redhat.com>
13921 * config/arm/arm.c (note_invalid_constants): Change parameter type
13924 2003-02-28 Kazu Hirata <kazu@cs.umass.edu>
13926 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
13928 (*tst_extzv_memqi_1_n): Likewise.
13929 (a peephole2): New.
13931 2003-02-28 Richard Sandiford <rsandifo@redhat.com>
13933 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
13936 2003-02-28 Jan Hubicka <jh@suse.cz>
13938 * combine.c (gen_lowpart_for_combine): Update handling of
13940 * flow.c (life_analysis, mark_used_regs): Likewise.
13941 * regclass.c (subregs_of_mode): Turn into single bitmap.
13942 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
13943 dealing with subregs_of_mode
13944 * regs.h (subregs_of_mode): Update prototype.
13946 2003-02-28 Josef Zlomek <zlomekj@suse.cz>
13948 * emit-rtl.c (set_reg_attrs_for_parm): New function.
13949 * rtl.h (set_reg_attrs_for_parm): New exported function.
13950 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
13951 set_reg_attrs_from_mem.
13953 2003-02-27 Roger Sayle <roger@eyesopen.com>
13954 Zack Weinberg <zack@codesourcery.com>
13956 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
13958 2003-02-27 Kazu Hirata <kazu@cs.umass.edu>
13960 * reload1.c (sext_for_mode): Remove.
13961 (reload_cse_move2add): Use trunc_int_for_mode instead of
13963 (move2add_note_store): Likewise.
13964 Reset register information if we see a set in non-integer
13967 2003-02-27 David Edelsohn <edelsohn@gnu.org>
13969 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
13971 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
13972 * config/rs6000/aix51.h: Same.
13973 * config/rs6000/aix52.h: Same.
13974 * config/rs6000/power4.md: Additional VMX bypasses.
13976 2003-02-27 Geert Bosch <bosch@gnat.com>
13978 * toplev.c (print_version): Add indentation for GGC heuristics and
13979 output after printing version information.
13981 2003-02-27 James E Wilson <wilson@tuliptree.org>
13983 * combine.c (simplify_comparison): Require integral mode when
13984 permuting SUBREG with AND.
13986 2003-02-27 Steve Ellcey <sje@cup.hp.com>
13988 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
13990 2003-02-27 Nick Clifton <nickc@redhat.com>
13992 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
13993 deleted when cirrus instructions were added.
13995 2003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
13997 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
13998 POSIX thread support by default.
14000 2003-02-27 Roger Sayle <roger@eyesopen.com>
14002 * config/i386/cygwin.h: Don't include any other files directly.
14003 * config/i386/mingw32.h: Don't include cygwin.h directly.
14004 * config.gcc (cygwin, mingw32, uwin): Instead make these files
14005 explicit in the tm_files variable.
14007 2003-02-27 Alan Modra <amodra@bigpond.net.au>
14009 * config/rs6000/rs6000.md: Add TI constant splitter.
14011 2003-02-26 Alexandre Oliva <aoliva@redhat.com>
14013 * builtins.c (purge_builtin_constant_p): Handle subreg of
14014 constant_p_rtx too.
14016 * function.c (assign_stack_local_1): Truncate constant added to
14017 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
14019 2003-02-26 David Edelsohn <edelsohn@gnu.org>
14021 * config.gcc: Add power4 to PowerPC with_cpu list.
14023 2003-02-26 Jan Hubicka <jh@suse.cz>
14025 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
14027 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14029 * gcov-dump.c (print_prefix): Fix signedness warning.
14030 * gcov-io.h (struct counter_section, struct counter_section_data): New.
14031 (struct function_info): n_arc_counts field removed, n_counter_sections,
14032 counter_sections fields added.
14033 (struct gcov_info): arc_counts, n_arc_counts fields removed,
14034 n_counter_sections, counter_sections fields added.
14035 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
14037 * profile.h (MAX_COUNTER_SECTIONS): New.
14038 (struct section_info): New.
14039 (struct profile_info): count_instrumented_edges,
14040 count_edges_instrumented_now fields removed, n_sections, section_info
14042 (find_counters_section): Declare.
14043 * profile.c (struct function_list): count_edges field removed,
14044 n_counter_sections, counter_sections fields added.
14045 (set_purpose, label_for_tag, build_counter_section_fields,
14046 build_counter_section_value, build_counter_section_data_fields,
14047 build_counter_section_data_value, build_function_info_fields,
14048 build_function_info_value, build_gcov_info_fields,
14049 build_gcov_info_value): New static functions.
14050 (find_counters_section): New function.
14051 (instrument_edges, get_exec_counts, compute_branch_probabilities,
14052 branch_prob, create_profiler): Modified to support multiple profile
14055 2003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14057 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
14058 is 8 * STACK_BOUNDARY.
14059 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
14061 2003-02-26 Michael Matz <matz@suse.de>
14063 * ra-colorize.c (merge_moves): Fix list handling.
14065 2003-02-26 Nick Clifton <nickc@redhat.com>
14067 * config/arm/arm.c (is_load_address): Rename to...
14068 (arm_memory_load_p) ... this and make it check for SUBREGs and
14069 constant loads that will be converted into loads from the
14071 (is_cirrus_insn): Rename to ...
14072 (arm_cirrus_insn_p): ... this, for consistency. Replace test
14073 of CIRRUS_NO with CIRRUS_NOT.
14074 (cirrus_reorg): Use renamed functions.
14075 (note_invalid_constants): Change from a void function to bool.
14076 Add an extra parameter, saying whether the fixups should be
14077 pushed. Return true if fixups are needed.
14078 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
14079 of CIRRUS_NO with CIRRUS_NOT.
14080 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
14081 other floating point co-processors can also affect this.
14082 * config/arm/arm.md ("type" attribute): Add mav_farith and
14083 mav_dmult. Replace references to "cirrus_type" attribute with
14085 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
14086 ("cirrus_type" attribute): Delete - use "type" instead.
14087 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
14090 2003-02-25 Jan Hubicka <jh@suse.cz>
14092 * objc-act.c: Include cgraph.h
14093 (mark_referenced_methods): New function.
14094 (objc_init): Call it.
14095 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
14097 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
14100 * optabs.c (expand_fix): Do not widen the input operand.
14102 * expr.c (emit_group_store): Fix crash when converting single
14103 register into complex register.
14105 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
14106 * alias.c: Include timevar.h
14107 (init_alias_analysis): Set timevar
14108 * jump.c: Include timevar.h
14109 (rebuild_jump_labels): Set timevar
14110 * regcalss.c: Include timevar.h
14111 (reg_scan): Set timevar
14112 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
14114 2003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14116 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
14118 * Makefile.in (loop-unroll.o): New.
14119 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
14120 (unroll_and_peel_loops): Declare.
14121 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
14122 flag_old_unroll_loops.
14123 * loop.c (loop_invariant_p): Ditto.
14124 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
14125 flag_old_unroll_all_loops.
14126 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
14127 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
14128 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
14129 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
14130 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
14131 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
14132 PARAM_MAX_ONCE_PEELED_INSNS): New.
14133 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
14134 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
14135 instead of old one.
14136 (flag_peel_loops): New.
14137 (lang_independent_options): The new flags added.
14138 (rest_of_compilation): Call new unroller.
14139 (process_options): Setup flags for coexistence of old and new unroller.
14140 * doc/invoke.texi: Document new options.
14141 * doc/passes.texi: Document new unroller pass.
14143 2003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
14145 * fixinc/fixincl.x: Regenerate
14147 2003-02-26 Josef Zlomek <zlomekj@suse.cz>
14149 * function.c (assign_parms): Set reg_attrs for parameters passed in
14152 2003-02-26 Alan Modra <amodra@bigpond.net.au>
14155 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
14157 2003-02-25 David Edelsohn <edelsohn@gnu.org>
14159 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
14162 2003-02-25 Roger Sayle <roger@eyesopen.com>
14164 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
14165 * cse.c (invalidate_skipped_set): Likewise.
14166 * integrate.c (subst_constants): Likewise.
14167 * jump.c (reversed_comparison_code_parts): Likewise.
14168 * loop.c (canonicalize_condition): Likewise.
14169 * simplify-rtx.c (simplify_relational_operation): Likewise.
14171 2003-02-25 Roger Sayle <roger@eyesopen.com>
14173 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
14174 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
14175 the appropriate macro to define built-in function.
14176 (fmod,fmodf,fmodl): New built-in functions.
14178 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
14180 2003-02-25 Richard Henderson <rth@redhat.com>
14182 * config/i386/i386.c (function_arg): Pass variable sized
14183 structures correctly on the stack.
14185 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
14187 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
14188 does not reduce the cost of SET.
14190 2003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14193 * config/rs6000/rs6000.c (first_reg_to_save): Handle
14194 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
14195 (rs6000_emit_prologue): Likewise.
14196 (rs6000_emit_epilogue): Likewise.
14197 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
14198 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
14200 2003-02-25 Richard Henderson <rth@redhat.com>
14202 * real.c (real_to_integer2): Force overflow result only for
14205 2003-02-25 Kazu Hirata <kazu@cs.umass.edu>
14207 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
14209 2003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
14210 Richard Henderson <rth@redhat.com>
14212 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
14213 there is no similar load.
14215 2003-02-25 Vladimir Makarov <vmakarov@redhat.com>
14216 Richard Henderson <rth@redhat.com>
14218 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
14220 (add_forward_dependence): New function prototype.
14222 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
14224 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
14225 them to haifa-sched.c.
14227 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
14228 haifa_classify_insn): Move them from sched-rgn.c.
14230 * sched-deps.c (add_dependence): Return flag of creating a new
14232 (add_forward_dependence): New function.
14233 (compute_forward_dependences): Use the function.
14235 * sched-ebb.c (earliest_block_with_similiar_load): New function.
14236 (add_deps_for_risky_insns): New function.
14237 (schedule_ebb): Call the function.
14239 2003-02-20 Aldy Hernandez <aldyh@redhat.com>
14241 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
14242 TARGET_VECTOR_OPAQUE_P. Document accordingly.
14244 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
14247 * c-typeck.c (comptypes): Change call to vector_types_compatible
14248 to vector_opaque_p.
14249 (convert_for_assignment): Call vector_opaque_p instead of
14250 vector_types_compatible.
14251 (really_start_incremental_init): Disallow initialization of opaque
14254 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
14255 Define TARGET_VECTOR_OPAQUE_P.
14256 (TARGET_INITIALIZER): Same.
14258 * target.h (struct gcc_target): Remove vector_types_compatible.
14259 Add vector_opaque_p.
14261 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
14263 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
14264 a vector type. Change return type to bool.
14265 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
14266 (TARGET_VECTOR_OPAQUE_P): Define.
14268 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
14271 (cp_parser_init_declarator): Fix typo in function comments.
14273 2003-02-25 Jan Hubicka <jh@suse.cz>
14275 * Makefile.in (lcm.o): Add dependency on function.h
14276 * lcm.c (function.h): Include.
14277 * i386.c (machine_function, ix86_stack_locals,
14278 * ix86_save_varrargs_registers) : Move to
14280 * i386.h (machine_function, ix86_stack_locals,
14281 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
14282 (ix86_optimize_mode_switching): New.
14283 * i386.md (fix patterns): Set ix86_optimize_mode_switching
14285 2003-02-25 Nick Clifton <nickc@redhat.com>
14287 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
14288 of fourth arg is 'fndecl' not 'indirect'. Update comment
14289 describing the function's parameters.
14291 2003-02-24 Jan Hubicka <jh@suse.cz>
14293 * combine.c (simplify_shift_const): Fix previous patch.
14295 2003-02-24 Jeff Law <law@redhat.com>
14297 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
14299 (testsi_1, testhi_1, testqi_1): Likewise.
14301 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14303 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
14304 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
14305 * doc/extend.texi (Tru64 Pragmas): Reflect this.
14307 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
14308 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
14309 * fixinc/fixincl.x: Regenerate.
14310 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
14312 Fixes PR c/5059, c/6126, other/9671.
14314 2003-02-24 Roger Sayle <roger@eyesopen.com>
14316 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
14317 from handle_braces in "%{...}".
14319 2003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
14321 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
14322 (prepare_move_operands): Handle TLS operands.
14323 (tls_symbolic_operand): New.
14324 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
14325 (legitimize_pic_address): Do nothing for the TLS symbol.
14326 (sh_encode_section_info): Handle TLS case.
14327 (sh_strip_name_encoding): Drop TLS encoding.
14328 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
14329 * config/sh/sh.h (SH_TLS_ENCODING): Define.
14330 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
14331 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
14332 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
14333 * config/sh/sh.md: Define TLS UNSPEC constants.
14334 (type): Add tls_load.
14335 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
14336 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
14337 ("tls_initial_exec"): New insn.
14338 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
14339 ("load_gbr"): New insn.
14341 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
14342 * configure: Regenerate.
14344 2003-02-24 Alan Modra <amodra@bigpond.net.au>
14347 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
14348 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
14349 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
14350 (enum block_op_methods): Reorder for better store_expr optimization.
14351 * expr.c (store_expr): Test bit 1 of "want_value" for call param
14352 stores, test bit 0 for original want_value meaning. Pass
14353 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
14354 recursive calls, and calls to expand_param.
14355 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
14356 expected, set target to 0 rather than to subtarget. Formatting.
14358 2003-02-23 Kazu Hirata <kazu@cs.umass.edu>
14360 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
14362 2003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14364 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
14365 new default behavior.
14366 * ggc-common.c: Include sys/resource.h.
14367 (ggc_rlimit_bound): New function.
14368 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
14369 defaults to account for rlimits.
14371 2003-02-22 Richard Henderson <rth@redhat.com>
14373 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
14375 2003-02-22 Kelley Cook <kelley@dwhoops.info>
14377 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
14378 (ix86_tune_string): Rename from ix86_cpu_string.
14380 2003-02-22 Kelley Cook <kelleycook@comcast.net>
14382 * config/i386/i386.c: Replace "mcpu" with "mtune".
14383 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
14384 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
14385 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
14386 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
14388 2003-02-23 Andreas Schwab <schwab@suse.de>
14390 * config.gcc: Delete references to m68k/t-linux and
14392 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
14394 2003-02-22 Jan Hubicka <jh@suse.cz>
14396 * toplev.c (rest_of_compilation): Apply fotgotten hunk
14397 of track scheduling patch.
14399 2003-02-22 Jan Hubicka <jh@suse.cz>
14401 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
14402 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
14404 2003-02-22 Jan Hubicka <jh@suse.cz>
14406 * c-decl.c (c_expand_body_1): Fix.
14408 2003-02-22 Jan Hubicka <jh@suse.cz>
14410 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
14412 * cfgcleanup.c (try_forward_edges): Don't check loop structures
14413 when not optimizing.
14414 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
14415 when not expensive.
14416 * toplev.c (rest_of_compilation): Duplicate loop headers only when
14417 optimizing; Delete trivially dead insns early; fix optimize check.
14419 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
14420 dependency on cgraph.h
14421 * c-decl.c: Include cgraph.h
14422 (finish_function): Update call of tree_inlinable_function_p.
14423 * c-objc-common.c: Include cgraph.h
14424 * cgraph.h: New file.
14425 * cgraphunit.c: New file.
14426 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
14427 (cgraph_nodes, cgraph_n_nodes): Globalize.
14428 (cgraph_finalize_function, cgraph_finalize_compilation_unit
14429 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
14430 Move into cgraphunit.c
14431 * tree-inline.c: Include cgraph.h
14432 * tree-inline.c: Include cgraph.h
14434 2003-02-22 Josef Zlomek <zlomekj@suse.cz>
14436 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
14437 for copying a register.
14439 2003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
14442 * toplev.c (process_options): If flag_detailed_statistics is set,
14443 then set time_report as well.
14446 * jump.c (never_reached_warning): Don't fall through BARRRIER
14447 insns. Update comments to reflect what the function really does.
14449 2003-02-21 Roger Sayle <roger@eyesopen.com>
14451 * fold-const.c (omit_one_operand): No longer static.
14452 * tree.h (omit_one_operand): Prototype here.
14453 (div_and_round_double): Keep fold-const.c prototypes together.
14454 * builtins.c (builtin_mathfn_code): Handle binary built-in
14455 funtions, such as "pow" and "atan2".
14456 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
14457 Simplify optimizations using "type" the builtin's return type.
14459 2003-02-22 Hans-Peter Nilsson <hp@axis.com>
14461 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
14462 Fix functionalization typo.
14464 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
14467 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14469 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
14470 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
14472 * ggc-common.c: Include params.h
14473 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
14474 init_ggc_heuristics): New functions.
14475 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
14476 init_ggc_heuristics): Prototype.
14477 * toplev.c (print_version): Output GGC heuristics.
14478 (parse_options_and_default_flags): Call init_ggc_heuristics.
14480 2003-02-22 Jan Hubicka <jh@suse.cz>
14482 * i386.c (def_builtin): Special case 64bit builtins.
14483 (MASK_SSE164, MASK_SSE264): New constants.
14484 (builtin_description): Add 64bit builtins.
14485 (ix86_init_mmx_sse_builtins): Likewise.
14486 * i386.h (enum ix86_builtins): Likewise.
14487 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
14488 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
14489 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
14490 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
14491 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
14492 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
14493 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
14495 2003-02-22 Jan Hubicka <jh@suse.cz>
14497 * i386.c (builtin_description): Add __builtin_ia32_paddq and
14498 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
14499 and __builtin_ia32_psubq128.
14500 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
14501 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
14502 (mmx_adddi3, mmx_subdi3): New.
14503 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
14504 * xmmintrin.h (_mm_movepi64_pi64): New.
14505 (_mm_add_epi64, _mm_sub_epi64): fix.
14506 (_mm_mul_pu16): Rename to...
14507 (_mm_mul_su32): ... this one.
14509 * builtins.c (expand_builtin_expect): Do not predict
14510 flag_guess_branch_prob is not set.
14511 * c-semantics.c (expand_stmt): Likewise.
14512 * predict.c (predict_insn): Likewise.
14513 * stmt.c (expand_continue_loop): Likewise.
14514 * toplev.c (rest_of_compilation): Do not call
14515 note_prediction_to_br_prob and note_prediction_to_br_prob
14516 when not optimizing.
14518 2003-02-21 Jan Hubicka <jh@suse.cz>
14520 * cfgrtl.c (commit_edge_insertions): Call
14521 find_many_sub_basic_block only when some code has been emitted.
14522 (commit_edge_insertions_watch_calls): Bring into sync with
14523 commit_edge_insertions
14525 2003-02-21 J"orn Rennecke <joern.rennecke@superh.com>
14527 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
14529 * sh.md (binary_sf_op): Use extra constant operand instead of
14530 negating constant operand 4.
14531 * sh.c (sh_expand_binop_v2sf): Supply it.
14533 2003-02-21 Zack Weinberg <zack@codesourcery.com>
14535 * cpphash.h (struct lexer_state): Add directive_wants_padding.
14536 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
14537 for directives of type INCL.
14538 (glue_header_name, parse_include): Use get_token_no_padding.
14539 * cppmacro.c (replace_args): If directive_wants_padding,
14540 provide padding tokens.
14542 2003-02-21 Kazu Hirata <kazu@cs.umass.edu>
14544 * config/h8300/h8300.md (a peephole2): New.
14546 2003-02-21 Jan Hubicka <jh@suse.cz>
14548 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
14549 (commit_edge_insertions): Call find_many_sub_basic_blocks
14551 * reg-stack.c (convert_regs): Cleax aux for blocks.
14553 2003-02-21 Jan Hubicka <jh@suse.cz>
14555 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
14557 2003-02-21 Glen Nakamura <glen@imodulo.com>
14559 PR optimization/8613
14560 * builtins.c (expand_builtin): Emit postincrements before expanding
14563 2003-02-21 Ben Elliston <bje@redhat.com>
14566 * doc/install.texi (Configuration): Explain using $HOME instead of
14567 the ~ metacharacter when referring to home directories.
14569 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
14571 * configure.in (TARGET_SYSTEM_ROOT): Set default to
14572 ${exec_prefix}/${target_alias}/sys-root. Match explicit
14573 '${exec_prefix}' (in addition to the expansion thereof) as
14575 * configure: Rebuilt.
14577 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
14579 * config/h8300/h8300.md (addhi3_incdec): Change the name to
14581 (addsi3_incdec): Change the name to *addsi3_incdec.
14583 2003-02-20 Roger Sayle <roger@eyesopen.com>
14585 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
14587 2003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
14590 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
14591 options to be ignored.
14592 (c_common_decode_option): Ignore them when preprocessing.
14594 2003-02-20 Jan Hubicka <jh@suse.cz>
14596 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
14598 (lang_independent_options): Add -fsched2-use-superblocks
14599 -fsced2-use-traces.
14600 (rest_of_compilation): Deal with it.
14601 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
14602 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
14604 * rtl.h (reg_to_stack): Update prototype.
14605 * reg-stack.c (reg_to_stack): Return when something has changed;
14606 update liveness when executing after superblock scheduling.
14608 * combine.c (simplify_shift_const): Simplify few special cases
14611 2003-02-20 David Edelsohn <edelsohn@gnu.org>
14613 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
14614 (add.,subf.,neg.): Change attribute to fast_compare.
14615 All DFA descriptions updated.
14617 2003-02-20 Nathan Sidwell <nathan@codesourcery.com>
14619 Change base class access representation.
14620 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
14621 TREE_VIA_PRIVATE): Remove.
14622 (BINFO_BASEACCESSES): New binfo elt.
14623 (BINFO_BASEACCESS): New accessor.
14624 (BINFO_ELTS): Increase.
14625 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
14626 (access_public_node, access_protected_node,
14627 access_private_node): New global nodes.
14628 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
14629 * dbxout.c (dbxout_type): Adjust.
14630 * dwarf2out.c (gen_inheritance_die): Add access parameter.
14631 (gen_member_die): Adjust.
14632 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
14633 (output_type): Adjust.
14634 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
14636 Change base class access representation. Share virtual base
14638 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
14640 * cp/class.c (build_base_path): Likewise.
14641 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
14642 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
14643 (make_new_vtable): Adjust.
14644 (force_canonical_binfo_r): Delete.
14645 (force_canonical_binfo): Delete.
14646 (mark_primary_virtual_base): Delete.
14647 (dfs_unshared_virtual_bases): Delete.
14648 (mark_primary_bases): Adjust.
14649 (maybe_warn_about_overly_private_class): Adjust.
14650 (dfs_base_derived_from): Delete.
14651 (base_derived_from): Follow the inheritance chain.
14652 (struct find_final_overrider_data): Add vpath member.
14653 (dfs_find_final_overrider): Adjust.
14654 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
14655 (find_final_overrider): Adjust.
14656 (update_vtable_entry_for_fn): Adjust.
14657 (modify_all_vtables): Adjust.
14658 (walk_subobject_offsets): Adjust.
14659 (layout_nonempty_base_or_field): Adjust.
14660 (layout_empty_base): Remove last parameter. Adjust.
14661 (build_base_field): Adjust.
14662 (build_base_fields): Adjust.
14663 (propagate_binfo_offsets): Remove last parameter. Adjust.
14664 (dfs_set_offset_for_unshared_vbases): Delete.
14665 (layout_virtual_bases): Adjust.
14666 (finish_struct_1): Adjust.
14667 (init_class_processing): Don't init access nodes.
14668 (dfs_get_primary_binfo): Delete.
14669 (get_primary_binfo): Adjust.
14670 (dump_class_hierarchy_r): Remove most derived arg, add IGO
14672 (dump_class_hierarchy): Adjust.
14673 (finish_vtbls): Adjust.
14674 (get_original_base): Delete.
14675 (build_vtt_inits): Adjust.
14676 (dfs_build_secondary_vptr_vtt_inits): Adjust.
14677 (dfs_ctor_vtable_bases_queue_p): Adjust.
14678 (build_ctor_vtbl_group): Adjust.
14679 (dfs_accumulate_vtbl_inits): Adjust.
14680 (build_vtbl_initializer): Adjust.
14681 (build_vbase_offset_vtbl_entries): Adjust.
14682 (add_vcall_offset_vtbl_entries_1): Adjust.
14683 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
14684 (access_*_node): Remove.
14685 (CANONICAL_BINFO): Delete.
14686 (BINFO_UNSHARED_MARKED): Remove.
14687 (BINFO_MARKED): Set LANG_FLAG_0 directly.
14688 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
14689 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
14690 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
14692 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
14693 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
14694 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
14696 (BINFO_DEPENDENT_BASE_P): New.
14697 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
14699 (markedp, unmarkedp): Adjust.
14700 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
14701 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
14702 find_vbase_instance, binfo_for_vbase): Delete.
14703 (copied_binfo, original_binfo): Declare.
14704 (finish_base_specifier): Add virtual_p arg.
14705 (unshare_base_binfos): Delete.
14706 (copy_base_binfos): Declare.
14707 (reverse_path): Delete.
14708 * cp/decl.c (xref_basetypes): Access and virtuality passed
14709 differently. Don't copy direct base binfos here. Call
14711 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
14712 (initialize_vtbl_ptrs): Adjust.
14713 (expand_member_init): Adjust.
14714 * cp/parser.c (cp_parser_base_specifier): Adjust.
14715 * cp/pt.c (instantiate_class_template): Adjust.
14716 (get_template_base_recursive): Adjust.
14717 * cp/rtti.c (get_pseudo_ti_init): Adjust.
14718 (get_pseudo_ti_desc): Adjust.
14719 * cp/tree.c (unshare_base_binfos): Rename to ...
14720 (copy_base_binfos): ... here, reimplement.
14721 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
14722 (reverse_path): Remove.
14723 * cp/typeck.c (get_delta_difference): Adjust error messages.
14724 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
14725 * cp/search.c (lookup_base_r): Adjust.
14726 (dynamic_cast_base_recurse): Adjust.
14727 (canonical_binfo): Remove.
14728 (dfs_canonical_queue): Remove.
14729 (dfs_assert_unmarked_p): Remove.
14730 (assert_canonical_unmarked): Remove.
14731 (shared_marked_p, shared_unmarked_p): Remove.
14732 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
14733 (dfs_access_in_type): Adjust.
14734 (access_in_type): Adjust.
14735 (dfs_accessible_queue_p): Adjust.
14736 (dfs_accessible_p): Adjust.
14737 (is_subobject_of_p_1, is_subobject_of_p): Remove.
14738 (struct lookup_field_info): Remove from_dep_base_p field.
14739 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
14740 (lookup_field_r): Remove dependent base code.
14741 (lookup_member): Likewise.
14742 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
14743 (dfs_unmarked_real_bases_queue_p): Remove.
14744 (dfs_marked_real_bases_queue_p): Remove.
14745 (dfs_skip_vbases): Remove.
14746 (dfs_get_pure_virtuals): Adjust.
14747 (markedp, unmarkedp): Adjust.
14748 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
14749 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
14750 (dfs_unmark): Adjust.
14751 (dfs_get_vbase_types):Remove.
14752 (dfs_build_inheritance_graph_order): Remove.
14753 (get_vbase_types): Remove
14754 (dfs_find_vbase_instance): Remove.
14755 (find_vbase_instance): Remove.
14756 (dfs_debug_unmarkedp): Adjust.
14757 (dependent_base_p): Remove.
14758 (dfs_push_type_decls): Adjust.
14759 (dfs_push_decls): Adjust.
14760 (dfs_no_overlap_yet): Adjust.
14761 (copied_binfo): New function.
14762 (original_binfo): New function.
14763 (binfo_for_vbase): Remove.
14765 Change base class access representation.
14766 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
14767 (add_interface_do): Likewise.
14769 2003-02-20 David Edelsohn <edelsohn@gnu.org>
14771 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14772 * config/rs6000/power4.md (power4-store,power4-vecstore): New
14774 (power4-fpstore): Compact.
14776 2003-02-20 Kazu Hirata <kazu@cs.umass.edu>
14778 * config/h8300/h8300.md (*iorsi3_w): New.
14780 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
14782 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
14783 * rtl.c (reg_note_name): Likewise.
14784 * rtl.h (enum reg_note): Likewise.
14785 * doc/invoke.texi: Likewise.
14786 * doc/rtl.texi: Likewise.
14788 2003-02-20 Josef Zlomek <zlomekj@suse.cz>
14790 * bb-reorder.c (find_traces_1_round): Fix comment typo.
14792 2003-02-19 Roger Sayle <roger@eyesopen.com>
14794 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
14795 addition in the presence of signaling NaNs.
14797 2003-02-19 Krister Walfridsson <cato@df.lth.se>
14799 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
14801 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
14803 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
14804 ORing with 0xffff??00 with the highest bit of the ?? part set.
14805 (compute_logical_op_length): Update.
14806 (compute_logical_op_cc): Likewise.
14808 2003-02-19 Josef Zlomek <zlomekj@suse.cz>
14810 * bb-reorder.c (find_traces_1_round): Fixed condition for small
14811 destination block with multiple predecessors.
14812 (connect_traces): Check whether the block is a start of trace.
14814 2003-02-19 Jan Hubicka <jh@suse.cz>
14816 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
14817 * function.c (assign_params): Likewise.
14818 * arm-protos.h (arm_init_cumulative_args): Update prototype.
14819 * arm.c (arm_init_cumulative_args): Update function.
14820 * arm.h (INIT_CUMULATIVE_ARGS): Update.
14821 * avr-protos.h (init_cumulative_args): Update prototype.
14822 * avr.c (init_cumulative_args): Update function.
14823 * avr.h (INIT_CUMULATIVE_ARGS): Update.
14824 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
14825 * d30v.c (d30v_init_cumulative_args): Update function.
14826 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
14827 * frv-protos.h (frv_init_cumulative_args): Update prototype.
14828 * frv.c (frv_init_cumulative_args): Update function.
14829 * frv.h (INIT_CUMULATIVE_ARGS): Update.
14830 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
14831 * pa.h (INIT_CUMULATIVE_ARGS): Update.
14832 * sparc-protos.h (init_cumulative_args): Update prototype.
14833 * sparc.c (init_cumulative_args): Update function.
14834 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
14835 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
14837 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
14839 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
14840 (*ashiftsi_sextqi_7): Likewise.
14842 2003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14844 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
14847 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
14848 for C++ on IRIX 6.5.1[89].
14849 * fixinc/tests/base/internal/sgimacros.h: New file.
14851 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
14852 * fixinc/tests/base/internal/wchar_core.h: New file.
14854 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
14855 socklen_t definition.
14856 * fixinc/fixincl.x: Regenerate.
14857 * fixinc/tests/base/sys/socket.h: New file.
14858 Fixes PR libgcj/9652.
14860 2003-02-19 Jan Hubicka <jh@suse.cz>
14862 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
14864 2003-02-19 David Edelsohn <edelsohn@gnu.org>
14866 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
14867 align_jumps_max_skip and align_loops_max_skip.
14869 2003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
14871 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
14872 test size if named section.
14874 2003-02-19 Daniel Jacobowitz <drow@mvista.com>
14876 * expr.c (expand_expr): Use gen_int_mode for the argument
14879 2003-02-19 Jan Hubicka <jh@suse.cz>
14881 * i386.md (cosxf2): Fix conditional.
14883 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
14885 * config/h8300/h8300.md (extendqisi2): Change to an expander.
14886 (*extendqisi2_h8300): New.
14887 (*extendqisi2_h8300hs): Likewise.
14889 2003-02-19 Kazu Hirata <kazu@cs.umass.edu>
14891 * config/h8300/h8300-protos.h: Update the prototype for
14892 split_adds_subs. Remove the prototypes for
14893 const_int_le_2_operand and const_int_le_6_operand.
14894 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
14895 (const_int_le_2_operand): Remove.
14896 (const_int_le_6_operand): Likewise.
14897 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
14898 for const_int_le_2_operand and const_int_le_6_operand.
14899 * config/h8300/h8300.md: Update all uses of split_adds_subs.
14900 (a peephole2): New.
14902 2003-02-18 Jan Hubicka <jh@suse.cz>
14904 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
14905 (cgraph_expand_function): Rewrite.
14907 2003-02-18 Matt Austern <austern@apple.com>
14909 * toplev.c, langhooks.c, langhooks-def.h: Move
14910 write_global_declarations from toplev.c to langhooks.c.
14912 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
14914 * config/h8300/h8300.c (general_operand_src): Always check
14916 (general_operand_dst): Likewise.
14918 2003-02-18 Roger Sayle <roger@eyesopen.com>
14920 * convert.c (convert_to_real): Also optimize (float)log(x) into
14921 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
14923 2003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
14925 * config/sh/sh.c (unspec_caller_rtx_p): New.
14926 (sh_cannot_copy_insn_p): New.
14927 (TARGET_CANNOT_COPY_INSN_P): New.
14929 2003-02-18 Richard Henderson <rth@redhat.com>
14931 * c-common.c (handle_used_attribute): Accept static data too.
14933 2003-02-18 Nick Clifton <nickc@redhat.com>
14934 Aldy Hernandez <aldyh@redhat.com>
14936 * testsuite/gcc.dg/20030218-1.c: New.
14938 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
14940 * target-def.h (TARGET_INITIALIZER): Add
14941 TARGET_VECTOR_TYPES_COMPATIBLE.
14942 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
14944 * target.h (struct gcc_target): Add field vector_types_compatible.
14946 * c-typeck.c (comptypes): Take into account
14947 TARGET_VECTOR_TYPES_COMPATIBLE.
14948 (convert_for_assignment): Same.
14950 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
14951 (rs6000_spe_vector_types_compatible): New.
14952 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
14954 2003-02-19 Andreas Schwab <schwab@suse.de>
14956 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
14957 * toplev.c: Include langhooks-def.h.
14959 2003-02-18 Chris Demetriou <cgd@broadcom.com>
14961 * config/mips/mips.h (enum processor_type): Sort entries
14963 * config/mips/mips.md (define_attr cpu): Sync with processor_type
14964 enum values, including adding entries that were missing.
14966 2003-02-18 J"orn Rennecke <joern.rennecke@superh.com>
14968 * sh.c (calc_live_regs): Also check GET_CODE when checking if
14969 initial value for PR_REG is still the PR_REG register.
14971 2003-02-18 Jim Wilson <wilson@redhat.com>
14973 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
14974 instruction in output template.
14975 (bsp_value): Change output template from string to C code, add %,
14976 before actual instruction.
14977 (flushrs): Mark as not predicable.
14979 2003-02-18 Krister Walfridsson <cato@df.lth.se>
14981 * inclhack.def (netbsd_bogus_semicolon): New fix.
14982 * fixincl.x: Rebuilt.
14983 * tests/base/ctype.h: Update.
14985 2003-02-18 Roger Sayle <roger@eyesopen.com>
14987 * fold-const.c (negate_expr_p): New function to determine whether
14988 an expression can be negated cheaply.
14989 (fold) [MINUS_EXPR]: Use it to determine whether to transform
14990 -A - B into -B - A for floating point types.
14992 2003-02-18 Roger Sayle <roger@eyesopen.com>
14994 * sbitmap.c (sbitmap_resize): New function.
14995 * sbitmap.h (sbitmap_resize): Prototype here.
14996 * recog.c (split_all_insns): Use sbitmap_resize.
14998 2003-02-18 Kazu Hirata <kazu@cs.umass.edu>
15000 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
15002 (extendqisi2): Likewise.
15003 (*extendhisi2_h8300): Likewise.
15005 2003-02-18 Matt Austern <austern@apple.com>
15007 * langhooks.h, langhooks-def.h: introduce new langhook,
15008 final_write_globals, with write_global_declarations as default.
15009 * toplev.c: Move invocation of wrapup_global_declarations from
15010 compile_file to new function, write_global_declarations. Change
15011 compile_file to use final_write_globals hook. Change
15012 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
15015 2003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15017 * pa.md: Correct and enhance comment.
15019 2003-02-18 Geoffrey Keating <geoffk@apple.com>
15021 * gcc.c (validate_switches): Don't scan past closing '}'.
15023 2003-02-18 Ben Elliston <bje@redhat.com>
15026 * doc/extend.texi (Function Attributes): Document the effect of
15027 the C++ "this" parameter on the counting of arguments for the
15028 "format" and "format_arg" attributes.
15030 2003-02-17 Aldy Hernandez <aldyh@redhat.com>
15032 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
15036 2003-02-17 Jan Hubicka <jh@suse.cz>
15038 * recog.c (split_all_insns): Fix memory overflow.
15040 2003-02-17 Kazu Hirata <kazu@cs.umass.edu>
15042 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
15044 (*cmphi_h8300): Likewise.
15045 (*cmphi_h8300hs): Likewise.
15047 (7 peephole2): Likewise.
15049 2003-02-16 Jan Hubicka <jh@suse.cz>
15051 * c-typeck.c (build_c_cast): Fold constant variables into
15054 2003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15056 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
15057 (Binaries): Ditto for Sinix/Reliant Unix.
15059 2003-02-16 Richard Earnshaw <rearnsha@arm.com>
15061 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
15062 not overlap the final result register.
15064 2003-02-16 Arend Bayer <arend.bayer@web.de>
15065 Richard Henderson <rth@redhat.com>
15068 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
15069 rearrange mult arguments for less recursion.
15070 (extract_muldiv): New. Prevent runaway recursion.
15072 2003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
15074 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
15077 2003-02-15 Roger Sayle <roger@eyesopen.com>
15079 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
15080 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
15081 (ext_80387_constants_table): Global table of 80387 special constants
15082 guarded by ext_80387_constants_init flag when not initialized.
15083 (init_ext_80387_constants): New function to initialize this table.
15084 (standard_80387_constant_p): Extend to recognize extra 80387
15085 constants, in XFmode, on processors where this is a win.
15086 (standard_80387_constant_opcode): New function to return the
15087 opcode associated with standard_80387_constant_p.
15088 (standard_80387_constant_rtx): New function to return the XFmode
15089 CONST_DOUBLE associated with standard_80387_constant_p.
15090 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
15092 * config/i386/i386-protos.h (standard_80387_constant_opcode):
15094 (standard_80387_constant_rtx): Likewise.
15096 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
15097 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
15098 *movtf_integer): Simplify using new standard_80387_constant_opcode.
15100 2003-02-15 Geoffrey Keating <geoffk@apple.com>
15102 * doc/invoke.texi (Optimize Options): Correct @option syntax.
15104 2003-02-15 Richard Henderson <rth@redhat.com>
15106 * Makefile.in (cfglayout.o): Depend on TARGET_H.
15107 * cfglayout.c: Include target.h.
15108 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
15109 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
15110 * target.h (struct gcc_target): Add cannot_copy_insn_p.
15112 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
15113 (TARGET_CANNOT_COPY_INSN_P): New.
15114 (override_options): Revert 2003-02-08 hack.
15116 2003-02-15 Richard Henderson <rth@redhat.com>
15118 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
15119 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
15121 2003-02-15 David Edelsohn <edelsohn@gnu.org>
15123 * config/rs6000/rs6000.h (processor_type): Add PPC440.
15124 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
15125 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
15126 TARGET_SCHED_VARIABLE_ISSUE): Define.
15127 (rs6000_use_dfa_pipeline_interface): New function.
15128 (rs6000_multipass_dfa_lookahead): New Function.
15129 (rs6000_variable_issue): New function.
15130 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
15131 (rs6000_issue_rate): Add PPC440.
15132 * config/rs6000/rs6000.md (unspec list): Correct typo.
15133 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
15134 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
15135 cmp, delayed_cr, mfcr, mtcr.
15136 (automata_option): Set "ndfa".
15137 (extendMMNN2): Update attributes.
15138 (movcc_internal1): Discourage move to non-cr0. Update
15140 (movMM_update): Update attributes.
15141 (cmpMM_internal): Update attributes.
15142 (sCC CR materialization): Update attributes.
15143 (branch patterns): Do not discourage non-cr0.
15144 (cr logical patterns): Prefer destructive register allocation.
15146 (movesi_from_cr): Update attribute.
15147 (mtcrf_operation): Update attribute.
15148 (mtcrfsi): Update attribute.
15149 * config/rs6000/40x.md: New file.
15150 * config/rs6000/603.md: New file.
15151 * config/rs6000/6xx.md: New file.
15152 * config/rs6000/7450.md: New file.
15153 * config/rs6000/7xx.md: New file.
15154 * config/rs6000/mpc.md: New file.
15155 * config/rs6000/power4.md: New file.
15156 * config/rs6000/rios1.md: New file.
15157 * config/rs6000/rios2.md: New file.
15158 * config/rs6000/rs64.md: New file.
15159 [Some DFA descriptions based on work by Michael Hayes]
15161 2003-02-15 Richard Henderson <rth@redhat.com>
15163 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
15164 successors with multiple predecessors.
15165 (connect_traces): Try harder to copy traces of length 1.
15167 * function.h (struct function): Add computed_goto_common_label,
15168 computed_goto_common_reg.
15169 * function.c (free_after_compilation): Zap them.
15170 * stmt.c (expand_computed_goto): Use them to produce one
15171 indirect branch per function.
15173 2003-02-15 Richard Henderson <rth@redhat.com>
15175 * cfgcleanup.c: Include params.h.
15176 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
15177 too many outgoing edges from a block.
15178 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
15179 * params.def (max-crossjump-edges): New.
15180 * doc/invoke.texi: Document it.
15182 2003-02-15 Richard Henderson <rth@redhat.com>
15184 * recog.c (split_all_insns): Include new blocks in life update;
15185 do a global life update.
15187 2003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
15189 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
15191 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
15194 2003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
15196 PR optimization/7702
15197 * reload1.c (reload_cse_simplify_set): Honor
15198 CANNOT_CHANGE_MODE_CLASS.
15200 2003-02-14 Alexandre Oliva <aoliva@redhat.com>
15202 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
15204 * config/mn10300/mn10300-protos.h: Declare it.
15205 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
15206 attribute cc of instructions that may use clr.
15208 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
15210 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
15211 (x - (x & y)) is found.
15213 2003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15215 * configure.in: Fix typo.
15216 * configure: Regenerate.
15218 2003-02-14 Kazu Hirata <kazu@cs.umass.edu>
15220 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
15222 2003-02-13 Adam Nemet <anemet@lnxw.com>
15225 * combine.c: Fix spelling in comment.
15226 (cached_nonzero_bits): New function.
15227 (cached_num_sign_bit_copies): New function.
15228 (nonzero_bits_with_known): New macro.
15229 (num_sign_bit_copies_with_known): New macro.
15230 (nonzero_bits1): Rename from nonzero_bits. Add three new
15231 arguments. Change calls from nonzero_bits to
15232 nonzero_bits_with_known.
15233 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
15234 three new arguments. Change calls from num_sign_bit_copies to
15235 num_sign_bit_copies_with_known.
15236 (nonzero_bits): New macro.
15237 (num_sign_bit_copies): New macro.
15238 (update_table_tick): Don't traverse identical subexpression more
15240 (get_last_value_validate): Likewise.
15242 2003-02-13 Zack Weinberg <zack@codesourcery.com>
15244 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
15245 * function.h (struct emit_status): Length of regno_pointer_align
15246 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
15247 not regno_pointer_align_length (i.e. length actually used, not
15248 length as allocated)
15250 * config/i386/i386.c (struct stack_local_entry): New.
15251 (struct machine_function): Replace huge array with alist.
15252 (assign_386_stack_local): Change to match.
15254 2003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
15256 * inclhack.def (hpux_long_double): Tighten select and add bypass
15258 * fixincl.x: Rebuilt.
15260 2003-02-13 Josef Zlomek <zlomekj@suse.cz>
15262 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
15263 edge and block ends with a jump insn it must be simple jump.
15265 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
15267 * Makefile.in (PREPROCESSOR_DEFINES): Add
15268 @TARGET_SYSTEM_ROOT_DEFINE@.
15269 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
15270 is specified or if building a cross compiler.
15271 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
15272 if the sysroot is under $exec_prefix.
15273 * configure: Regenerated.
15274 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
15276 (struct default_include): Add add_sysroot field.
15277 (cpp_SYSROOT): Declare.
15278 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
15280 (cpp_SYSROOT): New variable.
15281 * cppinit.c (cpp_create_reader): Initialize
15282 CPP_OPTION (pfile, sysroot).
15283 (init_standard_includes): Handle add_sysroot. Do not
15284 add unrelocated copies of relocated directories.
15285 (COMMAND_LINE_OPTIONS): Add -isysroot.
15286 (cpp_handle_option): Handle -isysroot.
15287 * cpplib.h (struct cpp_options): Add sysroot member.
15288 * gcc.c (The Specs Language): Update description of %I.
15289 (target_system_root_changed): New variable.
15290 (process_command): Conditionalize make_relative_prefix call
15291 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
15292 target_system_root_changed.
15293 (do_spec_1): Add -isysroot to %I.
15294 * doc/invoke.texi (Spec Files): Update description of %I.
15295 * doc/install.texi (--with-sysroot): Update comment about
15298 2003-02-13 Kazu Hirata <kazu@cs.umass.edu>
15300 * config/h8300/h8300.md (a peephole2): New.
15302 2003-02-13 Robert Lipe <robertlipe@usa.net>
15303 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15305 * doc/install.texi (Specific): Update three SCO-related URLs.
15307 2003-02-13 Andreas Schwab <schwab@suse.de>
15309 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
15310 Parenthesize properly.
15311 (NPREDECESORS): Parenthesize properly.
15313 2003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
15315 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
15317 2003-02-12 Roger Sayle <roger@eyesopen.com>
15319 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
15320 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
15322 * reg-stack.c (subst_stack_regs_pat): Add support for binary
15323 UNSPEC instructions (e.g. "fpatan").
15325 2003-02-12 Mike Stump <mrs@apple.com>
15327 * varray.c (element_size): Remove.
15328 (uses_ggc): Remove.
15330 (varray_init): Use new interface.
15331 (varray_grow): Use new interface.
15332 (varray_clear): Use new interface.
15334 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
15336 * config/rs6000/spe.h: Add casts to the arguments of the following
15337 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
15338 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
15339 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
15340 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
15341 __ev_get_u16, __ev_get_s16.
15343 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
15345 * config/h8300/h8300.md (a peephole2): New.
15347 2003-02-12 Jan Hubicka <jh@suse.cz>
15349 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
15350 (OBJS): Add callgraph.o
15351 (callgraph.o): New.
15352 * c-decl.c (expand_body_1): Break out from ...
15353 (expand_body): This one; change calling convention
15354 (finish_function): Move some of expand_body logic here.
15355 (c_expand_deferred_function): Update call of expand_body
15356 (c_expand_stmt): Use c_expand_body_1.
15357 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
15358 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
15359 * c-tree.h (c_expand_body): Declare.
15360 * callgraph.c: New file.
15361 * flags.h (flag_unit_at_a_time): Declare.
15362 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
15363 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
15364 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
15365 * langhooks.h (struct lang_hooks_for_callgraph): New.
15366 (struct lang_hooks): Add callgraph field.
15367 * toplev.c (flag_unit_at_a_time): New.
15368 (lang_independent_options): Add flag_unit_at_a_time.
15369 (process_options): Disable unit-at-a-time mode for frontends not
15370 supporting callgraph.
15371 * tree-inline.c (typedef struct inline_data): Add "decl"
15372 (expand_call_inline): Update callgraph.
15373 (optimize_inline_calls): Set id.decl.
15374 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
15375 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
15376 cgraph_calls_p): Declare.
15377 * invoke.texi (-funit-at-a-time): Document
15379 2003-02-12 Aldy Hernandez <aldyh@redhat.com>
15381 * config/rs6000/spe.h: Fix misc formatting.
15382 (__ev_create_ufix32_fs): Cast ev argument.
15383 (__ev_create_sfix32_fs): Same.
15384 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
15385 (__ev_get_ufix32_fs_internal): Same.
15387 2003-02-12 Ranjit Mathew <rmathew@hotmail.com>
15389 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
15390 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
15392 2003-02-12 Zack Weinberg <zack@codesourcery.com>
15394 * cpplib.c (do_include_common): Move warnings for
15395 #include_next and #import out to callers. Use early-return
15396 instead of nested ifs. Don't do check_eol here.
15397 (parse_include): Do check_eol here with the rest of the
15399 (do_include_next, do_import): Now handle warnings.
15401 2003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15403 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
15405 2003-02-12 Jan Hubicka <jh@suse.cz>
15407 * predict.c (estimate_probability): Fix roundoff error.
15409 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
15411 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
15412 (two peephole2): New.
15414 2003-02-12 Kazu Hirata <kazu@cs.umass.edu>
15416 * config/h8300/h8300.md (several peephole2): Replace
15417 find_regno_note with peep2_reg_dead_p.
15419 2003-02-11 Richard Henderson <rth@redhat.com>
15421 * gcse.c (lookup_set): Remove unused argument PAT. Update
15424 2003-02-11 Geoffrey Keating <geoffk@apple.com>
15426 * diagnostic.c (real_abort): New.
15427 (diagnostic_report_diagnostic): Call real_abort on error.
15428 * diagnostic.h (diagnostic_abort_on_error): New.
15429 (struct diagnostic_context): Add abort_on_error field.
15430 * toplev.c (setup_core_dumping): New.
15431 (decode_d_option): Handle 'H' case.
15432 * doc/invoke.texi (Debugging Options): Document -dH.
15434 2003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
15436 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
15437 which refers to obsolete directories.
15439 2003-02-11 Richard Henderson <rth@redhat.com>
15441 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
15443 2002-10-21 Jan Hubicka <jh@suse.cz>
15445 * i386.c (contains_128bit_aligned_vector_p): New function.
15446 (ix86_function_arg_boundary): Properly align vector modes.
15448 2003-02-11 Bob Wilson <bob.wilson@acm.org>
15450 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
15451 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
15454 2003-02-11 Roger Sayle <roger@eyesopen.com>
15456 * builtins.c: Fix failure caused by commiting wrong patch.
15458 2003-02-11 Dale Johannesen <dalej@apple.com>
15459 * ra-build.c (compare_and_free_webs): Relax checking.
15460 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
15461 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
15463 2003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
15465 PR optimization/9651
15466 * rtlanal.c (may_trap_p): Handle FIX.
15468 2003-02-11 Dave Jones <davej@codemonkey.org.uk>
15470 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
15471 * doc/invoke.texi: Extra alias.
15473 2003-02-11 Geoffrey Keating <geoffk@apple.com>
15475 * config/rs6000/host-darwin.c: Fix comment.
15477 2003-02-11 David Edelsohn <edelsohn@gnu.org>
15479 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
15480 predicate for mod result.
15482 2003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15484 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
15485 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
15486 * fixincl.x: Rebuilt.
15487 * tests/base/stdlib.h: Update.
15488 * tests/base/ctype.h: New file.
15490 2003-02-11 Jan Hubicka <jh@suse.cz>
15492 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
15494 2003-02-11 Richard Henderson <rth@redhat.com>
15496 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
15497 appropriated as globals.
15498 (ix86_expand_clrstr): Similarly.
15499 * config/i386/i386.md (cmpstrsi): Similarly.
15501 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
15503 * config/h8300/h8300.md (a peephole2): Add a case of 255.
15505 2003-02-11 Roger Sayle <roger@eyesopen.com>
15507 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
15508 (pow_optab, atan2_optab): Define corresponding macros.
15509 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
15510 * genopinit.c (optabs): Implement pow_optab and atan2_optab
15511 using pow?f3 and atan2?f3 patterns.
15512 * builtins.c (expand_errno_check): New function to update errno
15513 if necessary, split out from expand_builtin_mathfn.
15514 (expand_builtin_mathfn): Use expand_errno_check.
15515 (expand_builtin_mathfn_2): New function to handle expanding binary
15516 math functions, reusing the code in expand_errno_check.
15517 (expand_builtin): Handle the pow and atan2 math built-ins,
15518 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
15519 expand_builtin_mathfn_2.
15521 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
15523 2003-02-11 Jan Hubicka <jh@suse.cz>
15525 * combine.c (combine_simplify_rtx): Fix folding of
15526 nested float_truncates.
15528 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
15530 * config/h8300/h8300.md (a peephole2): Fix a typo.
15532 2003-02-11 Richard Earnshaw <rearnsha@arm.com>
15534 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
15537 2003-02-11 Kazu Hirata <kazu@cs.umass.edu>
15539 * config/h8300/h8300-protos.h: Add a prototype for
15541 * config/h8300/h8300.c (gtuleu_operator): New.
15542 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
15543 * config/h8300/h8300.md (a peephole2): New.
15545 2003-02-11 Jan Hubicka <jh@suse.cz>
15547 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
15549 2003-02-11 Jan Hubicka <jh@suse.cz>
15551 * predict.c (choose_function_section): Choose sections correctly.
15553 2003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15555 * reload1.c (first_label_num): New.
15556 (reload): Index offsets_known_at and offsets_at using difference of
15557 label number and first label number. Don't use offset pointers.
15558 (set_label_offsets, set_initial_label_offsets): Likewise.
15560 2003-02-10 Roger Sayle <roger@eyesopen.com>
15562 * mips-tfile.c (init_file): Add missing initializers in the
15563 "#ifdef __alpha" case.
15564 (file_offset, max_file_offset): Declare as unsigned long.
15565 (write_varray): Cast to "unsigned long" in comparisons against
15566 either file_offset or max_file_offset.
15567 (write_object): Likewise.
15568 (read_seek): Likewise.
15569 (copy_object): Likewise. Declare "ifd" as int to match its use
15570 in add_ext_symbol, and avoid signed/unsigned conditional warning.
15572 2003-02-10 Nick Clifton <nickc@redhat.com>
15573 Aldy Hernandez <aldyh@redhat.com>
15575 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
15576 override options which have been specified on the command line.
15578 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
15580 * config/h8300/h8300.md (abssf2): New.
15581 (*abssf2_h8300): Likewise.
15582 (*abssf2_h8300hs): Likewise.
15584 2003-02-10 Phil Edwards <pme@gcc.gnu.org>
15586 * tree.c (build_tree_list): Fix parameter names in comment.
15588 2003-02-10 Janis Johnson <janis187@us.ibm.com>
15590 * config/rs6000/ppc64-fp.c: New file.
15591 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
15593 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
15595 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
15596 * bb-reorder.c (make_reorder_chain): Deleted.
15597 (make_reorder_chain_1): Deleted.
15598 (find_traces): New function.
15599 (rotate_loop): New function.
15600 (mark_bb_visited): New function.
15601 (find_traces_1_round): New function.
15602 (copy_bb): New function.
15603 (bb_to_key): New function.
15604 (better_edge_p): New function.
15605 (connect_traces): New function.
15606 (copy_bb_p): New function.
15607 (get_uncond_jump_length): New function.
15608 (reorder_basic_blocks): Use new functions (Software Trace Cache).
15609 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
15612 2003-02-10 Aldy Hernandez <aldyh@redhat.com>
15614 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
15616 2003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15618 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
15619 (DECL_LIVE_RANGE_RTL): Remove.
15621 2003-02-10 Nick Clifton <nickc@redhat.com>
15623 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
15624 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
15625 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
15626 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
15627 config/arm/freebsd.h, config/arm/linux-elf.h,
15628 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
15629 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
15630 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
15631 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
15632 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
15633 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
15634 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
15635 and reformat as appropriate.
15637 2003-02-10 Kazu Hirata <kazu@cs.umass.edu>
15639 * config/h8300/clzsi2.c: Remove.
15640 * config/h8300/ctzsi2.c: Likewise.
15641 * config/h8300/paritysi2.c: Likewise.
15642 * config/h8300/popcountsi2.c: Likewise.
15643 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
15644 ctzsi2, paritysi2, and popcountsi2.
15646 2003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
15647 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
15650 * c-decl.c (duplicate_decls): Discard the initializer of the
15651 new decl when the types are conflicting.
15653 2003-02-10 Josef Zlomek <zlomekj@suse.cz>
15655 * Makefile.in (sreal.o): Added.
15656 (predict.o): Depends on sreal.h instead of real.h.
15657 * sreal.c: New file.
15658 * sreal.h: New file.
15659 * predict.c: Use sreal.c instead of real.c.
15661 2003-02-10 Nick Clifton <nickc@redhat.com>
15663 * Contributed support for the Cirrus EP9312 "Maverick"
15664 floating point co-processor. Written by Aldy Hernandez
15665 <aldyh@redhat.com>.
15666 (config/arm/arm.c): Add Cirrus support.
15667 (config/arm/arm.h): Likewise.
15668 (config/arm/aout.h): Likewise.
15669 (config/arm/arm.md): Likewise.
15670 (config/arm/arm-protos.h): Likewise.
15671 (config.gcc): Likewise.
15672 (doc/invoke.texi): Describe new -mcpu value and new
15673 -mcirrus-fix-invalid-insns switch,
15674 (cirrus.md): New file.
15676 2003-02-10 Jan Hubicka <jh@suse.cz>
15678 * combine.c (combine_simplify_rtx): Simplify using
15679 (float_truncate (float x)) is (float x)
15680 (float_extend (float_extend x)) is (float_extend x).
15682 2003-02-10 Alan Modra <amodra@bigpond.net.au>
15684 * calls.c (try_to_integrate): Tidy stack_usage_map access.
15685 (emit_library_call_value_1): Likewise. Formatting.
15686 (store_one_arg): Likewise.
15688 2003-02-09 Nick Clifton <nickc@redhat.com>
15689 Aldy Hernandez <aldyh@redhat.com>
15691 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
15692 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
15693 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
15694 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
15695 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
15696 docs. Add range test for immediate value.
15698 2003-02-09 Aldy Hernandez <aldyh@redhat.com>
15700 Rename spe_evxor to xorv2si3.
15704 2003-02-10 Glen Nakamura <glen@imodulo.com>
15706 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
15709 2003-02-10 Jan Hubicka <jh@suse.cz>
15711 * i386.c (vector_move_operand): New predicate.
15712 (ix86_expand_vector_move): Be happy about 0.
15713 * i386.h (PREDICATE_CODES): Add sse-move_operand.
15714 * i386.md (mov*_internal): Add 'C' alternative.
15716 2003-02-09 Jan Hubicka <jh@suse.cz>
15718 * i386.md (floathi*): Deal with SSE.
15720 2003-02-09 Jan Hubicka <jh@suse.cz>
15722 * simplify-rtx.c (simplify_unary_operation,
15723 simplify_binary_operation): Deal with vector modes
15724 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
15726 2003-02-09 Richard Sandiford <rsandifo@redhat.com>
15728 * toplev.c (rest_of_compilation): Recompute register usage after
15731 2003-02-09 Richard Henderson <rth@redhat.com>
15733 * libgcc-std.ver (__clztf2): New.
15734 (__ctztf2, __popcounttf2, __paritytf2): New.
15735 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
15736 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
15737 adjust code to match the different type sizes.
15738 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
15739 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
15741 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
15742 TImode; select word_mode and twice that.
15743 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
15744 select the modes from float, double, and long double.
15745 (init_optabs): Remove duplicate initializations.
15747 2003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
15749 * doc/install.texi: Squeeze and streamline section on
15750 testing and regression checking.
15752 2003-02-09 Jan Hubicka <jh@suse.cz>
15754 * i386.md (ahi?v*3): Set third operand type to TImode.
15755 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
15757 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
15760 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
15761 Change code so they are arithmetic expressions now.
15762 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
15763 simplify_ternary_operation): Deal with VEC_* expressions.
15765 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
15767 2003-02-08 Jan Hubicka <jh@suse.cz>
15769 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
15770 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
15771 possibly got duplicated.
15773 2003-02-08 Richard Henderson <rth@redhat.com>
15775 * config/alpha/alpha.c (override_options): Turn off explicit
15776 relocs until post-peep2 code duplication resolved.
15778 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
15780 * optabs.c (expand_unop): Widen clz properly when clz is done
15783 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
15785 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
15786 * config/h8300/crti.asm: Likewise.
15787 * config/h8300/crtn.asm: Likewise.
15788 * config/h8300/ctzsi2.c: Likewise.
15789 * config/h8300/fixunssfsi.c: Likewise.
15790 * config/h8300/h8300-protos.h: Likewise.
15791 * config/h8300/h8300.c: Likewise.
15792 * config/h8300/h8300.h: Likewise.
15793 * config/h8300/h8300.md: Likewise.
15794 * config/h8300/paritysi2.c: Likewise.
15795 * config/h8300/popcountsi2.c: Likewise.
15796 * config/h8300/rtems.h: Likewise.
15798 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15800 * doc/invoke.texi: Documentation for my previous commit.
15801 * doc/passes.texi: Ditto.
15803 2003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15805 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
15806 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
15808 (DLTHE_FLAG_UPDATE_FREQ): New.
15809 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
15810 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
15811 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
15812 fix_bb_placement, fix_bb_placements, place_new_loop,
15813 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
15814 New static functions.
15815 (fix_loop_placement, can_duplicate_loop_p,
15816 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
15819 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
15820 unswitch_loops): Declare.
15821 * loop-init.c: New file.
15822 * loop-unswitch.c: New file.
15823 * Makefile.in (loop-init.o, loop-unswitch.o): New.
15824 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
15825 * toplev.c (DFI_loop2): New dump.
15826 (flag_unswitch_loops): New.
15827 (lang_independent_options): Add it.
15828 (rest_of_compilation): Call new loop optimizer.
15829 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
15831 2003-02-08 Kazu Hirata <kazu@cs.umass.edu>
15833 * config/h8300/clzsi2.c: New.
15834 * config/h8300/ctzsi2.c: Likewise.
15835 * config/h8300/paritysi2.c: Likewise.
15836 * config/h8300/popcountsi2.c: Likewise.
15837 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
15839 2003-02-07 David Edelsohn <edelsohn@gnu.org>
15841 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
15842 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
15843 (ctzsi2): New pattern.
15844 (ffssi2): Use clz instead of unspec.
15845 (clzdi2): Rename from cntlzd2.
15846 (ctzdi2): New pattern.
15847 (ffsdi2): Use clz instead of unspec.
15849 2003-02-07 Loren James Rittle <ljrittle@acm.org>
15851 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
15852 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
15853 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
15854 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
15856 2003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
15858 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
15860 2003-02-07 Richard Henderson <rth@redhat.com>
15863 * gcse.c (local_cprop_find_used_regs): New.
15864 (local_cprop_pass): Use it.
15866 2003-02-07 Fred Fish <fnf@intrinsity.com>
15868 * mips-tfile.c (parse_def): Parenthesize assignments to fix
15871 2003-02-07 Segher Boessenkool <segher@koffie.nl>
15873 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
15875 2003-02-07 Roger Sayle <roger@eyesopen.com>
15877 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
15878 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
15879 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
15880 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
15881 builtin functions (and their __builtin_* variants).
15882 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
15883 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
15884 when not optimizing.
15886 * doc/extend.texi: Document new pow and atan2 builtins, and
15887 their float and long double variants. Realphabetize builtins.
15889 2003-02-07 Jan Hubicka <jh@suse.cz>
15891 * i386.md (sse2_nandv2di3): Fix.
15893 2003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
15895 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
15896 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
15898 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
15899 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
15901 2003-02-07 Jan Hubicka <jh@suse.cz>
15903 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
15905 2003-02-07 Daniel Berlin <dberlin@dberlin.org>
15907 * cfg.c (dump_flow_info): Add back accidently deleted line.
15909 2003-02-07 Andrey Petrov <petrov@netbsd.org>
15911 * optabs.c (expand_float): Search wider integer modes first.
15913 2003-02-07 Bob Wilson <bob.wilson@acm.org>
15915 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
15916 based on preprocessor flag.
15918 2003-02-07 Roger Sayle <roger@eyesopen.com>
15919 Richard Henderson <rth@redhat.com>
15921 * gcse.c (implicit_sets): New.
15922 (compute_hash_table_work): Include them in hash table.
15923 (find_implicit_sets, fis_get_condition): New.
15924 (one_cprop_pass): Allocate and free implicit_sets; call
15925 find_implicit_sets before building hash table.
15927 2003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
15929 * config/t-netbsd (USER_H): Revert previous change.
15931 2003-02-07 Gabor Greif <ggreif@lucent.com>
15933 * doc/c-tree.texi (Namespaces): Fix typo.
15935 2003-02-07 Jan Hubicka <jh@suse.cz>
15937 * regrename.c (do_replace, find_oldest_value_reg,
15938 copyprop_hardreg_forward_1): Update register attributes.
15940 2003-02-06 Vladimir Makarov <vmakarov@redhat.com>
15942 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
15943 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
15944 variables starting with underscore.
15945 (struct unit_usage): New structure.
15946 (unit_usages, cycle_alt_unit_usages): New global variables.
15947 (check_unit_distribution_in_reserv): Remove it.
15948 (store_alt_unit_usage): New function.
15949 (check_regexp_units_distribution): Rewrite it.
15951 2003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15953 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
15954 target_cpu_default.
15955 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
15956 if not MASK_NO_SPACE_REGS.
15957 (output_call): Adjust return pointer, don't load new space register
15958 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
15959 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
15960 TARGET_NO_SPACE_REGS is true.
15961 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
15963 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
15964 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
15965 true. Use bve when TARGET_64BIT is true.
15967 2003-02-06 Richard Henderson <rth@redhat.com>
15969 * combine.c (nonzero_bits): Fix double break.
15971 2003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
15972 Richard Henderson <rth@redhat.com>
15975 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
15976 from functions that return a float to functions that don't.
15978 2003-02-06 Jan Hubicka <jh@suse.cz>
15980 * i386.c (x86_inter_unit_moves): New variable.
15981 (ix86_secondary_memory_needed): Fix 64bit case, honor
15982 TARGET_INTER_UNIT_MOVES
15983 * i386.h (x86_inter_unit_moves): Declare.
15984 (TARGET_INTER_UNIT_MOVES): New macro.
15985 * i386.md (movsi_1): Cleanup constraints; disable
15986 when not doing inter-unit moves.
15987 (movsi_1_nointernunit): New.
15988 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
15989 (movdi_1_rex64_nointerunit): New.
15990 (mivsf_1): disable when not doing inter-unit moves.
15991 (movsf_1_nointerunit): New.
15993 * basic-block.h (inside_basic_block_p): Declare.
15994 * cfgbuild.c (inside_basic_block_p): Make global.
15995 * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
15996 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
15998 (fix_basic_block_boundaries, add_missing_bbs): New.
15999 (rank): Use profile.
16000 (scheudle_ebbs): Rely on CFG; update coments.
16002 2003-02-05 Geoffrey Keating <geoffk@apple.com>
16004 * Makefile.in (host_hook_obj): New.
16005 (OBJS): Add $(host_hook_obj).
16006 (host_default.o): New rule.
16007 * config.gcc (host_hook_obj): New, default to host-default.o.
16008 (powerpc-*-darwin*): Use host-darwin.o.
16009 (out_host_hook_obj): New.
16010 * configure: Regenerate.
16011 * configure.in: Print information about out_host_hook_obj, substitute
16013 * host-default.c: New file.
16014 * hosthooks.h: New file.
16015 * toplev.c (general_init): Call host_hooks.extra_signals.
16016 * config/rs6000/host-darwin.c: New file.
16017 * config/rs6000/x-darwin: New file.
16018 * doc/hostconfig.texi: Add documentation for new host hook.
16019 Rearrange existing documentation.
16021 2003-02-05 Roger Sayle <roger@eyesopen.com>
16023 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
16024 with *targetm.delegitimize_address.
16025 (rtl_for_decl_location): Likewise.
16026 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
16027 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
16029 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
16030 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
16032 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
16033 i386_simplify_dwarf_addr. Made static. Prototyped.
16034 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
16035 i386_simplify_dwarf_addr to ix86_delegitimize_address.
16036 (ix86_find_base_term): Likewise.
16037 (maybe_get_pool_constant): Likewise.
16039 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
16040 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
16042 * config/s390/s390.c (s390_delegitimize_address): Renamed from
16043 s390_simplify_dwarf_addr. Made static. Prototyped.
16044 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
16046 2003-02-05 Richard Henderson <rth@redhat.com>
16049 * integrate.c (output_inline_function): Reset input_filename
16050 and lineno from the decl before rest_of_compilation.
16052 2003-02-05 Richard Henderson <rth@redhat.com>
16054 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
16055 (CTZ_DEFINED_VALUE_AT_ZERO): New.
16056 * doc/rtl.texi, doc/tm.texi: Document them.
16058 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
16059 of the value at zero properly.
16060 * fold-const.c (tree_expr_nonnegative_p): Likewise.
16061 * simplify-rtx.c (simplify_unary_operation): Likewise.
16063 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
16064 (CTZ_DEFINED_VALUE_AT_ZERO): New.
16066 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
16067 (TARGET_EXPAND_BUILTIN): Remove.
16068 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
16069 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
16070 (enum arm_builtins): Remove.
16071 * config/arm/arm.md (UNSPEC_CLZ): Remove.
16072 (clzsi2): Rename from clz; use clz instead of unspec.
16074 * config/arm/arm-protos.h: Update.
16076 2003-02-05 Jan Hubicka <jh@suse.cz>
16078 * i386-protos.h (x86_emit_floatuns): Declare.
16079 * i386.c (x86_emit_floatuns): New global function.
16080 * i386.md (floatunssisf2, floatunsdisf2,
16081 floatunsdidf2): New patterns.
16083 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16085 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
16087 2003-02-05 Hans Boehm <Hans.Boehm@hp.com>
16089 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
16090 config/ia64/linux.h
16092 2003-02-05 Roger Sayle <roger@eyesopen.com>
16094 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
16096 2003-02-05 Jakub Jelinek <jakub@redhat.com>
16098 PR optimization/8555
16099 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
16100 instead of aborting.
16102 2003-02-04 Richard Henderson <rth@redhat.com>
16104 * config/i386/i386.md (UNSPEC_BSF): Remove.
16105 (ffssi2): Split into cmove and no_cmove insns and splitters;
16106 lose pentium float trick for now.
16107 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
16108 (ctzsi2, clzsi2, bsr): New.
16110 2003-02-04 Richard Henderson <rth@redhat.com>
16112 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
16113 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
16114 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
16115 (ffsdi2): Use popcount instead of unspec.
16116 (popcountdi2): Rename from *popcnt.
16117 (ctzdi2, clzdi2, getf_exp_tf): New.
16119 2003-02-04 Kazu Hirata <kazu@cs.umass.edu>
16121 * genconfig.c (main): Generate CC0_P.
16122 * rtl.h (CC0_P): Remove.
16124 2003-02-04 Richard Henderson <rth@redhat.com>
16126 * libgcc2.h, libgcc2.c (__ffsSI2): New.
16127 (__ffsDI2): Rename from __ffsdi2.
16128 * mklibgcc.in (lib2funcs): Add _ffssi2.
16130 2003-02-04 Richard Henderson <rth@redhat.com>
16132 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
16133 rounds with a "bit table" lookup.
16135 2003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
16137 * reload.c (find_reloads): Do not use the mode specified in the insn
16138 pattern as reload mode for address operands. Do not generate optional
16139 reloads for operands where a mandatory reload was already pushed.
16141 2003-02-04 Richard Henderson <rth@redhat.com>
16143 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
16144 builtins instead of inline assembly.
16146 2003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
16149 * libgcc2.c (__subvdi3): Fix typo.
16151 2003-02-04 Jan Hubicka <jh@suse.cz>
16153 * i386.md (movti_rex64): Fix constraint.
16155 2003-02-04 Jan Hubicka <jh@suse.cz>
16157 * i386.md (vector push splitters): Fix typo in resolving conflict.
16159 2003-02-04 Rodney Brown <rbrown64@csc.com.au>
16161 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
16163 2003-02-04 Phil Edwards <pme@gcc.gnu.org>
16165 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
16166 for recent libstdc++. Remove formatting cruft.
16168 2003-02-04 Jakub Jelinek <jakub@redhat.com>
16170 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
16171 attribute even if input file name is absolute, but one of the
16172 includes is relative.
16174 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
16176 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
16177 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
16178 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
16180 2003-02-03 Richard Henderson <rth@redhat.com>
16182 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
16183 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
16184 return type to "int". Shuffle declarations and undef int trap.
16185 * libgcc2.h: Remove their declarations.
16186 * optabs.c (expand_unop): Force outmode to int for bitops.
16188 2003-02-03 Bob Wilson <bob.wilson@acm.org>
16190 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
16191 coprocessor registers before floating-point registers.
16192 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
16193 to account for a previously removed register.
16194 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
16195 Delete unused macros.
16197 2003-02-03 Jan Hubicka <jh@suse.cz>
16199 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
16200 (mov*_internal): Fix predicates; require one of operands to not be
16202 (SSE?MMX move expanders): Fix predicates; force one of operands to
16204 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
16205 (movups/movupd/movdqu patterns): Force one of operands to not be
16208 2003-02-03 Roger Sayle <roger@eyesopen.com>
16210 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
16211 takes a single rtx and returns it unmodified.
16212 * hooks.h (hook_rtx_rtx_identity): Prototype here.
16213 * target.h (struct gcc_target): Add "delegitimize_address"
16214 field to target structure.
16215 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
16216 for delegitimize_address target using hook_rtx_rtx_identity.
16217 (TARGET_INITIALIZER): Initialize delegitimize_address field
16218 using TARGET_DELEGITIMIZE_ADDRESS macro.
16219 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
16220 extensions of constant pool references. Use delegitimize_address
16221 to undo the obfuscation of "-fpic".
16222 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
16224 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
16225 i386_simplify_dwarf_addr.
16226 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
16227 (maybe_get_pool_constant): Likewise.
16229 2003-02-03 Jan Hubicka <jh@suse.cz>
16231 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
16233 2003-02-03 Jan Hubicka <jh@suse.cz>
16235 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
16237 2003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16239 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
16240 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
16242 2003-02-02 Andreas Schwab <schwab@suse.de>
16244 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
16246 2003-02-02 Richard Earnshaw <rearnsha@arm.com>
16248 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
16249 (epilogue_insns): Likewise.
16251 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16253 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
16255 2003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16257 * pa-protos.h (attr_length_millicode_call): Remove second argument.
16258 (attr_length_indirect_call, attr_length_indirect_call,
16259 attr_length_save_restore_dltp): New prototypes.
16260 * pa.c (attr_length_millicode_call): Remove second argument. Check
16261 INSN_ADDRESSES_SET_P in distance calculation.
16262 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
16264 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
16265 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
16266 Call attr_length_call directly.
16267 (attr_length_indirect_call, output_indirect_call,
16268 attr_length_save_restore_dltp): New functions.
16269 * pa.md (attr_length_millicode_call): Drop second argument from all
16271 (return_internal_pic): Delete.
16272 (return_external_pic): Remove use of PIC register and pic operand and
16274 (epilogue): Use return_internal for both normal and pic code.
16275 (call, call_value): Emit new 32-bit pic patterns for symref and
16276 indirect calls. Remove uses for arg pointer and pic register.
16277 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
16278 call_reg_pic_post_reload, call_val_symref_pic,
16279 call_val_symref_pic_post_reload, call_val_reg_pic,
16280 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
16281 Implement define_split and define_peephole2 patterns for pre reload
16283 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
16284 call_value_internal_reg_64bit): Shorten names.
16285 (all call patterns): Explicitly indicate registers used and clobbered.
16286 Use attr_length_indirect_call and attr_length_save_restore_dltp for
16287 attribute length calculation. Move code generation for indirect calls
16288 to output_indirect_call.
16289 (sibcall, sibcall_value): Don't restore PIC register.
16290 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
16293 2003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16295 * doc/install.texi (Testing): Simplify and compress instructions
16296 concerning Dejagnu.
16298 2003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16300 * collect2.c (pexecute_pid): Rename to pid.
16301 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
16304 2003-02-01 Geoffrey Keating <geoffk@apple.com>
16306 * doc/extend.texi (Function Attributes): Remove documentation
16307 for PowerPC Windows NT function attributes..
16309 2003-02-01 Daniel Jacobowitz <drow@mvista.com>
16311 * dwarf2out.c (gen_type_die): Check for typedefs before calling
16312 for TYPE_MAIN_VARIANT.
16314 2003-02-01 Richard Henderson <rth@redhat.com>
16316 * libgcc2.c: Include auto-host.h.
16317 (ATTRIBUTE_HIDDEN): New.
16318 (__clz_tab): Don't declare here for clz and ctz.
16319 (__clzsi2, __clzdi2): Use count_leading_zeros.
16320 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
16321 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
16322 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
16323 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
16325 2003-02-01 Richard Henderson <rth@redhat.com>
16327 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
16328 to the conditional.
16329 (ashlsi3_1_zext splitter): Likewise.
16331 2003-02-01 Richard Henderson <rth@redhat.com>
16333 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
16334 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
16335 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
16336 return type to Wtype.
16338 * libgcc-std.ver (GCC_3.4): Fix inheritance.
16340 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
16341 expander input constraint.
16343 2003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
16345 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
16347 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
16348 * optabs.c (widen_clz, expand_parity): New.
16349 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
16350 for libcalls to clz, ctz, popcount, and parity.
16351 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
16352 parity_optab, and set up libfunc handlers.
16353 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
16354 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
16355 __popcount_tab): New.
16356 * libgcc2.h: Declare them.
16357 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
16358 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
16360 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
16361 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
16362 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
16363 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
16364 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
16365 BUILT_IN_PARITYLL): New.
16366 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
16367 and add optab argument.
16368 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
16369 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
16370 * expr.c (expand_expr): Handle them.
16371 * fold-const.c (tree_expr_nonnegative_p): Likewise.
16372 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
16373 * reload1.c (eliminate_regs): Handle them.
16374 (elimination_effects): Likewise.
16375 * function.c (instantiate_virtual_regs_1): Likewise
16376 * genattrtab.c (check_attr_value): Likewise.
16377 * simplify-rtx.c (simplify_unary_operation): Likewise.
16378 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
16379 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
16380 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
16381 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
16382 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
16384 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
16385 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
16386 * doc/extend.texi (Other Builtins): Add new builtins.
16387 * doc/md.texi (Standard Names): Add new patterns.
16389 2003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
16391 * reload.c: Revert 2003-01-31 change.
16393 2003-02-01 Jan Hubicka <jh@suse.cz>
16395 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
16397 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
16399 * flags.h (flag_volatile): Remove declaration.
16400 (flag_volatile_global, flag_volatile_static): Likewise.
16401 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
16402 * toplev.c (flag_volatile): Remove definition.
16403 (flag_volatile_global, flag_volatile_static): Likewise.
16404 (f_options): Remove corresponding entries here.
16405 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
16406 or flag_volatile_static.
16407 * doc/invoke.texi: Remove documentation of -fvolatile,
16408 -fvolatile-global and -fvolatile-static.
16410 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16412 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
16413 updating of total_code_bytes from prologue to epilogue.
16415 2003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
16417 * reload.c (find_reloads): Do not use the mode specified in the insn
16418 pattern as reload mode for address operands. Do not generate optional
16419 reloads for operands where a mandatory reload was already pushed.
16420 Generate optional reloads only in the final pass though find_reloads.
16421 (have_replacement_p): New function.
16423 2003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16425 * doc/install.texi (Testing): Remove a reference to our obsolete
16426 /testresults web pages and strip redundant information concerning
16428 (Binaries): Refer to Microsoft Windows instead of listing all
16431 2003-02-01 Jan Hubicka <jh@suse.cz>
16433 * loop.c (emit_prefetch_instructions): Do conversion at right place in
16436 * combine.c (simplify_set): Reverse order of ragumetns to
16437 REG_CANNOT_CHANGE_MODE_P
16438 * df.c (df_def_record_1): Likewise.
16439 * recog.c (register_operand): Likewise.
16440 * simplify-rtx.c (simplify_subreg): Likewise.
16441 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
16442 CANNOT_CHANGE_MODE_CLASS.
16443 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
16445 * reload.c (push_reload): Likewise.
16446 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16447 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16448 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16449 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
16450 * mips.c (mips_cannot_change_mode_class): Update.
16451 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16452 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16453 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16454 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
16455 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
16456 * sh.c (sh_cannot_change_mode_class): Update.
16457 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
16458 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
16460 2003-01-31 Geoffrey Keating <geoffk@apple.com>
16462 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
16463 change to LINK_COMMAND_SPEC in gcc.c.
16465 2003-01-31 Jan Hubicka <jh@suse.cz>
16468 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
16470 2003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16472 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
16475 2003-01-31 Nathan Sidwell <nathan@codesourcery.com>
16477 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
16478 (BINFO_ELTS): New #define.
16479 * stor-layout.c (finalize_record_size): Don't set them.
16480 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
16481 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
16482 (BINFO_LANG_ELTS): New #define.
16483 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
16484 * java/class.c (make_class): Use BINFO_ELTS.
16485 (set_super_info): Likewse.
16486 (add_interface_do): Likewise.
16487 * objc/objc-act.c (start_class): Use BINFO_ELTS.
16489 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
16491 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
16492 (times): Don't ever declare if not HAVE_TIMES.
16493 (clock): Don't ever declare if not HAVE_CLOCK.
16495 2003-01-30 Richard Henderson <rth@redhat.com>
16497 * flow.c (update_life_info): Zap life info after cleanup_cfg.
16498 (regno_uninitialized): Use correct live at function entry set.
16499 (regno_clobbered_at_setjmp): Likewise.
16501 * expr.c (store_expr): Promote all MEM intermediates to regs.
16503 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
16505 * config/arm/arm.c: Fix comment typos.
16506 * config/arm/arm.h: Likewise.
16507 * config/arm/netbsd-elf.h: Likewise.
16508 * config/arm/netbsd.h: Likewise.
16510 2003-01-30 Geoffrey Keating <geoffk@apple.com>
16512 * gengtype.c (struct walk_type_data): Add needs_cast_p.
16513 (walk_type): Set needs_cast_p in walk_type_data.
16514 (write_types_process_field): Supply casts when required to suppress
16516 (write_root): Cast gt_pch_n_S to suppress warning.
16517 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
16518 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
16519 when they might exist.
16520 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
16521 insn-conditions.o, and rs6000.o.
16523 2003-01-30 Richard Henderson <rth@redhat.com>
16525 * ggc-page.c (G.context_depth_allocations): New.
16526 (G.context_depth_collections): New.
16527 (alloc_page): Set G.context_depth_allocations.
16528 (ggc_collect): Set G.context_depth_collections.
16529 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
16530 (ggc_pop_context): Early exit for no allocations or collections.
16532 2003-01-30 Richard Henderson <rth@redhat.com>
16534 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
16536 2003-01-30 Richard Earnshaw <rearnsha@arm.com>
16538 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
16539 size, the link register is always saved if any other register is
16542 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
16544 * config/h8300/h8300-protos.h: Update the prototype for
16546 (cpp_reader): Declare before it is used.
16547 * config/h8300/h8300.c (compute_plussi_cc): Change the return
16549 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
16550 see an unknown H8 variant.
16552 2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
16555 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
16556 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
16557 * config/rs6000/t-rtems: New file. multilib variants to match OS.
16558 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
16559 rs6000/t-ppcgas so we get the desired multilibs.
16561 2003-01-30 Nick Clifton <nickc@redhat.com>
16563 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
16564 when popping saved IP register off the stack.
16566 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
16568 * config/rs6000/aix43.h: Fix comment typos.
16569 * config/rs6000/aix51.h: Likewise.
16570 * config/rs6000/aix52.h: Likewise.
16571 * config/rs6000/altivec.h: Likewise.
16572 * config/rs6000/rs6000.c: Likewise.
16573 * config/rs6000/rs6000.h: Likewise.
16574 * config/rs6000/rs6000.md: Likewise.
16575 * config/rs6000/spe.md: Likewise.
16577 2003-01-29 Mark Mitchell <mark@codesourcery.com>
16579 * c-common.c (builtin_define_float_constants): Define
16580 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
16582 2003-01-30 Kazu Hirata <kazu@cs.umass.edu>
16584 * config/sh/lib1funcs.asm: Fix comment typos.
16585 * config/sh/linux.h: Likewise.
16586 * config/sh/sh.c: Likewise.
16587 * config/sh/sh.md: Likewise.
16589 2003-01-30 Loren James Rittle <ljrittle@acm.org>
16591 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
16593 2003-01-30 Alexandre Oliva <aoliva@redhat.com>
16595 * config/fp-bit.h (__make_dp): Declare if TMODES.
16597 2003-01-29 Kazu Hirata <kazu@cs.umass.edu>
16599 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
16600 general_operand_src and general_operand_dst.
16602 2003-01-29 David Edelsohn <edelsohn@gnu.org>
16604 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
16605 Return true for variable sized types.
16606 (rs6000_va_arg): Handle variable sized types passed by reference
16609 2003-01-29 Richard Earnshaw <rearnsha@arm.com>
16611 * arm.c (arm_legtimize_address): New function.
16612 * arm-protos.h (arm_legtimize_address): Add prototype.
16613 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
16614 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
16617 2003-01-29 Joel Sherrill <joel@OARcorp.com>
16620 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
16621 depended on it being defined until now.
16623 2003-01-29 Joel Sherrill <joel@OARcorp.com>
16626 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
16627 RTEMS code knows which C++ initialization style the toolset
16628 configuration is using.
16630 2003-01-29 Joel Sherrill <joel@OARcorp.com>
16633 * config/m68k/t-crtstuff: Replace spaces with tabs, add
16634 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
16636 2003-01-29 Joel Sherrill <joel@OARcorp.com>
16639 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
16641 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
16643 2003-01-29 Nick Clifton <nickc@redhat.com>
16645 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
16648 2003-01-29 Andrew Haley <aph@redhat.com>
16650 * tree-inline.c (walk_tree): Add CHAR_TYPE.
16652 2003-01-29 Jan Hubicka <jh@suse.cz>
16654 * i386.md (subdi3_carry_rex64): Fix typo.
16656 2003-01-28 Stan Shebs <shebs@apple.com>
16658 * coretypes.h (cpp_reader): Forward declare struct.
16659 * c-pragma.h (cpp_reader): Remove forward declaration.
16660 * hashtable.h (cpp_reader): Likewise.
16661 * scan.h (cpp_reader): Likewise.
16662 * tree.h (cpp_reader): Likewise.
16663 * config/darwin-protos.h (cpp_reader): Likewise.
16664 * config/arm/arm-protos.h (cpp_reader): Likewise.
16665 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
16666 struct cpp_reader in prototypes.
16668 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
16670 * doc/install.texi: Add documentation for installation into
16671 tooldirs and with DESTDIR.
16673 2003-01-28 Richard Henderson <rth@redhat.com>
16675 * config.gcc (ia64*-*-aix*): Remove.
16676 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
16677 * config/ia64/unwind-aix.c: Remove file.
16679 2003-01-28 Andreas Schwab <schwab@suse.de>
16681 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
16683 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
16684 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
16685 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
16686 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
16687 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
16688 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
16689 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
16691 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
16693 * combine.c (nonzero_bits): Fix check for negative divide operands.
16695 2003-01-28 Richard Henderson <rth@redhat.com>
16697 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
16698 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
16700 2003-01-28 Richard Henderson <rth@redhat.com>
16702 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
16704 * config/cris/cris.c (cris_address_cost): Make static.
16705 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
16706 * config/cris/cris.h (ADDRESS_COST): Remove.
16707 * config/cris/cris-protos.h: Update.
16709 2003-01-23 Mike Stump <mrs@apple.com>
16711 * regclass.c (init_reg_autoinc): New function.
16712 (regclass): Move initialization of forbidden_inc_dec_class from
16714 (init_regs): to here. Avoids reinitialization for each function,
16715 saving compilation time.
16717 2003-01-28 Jason Merrill <jason@redhat.com>
16719 * cpplib.h (struct cpp_options): Add warn_deprecated field.
16720 * cppinit.c (cpp_create_reader): Turn it on by default.
16721 * c-opts.c (c_common_decode_option): Set it.
16722 * cpplib.c (do_pragma_once): Only complain about #pragma once
16723 if warn_deprecated is set.
16725 2003-01-28 Dale Johannesen <dalej@apple.com>
16727 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
16728 * loop.c (scan_loop): Move movables on -Os rich-register targets.
16729 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
16731 2003-01-28 Richard Henderson <rth@redhat.com>
16733 * target.h (targetm.address_cost): New.
16734 * target-def.h (TARGET_ADDRESS_COST): New.
16735 (TARGET_RTX_COSTS): Uncomment. Oops.
16736 * cse.c (address_cost): Use new target hook.
16737 (default_address_cost): New.
16738 * output.h (default_address_cost): Declare.
16739 * hooks.c (hook_int_rtx_0): New.
16740 * hooks.h (hook_int_rtx_0): Declare.
16741 * loop.c (combine_givs_p): Remove if 0 code.
16742 * system.h (ADDRESS_COST): Poison.
16744 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
16745 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
16746 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
16747 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
16748 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
16749 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
16750 config/xtensa/xtensa.c, config/xtensa/xtensa.h
16751 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
16752 (ADDRESS_COST): Remove.
16754 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
16755 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
16756 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
16757 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
16758 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
16759 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
16760 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
16761 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
16762 config/mips/mips.c, config/mips/mips.h,
16763 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
16764 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
16765 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
16766 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
16767 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
16768 config/vax/vax.c, config/vax/vax.h
16769 (foo_address_cost): Make static.
16770 (TARGET_ADDRESS_COST): New.
16771 (ADDRESS_COST): Remove.
16773 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
16774 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
16775 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
16776 config/stormy16/stormy16.h
16777 (ADDRESS_COST): Move code ...
16778 (foo_address_cost): ... here.
16779 (TARGET_ADDRESS_COST): New.
16781 * config/m32r/m32r.c (m32r_address_cost): Remove.
16782 * config/m32r/m32r-protos.h: Update.
16784 * config/mmix/mmix.c (mmix_address_cost): Remove.
16785 * config/mmix/mmix-protos.h: Update.
16787 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
16788 mn10300_address_cost; move unsig allocation ...
16789 (mn10300_address_cost): ... here.
16790 (TARGET_ADDRESS_COST): New.
16791 * config/mn10300/mn10300-protos.h: Update.
16792 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
16794 * doc/tm.texi: Update.
16796 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
16798 * haifa-sched.c (schedule_insn): Return necessary cycle advance
16799 after issuing the insn.
16800 (rank_for_schedule): Make a insn with /S the highest priority
16802 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
16803 (choose_ready): Check SCHED_GROUP_P.
16804 (schedule_block): Advance cycle after issuing insn if it is
16805 necessary. Don't reorder insns if there is an insn with /S.
16806 (set_priorities): Ignore schedule groups.
16808 * sched-deps.c (remove_dependence, group_leader): Remove the
16810 (add_dependence): Ignore schedule groups.
16811 (set_sched_group_p): Don't make copy of dependencies from previous
16812 insn of the schedule group. Add anti-dependency to the previous
16813 insn of the schedule group.
16814 (compute_forward_dependences): Ignore schedule groups.
16816 * sched-ebb.c (init_ready_list): Ignore schedule groups.
16818 * sched-rgn.c (init_ready_list): Ditto.
16819 (can_schedule_ready_p): Ditto.
16821 2003-01-28 Vladimir Makarov <vmakarov@redhat.com>
16823 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
16824 register to another one.
16826 2003-01-28 Richard Henderson <rth@redhat.com>
16828 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
16830 2003-01-28 Roger Sayle <roger@eyesopen.com>
16832 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
16834 2003-01-28 Richard Sandiford <rsandifo@redhat.com>
16836 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
16837 class contains a floating-point register, return the size of the
16838 mode in half words.
16840 2003-01-28 Jan Hubicka <jh@suse.cz>
16842 * i386.c (ix86_carry_flag_operator): New predicate.
16843 (fcmov_operator): Fix whitespace.
16844 (ix86_expand_carry_flag_compare): Deal with floating point.
16845 (ix86_expand_int_movcc): Deal with fp; update insn expansion
16846 (ix86_expand_int_addcc): Likewise.
16847 (ix86_expand_strlensi_unroll_1): likewsie.
16848 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
16849 * i386.md (add?i_carry_rex64): Use new predicate.
16850 (sub?i3_carry_rex64): Likewise.
16851 (x86_mov?icc_0_m1*): Likewise.
16853 2003-01-28 Andreas Schwab <schwab@suse.de>
16855 * cfgloopmanip.c (create_preheader): Initialize src to avoid
16858 * expmed.c (emit_store_flag): Fix cast to avoid sign
16859 comparison warning.
16861 * combine.c (force_to_mode): Add cast to fix warning when
16862 STORE_FLAG_VALUE is negative.
16864 2003-01-27 Richard Henderson <rth@redhat.com>
16866 * Makefile.in (cse.o): Depend on TARGET_H.
16867 * cse.c (rtx_cost): Use targetm.rtx_costs.
16868 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
16869 * doc/tm.texi: Update.
16871 * target.h (targetm.rtx_costs): New.
16872 * target-def.h (TARGET_RTX_COSTS): New.
16873 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
16876 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
16877 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
16878 * config/alpha/alpha.h (PROCESSOR_MAX): New.
16879 (CONST_COSTS, RTX_COSTS): Remove.
16881 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
16882 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
16883 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
16884 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
16885 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
16886 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
16887 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
16888 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
16889 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
16890 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
16891 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
16892 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
16893 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
16894 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
16895 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
16896 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
16897 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
16898 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
16899 config/v850/v850.c, config/v850/v850.h,
16900 config/xtensa/xtensa.c, config/xtensa/xtensa.h
16901 (CONST_COSTS, RTX_COSTS): Move code ...
16902 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
16904 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
16905 (arm_rtx_costs, TARGET_RTX_COSTS): New.
16906 * config/arm/arm-protos.h: Update.
16907 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
16909 * config/avr/avr.h (CONST_COSTS): Move code ...
16910 * config/avr/avr.c (avr_rtx_costs): ... here.
16911 (default_rtx_costs): Make static.
16912 * config/avr/avr-protos.h: Update.
16914 * config/h8300/h8300.c (const_costs): Make static.
16915 (h8300_and_costs, h8300_shift_costs): Likewise.
16916 * config/h8300/h8300-protos.h: Update.
16918 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
16919 (CONST_COSTS): Move code ...
16920 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
16921 default_rtx_costs; update for signature change.
16922 * config/ip2k/ip2k-protos.h: Update.
16924 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
16925 (CONST_COSTS): Move code ...
16926 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
16927 (TARGET_RTX_COSTS): New.
16928 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
16929 * config/m68hc11/m68hc11-protos.h: Update.
16931 * config/m68k/m68k.c (const_int_cost): Make static.
16932 * config/m68k/m68k-protos.h: Update.
16934 * config/mcore/mcore.c (mcore_const_costs): Make static.
16935 (mcore_and_cost, mcore_ior_cost): Likewise.
16936 * config/mcore/mcore-protos.h: Update.
16938 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
16939 (mmix_rtx_cost_recalculated): Remove.
16940 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
16941 * config/mmix/mmix-protos.h: Update.
16943 * config/sh/sh.c (shiftcosts): Make static.
16944 (addsubcosts, andcosts, multcosts): Likewise.
16945 * config/sh/sh-protos.h: Update.
16947 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
16948 (sparc_rtx_costs): Make static; update for change in signature.
16949 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
16950 * config/sparc/sparc-protos.h: Update.
16952 * config/v850/v850.c (const_costs): Make static.
16953 * config/v850/v850-protos.h: Update.
16955 * config/vax/vax.h (RTX_COSTS): Remove.
16956 (CONST_COSTS): Move code ...
16957 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
16959 (vax_rtx_costs, TARGET_RTX_COSTS): New.
16961 2003-01-27 Richard Henderson <rth@redhat.com>
16963 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
16964 * config/vax/vax-protos.h: Update. Really.
16966 2003-01-28 Alexandre Oliva <aoliva@redhat.com>
16968 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
16969 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
16970 zero if no hardware floating point.
16971 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
16972 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
16973 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
16974 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
16975 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
16976 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
16977 even FP registers on N32 and N64.
16978 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
16979 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
16980 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
16981 even-register-like alignment to 128-bit arguments.
16982 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
16983 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
16985 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
16986 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
16987 (TPBIT): Set to tp-bit.c.
16988 (tp-bit.c): Create out of fp-bit.c.
16990 2003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
16992 * c-parse.in: Remove '%expect 32' directive in objc mode.
16994 2003-01-27 Nathan Sidwell <nathan@codesourcery.com>
16996 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
16997 (LIBGCOV): New variable.
16998 (libgcc.mk): Add LIBGCOV.
16999 (LIBGCC_DEPS): Add libgcov.c.
17000 (libgcov.a): New target.
17001 (clean): Remove libgcov.a.
17002 (install-libgcc): Do libgcov too.
17003 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
17005 * libgcc2.c (L_gcov): Move into ...
17006 * libgcov.c: ... here. New file.
17007 * mklibgcc.in: Add libgcov rules.
17008 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
17010 * doc/invoke.texi (profile-arcs, test-coverage): Update and
17013 * profile.c (index_counts_file): Remove duplicate check for open file.
17015 2003-01-27 Jerry Quinn <jlquinn@optonline.net>
17017 * gcc/doc/invoke.texi (Optimization Options): Group together
17018 optional and experimental flags. Move trapv and bounds-check
17019 out of this section. Group floating point flags together.
17020 (Code Gen Options): Move trapv and bounds-check to here.
17022 2003-01-27 Josef Zlomek <zlomekj@suse.cz>
17024 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
17026 2003-01-27 Richard Earnshaw <rearnsha@arm.com>
17028 PR optimization/9090
17029 * function.c (purge_addressof_1): After pushing an addressed register
17030 onto the stack, simplify the result.
17032 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17034 * doc/extend.texi: Fix typo.
17036 2003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17038 * doc/cppopts.texi: Fix typo.
17039 * doc/objc.texi: Likewise.
17040 * doc/passes.texi: Likewise.
17042 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
17044 * real.c (ibm_extended_format): Add 53 to minimum exponent.
17045 (encode_ibm_extended): Adjust.
17047 2003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
17049 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
17050 timevar_id enumerations.
17052 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17054 * combine.c: Fix formatting.
17056 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17058 * doc/gccint.texi: Update the copyright.
17060 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17062 * doc/cpp.texi: Fix typos.
17063 * doc/extend.texi: Likewise.
17064 * doc/gty.texi: Likewise.
17065 * doc/install.texi: Likewise.
17066 * doc/passes.texi: Likewise.
17067 * doc/rtl.texi: Likewise.
17068 * doc/tm.texi: Likewise.
17070 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17072 * config/ia64/fde-glibc.c: Fix comment typos.
17073 * config/ia64/hpux.h: Likewise.
17074 * config/ia64/ia64.c: Likewise.
17075 * config/ia64/ia64.h: Likewise.
17076 * config/ia64/unwind-ia64.c: Likewise.
17078 2003-01-26 Kazu Hirata <kazu@cs.umass.edu>
17080 * config/i386/i386-modes.def: Fix comment typos.
17081 * config/i386/i386.c: Likewise.
17082 * config/i386/i386.md: Likewise.
17084 2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
17086 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
17087 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
17088 ASM_FINISH_DECLARE_OBJECT before defining it.
17089 * toplev.c (rest_of_decl_compilation): Don't define
17090 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
17091 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
17092 parameters for DWARF2 targets because they _are_ used.
17094 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
17096 * fp-bit.h: Define macros for TFmode floating-point constants
17097 in IBM-extended TFmode types.
17098 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
17100 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
17103 * config/fp-bit.h: Define macros for TFmode floating-point
17104 constants in IEEE quad TFmode type. Declare functions according
17106 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
17107 (TFtype, TItype, UTItype): Define if TMODES is defined.
17108 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
17109 (F_T_BITOFF, D_T_BITOFF): Define.
17110 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
17111 guaranteed to be wide enough.
17112 * config/fp-bit.c: Check for L_ macros for tf functions.
17113 (__thenan_tf): New.
17115 (pack_d, unpack_d): Support IEEE 854 quad type.
17116 (_fpmul_parts): Support TFmode. Compute exponent adjustment
17117 from FRAC_NBITS, FRAC_BITS and NGARDS.
17118 (usi_to_float): Cast constants to be shifted to fractype
17119 instead of assuming long long is wide enough.
17120 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
17122 2003-01-26 Andreas Jaeger <aj@suse.de>
17124 * df.c: Remove prototype of unused function df_regno_rtl_debug.
17126 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
17128 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
17129 (DBBIT_FUNCS): Added _df_to_tf.
17130 (TPBIT_FUNCS): New.
17131 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
17132 (LIBGCC_DEPS): Added TPBIT.
17133 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
17135 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
17136 been able to move the result to target.
17138 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
17139 for the appropriate mode.
17141 * calls.c (emit_library_call_value_1): Handle return values
17144 * rtl.c (get_mode_alignment): Moved to...
17145 * stor-layout.c: ... here.
17147 * print-rtl.c (print_rtx): Don't print MEM details in
17150 2003-01-26 Michael Hayes <mph@paradise.net.nz>
17152 * df.h: Update comments, tidy formatting.
17153 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
17154 REVERSE, UNION, INTERSECTION. All uses updated.
17155 (OLD_DF_INTERFACE): Remove.
17156 (struct insn_info): Remove commented out insn field.
17157 * df.c: Update comments, tidy formatting.
17158 (df_def_table_realloc): Remove.
17161 2003-01-26 Alan Modra <amodra@bigpond.net.au>
17163 * calls.c (save_fixed_argument_area): Tidy.
17164 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
17165 (expand_call): Comment typo fixes. Don't init low_to_save. Start
17166 call chain loop at 1 if !try_tail_call. Formatting.
17167 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
17168 Use save_fixed_argument_area and restore_fixed_argument_area.
17170 2003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17172 * df.c (df_uses_record): Handle CC0.
17174 2003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
17176 * reload.c (maybe_memory_address_p): New function.
17177 (find_reloads_address): Use it instead of memory_address_p.
17179 2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
17181 * final.c (shorten_branches): Align the address of code label
17182 when computing initial lengths and addresses.
17184 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
17186 * config/m68hc11/m68hc11.md: Fix a comment typo.
17188 2003-01-25 Andreas Jaeger <aj@suse.de>
17190 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
17193 2003-01-25 Roger Sayle <roger@eyesopen.com>
17195 * gcse.c (bypass_last_basic_block): New global variable.
17196 (bypass_block): Use redirect_edge_and_branch_force to redirect
17197 fall-through edges. Use bypass_last_basic_block to determine
17198 which blocks have valid PRE information.
17199 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
17201 2003-01-25 Jan Hubicka <jh@suse.cz>
17203 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
17205 2003-01-25 Jan Hubicka <jh@suse.cz>
17206 Eric Botcazou <ebotcazou@libertysurf.fr>
17208 * gcse.c (one_cprop_pass): Delete unreachable blocks.
17210 2003-01-25 Richard Henderson <rth@redhat.com>
17212 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
17213 from ia64_aix_select_rtx_section.
17214 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
17215 instead of saving and restoring flag_pic.
17216 (ia64_rwreloc_unique_section): Similarly.
17217 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
17218 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
17219 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
17220 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
17222 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
17224 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
17227 2003-01-25 Richard Henderson <rth@redhat.com>
17229 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
17231 2003-01-25 Kelley Cook <kelleycook@comcast.net>
17233 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
17235 2003-01-25 Segher Boessenkool <segher@koffie.nl>
17237 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
17238 type for bitmaps. Use unsigned long.
17239 (nBITMAP_WORD_BITS): New macro.
17240 (BITMAP_WORD_BITS): New macro.
17241 (rest of file): Use it.
17242 * bitmap.c: Use it.
17244 2003-01-25 Richard Henderson <rth@redhat.com>
17246 2002-02-19 Robert Lipe <robertlipe@usa.net>
17247 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
17249 2003-01-25 Roger Sayle <roger@eyesopen.com>
17251 * builtins.c (purge_builtin_constant_p): Scan insn stream
17252 sequentially rather than by basic block.
17253 * function.c (purge_addressof): Simplify test with INSN_P.
17255 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
17257 * combine.c (simplify_comparison, case AND): Remove a redundant test.
17259 2003-01-25 Roger Sayle <roger@eyesopen.com>
17261 * function.h (struct function): New field calls_constant_p.
17262 (current_function_calls_constant_p): New macro for above.
17263 * function.c (prepare_function_start): Initialize calls_eh_return
17264 and calls_constant_p.
17265 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
17266 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
17267 when the current_function_calls_constant_p.
17268 * integrate.c (expand_inline_function): Set calls_constant_p if
17269 the function being inlined has calls_constant_p set.
17271 2003-01-25 Roger Sayle <roger@eyesopen.com>
17273 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
17274 optimizing, even if flag_gcse is true.
17275 * toplev.c (rest_of_compilation): purge_builtin_constant_p
17276 only needs to be called when "optimize > 0 && flag_gcse".
17278 2003-01-25 Roger Sayle <roger@eyesopen.com>
17280 * stmt.c (emit_case_bit_tests): New routine to implement suitable
17281 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
17282 (case_bit_test_cmp): New comparison function for "qsort" to order
17283 case_bit_tests by decreasing number of destination nodes.
17284 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
17285 (expand_end_case_type): Use emit_case_bit_tests to implement
17286 suitable switch statments.
17287 (CASE_USE_BIT_TESTS): New target macro to disable the above.
17288 * Makefile.in (stmt.o): Add dependency on optab.h.
17289 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
17291 2003-01-23 Andreas Schwab <schwab@suse.de>
17293 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
17294 __do_global_ctors_aux hidden global and don't put it in
17296 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
17297 instead so that it comes first.
17299 2003-01-25 Jan Hubicka <jh@suse.cz>
17301 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
17302 subreg is read/modify.
17304 2003-01-25 Jan Hubicka <jh@suse.cz>
17306 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
17307 do libcall for large blocks.
17308 * i386.md (comi patterns): Set type to ssecomi.
17309 (sse2_unpck?pd): Fix mode of vec_select.
17311 * cse.c: Include except.h
17312 (cse_set_around_loop): Do not create new basic blocks.
17313 * Makefile.in (cse.o): Add dependnecy on except.h
17315 2003-01-25 Jan Hubicka <jh@suse.cz>
17317 * builtins.c (fold_trunc_transparent_mathfn): New function.
17318 (fold_builtin): Use it.
17319 * convert.c (convert_to_real): Re-enable code to convert
17320 math functions; add support for floor familly functions.
17322 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17324 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
17325 dependencies on coretypes.h and $(TM_H).
17327 2003-01-25 Jan Hubicka <jh@suse.cz>
17329 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
17331 2003-01-24 Stuart Hastings <stuart@apple.com>
17333 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
17335 2003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17337 * config/c4x/c4x.md (UNSPEC_BU): New constants.
17338 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
17339 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
17340 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
17341 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
17342 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
17343 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
17344 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
17346 2003-01-24 Jan Hubicka <jh@suse.cz>
17348 * emit-rtl.c (reg_attrs_htab): New static variable.
17349 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
17351 (reg_rtx): Do not maintain regno_decl.
17352 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
17353 set_mem_attrs_from_reg): New global function.
17354 (init_emit): Do not initialize regno_decl.
17355 (init_emit_once): initialize reg_attrs_htab.
17356 * final.c (alter_subreg): Do not replace REG by SUBREG.
17357 (gen_mem_expr_from_op): Improve output.
17358 (output_asm_operands): Likewise.
17359 * function.c (assign_params): Do not set REGNO_DECL.
17360 * function.h (struct function): Kill regno_decl.
17361 (REGNO_DECL): Kill.
17362 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
17363 * print_rtl.c (print_rtx): Output REG information.
17364 * regclass.c (reg_scan_mark_refs): Update attrs.
17365 * reload1.c (alter_reg): Likewise.
17366 * simplify_rtx.c (simplify_subreg): Likewise.
17367 * stmt.c (expand_decl): Likewise.
17368 * rtl.def (REG): Add new field.
17369 * rtl.h (struct reg_attrs): New.
17370 (rtunion_def): At rtreg.
17371 (X0MEMATTR): Add checking.
17372 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
17373 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
17375 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
17377 2003-01-24 Bob Wilson <bob.wilson@acm.org>
17379 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
17380 (xtensa_emit_call, print_operand): Fix printf format strings
17381 to avoid compile warnings.
17382 (xtensa_function_prologue, xtensa_function_epilogue): Change type
17383 of "size" argument to HOST_WIDE_INT to fix compile warnings.
17384 * config/xtensa/xtensa-protos.h
17385 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
17387 2003-01-24 Jan Hubicka <jh@suse.cz>
17389 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
17390 (implicit_built_in_decls): New global array.
17391 (mathfn_built_in): New global function.
17392 (fold_trunc_transparent_mathfn): New static function
17393 (expand_builtin_strstr, expand_bultin_strchr,
17394 expand_builtin_strpbrk, expand_builtin_strcpy,
17395 expand_builtin_strncpy, expand_bultin_strcmp,
17396 expand_bultin_strncat, expand_builtin_fputs): Use
17397 implicint_built_in_decls.
17398 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
17399 * builtins.def: Fix comments.
17400 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
17401 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
17402 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
17403 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
17404 (DEF_C99_C90RES_BULTIN): New.
17405 (*f, *l builtins): Update.
17406 * c-common.c (DEF_BUILTIN): Initialize implicit array.
17407 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
17408 * convert.c (strip_float_extensions): New global function.
17409 * tree.h (DEF_BUILTIN): Accept 10 arguments.
17410 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
17412 * java/builtins.c (define_builtin): Handle implicit.
17413 (DEF_BUILTIN): Update.
17414 * tm.texi (TARGET_C99_FUNCTIONS): Document.
17415 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
17416 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
17419 2003-01-24 Bob Wilson <bob.wilson@acm.org>
17421 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
17422 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
17423 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
17424 * config/xtensa/crti.asm: New file.
17425 * config/xtensa/crtn.asm: New file.
17426 * config/xtensa/t-elf: New file.
17427 * config/xtensa/t-linux: New file.
17428 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
17429 Move various CFLAGS settings to new t-elf file.
17431 2003-01-24 Richard Henderson <rth@redhat.com>
17433 PR optimization/4382
17434 * tree-inline.c (find_builtin_longjmp_call_1): New.
17435 (find_builtin_longjmp_call): New.
17436 (inlinable_function_p): Use it.
17438 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17440 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
17441 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
17442 * config/i386/i386.c (function_arg_pass_by_reference): New.
17443 (ix86_va_arg): Support arguments passed by reference.
17445 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17447 * cfgloopanal.c: New file.
17448 * cfgloopmanip.c: New file.
17449 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
17450 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
17451 cfglayout.o): Add dependency on cfgloop.h.
17452 (cfgloop.o): Add flags.h dependency.
17453 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
17454 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
17455 (struct loop, struct loops, flow_loops_find, flow_loops_update,
17456 flow_loops_free, flow_loops_dump, flow_loop_dump,
17457 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
17458 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
17459 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
17460 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
17461 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
17462 find_common_loop, verify_loop_structure): Declarations moved to ...
17463 * cfgloop.h: New file.
17464 * bb-reorder.c (reorder_basic_blocks): Modified.
17465 * cfglayout.c: Include cfgloop.h.
17466 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
17467 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
17468 (break_superblocks): New static function.
17469 (cfg_layout_finalize): Use it.
17470 (cfg_layout_split_block): New function.
17471 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
17473 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
17475 (cfg_layout_split_block): Declare.
17476 * cfgloop.c: Include cfgloop.h and flags.h.
17477 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
17478 get_loop_body): Avoid signed versus unsigned comparison warnings.
17479 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
17480 loop_latch_edge): Modified.
17481 (verify_loop_structure): Modified to use flags stored in loop structure;
17482 check irreducible loops.
17483 (cancel_loop, cancel_loop_tree): New functions.
17484 (estimate_probability): Use loop analysis code for predictions.
17485 (estimate_loops_at_level): Avoid signed versus unsigned comparison
17487 * doloop.c: Include cfgloop.h.
17488 * loop.c: Include cfgloop.h.
17489 * predict.c: Include cfgloop.h.
17490 * toplev.c: Include cfgloop.h.
17491 * unroll.c: Include cfgloop.h.
17492 * tracer.c (tracer): Modified.
17494 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
17496 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
17498 2003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
17500 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
17501 * configure: Regenerate.
17503 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
17504 (tls_symbolic_reference_mentioned_p): Add prototype.
17505 (s390_tls_get_offset): Add prototype.
17506 (emit_pic_move): Remove prototype, replace by ...
17507 (emit_symbolic_move): .. this new prototype.
17509 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
17510 (tls_model_chars): New global variable.
17511 (s390_encode_section_info): Encode TLS model.
17512 Use targetm.binds_local_p to check for local symbols.
17513 (s390_strip_name_encoding): New function.
17514 (TARGET_STRIP_NAME_ENCODING): Define.
17516 (get_thread_pointer): New function.
17517 (legitimize_tls_address): New function.
17518 (legitimize_address): Call it.
17519 (emit_pic_move): Remove, replace by ...
17520 (emit_symbolic_move): ... this new function.
17522 (larl_operand): Handle TLS operands.
17523 (legitimate_constant_p): Likewise.
17524 (s390_decompose_address): Likewise.
17525 (s390_cannot_force_const_mem): New function.
17526 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
17528 (s390_output_symbolic_const): Handle TLS unspecs.
17529 (print_operand): New code 'J'.
17530 (machine_function): Add struct member 'some_ld_name'.
17531 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
17533 (enum s390_builtin): New type.
17534 (code_for_builtin_64, code_for_builtin_31): New global variables.
17535 (s390_init_builtins, s390_expand_builtin): New functions.
17536 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
17538 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
17539 (ASM_OUTPUT_LABELREF): Define.
17540 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
17542 * config/s390/s390.md: Define TLS UNSPEC constants.
17543 ("movdi", "movsi"): Handle TLS operands.
17544 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
17545 ("*tls_load_64", "*tls_load_31"): New insns.
17546 ("call_value_tls", "call_value_tls_exp"): New expanders.
17547 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
17548 "bas_tls_64", "bas_tls_31"): New insns.
17550 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
17552 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
17553 spe ABI is configured, if requested.
17555 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17557 * doc/passes.texi: Fix typo.
17559 2003-01-24 Andreas Schwab <schwab@suse.de>
17561 * stor-layout.c (excess_unit_span): Only define if used.
17563 2003-01-24 Jerry Quinn <jlquinn@optonline.net>
17565 * gcc/doc/invoke.texi (Optimization Options): List -O levels
17566 for each optimization flag.
17568 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
17570 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
17572 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17574 * doc/bugreport.texi: Use @command instead of @code for commands.
17575 * doc/collect2.texi: Likewise.
17576 * doc/headerdirs.texi: Likewise.
17577 * doc/invoke.texi: Likewise.
17578 * doc/standards.texi: Likewise.
17579 * doc/tm.texi: Likewise.
17580 * doc/trouble.texi: Likewise.
17582 2003-01-24 Nick Clifton <nickc@redhat.com>
17584 * config/arm/arm.c (use_return_insn): Do not use a single return
17585 instruction for interrupt handelrs which have to create a stack
17587 (arm_expand_prologue): Do not pre-bias the return address of
17588 interrupt handlers which create a stack frame.
17590 2003-01-24 Nick Clifton <nickc@redhat.com>
17592 * Add sh2e support:
17594 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
17596 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
17597 med_cbranches. Fix logic in short_cbranches.
17599 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
17601 * config/sh/sh.md (delay for cbranch): Don't annul delay
17603 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
17604 cbranch with unfilled delay slot on SH2e.
17605 (output_branch): Fill with a nop the delay slot of a
17606 branch that required a delay slot but didn't get one.
17608 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
17610 * doc/invoke.texi (SH options): Document -m2e.
17611 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
17612 * config/sh/lib1funcs.asm: Likewise.
17613 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
17614 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
17616 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
17618 (SH3E_BIT): Renamed to...
17619 (SH_E_BIT): ... this. Replace all uses.
17620 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
17621 Replace all uses of TARGET_SH3E with TARGET_SH2E.
17622 (TARGET_SWITCHES): Added 2e.
17623 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
17624 (processor_type): Added PROCESSOR_SH2E.
17625 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
17626 TARGET_SH2E, except in sqrtsf2_i.
17627 (attribute cpu): Added sh2e.
17628 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
17629 (MULTILIB_MATCHES): Use m2e multilib for m3e.
17630 * config.gcc: Add sh2e target support.
17632 2003-01-24 Phil Edwards <pme@gcc.gnu.org>
17634 Rename -W to -Wextra.
17635 * c-decl.c: Update comments.
17636 * c-typeck.c: Likewise.
17637 * flags.h: Likewise.
17638 * function.c: Likewise.
17639 * stmt.c: Likewise.
17640 * toplev.c: Update comments.
17641 (W_options): Add 'extra'.
17642 (display_help): Remove '-W'.
17643 (decode_W_option): Special warn_uninitialized treatment in the case
17645 * doc/invoke.texi: Update with new entries.
17647 2003-01-23 Richard Henderson <rth@redhat.com>
17649 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
17650 in no-else-block case. Add commentary.
17652 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17654 * configure.in: Revert last change.
17656 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17658 * configure.in: Don't include ansidecl.h in tconfig.h.
17659 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
17660 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
17663 * configure: Regenerate.
17665 2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
17668 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
17669 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
17672 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17674 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
17676 2003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
17678 * genattrtab.c (write_attr_get): Mark 'insn' paramter
17679 as ATTRIBUTE_UNUSED.
17681 2003-01-23 Richard Earnshaw <rearnsha@arm.com>
17683 * arm.c (thumb_base_register_rtx_p): New function.
17684 (thumb_index_register_rtx_p): New function.
17685 (thumb_legitimate_address_p): New function.
17686 (thumb_legitimate_offset_p): New function.
17687 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
17688 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
17690 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
17691 (THUMB_LEGITIMATE_OFFSET): Delte.
17692 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
17693 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
17694 (thumb_legitimate_offset_p): Likewise.
17696 2003-01-23 Andreas Schwab <schwab@suse.de>
17698 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
17700 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17702 * fixinc/Makefile.in (FL_LIST): Revert last change.
17704 2003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17707 * invoke.texi (ftest-coverage): Fix broken cross-reference.
17708 Change @code to @command for gcov command.
17710 * gcc.texi: Adjust title of gcov section.
17712 * gcov.texi: Likewise.
17714 2003-01-22 Roger Sayle <roger@eyesopen.com>
17716 PR optimization/8423
17717 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
17718 its argument is constant, or 0 if !flag_gcse.
17719 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
17720 if it's argument is constant.
17721 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
17722 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
17723 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
17724 * builtins.c (purge_builtin_constant_p): New function to force
17725 instantiation of any remaining CONSTANT_P_RTX nodes.
17726 * rtl.h (purge_builtin_constant_p): Prototype here.
17727 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
17728 pass after GCSE and before loop.
17729 (flag_gcse): No longer static.
17730 * flags.h (flag_gcse): Prototype here.
17732 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
17734 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
17735 introduced by last change.
17737 2003-01-22 Andreas Schwab <schwab@suse.de>
17739 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
17741 2003-01-22 Kazu Hirata <kazu@cs.umass.edu>
17743 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
17744 request a scratch reg on H8S when the shift count is 8.
17746 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
17748 * config/s390/s390-protos.h (preferred_la_operand_p):
17749 Remove second parameter.
17750 * config/s390/s390.c (preferred_la_operand_p): Likewise.
17751 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
17752 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
17753 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
17754 Add peepholes to transform ADD to LOAD ADDRESS.
17756 2003-01-22 Richard Earnshaw <rearnsha@arm.com>
17758 * arm.c (arm_address_register_rtx_p): New function.
17759 (arm_legitimate_address_p): New function.
17760 (arm_legitimate_index_p): New function.
17761 (legitimize_pic_address): Use arm_legitimate_index_p.
17762 * arm-protos.h (arm_legtimate_address_p): Add prototype.
17763 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
17764 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
17766 2003-01-22 Hartmut Penner <hpenner@de.ibm.com>
17768 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
17769 * config/s390/2064.md (define_bypass): Correct 'Load' and
17770 'Load-address' bypass values.
17772 2003-01-22 Andreas Schwab <schwab@suse.de>
17774 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
17776 2003-01-21 Zack Weinberg <zack@codesourcery.com>
17778 * genautomata.c (output_internal_insn_latency_func,
17779 output_print_reservation_func): Short circuit when there is no
17780 automaton to generate code for.
17782 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17784 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
17785 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
17787 2003-01-21 Geoffrey Keating <geoffk@apple.com>
17789 * config/rs6000/rs6000.md: Remove warning.
17790 (builtin_setjmp_receiver): Likewise.
17791 * config/darwin.c (update_stubs): Slightly improve terrible hack
17792 with identifiers. Add comment pointing out problems with it.
17793 (update_non_lazy_ptrs): Likewise.
17795 2003-01-21 Richard Henderson <rth@redhat.com>
17797 * dwarf2out.c (lookup_filename): Fix printf format warning.
17798 * system.h (fread_unlocked, fwrite_unlocked): Undef.
17800 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
17801 (fixincl.o-warn, gnu-regex.o-warn): New.
17802 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
17803 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
17804 * fixinc/fixincl.c (process): Fix printf format warning.
17806 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
17808 * dwarf2out (output_file_names): Don't crash if called
17809 with empty file_table.
17811 2003-01-21 Zack Weinberg <zack@codesourcery.com>
17813 * genautomata.c (output_internal_insn_latency_func): Add
17814 missing break statement to generated code.
17816 2003-01-21 Roger Sayle <roger@eyesopen.com>
17818 * stmt.c (same_case_target_p): New function to determine whether
17819 two case labels branch to the same target. Split out from...
17820 (group_case_nodes): ... here. Use same_case_target_p instead.
17821 (strip_default_case_nodes): Remove explicit case nodes
17822 that branch to the default destination.
17823 (expand_end_case_type): Call strip_default_case_nodes after
17824 group_case_nodes, to simplify the case-list before we count it.
17825 Only generate table_label RTX when actually needed. Try to share
17826 thiscase->exit_label and thiscase->data.case_stmt.default_label
17827 when a switch has no explicit default case. Simplify test for
17830 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
17832 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
17834 (*negsf2_h8300hs): Likewise.
17835 (*addsi3_lshiftrt_16_zexthi): Likewise.
17836 (*iorhi3_lshiftrt_8): Likewise.
17838 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
17840 * dwarf2out.c (fde_table_in_use): Mark GTY.
17841 (dwarf2out_cfi_label_num): New variable, marked GTY.
17842 (dwarf2out_cfi_label): Use it instead of static label_num.
17843 * emit-rtl.c (label_num): Mark GTY.
17845 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
17847 * config/h8300/h8300.c (output_plussi): Support H8/300.
17848 (compute_plussi_length): Likewise.
17849 (compute_plussi_cc): Likewise.
17850 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
17851 output assembly instructions.
17853 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17855 * calls.c (fix_unsafe_tree): Prototype.
17857 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
17858 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
17859 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
17860 c-parse.o-warn): Add -Wno-error.
17861 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
17863 * configure.in (--enable-werror): Add new flag.
17864 * doc/install.texi (--enable-werror): Document.
17865 * configure: Regenerate.
17867 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
17869 2003-01-21 Andreas Schwab <schwab@suse.de>
17871 * genautomata.c (output_internal_insn_latency_func): Fix missing
17872 close paren in output.
17874 2003-01-21 Zack Weinberg <zack@codesourcery.com>
17876 * genautomata.c: Space savings in generated code:
17877 (output_dfa_insn_code_func): Split out the table-enlargement
17878 path to an out-of-line static function, dfa_insn_code_enlarge.
17879 (output_internal_insn_latency_func): Use a lookup table for the
17881 (output_print_reservation_func): Use a lookup table for the
17884 2003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
17887 * calls.c (fix_unsafe_tree): Split out from ...
17888 (expand_call): ... here. Use it on the function address too.
17890 2003-01-20 Richard Henderson <rth@redhat.com>
17892 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
17894 2003-01-20 Richard Henderson <rth@redhat.com>
17897 * stmt.c (expand_asm_operands): Validize memory operands.
17899 2003-01-20 Richard Henderson <rth@redhat.com>
17902 * ifcvt.c (noce_process_if_block): Correct arguments to
17903 modified_between_p for no-else-block case.
17905 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
17907 * config/h8300/h8300.c (const_costs): Remove a warning.
17908 (output_plussi): Likewise.
17909 (compute_plussi_length): Likewise.
17910 (compute_plussi_cc): Likewise.
17912 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
17914 * config/h8300/h8300.md (addsi_h8300): Remove the last
17917 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
17919 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
17921 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17923 * system.h (__NO_STRING_INLINES): Define.
17925 2003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17927 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
17928 is not a scalar int mode.
17930 2003-01-20 Roger Sayle <roger@eyesopen.com>
17932 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
17933 insn's notes following a substitution inside a libcall.
17935 2003-01-20 Zack Weinberg <zack@codesourcery.com>
17937 * configure.in: Check for system-provided 'uchar' type.
17938 * configure, config.in: Regenerate.
17939 * cpphash.h: Only typedef 'uchar' if the system doesn't.
17941 2003-01-20 Richard Henderson <rth@redhat.com>
17943 * expr.h (MUST_PASS_IN_STACK): Move implementation...
17944 * calls.c (default_must_pass_in_stack): ... here.
17946 2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
17948 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
17950 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
17952 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
17953 Wrap up definition of `insn_alts'.
17955 * genattrtab.c (main): Wrap up `insn_alts'.
17957 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17959 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
17961 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
17963 * config.in, configure: Regenerate.
17965 2003-01-20 Nick Clifton <nickc@redhat.com>
17967 * config/arm/arm.md (sibcall_epilogue): Add an
17968 UNSPEC_PROLOGUE_USE to prevent the link register from being
17971 2003-01-20 Jan Hubicka <jh@suse.cz>
17973 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
17975 2003-01-20 Andreas Schwab <schwab@suse.de>
17977 * system.h: Don't declare strsignal if the decl test hasn't been
17980 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
17982 * config/h8300/h8300.c (notice_update_cc): Don't assume that
17983 recog_data.operands[0] is always associated with cc0.
17985 2003-01-19 David Edelsohn <edelsohn@gnu.org>
17987 * collect2.c (ldgetname): Expand declaration to prototype.
17988 * read-rtl.c (atoll): Add prototype.
17989 * system.h (strsignal): Also declare if no declaration found.
17991 2003-01-19 Alexandre Oliva <aoliva@redhat.com>
17993 * config.gcc (mips64*-*-linux*): Added.
17994 * config/mips/linux64.h, config/mips/t-linux64: New file.
17995 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
17996 * config/mips/mips.c (override_options): Use it.
17997 * config/mips/mips.h (TARGET_SWITCHES): Added...
17998 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
17999 * Makefile.in (SPECS): New.
18000 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
18001 * gcc.c (process_command): Move self-spec processing past spec
18003 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
18004 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
18007 * doc/invoke.texi (-mabi-fake-default): Document.
18009 2003-01-19 Stephane Carrez <stcarrez@nerim.fr>
18011 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
18012 z_reg, z_reg_qi): Declare static and GTY().
18014 (create_regs_rtx): Don't create da_reg.
18015 ("gt-m68hc11.h"): Include for GTY roots.
18016 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
18018 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
18019 (m68hc11_soft_tmp_reg): Likewise.
18020 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
18022 2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
18024 * basic-block.h: Fix comment formatting.
18025 * calls.c: Likewise.
18026 * combine.c: Likewise.
18027 * convert.c: Likewise.
18028 * gcov.c: Likewise.
18029 * haifa-sched.c: Likewise.
18030 * libgcc2.c: Likewise.
18031 * loop.c: Likewise.
18032 * profile.c: Likewise.
18033 * system.h: Likewise.
18035 2003-01-18 Roger Sayle <roger@eyesopen.com>
18037 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
18039 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18041 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
18043 2003-01-17 Dale Johannesen <dalej@apple.com>
18045 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
18046 (*floatunssidf2_internal): Ditto.
18048 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
18050 * alias.c: Fix comment typos.
18051 * basic-block.h: Likewise.
18052 * c-common.c: Likewise.
18053 * c-common.h: Likewise.
18054 * c-decl.c: Likewise.
18055 * c-opts.c: Likewise.
18056 * c-pragma.c: Likewise.
18057 * c-pretty-print.h: Likewise.
18059 * cfganal.c: Likewise.
18060 * cfgbuild.c: Likewise.
18061 * cfgcleanup.c: Likewise.
18062 * cfglayout.c: Likewise.
18063 * cfgrtl.c: Likewise.
18064 * convert.c: Likewise.
18065 * cpphash.h: Likewise.
18066 * cpplex.c: Likewise.
18067 * cpplib.h: Likewise.
18069 * diagnostic.c: Likewise.
18070 * diagnostic.h: Likewise.
18071 * dwarf2.h: Likewise.
18073 2003-01-17 Stan Shebs <shebs@apple.com>
18075 * config/darwin-protos.h: Forward-declare struct cpp_reader.
18077 2003-01-17 Douglas B Rupp <rupp@gnat.com>
18079 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
18080 mistake in last checkin.
18082 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
18084 * et-forest.c: Fix comment typos.
18085 * et-forest.h: Likewise.
18086 * except.c: Likewise.
18087 * expr.c: Likewise.
18088 * flags.h: Likewise.
18089 * flow.c: Likewise.
18091 * gcse.c: Likewise.
18092 * genattrtab.c: Likewise.
18093 * genautomata.c: Likewise.
18094 * gengtype.c: Likewise.
18095 * genrecog.c: Likewise.
18096 * global.c: Likewise.
18097 * gthr-rtems.h: Likewise.
18099 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18101 * i386.c (x86_function_profiler): Fix format specifier.
18103 2003-01-17 Richard Henderson <rth@redhat.com>
18105 * gengtype.c (walk_type): Allow paramN_is.
18107 2003-01-17 Nick Clifton <nickc@redhat.com>
18109 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
18111 2003-01-16 Richard Henderson <rth@redhat.com>
18113 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
18115 2003-01-16 Richard Henderson <rth@redhat.com>
18117 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
18118 (alpha_next_sequence_number): Likewise.
18119 (alpha_this_literal_sequence_number): Likewise.
18120 (alpha_this_gpdisp_sequence_number): Likewise.
18121 (struct alpha_funcs, alpha_funcs_num): Likewise.
18122 (struct alpha_links): Fix branch merge error.
18123 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
18125 2003-01-17 Alexandre Oliva <aoliva@redhat.com>
18127 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
18130 2003-01-16 Kazu Hirata <kazu@cs.umass.edu>
18132 * ifcvt.c: Fix comment typos.
18134 * libgcc2.c: Likewise.
18135 * local-alloc.c: Likewise.
18136 * loop.c: Likewise.
18137 * predict.c: Likewise.
18138 * ra-build.c: Likewise.
18140 * ra-colorize.c: Likewise.
18142 * ra-rewrite.c: Likewise.
18143 * regmove.c: Likewise.
18144 * reload.h: Likewise.
18145 * rtlanal.c: Likewise.
18146 * toplev.c: Likewise.
18147 * tree.h: Likewise.
18148 * unwind-dw2-fde-glibc.c: Likewise.
18149 * vmsdbgout.c: Likewise.
18151 2003-01-16 Richard Henderson <rth@redhat.com>
18153 * dwarf2out.c (struct file_table): Remove.
18154 (FILE_TABLE_INCREMENT): Remove.
18155 (file_table): Make a varray; mark for GC. Update all users.
18156 (file_table_last_lookup_index): Extract from struct file_table.
18157 (output_file_names): Fix unsigned compare warnings.
18158 (add_name_attribute): Remove inline marker.
18159 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
18160 (lookup_filename): Don't manage size of file_table.
18161 (init_file_table): Allocate file_table with GC.
18162 (dwarf2out_init): Don't record main_input_filename here.
18163 (dwarf2out_finish): Do it here instead.
18165 2003-01-16 Bruce Korb <bkorb@gnu.org>
18167 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
18169 2003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
18171 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
18172 instead of rotldi3_mextr.
18174 2003-01-16 Vladimir Makarov <vmakarov@redhat.com>
18176 * haifa-sched.c (move_insn): Restore moving all schedule group.
18177 (set_priorities): Restore taking SCHED_GROUP_P into account.
18179 * sched-deps.c (add_dependence): Restore processing the last group
18181 (remove_dependence, group_leader): Restore the functions.
18182 (set_sched_group_p): Restore adding dependencies from previous insn
18184 (compute_forward_dependences): Restore usage of group_leader.
18186 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
18189 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
18191 (can_schedule_ready_p): Ditto.
18192 (add_branch_dependences): Restore skipping over the group insns.
18194 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
18196 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
18197 68HC12 pre/post inc/dec side effects.
18199 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
18201 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
18203 2003-01-16 J"orn Rennecke <amylaar@onetel.net.uk>
18205 * sh.md (mshflo_w_x): Fix description of operation.
18207 2003-01-16 Zack Weinberg <zack@codesourcery.com>
18209 * config/rs6000/rs6000.h: Mention Altivec registers in
18210 commentary. Fix typo.
18212 2003-01-16 David Edelsohn <edelsohn@gnu.org>
18214 * config/rs6000/rs6000.md (movti_string): Remove clobber.
18215 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
18216 generate PARALLEL with clobber for TARGET_POWER.
18218 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18220 * ra-colorize.c (colorize_one_web): Initialize variable.
18221 * regmove.c (fixup_match_1): Likewise.
18222 * reload1.c (reload_as_needed): Likewise.
18223 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
18225 2003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18227 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
18229 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18231 * dbxout.c (lastfile, cwd): Fix `unused' warning.
18232 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
18233 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
18234 is_main_source, file_table, decl_die_table_in_use,
18235 abbrev_die_table_in_use, line_info_table_in_use,
18236 separate_line_info_table_in_use, pubname_table_in_use,
18237 arange_table_in_use, ranges_table_in_use,
18238 current_function_has_inlines): Likewise.
18239 * flow.c (life_analysis): Likewise.
18240 * genemit.c (gen_insn): Likewise.
18241 * protoize.c (cplus_suffix): Likewise.
18243 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
18244 * arm.h (ROUND_UP_WORD): Likewise.
18246 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
18248 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
18249 init_emit_once): Likewise.
18250 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
18252 * function.c (assign_stack_temp_for_type): Likewise.
18253 * loop.c (loop_invariant_p): Likewise.
18254 * recog.c (push_operand): Likewise.
18255 * regclass.c (init_reg_sets_1): Likewise.
18256 * reload.c (update_auto_inc_notes): Likewise.
18257 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
18258 * stmt.c (expand_asm_operands): Likewise.
18259 * stor-layout.c (start_record_layout): Likewise.
18261 2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
18263 * config/c4x/c4x.md (epilogue): Correct last patch.
18265 2003-01-15 Richard Henderson <rth@redhat.com>
18267 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
18268 also check that GP is being used.
18269 (alpha_find_lo_sum_using_gp): New.
18270 (alpha_does_function_need_gp): Use get_attr_usegp.
18271 * config/alpha/alpha-protos.h: Update.
18272 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
18275 2003-01-15 Roger Sayle <roger@eyesopen.com>
18277 * gcse.c (one_cprop_pass): Change function arguments to take both
18278 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
18279 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
18280 (bypass_jumps): New function to perform separate jump bypassing pass.
18281 * rtl.h (bypass_jumps): Add function prototype.
18282 * timevar.def (TV_BYPASS): New timing variable.
18283 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
18284 (dump_file): New entry for the bypass RTL dump file.
18285 (rest_of_compilation): Insert new jump bypassing optimization
18287 * doc/passes.texi: Document new pass.
18289 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
18291 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
18292 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
18293 * pa.h (TARGET_SOM_SDEF): Define.
18294 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
18296 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
18298 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
18299 allocate 4-bytes of locals on 68HC11.
18300 (expand_epilogue): Likewise.
18301 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
18303 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
18305 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
18306 and -mshort-double to the assembler to specify the ABI.
18307 (LINK_SPEC): Likewise.
18308 (CPP_SPEC): Pass HCS12 specific define.
18309 (MASK_M68S12): New define.
18310 (TARGET_M68S12): Likewise.
18311 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
18312 (TARGET_VERSION): Update.
18313 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
18314 (LINK_SPEC): Update.
18315 (ASM_SPEC): Update.
18316 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
18317 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
18319 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
18321 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
18324 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
18326 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
18327 flag before setting it.
18329 2003-01-15 Roger Sayle <roger@eyesopen.com>
18331 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
18332 when loop condition is known true, i.e. "while (1) { ... }".
18333 (genrtl_for_stmt): Similarly for "for" statements.
18335 2003-01-15 Roger Sayle <roger@eyesopen.com>
18337 * real.c (real_sqrt): Return a bool result indicating whether
18338 a floating point exception or trap should be raised.
18339 * real.h (real_sqrt): Update function prototype.
18340 * builtins.c (fold_builtin): Only fold non-trapping square
18341 roots unless we're ignoring errno and trapping math.
18343 2003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
18345 * expr.h (emit_conditional_add): Add PARAMS to declaration.
18346 * gengtype-lex.l (malloc, realloc): Move defines after include of
18347 system.h. Remove duplicate include of system.h.
18349 2003-01-15 Roger Sayle <roger@eyesopen.com>
18352 * optabs.c (expand_unop): When manipulating the FP sign bit
18353 using integer operations, account for targets with different
18354 integer and FP word orders.
18355 (expand_abs): Likewise.
18357 2003-01-15 David Edelsohn <edelsohn@gnu.org>
18359 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
18360 file extension in section name.
18362 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
18364 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
18367 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
18369 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
18370 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
18371 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
18372 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
18374 2003-01-15 Jan Hubicka <jh@suse.cz>
18377 * global.c (struct allocno): Add no_stack_reg.
18378 (global_conflicts): Set no_stack_reg.
18379 (find_reg): Use it.
18381 * convert.c (convert_to_real): Fold - and abs only when profitable.
18382 * fold-const.c (fold): Fold truncates in - and abs.
18384 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
18386 Segher Boessenkool <segher@koffie.nl>
18388 * predict.c (real_inv_br_prob_base): New variable.
18389 (propagate_freq): Use multiply by reciprocal instead of
18390 division. Don't divide by 1.0 at all.
18391 (estimate_bb_frequencies): Similar.
18393 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
18395 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
18396 * configure: Rebuilt.
18398 2003-01-15 Hartmut Penner <hpenner@de.ibm.com>
18400 * config/s390/s390.c (s390_safe_attr_type): New function.
18401 (s390_use_dfa_pipeline_interface): New function, return true for z900.
18402 (s390_issue_rate): New function.
18403 (s390_agen_dep_p): New function.
18404 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
18405 (s390_adjust_cost): Return 'cost' if new DFA is used.
18406 (s390_adjust_priority): Delete function.
18407 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
18408 * config/s390/s390.md (atype attribute): Attribute 'atype' default
18409 determined by 'op_type'.
18410 (type attribute): Added more type attributes.
18411 * config/s390/2064.md: New DFA description for z900 pipeline.
18413 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
18415 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
18416 forced to memory. Fixes PR bootstrap/9036.
18418 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
18419 to set $gp before the call.
18421 2003-01-14 Richard Henderson <rth@redhat.com>
18423 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
18424 for force_const_mem.
18426 2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18428 * genattr.c (main): Rearrange output to avoid prototype warning.
18429 * genautomata.c (transform_3): Fix ambiguous-else warning.
18430 * local-alloc.c (requires_inout): Add parentheses around
18431 assignment used as truth-value.
18432 * timevar.c: Move system includes above local includes. Include
18434 * Makefile.in (timevar.o): Depend on toplev.h.
18436 2003-01-14 Denis Chertykov <denisc@overta.ru>
18438 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
18439 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
18441 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
18443 (TARGET_ATTRIBUTE_TABLE): New macro.
18444 (valid_machine_type_attribute): Remove.
18445 (valid_machine_decl_attribute): Remove.
18446 (ip2k_handle_progmem_attribute): New function.
18447 (ip2k_handle_fndecl_attribute): New function.
18449 2003-01-10 Andrew Haley <aph@redhat.com>
18451 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
18452 registers to be in correct order. Add rip.
18454 2003-01-14 Kazu Hirata <kazu@cs.umass.edu>
18456 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
18457 (*iorsi3_and_lshiftrt_9_sb): Likewise.
18459 2003-01-14 Jan Hubicka <jh@suse.cz>
18461 * convert.c (strip_float_extensions): Look for narrowest type handling
18464 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
18466 * convert.c (strip_float_extensions): Make global.
18467 * tree.h (strip_float_extensions): Declare.
18469 2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
18471 * timevar.def: define TV_NAME_LOOKUP.
18472 * timevar.c (timevar_pop): Be verbose when aborting.
18474 2003-01-13 Andreas Schwab <schwab@suse.de>
18476 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
18477 $(parsedir), just move the temporary file at the end.
18478 ($(parsedir)/gengtype-yacc.c): Likewise.
18480 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
18482 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
18483 ${ac_tool_prefix} to ADAC or CC. Protect them from word
18485 * configure: Rebuilt.
18487 2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18489 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
18490 internal_mcount): Don't use PARAMS.
18491 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
18493 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
18495 2003-01-13 Andreas Schwab <schwab@suse.de>
18497 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
18500 2003-01-13 Kazu Hirata <kazu@cs.umass.edu>
18502 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
18503 (*iorsi3_and_lshiftrt_n_sb): Likewise.
18505 2003-01-12 Mark Mitchell <mark@codesourcery.com>
18508 * c-lex.c (c_lex): Set the token value to error_mark_node for
18509 invalid numeric constants.
18511 2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18513 * c-pch.c (asm_file_startpos): Change to `long'.
18514 (pch_init): Use ftell, not ftello.
18515 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
18516 Use `long' instead of `off_t'.
18517 (c_common_read_pch): Likewise.
18518 * ggc-common.c (gt_pch_save): Use long/ftell instead of
18521 2003-01-12 Alan Modra <amodra@bigpond.net.au>
18523 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
18525 2003-01-11 Richard Earnshaw (rearnsha@arm.com)
18527 * arm-protos.h (struct cpp_reader): Add declaration.
18529 2003-01-11 Jan Hubicka <jh@suse.cz>
18532 * i386.c (output_fp_compare): Fix typo.
18534 2003-01-10 David Edelsohn <edelsohn@gnu.org>
18536 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
18538 2003-01-10 Geoffrey Keating <geoffk@apple.com>
18540 * Makefile.in (parsedir): New variable.
18541 (docobjdir): New variable.
18542 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
18543 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
18544 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
18545 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
18546 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
18548 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
18549 objc.maintainer-clean): Use parsedir.
18551 * varasm.c (struct constant_descriptor_rtx): Remove unused
18554 * toplev.c (documented_lang_options): Document -Winvalid-pch.
18556 2003-01-10 Richard Henderson <rth@redhat.com>
18558 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
18559 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
18561 2003-01-10 Richard Henderson <rth@redhat.com>
18563 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
18564 not INTEGRAL_MODE_P when widening extensions.
18566 2003-01-10 Richard Henderson <rth@redhat.com>
18568 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
18570 2003-01-10 Geoffrey Keating <geoffk@apple.com>
18572 * ggc-page.c (ggc_collect): Avoid overflow computing
18575 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
18576 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
18578 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
18580 2003-01-10 Jan Hubicka <jh@suse.cz>
18582 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
18583 with weird operands.
18585 2003-01-10 Dale Johannesen <dalej@apple.com>
18587 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
18588 parameters. Call check_sibcall_argument_overlap if indicated.
18589 (check_sibcall_argument_overlap): Add mark_stored_args_map
18590 parameter. Don't mark parameter area as clobbered if not set.
18591 (expand_call): Adjust calls to above.
18593 2003-01-10 Kelley Cook <kelleycook@comcast.net>
18595 * configure.in (linker read-only and read-write section mixing):
18596 Squelch some assembler warnings.
18597 * configure: Likewise.
18599 2003-01-10 Hartmut Penner <hpenner@de.ibm.com>
18601 * doc/invoke.texi: Document -mtune, delete -mcpu
18602 option for S/390 and zSeries.
18603 * config/s390/s390.c (s390_tune_string) New variable.
18604 (s390_cpu_string) Delete variable.
18605 (override_options): Use s390_tune_string instead of
18607 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
18609 2003-01-10 Kazu Hirata <kazu@cs.umass.edu>
18611 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
18613 2003-01-10 Josef Zlomek <zlomekj@suse.cz>
18615 * jump.c (next_nonnote_insn_in_loop): New function.
18616 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
18618 (duplicate_loop_exit_test). Likewise.
18620 2003-01-09 Geoffrey Keating <geoffk@apple.com>
18622 Merge from pch-branch:
18624 2003-01-06 Geoffrey Keating <geoffk@apple.com>
18626 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
18629 2002-12-24 Geoffrey Keating <geoffk@apple.com>
18631 * cpplib.c (count_registered_pragmas): New function.
18632 (save_registered_pragmas): New function.
18633 (_cpp_save_pragma_names): New function.
18634 (restore_registered_pragmas): New function.
18635 (_cpp_restore_pragma_names): New function.
18636 * cpphash.h (_cpp_save_pragma_names): Prototype.
18637 (_cpp_restore_pragma_names): Likewise.
18638 * cpppch.c (struct save_macro_item): Split from save_macro_data.
18639 (struct save_macro_data): New field 'saved_pragmas'.
18640 (save_macros): Update for changes to struct save_macro_data.
18641 (cpp_prepare_state): Call _cpp_save_pragma_names, update
18642 for changes to struct save_macro_data.
18643 (cpp_read_state): Call _cpp_restore_pragma_names, update
18644 for changes to struct save_macro_data.
18646 * cpppch.c (cpp_read_state): Restore the hashtable references
18649 * tree.h (built_in_decls): Mark for PCH.
18651 * dbxout.c (lastfile): Don't mark for PCH.
18653 * ggc.h: Document PCH calls into memory managers.
18655 2002-12-18 Geoffrey Keating <geoffk@apple.com>
18657 * doc/invoke.texi (Precompiled Headers): Document the
18658 directory form of PCH.
18659 * cppfiles.c (validate_pch): New function.
18660 (open_file_pch): Search suitably-named directories for PCH files.
18662 2002-12-14 Geoffrey Keating <geoffk@apple.com>
18664 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
18666 (Type Information): Mention that the information is also
18667 used to implement PCH.
18668 * doc/passes.texi (Passes): Improve documentation of
18669 language-specific files.
18671 2002-12-11 Geoffrey Keating <geoffk@apple.com>
18673 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
18674 (struct walk_type_data): Add reorder_fn field.
18675 (walk_type): Process 'reorder' option.
18676 (write_types_process_field): Reorder parameters to gt_pch_note_object,
18677 call reorder_note_routine.
18678 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
18679 (ggc_wtd): Update for change to struct write_types_data.
18680 (pch_wtd): Likewise.
18681 * ggc.h (gt_pch_note_object): Reorder parameters.
18682 (gt_handle_reorder): New definition.
18683 (gt_pch_note_reorder): New prototype.
18684 * ggc-common.c (struct ptr_data): Add reorder_fn.
18685 (gt_pch_note_object): Reorder parameters.
18686 (gt_pch_note_reorder): New.
18687 (gt_pch_save): Call reorder_fn.
18688 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
18690 * dbxout.c (cwd): Don't mark for PCH.
18692 2002-12-09 Geoffrey Keating <geoffk@apple.com>
18694 * gengtype.c (finish_root_table): Fix some warnings.
18695 (write_root): Handle TYPE_STRING.
18696 * ggc.h (gt_ggc_m_S): Add prototype.
18697 * stringpool.c (gt_ggc_m_S): New function.
18699 2002-11-30 Geoffrey Keating <geoffk@apple.com>
18701 * dwarf2out.c (dw2_string_counter): New.
18702 (AT_string_form): Use it.
18703 (same_dw_val_p): Update for removal of hashtable.h hash tables.
18705 2002-11-22 Geoffrey Keating <geoffk@apple.com>
18707 * dbxout.c: Include gt-dbxout.h.
18708 (lastfile): Mark for PCH/GGC.
18710 (struct typeinfo): Likewise.
18711 (typevec): Likewise.
18712 (typevec_len): Likewise.
18713 (next_type_number): Likewise.
18714 (struct dbx_file): Likewise.
18715 (current_file): Likewise.
18716 (next_file_number): Likewise.
18717 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
18718 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
18719 (dbxout_end_source_file): Don't free struct dbx_file.
18720 (dbxout_type): Use GGC to allocate typevec.
18721 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
18722 (GTFILES): Add dbxout.c.
18723 (gt-dbxout.h): New rule.
18725 * Makefile.in (c-pch.o): Add debug.h as dependency.
18726 * c-pch.c: Include debug.h.
18727 (pch_init): Call start_source_file to keep nesting right.
18728 (c_common_read_pch): Add orig_name parameter. Call
18729 start_source_file debug hook. Call end_source_file debug hook.
18730 * c-common.h (c_common_read_pch): Update prototype.
18731 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
18733 * cppfiles.c (struct include_file): Add new field `header_name'.
18734 (find_or_create_entry): Default it to `name'.
18735 (open_file_pch): Set it to the original header file searched for.
18736 (stack_include_file): Don't stack an empty buffer, just handle
18737 PCH files immediately. Pass header_name field to read_pch callback.
18739 2002-11-19 Geoffrey Keating <geoffk@apple.com>
18741 * function.c (funcdef_no): Mark to be saved in a PCH.
18743 2002-11-15 Geoffrey Keating <geoffk@apple.com>
18745 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
18747 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
18749 2002-11-14 Geoffrey Keating <geoffk@apple.com>
18751 * optabs.h (code_to_optab): Add GTY marker.
18753 2002-11-13 Geoffrey Keating <geoffk@apple.com>
18755 * Makefile.in (GTFILES): Add cpplib.h.
18756 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
18757 * c-decl.c (build_compound_literal): Don't use var_labelno.
18758 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
18759 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
18760 * varasm.c (const_labelno): Use gengtype to mark.
18761 (var_labelno): Likewise.
18762 (in_section): Likewise.
18763 (in_named_name): Likewise.
18764 (struct in_named_entry): Likewise.
18765 (in_named_htab): Likewise.
18766 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
18767 (init_varasm_once): Use GGC to allocate in_named_htab.
18768 * config/darwin.c (current_pic_label_num): Mark for PCH.
18770 2002-11-11 Geoffrey Keating <geoffk@apple.com>
18772 * ggc-simple.c (init_ggc_pch): New stub procedure.
18773 (ggc_pch_count_object): Likewise.
18774 (ggc_pch_total_size): Likewise.
18775 (ggc_pch_this_base): Likewise.
18776 (ggc_pch_alloc_object): Likewise.
18777 (ggc_pch_prepare_write): Likewise.
18778 (ggc_pch_write_object): Likewise
18779 (ggc_pch_finish): Likewise.
18780 (ggc_pch_read): Likewise.
18782 2002-11-08 Geoffrey Keating <geoffk@apple.com>
18784 * c-pch.c (c_common_write_pch): Write the macro definitions after
18786 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
18787 definitions after the GCed data.
18788 * cpplib.c (save_macros): New.
18790 (cpp_write_pch_deps): Split out of cpp_write_pch.
18791 (cpp_write_pch_state): Split out of cpp_write_pch.
18792 (cpp_write_pch): Delete.
18793 (struct save_macro_data): Delete.
18794 (cpp_prepare_state): New.
18795 (cpp_read_state): Erase and restore initial macro definitions.
18796 * cpplib.h (struct save_macro_data): Forward-declare.
18797 (cpp_write_pch_deps): Prototype.
18798 (cpp_write_pch_state): Prototype.
18799 (cpp_write_pch): Delete prototype.
18800 (cpp_prepare_state): Prototype.
18801 (cpp_read_state): Add fourth argument.
18803 2002-11-04 Geoffrey Keating <geoffk@apple.com>
18805 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
18806 (write_array): Remove warning.
18808 * gengtype.c (contains_scalar_p): New.
18809 (finish_root_table): Add the table to all languages, even if it's
18811 (write_roots): Output gt_pch_scalar_rtab.
18812 * ggc-common.c (gt_pch_save): Write out scalars.
18813 (gt_pch_restore): Read scalars back.
18815 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
18816 (struct page_entry): Delete pch_page field.
18817 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
18818 (clear_marks): Likewise.
18819 (sweep_pages): Likewise.
18820 (poison_pages): Likewise.
18821 (ggc_print_statistics): Likewise.
18822 (ggc_pch_read): Don't free objects read from a PCH.
18823 Properly set up in_use_p and page_tails.
18825 2002-10-25 Geoffrey Keating <geoffk@apple.com>
18827 * gengtype.c (struct write_types_data): New.
18828 (struct walk_type_data): Make `cookie' const; add extra
18829 prev_val item; add `orig_s' field.
18830 (walk_type): Update prev_val[3].
18831 (write_types_process_field): New.
18832 (write_func_for_structure): Take write_types_data structure.
18833 (write_types): New.
18836 (write_types_local_process_field): New.
18837 (gc_mark_process_field): Delete.
18838 (write_local_func_for_structure): New.
18839 (gc_mark_func_name): Delete.
18840 (write_gc_types): Delete.
18841 (write_local): New.
18842 (finish_root_table): Don't include 'ggc_' in PFX.
18843 (write_root): Rename from write_root. Fill pchw field of structures.
18844 (write_array): New.
18845 (write_roots): Rename from write_gc_roots. Split out to write_array.
18846 Update to changes to other routines. Write gt_pch_cache_rtab table.
18847 (main): Write PCH walking routines.
18848 * ggc-common.c: Include toplev.h, sys/mman.h.
18849 (ggc_mark_roots): For cache hashtables, also mark the hash table
18850 and the array of entries.
18851 (saving_htab): New.
18852 (struct ptr_data): New.
18853 (POINTER_HASH): New.
18854 (gt_pch_note_object): New.
18855 (saving_htab_hash): New.
18856 (saving_htab_eq): New.
18857 (struct traversal_state): New.
18860 (compare_ptr_data): New.
18861 (relocate_ptrs): New.
18862 (write_pch_globals): New.
18863 (struct mmap_info): New.
18864 (gt_pch_save): New.
18865 (gt_pch_restore): New.
18866 * ggc-page.c (ROUND_UP_VALUE): New.
18868 (struct page_entry): Add field `pch_page'.
18869 (init_ggc): Use ROUND_UP.
18870 (struct ggc_pch_data): Declare.
18871 (init_ggc_pch): New.
18872 (ggc_pch_count_object): New.
18873 (ggc_pch_total_size): New.
18874 (ggc_pch_this_base): New.
18875 (ggc_pch_alloc_object): New.
18876 (ggc_pch_prepare_write): New.
18877 (ggc_pch_write_object): New.
18878 (ggc_pch_finish): New.
18879 (ggc_pch_read): New.
18880 * ggc.h (gt_pointer_operator): New.
18881 (gt_note_pointers): New.
18882 (gt_pch_note_object): New prototype.
18883 (gt_pointer_walker): New.
18884 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
18885 (LAST_GGC_ROOT_TAB): Update.
18886 (gt_pch_cache_rtab): Declare.
18887 (gt_pch_scalar_rtab): Declare.
18888 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
18889 (LAST_GGC_CACHE_TAB): Update.
18890 (gt_pch_save_stringpool): Declare.
18891 (gt_pch_restore_stringpool): Declare.
18892 (gt_pch_p_S): Declare.
18893 (gt_pch_n_S): Declare.
18894 (struct ggc_pch_data): Forward-declare.
18895 (init_ggc_pch): Declare.
18896 (ggc_pch_count_object): Declare.
18897 (ggc_pch_total_size): Declare.
18898 (ggc_pch_this_base): Declare.
18899 (ggc_pch_alloc_object): Declare.
18900 (ggc_pch_prepare_write): Declare.
18901 (ggc_pch_write_object): Declare.
18902 (ggc_pch_finish): Declare.
18903 (ggc_pch_read): Declare.
18904 (gt_pch_save): Declare.
18905 (gt_pch_restore): Declare.
18906 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
18907 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
18908 const_double_htab, mem_attrs_htab using GGC.
18909 * c-pch.c: Include ggc.h.
18910 (pch_init): Allow reading PCH file back.
18911 (c_common_write_pch): Call gt_pch_save.
18912 (c_common_read_pch): Call gt_pch_restore.
18913 * c-parse.in (init_reswords): Delete now-untrue comment.
18914 Allocate ridpointers using GGC.
18915 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
18916 calling expand_deferred_fns.
18917 * c-common.h (ridpointers): Mark for GTY machinery.
18918 * Makefile.in (stringpool.o): Update dependencies.
18919 (c-pch.o): Update dependencies.
18920 (ggc-common.o): Update dependencies.
18921 * stringpool.c: Include gt-stringpool.h.
18924 (struct string_pool_data): New.
18926 (gt_pch_save_stringpool): New.
18927 (gt_pch_restore_stringpool): New.
18928 * tree.c (init_ttree): Make type_hash_table allocated using GC.
18930 2002-10-04 Geoffrey Keating <geoffk@apple.com>
18932 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
18933 (output_mangled_typename): Don't pass size_t to printf.
18935 * tree.h (union tree_type_symtab): Add tag to `address' field.
18936 (union tree_decl_u2): Add tag to 'i' field.
18937 * varasm.c (union rtx_const_un): Add tags to all fields.
18938 * gengtype.c (struct walk_type_data): New.
18939 (output_escaped_param): Take struct walk_type_data parameter.
18940 (write_gc_structure_fields): Delete.
18942 (write_gc_marker_routine_for_structure): Delete.
18943 (write_func_for_structure): New.
18944 (gc_mark_process_field): New.
18945 (gc_mark_func_name): New.
18946 (gc_counter): Delete.
18947 (write_gc_types): Use write_func_for_structure.
18948 (write_gc_roots): Use walk_type.
18950 2002-10-02 Geoffrey Keating <geoffk@apple.com>
18952 * ggc-common.c (ggc_mark_roots): Delete 'x'.
18953 (ggc_splay_dont_free): Fix warning about unused 'x'.
18954 (ggc_print_common_statistics): Remove warnings.
18956 2002-10-01 Mike Stump <mrs@apple.com>
18958 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
18959 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
18961 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
18962 Catherine Moore <clm@redhat.com>
18964 * Makefile (c-pch.o): Update dependencies.
18965 (LIBCPP_OBJS): Add cpppch.o.
18967 * c-common.c (c_common_init): Don't call pch_init here.
18968 * c-common.h (c_common_read_pch): Update prototype.
18969 * c-lex.c (c_common_parse_file): Call pch_init here.
18970 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
18971 (c_common_decode_option): Handle them.
18972 * c-pch.c: Include c-pragma.h.
18973 (save_asm_offset): Delete.
18974 (pch_init): Move contents of save_asm_offset into here, call
18976 (c_common_write_pch): Call cpp_write_pch.
18977 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
18979 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
18980 * cppfiles.c (stack_include_file): Update for change to
18981 parameters of cb.read_pch.
18982 * cpphash.h (struct cpp_reader): Add `savedstate' field.
18983 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
18984 `restore_pch_deps' fields.
18985 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
18986 (cpp_save_state): Prototype.
18987 (cpp_write_pch): Prototype.
18988 (cpp_valid_state): Prototype.
18989 (cpp_read_state): Prototype.
18990 * cpppch.c: New file.
18991 * flags.h (version_flag): Remove prototype.
18992 * mkdeps.c (deps_save): New.
18993 (deps_restore): New.
18994 * mkdeps.h (deps_save): Prototype.
18995 (deps_restore): Prototype.
18996 * toplev.c (late_init_hook): Delete.
18997 (version_flag): Make static again.
18998 (compile_file): Don't call late_init_hook.
18999 * toplev.h (late_init_hook): Delete.
19000 * doc/cppopts.texi: Document -fpch-deps.
19001 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
19003 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
19005 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
19007 (c_common_valid_pch): Rename from c_valid_pch, change callers.
19008 (c_common_read_pch): Rename from c_read_pch, change callers.
19010 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
19011 a space between it and its argument.
19013 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
19015 * c-pch.c: New file.
19016 * toplev.h (late_init_hook): Declare.
19017 * toplev.c (late_init_hook): Define.
19018 (version_flag): Make globally visible.
19019 (compile_file): Call late_init_hook.
19020 (init_asm_output): Make output file seekable.
19021 * gcc.c (default_compilers): Update c-header rule.
19022 * flags.h (version_flag): Declare.
19023 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
19025 * cppfiles.c (struct include_file): Add 'pch' field.
19026 (INCLUDE_PCH_P): New.
19027 (open_file_pch): New.
19028 (stack_include_file): Handle PCH files specially.
19029 (find_include_file): Call open_file_pch instead of open_file.
19030 (_cpp_read_file): Explain why open_file is used instead of
19032 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
19033 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
19034 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
19035 in cpplib callbacks.
19036 * c-common.c (pch_file): Correct comment.
19037 (allow_pch): Define.
19038 (c_common_init): Call pch_init.
19039 * c-common.h (allow_pch): Declare.
19040 (pch_init): Declare.
19041 (c_valid_pch): Declare.
19042 (c_read_pch): Declare.
19043 (c_write_pch): Declare.
19044 * Makefile.in (c-pch.o): New.
19045 (C_AND_OBJC_OBJS): Add c-pch.o.
19046 * doc/invoke.texi (Precompiled Headers): Add index entries,
19047 complete truncated paragraph.
19049 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
19051 * c-common.c: (pch_file): Define.
19052 * c-common.h (pch_file): Declare.
19053 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
19054 (missing_arg): Require --output-pch= to have an argument.
19055 (c_common_decode_option): Handle --output-pch=.
19056 * gcc.c: Document new %V.
19057 (default_compilers): Handle compiling C header files.
19058 (do_spec_1): Implement %V.
19059 (main): Handle "gcc foo.h" without trying to run linker.
19060 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
19061 (Overall Options): Document what the driver does with header files,
19062 document new -x option possibilities.
19063 (Invoking G++): More documentation for PCH.
19064 (Precompiled Headers): New.
19066 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
19068 * ggc.h: Don't include varray.h. Rearrange functions to be more
19070 (ggc_add_root): Delete.
19071 (ggc_mark_rtx): Delete.
19072 (ggc_mark_tree): Delete.
19073 (struct ggc_statistics): Remove contents.
19074 * ggc-common.c: Remove unneeded includes.
19075 (struct ggc_root): Delete.
19077 (ggc_add_root): Delete.
19078 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
19079 (ggc_print_common_statistics): Remove most of the contents.
19080 * Makefile.in (GGC_H): No longer uses varray.h.
19081 (ggc-common.o): Update dependencies.
19082 (c-parse.o): Add varray.h to dependencies.
19083 (c-common.o): Add varray.h.
19084 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
19085 (mark_ident_hash): Rename to ggc_mark_stringpool.
19086 (init_stringpool): Don't use ggc_add_root.
19087 * c-parse.in: Include varray.h.
19088 * c-common.c: Include varray.h.
19089 * objc/Make-lang.in (objc-act.o): Add varray.h.
19090 * objc/objc-act.c: Include varray.h.
19092 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
19094 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
19095 (dw_cfi_oprnd1_desc): Likewise.
19097 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
19099 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
19101 (alpha_links): Use gengtype to mark; move out of ifdef.
19102 (mark_alpha_links_node): Delete.
19103 (mark_alpha_links): Delete.
19104 (alpha_need_linkage): Use GGC to allocate splay tree, struct
19105 alpha_links, strings. Don't use ggc_add_root.
19106 * ggc-common.c (ggc_splay_alloc): New.
19107 (ggc_splay_dont_free): New.
19108 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
19109 (ggc_mark_tree): Likewise.
19110 (splay_tree_new_ggc): New.
19111 (ggc_splay_alloc): Declare.
19112 (ggc_splay_dont_free): Declare.
19113 * dwarf2asm.c: Include gt-dwarf2asm.h.
19114 (mark_indirect_pool_entry): Delete.
19115 (mark_indirect_pool): Delete.
19116 (indirect_pool): Use gengtype to mark.
19117 (dw2_force_const_mem): Don't use ggc_add_root.
19118 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
19119 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
19120 (gt-dwarf2asm.h): Depend on s-gtype.
19122 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
19124 * tree.h (union tree_type_symtab): Mark `die' field.
19125 * Makefile.in (dwarf2out.o): Update dependencies.
19126 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
19128 (dw_cfi_oprnd1_desc): New function.
19129 (dw_cfi_oprnd2_desc): New function.
19130 (indirect_string_alloc): Delete.
19131 (debug_str_do_hash): New function.
19132 (debug_str_eq): New function.
19133 (mark_limbo_die_list): Delete.
19134 (dwarf2out_init): Don't call ggc_add_root.
19136 2003-01-09 Vladimir Makarov <vmakarov@redhat.com>
19138 The following changes are merged from itanium-sched-branch:
19140 2003-01-08 David Edelsohn <edelsohn@gnu.org>
19142 * doc/md.texi: Clarify assignment of units to automata description.
19144 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
19146 * genautomata.c (unit_decl): Remove members
19147 `the_same_automaton_unit' and
19148 `the_same_automaton_message_reported_p'.
19149 (process_unit_to_form_the_same_automaton_unit_lists,
19150 form_the_same_automaton_unit_lists_from_regexp,
19151 form_the_same_automaton_unit_lists, the_same_automaton_lists):
19153 (annotation_message_reported_p): New global variable.
19154 (check_unit_distribution_in_reserv,
19155 check_regexp_units_distribution): New functions.
19156 (check_unit_distributions_to_automata): Rewrite it.
19158 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
19160 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
19161 Use continue instead of break if cycle is too big.
19163 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
19165 * genautomata.c (check_unit_distributions_to_automata): Output at
19166 most one message for a unit.
19167 (process_unit_to_form_the_same_automaton_unit_lists): Check
19168 automaton of units instead of units themself.
19170 * doc/md.texi: Describe the constraint about assigning unit to
19173 2002-12-20 Jan Hubicka <jH@suse.cz>
19174 Vladimir Makarov <vmakarov@redhat.com>
19176 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
19178 (gen_cpu_unit): Initialize the new members.
19179 (process_regexp_cycles): Calculate minimal finish cycle too. Set
19180 up `min_occ_cycle_num'.
19181 (evaluate_max_reserv_cycles): Change the function call.
19182 (CLEAR_BIT): New macro.
19183 (states_union, state_shift): Use the mask.
19184 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
19185 (form_reservs_matter): New function.
19186 (make_automaton): Call the function and use the mask.
19187 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
19190 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
19192 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
19194 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
19196 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
19199 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
19201 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
19204 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
19205 2002-10-31 Dale Johannesen <dalej@apple.com>
19207 * haifa-sched.c (find_set_reg_weight): New function.
19208 (find_insn_reg_weight): Use the new function.
19209 (schedule_block): Do sorting ready queue always
19212 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
19214 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
19216 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
19218 * haifa-sched.c (choice_entry): New structure.
19219 (choice_stack, cycle_issued_insns): New variables.
19220 (max_issue): Rewrite it.
19221 (choose_ready): Set up ready_try for unknown insns too.
19222 (schedule_block): Allocate and free choice_stack. Set up
19223 and modify cycle_issued_insns.
19225 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
19226 with and without filling the bundle.
19227 (bundling): Combine calls of issue_nops_and_insn.
19229 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
19231 * config/ia64/itanium1.md: New file.
19233 * config/ia64/itanium2.md: New file.
19235 * config/ia64/ia64.md: Move DFA descriptions into the new files.
19236 Remove the old pipeline description.
19238 * config/ia64/ia64.c (ia64_override_options): Add aliases of
19239 itanium processor names.
19241 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
19243 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
19244 (ia64_reorg): Set up queried unit codes for Itanium2 too.
19246 * config/ia64/ia64.md: Add descriptions for Itanium2.
19248 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
19250 * config/ia64/ia64.h (processor_type): New enumeration.
19251 (ia64_tune, ia64_tune_string): New external declarations.
19252 (TARGET_OPTIONS): Add option `tune='.
19254 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
19256 (ia64_override_options): Set up `ia64_tune'.
19257 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
19258 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
19259 (bundling): Add nops for MM-insns only for Itanium.
19260 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
19263 * config/ia64/ia64.md (cpu): New attribute.
19264 (DFA description): Enable it only for Itanium.
19266 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
19267 Richard Henderson <rth@redhat.com>
19269 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
19270 MASK_EARLY_STOP_BITS.
19271 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
19272 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
19275 * config/ia64/ia64.c (ia64_dfa_new_cycle,
19276 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
19277 instead of TARGET_TUNE_STOP_BITS.
19279 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
19280 `-mearly-stop-bits'.
19282 * config/ia64/ia64.c (automata_option "v"): Comment it.
19284 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
19286 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
19288 (TARGET_SWITCHES): Add entries for the new option.
19290 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
19291 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
19292 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
19294 (ia64_sched_reorder2): Set up `clocks'.
19295 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
19296 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
19297 queue when TARGET_TUNE_STOP_BITS.
19298 (bundling): Insert additional nops for MM-insns.
19299 (final_emit_insn_group_barriers): Add insertion of stop bits
19300 according `stops_p'.
19301 (ia64_reorg): Initiate the new varibales.
19303 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
19305 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
19307 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
19308 insns at the end of block insn scheduling.
19310 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
19312 * sched-deps.c (remove_dependence, group_leader): Remove it.
19313 (add_dependence): Add dependence to group leader to.
19314 (set_sched_group_p): Add dependence to the first insn of the
19315 schedule group too.
19316 (sched_analyze_insn): Make dependence to jump as anti-dependence.
19317 Change true dependence by anti-dependence when
19318 `reg_pending_barrier'.
19320 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
19321 add_branch_dependences): Ignore schedule groups.
19323 * sched-ebb.c (init_ready_list): Ditto.
19325 * (move_insn, set_priorities): Ditto.
19327 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
19328 flag is clear after reload.
19329 (adjust_cost): Change cost only for output dependencies.
19331 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
19333 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
19335 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
19337 * target.h (gcc_target): Add member
19338 `dependencies_evaluation_hook'.
19340 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
19342 (TARGET_SCHED): Add initiatialization of the new member.
19344 * sched-ebb.c: Include `target.h'.
19345 (schedule_ebb): Call `dependencies_evaluation_hook'.
19347 * sched-rgn.c (schedule_region): Call
19348 `dependencies_evaluation_hook'.
19350 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
19352 (ia64_dependencies_evaluation_hook): New function.
19354 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
19355 Describe the new hook.
19357 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
19359 * target.h (gcc_target): Add members
19360 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
19362 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
19363 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
19365 (TARGET_SCHED): Add initiatialization of the new members.
19367 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
19368 insn scheduling too.
19369 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
19370 initialize `ready_try'.
19371 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
19372 `dfa_new_cycle' says not to do it.
19374 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
19377 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
19379 * config/ia64/ia64.c: Include `hashtab.h'.
19380 (ia64_first_cycle_multipass_dfa_lookahead_guard,
19381 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
19382 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
19383 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
19384 bundle_state_eq_p, insert_bundle_state,
19385 initiate_bundle_state_table, finish_bundle_state_table,
19386 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
19387 get_template, get_next_important_insn, bundling): New functions.
19388 (ia64_internal_sched_reorder): Remove it.
19389 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
19390 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
19391 (ia64_safe_itanium_requires_unit0): Remove it.
19392 (group_barrier_needed_p): Place group barrier right before a real
19394 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
19396 (bundle_name): New variable.
19397 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
19398 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
19399 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
19400 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
19401 temp_dfa_state, prev_cycle_state): New global variables.
19402 (insn_matches_slot, maybe_rotate, finish_last_head,
19403 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
19404 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
19405 find_best_packet, itanium_reorder, dump_current_packet,
19406 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
19407 (sched_data, sched_ready, sched_types): Remove them.
19408 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
19409 `init_insn_group_barriers'.
19410 (ia64_sched_reorder, ia64_sched_reorder2): Call
19411 ia64_dfa_sched_reorder.
19412 (ia64_variable_issue): Rewrite it.
19413 (bundle_state): New structure.
19414 (index_to_bundle_states, bundle_states_num,
19415 allocated_bundle_states_chain, free_bundle_state_chain): New
19417 (ia64_sched_finish): Add stop bits and call `bundling' after the
19418 2nd insn scheduling.
19419 (ia64_use_dfa_pipeline_interface): Return zero always.
19420 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
19422 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
19423 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
19424 (ia64_reorg): Add bundling insns.
19427 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
19428 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
19430 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
19432 * config/ia64/ia64.md: Add Itanium1 DFA description.
19433 (itanium_class): Add `nop' and `pre_cycle'. Add
19434 define_function_unit for `nop'.
19435 (nop): Change attribute `itanium_class'.
19436 (pre_cycle): New define_insn.
19438 * config/ia64/ia64-protos.h (bundling_p): New external variable.
19439 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
19440 ia64_produce_address_p): New function prototypes.
19442 * config/ia64/ia64.c (bundling_p): New global variable.
19443 (ia64_use_dfa_pipeline_interface,
19444 ia64_first_cycle_multipass_dfa_lookahead,
19445 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
19447 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
19448 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
19449 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
19450 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
19451 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
19452 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
19453 (dfa_pre_cycle_insn): New variable.
19455 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
19457 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
19460 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
19461 New function prototypes.
19463 * genattrtab.c (main): Process the new constructions.
19465 * genautomata.c (gen_presence_absence_set,
19466 process_presence_absence_names, process_presence_absence_patterns,
19467 add_presence_absence, check_absence_pattern_sets): Add parameter
19469 (unit_decl): Add new members `final_presence_list' and
19470 `final_absence_list'.
19471 (unit_pattern_rel_decl): Add new member `final_p'.
19472 (gen_final_presence_set, gen_final_absence_set): New functions.
19473 (process_decls): Use member `final_p'.
19474 (temp_reserv): New global variable.
19475 (reserv_sets_are_intersected): Add processing `final_presence_set'
19476 and `final_absence_set'.
19477 (initiate_states): Allocate `temp_reserv'.
19478 (unit_final_presence_set_table, unit_final_absence_set_table): New
19480 (initiate_presence_absence_pattern_sets): Initiate them.
19481 (NDFA_to_DFA): Fix typo.
19482 (output_description): Output `final_presence_set' and
19483 `final_absence_set'.
19485 * doc/md.texi (final_presence_set, final_absence_set): Describe
19488 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
19490 * genautomata.c (transform_3): Process a missing case (nothing on
19493 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
19495 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
19496 comments about queried units and the minimization.
19498 * doc/md.texi: Ditto.
19500 * genautomata.c (create_composed_state): Return nonzero if the new
19501 state has been created.
19502 (first_cycle_unit_presence): New function.
19503 (state_is_differed): Add new parameter. Use the new function.
19504 Take queried units into account.
19505 (partition_equiv_class): Pass additional parameter to
19506 `state_is_differed'.
19507 (merge_states): Process composed states too.
19508 (build_automaton, create_automata, output_min_issue_delay_table,
19509 output_tables, output_statistics): Output more information.
19510 (output_reserved_units_table): Use function
19511 `first_cycle_unit_presence'.
19512 (output_tables): Output table of queried units even if the
19513 minimization is switched on.
19514 (write_automata): Output code for querying units even if the
19515 minimization is switched on.
19517 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
19519 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
19520 syntax of the constructions.
19522 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
19523 extended syntax of the constructions.
19525 * genautomata.c (unit_rel_decl): Rename it to
19526 `unit_pattern_rel_decl'.
19527 (pattern_set_el, pattern_reserv): New structures.
19528 (pattern_set_el_t, pattern_reserv_t): New types.
19529 (gen_presence_absence_set): New function.
19530 (process_presence_absence): Remove it.
19531 (process_presence_absence_names,
19532 process_presence_absence_patterns): New functions.
19533 (get_presence_absence_set): Remove it.
19534 (initiate_presence_absence_sets): Rename it on
19535 `initiate_presence_absence_pattern_sets'. Use new function
19536 `form_reserv_sets_list'.
19537 (form_reserv_sets_list, check_presence_pattern_sets,
19538 check_absence_pattern_sets, output_pattern_set_el_list): New
19540 (unit_decl): Change types of members `presence_list' and
19542 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
19543 (decl): Change types of members `excl', `presence', and `absence'.
19544 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
19545 at the end of the vector.
19546 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
19547 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
19548 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
19549 (gen_presence_set, gen_absence_set): Use new function
19550 `gen_presence_absence_set'.
19551 (add_presence_absence): Process `pattern_list' instead of
19553 (process_decls): USe new functions
19554 `process_presence_absence_names' and
19555 `process_presence_absence_patterns'.
19556 (reserv_sets_are_intersected): Use new function
19557 `check_presence_pattern_sets'.
19558 (presence_set, absence_set): Remove them.
19559 (unit_presence_set_table, unit_absence_set_table): New global
19561 (output_description): Use new function
19562 `output_pattern_set_el_list'.
19563 (generate): Use `initiate_presence_absence_pattern_sets'.
19565 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
19567 * genattr.c (main): Add output of prototype of new interface
19568 function `dfa_clean_insn_cache'.
19570 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
19571 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
19572 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
19573 the generated code.
19574 (write_automata): Call the new function.
19576 2003-01-09 Jan Hubicka <jh@suse.cz>
19578 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
19581 2003-01-09 Paolo Carlini <pcarlini@unitus.it>
19583 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
19585 2003-01-09 J"orn Rennecke <joern.rennecke@superh.com>
19587 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
19588 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
19589 (CONSTRAINT_LEN): Provide default definition.
19590 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
19591 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
19592 (EXTRA_CONSTRAINT_STR): Likewise.
19593 (REG_CLASS_FROM_CONSTRAINT): Define.
19594 * genoutput.c (check_constraint_len, constraint_len): New functions.
19595 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
19596 constraint / modifier.
19597 (gen_insn): Call check_constraint_len.
19598 * local-alloc.c (block_alloc): Update to use new macros / pass
19599 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
19600 * ra-build.c (handle_asm_insn): Likewise.
19601 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
19602 (constrain_operands, peep2_find_free_register): Likewise.
19603 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
19604 * regmove.c (find_matches): Likewise.
19605 * reload.c (push_secondary_reload, find_reloads): Likewise.
19606 (alternative_allows_memconst): Likewise.
19607 * reload1.c (maybe_fix_stack_asms): Likewise.
19608 (reload_cse_simplify_operands): Likewise.
19609 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
19610 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
19611 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
19612 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
19613 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
19614 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
19616 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
19618 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
19620 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
19622 (*extzv_1_r_h8300hs): Likewise.
19623 (*extzv_1_r_inv_h8300): Likewise.
19624 (*extzv_1_r_inv_h8300hs): Likewise.
19626 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
19628 * config/h8300/h8300.h (PREDICATE_CODES): New.
19630 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
19632 * config/h8300/h8300.md (*addsi3_upper): New.
19633 (*iorsi3_shift): Likewise.
19634 (two splitters): Likewise.
19635 (*addsi3_shift): Likewise.
19636 (two splitters): Likewise.
19638 2003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
19640 * Makefile.in (optabs.o): Add dependency on basic-block.h.
19641 * basic-block.h (control_flow_insn_p): Fuction was exported.
19642 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
19643 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
19644 notes only when the region is contained in a single basic block.
19646 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
19649 * tree.h (expand_asm): New prototype.
19650 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
19652 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
19653 down to expand_asm.
19654 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
19655 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
19656 (volatile_refs_p) [ASM_INPUT]: Likewise.
19657 (side_effects_p) [ASM_INPUT]: Likewise.
19659 2003-01-09 Jan Hubicka <jh@suse.cz>
19661 * i386.md (*mul*): FIx constraints; remove confused comment; fix
19662 athlon_decode attributes
19663 (imul/k8 optimization peep2s): New.
19665 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
19666 * i386.md (type attribute): Add ssecomi.
19667 (unit, memory, prefix attributes): Handle ssecomi.
19668 (cvt?2? patterns): Fix athlon_decode attribute
19669 (comi patterns): Set attribute to ssecomi.
19672 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
19674 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
19676 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
19677 that match register_operands.
19678 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
19679 register_operand the default case.
19681 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
19684 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
19685 an empty element, do not advance the pointer to unfilled
19686 fields if there are pending initializers.
19688 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
19690 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
19691 (install-gcc-tooldir, install-cpp, installdirs,
19692 install-common, install-driver, install-info, install-man,
19693 install-headers, install-include-dir, install-headers-tar,
19694 install-headers-cpio, install-headers-cp, install-mkheaders,
19695 install-collect2, uninstall): Prepend $(DESTDIR) to
19696 destination paths in all (un)installation commands.
19697 (install-driver): Rewrite $(LN) commands to support DESTDIR
19698 with "ln" as well as with "ln -s".
19699 (installdirs): Simply use mkinstalldirs.
19700 (install-libgcc, install-multilib): Also pass DESTDIR.
19701 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
19702 installation destination variable ldir.
19703 * config/alpha/t-osf4, config/arm/t-netbsd,
19704 config/ia64/t-hpux, config/mips/t-iris5-6,
19705 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
19706 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
19707 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
19708 in the definition of SHLIB_INSTALL.
19709 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
19710 $(libsubdir) in the installation commands.
19712 2003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
19714 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
19715 non-optimizing compile.
19716 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
19719 2003-01-08 Douglas B Rupp <rupp@gnat.com>
19721 * config/i386/i386.c (ix86_attribute_table): Add new attributes
19722 ms_struct and gcc_struct.
19723 (ix86_handle_struct_attribute): New function.
19724 (ix86_ms_bitfield_layout_p): Update to take new attributes
19726 * doc/extend.texi: Document new attributes.
19727 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
19729 2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
19731 PR optimization/8750
19732 * config/i386/i386.c (ix86_expand_prologue): Don't allow
19733 scheduling pass to move insns across __alloca call.
19735 2003-01-08 Dale Johannesen <dalej@apple.com>
19737 * config/rs6000/rs6000.md: Replace *store_multiple_string
19740 2003-01-08 Jeff Sturm <jsturm@one-point.com>
19743 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
19744 Set SYMBOL_REF_FLAG on local data sym_ref.
19746 2003-01-08 Dale Johannesen <dalej@apple.com>
19748 * function.c (assign_parms): Don't set pretend_args_size if
19749 REG_PARM_STACK_SPACE.
19750 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
19753 2003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
19757 2003-01-09 Jan Hubicka <jh@suse.cz>
19759 * i386.c (ix86_expand_int_addcc): Fix thinko.
19761 2003-01-08 David Edelsohn <edelsohn@gnu.org>
19763 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
19764 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
19765 as hook_bool_tree_hwi_hwi_tree_true.
19766 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
19767 (rs6000_emit_epilogue): Same.
19768 (rs6000_output_mi_thunk): Re-implement as RTL.
19769 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
19770 xcoffout_declare_function if any debugging enabled.
19772 2003-01-08 Chris Demetriou <cgd@broadcom.com>
19774 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
19775 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
19776 * config/mips/mips.h (enum processor_type): Rename
19777 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
19778 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
19780 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
19781 (ISA_MIPS32R2): New define.
19782 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
19783 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
19784 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
19785 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
19786 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
19787 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
19788 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
19789 compiling MIPS16 code.
19790 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
19792 (ISA_HAS_SEB_SEH): New define.
19793 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
19794 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
19795 processor_type value renaming. Add support for MIPS32R2.
19796 Clean up comments, and move "sb1" entry with other MIPS64 CPU
19798 (override_options): Reimplement -mipsN option handling so that
19799 it will work correctly for -mips32r2. Avoid branch-likely
19800 instructions on MIPS32R2.
19801 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
19802 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
19803 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
19804 (extendhisi2_hw, extendqisi2_hw): New.
19805 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
19806 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
19807 MIPS32R2, and MIPS64.
19808 (LINK_SPEC): Pass -mips32r2 to linker.
19809 * config/mips/t-isa3264: Built -mips32r2 multilibs.
19810 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
19811 for mips32r2 in the -march description. Alphabetically sort
19812 CPU names in the -march description. Add long-missed -mips32
19813 and -mips64 to MIPS option summary.
19815 * config.gcc: Update copyright years to include 2003.
19816 * config/mips/mips.c: Likewise.
19817 * config/mips/mips.h: Likewise.
19818 * config/mips/mips.md: Likewise.
19819 * config/mips/netbsd.h: Likewise.
19820 * doc/invoke.texi: Likewise.
19822 2003-01-08 Andreas Schwab <schwab@suse.de>
19824 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
19826 * configure: Regenerated.
19828 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
19830 * config/h8300/h8300.c (output_logical_op): Replace byte/word
19831 extraction of det with b0, b1, w0, w2, etc.
19832 (compute_logical_op_length): Likewise.
19833 (compute_logical_op_cc): Likewise.
19835 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
19837 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
19838 HIGH on all variants.
19840 2003-01-08 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
19842 * Makefile.in (PARTITION_H): New.
19843 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
19844 * basic-block.h: Include hard-reg-set.h.
19846 2003-01-08 Richard Earnshaw <rearnsha@arm.com>
19848 * arm.h (ENABLE_XF_PATTERNS): Delete.
19849 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
19850 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
19851 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
19852 (cmpxf_trap): Delete.
19853 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
19855 2003-01-08 Jan Hubicka <jh@suse.cz>
19857 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
19858 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
19859 (add??cc): New expanders.
19860 * i386.c (expand_int_addcc): New function.
19861 * i386-protos.h (expand_int_addcc): Declare.
19863 * alias.c (memory_modified_1): New static function.
19864 (memory_modified): New static varaible.
19865 (memory_modified_in_insn_p): New global function.
19866 * rtl.h (memory_modified_in_insn_p): Declare.
19867 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
19870 * expr.h (emit_conditional_add): Declare.
19872 2003-01-07 Janis Johnson <janis187@us.ibm.com>
19875 * doc/invoke.texi (-malign-double): Explain that the option breaks
19876 binary compatibility.
19878 2003-01-08 Andreas Schwab <schwab@suse.de>
19880 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
19881 should come from the generic *-*-linux* entry.
19883 2003-01-07 Jan Hubicka <jh@suse.cz>
19885 * cselib.c (cselib_current_insn_in_libcall): New static variable.
19886 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
19887 we are inside libcall.
19888 * cselib.h (elt_loc_list): Add in_libcall.
19889 * gcse.c (do_local_cprop): Do not copy propagate using insns
19892 2003-01-07 David Edelsohn <edelsohn@gnu.org>
19894 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
19895 not normally affect to issue rate.
19897 2003-01-07 Jan Hubicka <jh@suse.cz>
19899 * genopinit.c (optabs): Add addc_optab.
19900 * ifcvt.c (noce_try_store_flag): Rename to ...
19901 (noce_try_addcc): ... this one; handle generic conditional increment.
19902 (noce_process_if_block): Update noce_try_addcc call.
19903 * optabs.c (emit_conditional_add): New.
19904 (init_obtabs): Initialize addc_optab.
19905 * optabs.h (optab_index): Add OTI_addcc.
19906 (addcc_optab): New macro.
19907 * md.texi: Document addMcc
19910 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
19911 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
19912 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
19914 * reload1.c (delete_output_reload): Avoid repeated attempts
19917 2003-01-07 Andreas Schwab <schwab@suse.de>
19919 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
19920 Move --enable-initfini-array check ...
19921 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
19922 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
19923 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
19924 * configure: Rebuild.
19926 2003-01-07 Richard Henderson <rth@redhat.com>
19928 * alias.c (find_base_value): Only use new_reg_base_value shortcut
19929 if the register is set once.
19931 2003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
19933 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
19934 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
19935 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
19937 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
19938 Sunil Davasam <sunil.k.davasam@intel.com>
19941 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
19942 DW_CFA_same_value, read next and ignore.
19944 2003-01-07 Richard Henderson <rth@redhat.com>
19946 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
19948 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
19950 * cfg.c: Include alloc-pool.h
19951 (edge_pool): New pool.
19952 (bb_pool): New pool.
19953 (first_deleted_edge): Remove.
19954 (first_deleted_block): Remove.
19955 (init_flow): Alloc/free the pools.
19956 (free_edge): Use pools.
19957 (alloc_block): Ditto.
19958 (expunge_block): Ditto.
19959 (cached_make_edge): Ditto.
19961 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
19963 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
19965 * et-forest.c: Include alloc-pool.h.
19966 (struct et_forest): Add node_pool and occur_pool.
19967 (et_forest_create): Create the new pools.
19968 (et_forest_delete): Delete them.
19969 (et_forest_add_node): Allocate and free using pools.
19970 (et_forest_add_edge): Ditto.
19971 (et_forest_remove_node): Ditto.
19972 (et_forest_remove_edge): Ditto.
19974 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
19976 2003-01-07 Kazu Hirata <kazu@cs.umass.edu>
19978 * config/h8300/h8300.c (output_logical_op): Simplify and
19979 optimize the handling of SImode.
19980 * config/h8300/h8300.c (compute_logical_op_length): Update
19982 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
19984 2003-01-07 Richard Sandiford <rsandifo@redhat.com>
19986 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
19987 big-endian correction to indirect arguments too.
19989 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
19991 Segher Boessenkool <segher@koffie.nl>
19993 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
19994 (alt_reg_names): Ditto, fix formatting.
19995 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
19997 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
19999 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
20000 (output_logical_op): Constify intval and det.
20001 (compute_logical_length): Likewise.
20002 (compute_logical_cc): Likewise.
20003 (output_a_shift): Constify mask.
20004 (h8300_encode_label): Constify len.
20006 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
20008 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
20009 (h8300_expand_epilogue): Likewise.
20011 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
20013 Segher Boessenkool <segher@koffie.nl>
20015 * config/rs6000/altivec.md: Remove spaces from assembler
20016 instruction argument lists.
20018 2003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20020 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
20021 c4x_assembler_function_p.
20022 (c4x_null_epilogue_p): Complement return value, all uses updated.
20023 (c4x_insert_attributes): Add naked.
20024 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
20025 * doc/extend.texi: Update C4x function attributes.
20027 2003-01-06 Richard Henderson <rth@redhat.com>
20029 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
20030 properly when changing "local-ness".
20031 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
20033 2003-01-06 Dale Johannesen <dalej@apple.com>
20035 * config/darwin-protos.h: Add prototypes for new section functions.
20037 2003-01-06 Chris Demetriou <cgd@broadcom.com>
20039 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
20042 2003-01-06 Zack Weinberg <zack@codesourcery.com>
20044 * hwint.h: If the current compiler has no 64-bit type at all,
20045 make HOST_WIDEST_INT 32 bits.
20047 2003-01-06 Eric Christopher <echristo@redhat.com>
20049 * config/mips/mips.md (movdf_internal2): Fix constraints.
20051 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
20053 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
20055 2003-01-06 Richard Sandiford <rsandifo@redhat.com>
20057 * config/mips/mips.md (leadi): Use dla rather than la.
20059 2003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
20061 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
20062 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
20064 2003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
20066 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
20069 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
20071 * config/h8300/h8300.md (*extzv_8_23): New.
20073 2003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
20075 * pa64-hpux.h (JCR_SECTION_NAME): Define.
20076 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
20077 USE_EH_FRAME_REGISTRY when defining.
20079 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
20081 * config/h8300/h8300.c (output_a_shift): Do not output a
20083 * config/h8300/h8300.md (two splitters): New.
20085 2003-01-05 Richard Sandiford <rsandifo@redhat.com>
20087 * config/mips/mips.md: Disable the movstrsi define_split.
20089 2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20091 * alloc-pool.c: Don't include "libiberty.h".
20092 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
20093 * convert.c (convert_to_real): Hide unused variable.
20095 2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20097 * Makefile.in (gtyp-gen.h): Const-ify.
20098 * gcov-dump.c (tag_table): Likewise.
20100 2003-01-04 Bruce Korb <bkorb@gnu.org>
20102 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
20103 of *both* the file name and the fix name.
20105 2003-01-04 John David Anglin <dave.anglin@nrc.ca>
20107 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
20109 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
20110 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
20111 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
20112 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
20113 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
20114 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
20116 (EH_FRAME_IN_DATA_SECTION): Delete define.
20117 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
20118 (STARTFILE_SPEC): Use crtbegin.o.
20119 (ENDFILE_SPEC): Use crtend.o.
20120 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
20121 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
20122 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
20123 DTOR_LIST_BEGIN): Define.
20124 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
20125 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
20126 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
20128 2002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
20130 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
20131 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
20132 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
20133 Cleanup handling of replacement text.
20134 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
20136 2003-01-04 Bruce Korb <bkorb@gnu.org>
20138 * fixinc/tests/base/math.h: removed obsolete results
20139 * fixinc/tests/base/stdlib.h: ditto
20140 * fixinc/tests/base/sys/param.h: ditto
20141 * fixinc/tests/base/sys/stat.h: ditto
20142 * fixinc/tests/base/time.h: ditto
20143 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
20144 * fixinc/tests/base/sys/byteorder.h: ditto
20145 * fixinc/inclhack.def: Remove superfluous backslashes
20147 2003-01-04 Kazu Hirata <kazu@cs.umass.edu>
20149 * config/h8300/h8300-protos.h: Add prototypes for
20150 the new functions defined below.
20151 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
20153 (dosize): Emit RTL instead of assembly code.
20156 (h8300_output_function_prologue): Remove.
20157 (h8300_expand_prologue): New.
20158 (h8300_expand_epilogue): New.
20159 (h8300_output_function_epilogue): Do only the reset of
20161 * config/h8300/h8300.md (push_h8300): New.
20162 (push_h8300hs): Likewise.
20163 (pop_h8300): Likewise.
20164 (pop_h8300hs): Likewise.
20165 (*stm_h8300s_2): Change the name to stm_h8300s_2.
20166 (*stm_h8300s_3): Change the name to stm_h8300s_3.
20167 (*stm_h8300s_4): Change the name to stm_h8300s_4.
20168 (*ldm_h8300s_2): New.
20169 (*ldm_h8300s_3): Likewise.
20170 (*ldm_h8300s_4): Likewise.
20171 (return): Likewise.
20172 (*return_1): Likewise.
20173 (prologue): Likewise.
20174 (epilogue): Likewise.
20175 (monitor_prologue): Likewise.
20177 2003-01-03 Dale Johannesen <dalej@apple.com>
20179 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
20180 machopic_picsymbol_stub1.
20181 (EXTRA_SECTION_FUNCTIONS): Ditto.
20182 * rs6000/rs6000.c: Update copyright.
20183 (machopic_output_stub): Use them. Remove an insn from stub code.
20185 2003-01-02 Jason Merrill <jason@redhat.com>
20187 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
20189 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
20190 static/external decls.
20192 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
20194 * c-decl.c (c_make_fname_decl): Push the decls there, too.
20196 2003-01-03 Kazu Hirata <kazu@cs.umass.edu>
20198 * config/h8300/h8300-protos.h: Add a prototype for
20199 h8300_current_function_interrupt_function_p.
20200 * config/h8300/h8300.c (interrupt_handler): Remove.
20201 (os_task): Likewise.
20202 (monitor): Likewise.
20203 (pragma_interrupt): New.
20204 (WORD_REG_USED): Use
20205 h8300_current_function_interrupt_function_p.
20206 (dosize): Likewise.
20207 (h8300_output_function_prologue): Likewise.
20208 Do not set interrupt_handler, os_task, monitor.
20209 (h8300_output_function_prologue): Use
20210 h8300_current_function_interrupt_function_p.
20211 Do not set interrupt_handler, os_task, monitor.
20212 (h8300_current_function_interrupt_function_p): New.
20213 (h8300_pr_interrupt): Set pragma_interrupt.
20214 (h8300_insert_attributes): Reset pragma_interrupt.
20216 2003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20218 * doc/install.texi (Configuration): Fix markup for reference to
20221 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
20223 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
20224 (*iorhi3_two_qi): Likewise.
20225 (*iorsi3_zexthi): Likewise.
20226 (*xorhi3_zextqi): Likewise.
20227 (*xorsi3_zexthi): Likewise.
20228 (*xorsi3_zextqi): Likewise.
20230 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
20232 * config/h8300/h8300.c (stack_pointer_operand): New.
20233 (const_int_gt_2_operand): Likewise.
20234 (const_int_ge_8_operand): Likewise.
20235 * config/h8300/h8300.md (a splitter): Likewise.
20236 (a peephole2): Likewise.
20237 * config/h8300/h8300-protos.h: Add prototypes for the new
20240 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
20242 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
20243 objc/objc-act.h: Fix copyright years.
20245 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
20247 * doc/passes.texi: Fix documentation for -fssa-ccp
20249 2003-01-02 Neil Booth <neil@daikokuya.co.uk>
20251 * gccbug.in: Update for new categories.
20253 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20255 * config/h8300/h8300.md: Reorder some patterns.
20257 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20259 * config/h8300/h8300.c (output_logical_op): Fix a warning.
20261 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
20263 * config/darwin-protos.h, config/c4x/c4x-protos.h,
20264 config/cris/cris-protos.h, config/i370/i370-protos.h,
20265 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
20266 config/v850/v850-protos.h: Use struct, and don't conditionally
20267 compile on GCC_C_PRAGMA_H.
20269 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20271 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
20272 * config/h8300/h8300-protos.h: Likewise.
20273 * config/sh/sh-protos.h: Likewise.
20275 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20277 * config/arm/arm-protos.h: Use struct cpp_reader instead of
20279 * config/h8300/h8300-protos.h: Likewise.
20280 * config/sh/sh-protos.h: Likewise.
20282 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
20284 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
20285 arm_pr_long_calls_off): Use struct.
20286 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
20288 Don't include cpplib.h.
20289 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
20290 sh_pr_nosave_low_regs): Similarly.
20292 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
20294 * config/h8300/h8300.c: Include cpplib.h.
20296 2003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
20298 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
20299 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
20300 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
20301 "GCC" in the copyright header.
20303 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
20305 * c-pragma.c (c_register_pragma): New.
20306 (init_pragma): Use it.
20307 * c-pragma.h (cpp_register_pragma): Don't declare.
20308 (c_register_pragma): New.
20309 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
20310 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
20311 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
20312 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
20313 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
20314 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
20315 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
20316 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
20317 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
20318 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
20319 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
20320 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
20322 See ChangeLog.8 for earlier changes.