cse.c (insn_live_p): Pass insn pattern, not full insn to may_trap_p.
[official-gcc.git] / gcc / ChangeLog
blobfa25ad7351e236fd30bbcdebf76bbf2f43d2a42a
1 2002-10-09  Ulrich Weigand  <uweigand@de.ibm.com>
3         * cse.c (insn_live_p): Pass insn pattern, not full insn
4         to may_trap_p.
6 2002-10-09  Neil Booth  <neil@daikokuya.co.uk>
8         * cppmacro.c (paste_tokens): Only allow / to paste with =.
10 2002-10-09  David Edelsohn  <edelsohn@gnu.org>
12         * config/rs6000/rs6000.md (movdf splitter): Use gen_int_mode on
13         64-bit hosts.
14         (movtf_internal): Reference correct displacement for second value
15         in memory.
16         (movtf splitter): Correct generation of constants in 64-bit mode.
18 2002-10-09  Alan Modra  <amodra@bigpond.net.au>
20         * libgcc2.c (__floatdisf): Properly cure double rounding.
22 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
24         * c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
25         * doc/cpp.texi (Common Predefined Macros): Document.
27 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
29         PR doc/7484
30         * doc/invoke.texi (Option Summary): List
31         -Wmissing-declarations as a C only option.
33 2002-10-08  Jakub Jelinek  <jakub@redhat.com>
35         * config/sparc/t-linux64 (MULTILIB_OPTIONS): Remove
36         mno-app-regs|mcmodel=medany.
37         (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES): Remove alt.
38         (MULTILIB_EXCEPTIONS, MULTILIB_EXCLUSIONS, MULTILIB_MATCHES): Remove.
39         (CRTSTUFF_T_CFLAGS): Define.
41 2002-10-08  Roger Sayle  <roger@eyesopen.com>
43         PR target/8087
44         * simplify-rtx.c (avoid_constant_pool_reference):  Allow constant
45         pool references that are constructed using LO_SUM.
47 2002-10-08  Nathan Sidwell  <nathan@codesourcery.com>
49         * c-opts.c (c_common_decode_option): Add warn_strict_aliasing to
50         -Wall.
51         * c-typeck.c (build_c_cast): Use warn_strict_aliasing, tweak
52         message.
53         * flags.h (warn_strict_aliasing): Declare.
54         * toplev.c (warn_strict_aliasing): Define.
55         (lang_independent_options): Add it.
56         * doc/invoke.texi (-Wstrict-aliasing): Document it.
58 2002-10-08  Zack Weinberg  <zack@codesourcery.com>
60         * system.h (GCCBUGURL): Delete.
61         * version.c (bug_report_url): New.  Add commentary about
62         modifying both these strings in modified distributions.
63         * version.h: Declare bug_report_url.
65         * diagnostic.c, gcc.c, gcov.c: Globally replace GCCBUGURL with
66         bug_report_url.
68 2002-10-08  Nick Clifton  <nickc@redhat.com>
70         * config/rs6000/spe.h (__ev_set_acc_u64): Use __ev_create_u64 to
71         convert uint64_t into __ev64_opaque__.
72         (__ev_set_acc_s64): Likewise, but using signed types.
74 2002-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
76         * config/s390/s390.md ("*doloop_si_long"): Add missing operand.
77         ("*doloop_di_long"): Likewise.
79 Tue Oct  8 16:50:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
81         * print-rtl.c (print_rtx): Increase buffer size for real numbers.
83 2002-10-08  Richard Sandiford  <rsandifo@redhat.com>
85         * config/mips/mips.md (define_attr cpu): Add r4111.
87 2002-10-08  Anthony Green  <green@redhat.com>
89         * bitmap.c (bitmap_equal_p): Clear all bitmap_head fields.
91 2002-10-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
93         * config/c4x/c4x.c (c4x_print_operand): Enlarge buffer
94         for REAL_VALUE_TO_DECIMAL output.
96 2002-10-07  David Edelsohn  <edelsohn@gnu.org>
98         * config/rs6000/rs6000.c (rs6000_override_options): Set
99         real_format_for_mode for IBM extended format, if enabled.
100         (easy_fp_constant): Add TFmode.
101         (rs6000_legitimize_address): Add TFmode.
102         (rs6000_legitimate_address): Same.
103         (function_arg_advance): TFmode uses two FPRs.
104         (rs6000_emit_prologue): Fix warning.
105         (rs6000_output_function_epilogue): Add TFmode.
106         (output_toc): Add TFmode.
107         * rs6000.h (SLOW_UNALIGNED_ACCESS): Add TFmode.
108         (LEGITIMATE_OFFSET_ADDRESS_P): Add TFmode.
109         * rs6000.md (movtf splitter): Load TFmode constant.
111 2002-10-07  Dale Johannesen  <dalej@apple.com>
113         * rtl.h:  Add NOTE_PRECONDITIONED.
114         * unroll.c:  Set it.
115         * loop.c:  Set loop_info->preconditioned from it.
116         * doloop.c:  Permit doloop treatment when loop_info->preconditoned.
118 2002-10-07  Richard Henderson  <rth@redhat.com>
120         * config/i960/i960.c (i960_setup_incoming_varargs): Create a
121         new rtx for comparing the argument pointer against zero.
122         (i960_va_start): Similarly.
124 2002-10-07  Richard Henderson  <rth@redhat.com>
126         * config/i960/i960.md (*): Use TFmode, not XFmode.
127         * config/i960/i960.c (*): Likewise.
128         (i960_arg_size_and_align): Remove XFmode alignment hack.
129         (i960_round_align): Merge code from ROUND_TYPE_ALIGN.
130         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Use 128, not 96.
131         (MAX_LONG_DOUBLE_TYPE_SIZE): Likewise.
132         (DATA_ALIGNMENT, ROUND_TYPE_SIZE): Remove.
134 2002-10-07  Richard Henderson  <rth@redhat.com>
136         * config/fp-bit.c (EXTENDED_FLOAT_STUBS): Flush out all XF/TFmode
137         entry points; use void return value and argument list.
139 2002-10-05  Naohiko Shimizu <nshimizu@keyaki.cc.u-tokai.ac.jp>
141         * t-pdp11: Add MULTILIB support for msoft-float.
142         * pdp11.h (LEGITIMATE_CONSTANT_P): Fix soft-float case.
144         * t-pdp11: Add LIB2FUNCS_EXTRA.
145         * pdp11.c (pdp11_output_function_prologue): Restrict offset to 16bit,
146         add preceding 0 to the octal constant, rename 'fp' to 'r5', rename
147         'fldd' to 'ldd', rename 'fstd' to 'std'.
148         (pdp11_output_function_epilogue): Likewise.
149         (output_move_quad): Make the comment gas compatible.
150         (output_ascii): Add preceding 0 to the octal constant.
151         (print_operand_address): Add pre_modify, post_modify.
152         (output_addr_const_pdp11): Add preceding 0 to the octal constant.
153         * pdp11.h (GO_IF_LEGITIMATE_ADDRESS) : Add 'movb' pre_modify case
154         with the indication of Paul Koning.
155         (PRINT_OPERAND): Fix floating constant.
156         * pdp11.md (movdi): Restrict matching pattern.
157         (movqi): Generalize the matching pattern.
158         (movdf): Restrict matching pattern.
159         (zero_extendqihi2): Change constant representation.
160         (floatsidf2): Fix wrong operands.
161         (addqi3): Fix wrong instruction name.
162         (subqi3): Fix wrong instruction name.
163         (andsi3, andhi3, andqi3): Simplify and fix to use 'bic'.
164         (xorsi3): Fix wrong insn.
165         (one_cmplqi2): Add two operand pattern.
166         (lsrsi3): New.
167         (negsi2): New.
168         (call): Add register indirect case.
169         (mod): Fix wrong subreg.
171 2002-09-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
172             Volker Reichelt <reichelt@igpm.rwth-aachen.de>
174         PR c/7411
175         * expr.c (expand_expr) [PLUS]: Simplify after the operands
176         have been expanded in EXPAND_NORMAL mode.
178 2002-10-06  Richard Henderson  <rth@redhat.com>
180         * config/rs6000/rs6000.md (load_toc_v4_PIC_2): Fix base constraint.
182 2002-10-06  Richard Henderson  <rth@redhat.com>
184         PR optimization/2960
185         * toplev.c (rest_of_compilation): Don't copy_loop_headers if
186         optimize_size.
188 2002-10-06  Alexandre Oliva  <aoliva@redhat.com>
190         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Override
191         previously definitions.
193 2002-10-06  Frank Ch. Eigler  <fche@redhat.com>
195         * cppinit.c (init_standard_includes, parse_option): Use strncmp.
196         * c-opts.c (find_opt): Similarly.
198 2002-10-05  Jakub Jelinek  <jakub@redhat.com>
200         * gcc.c (set_multilib_dir): Don't access *end.
201         Use memcpy instead of strncpy.  Don't write beyond malloced buffer.
202         (print_multilib_info): Don't show paths starting with ".:".
203         * genmultilib: Add new option, "yes" if multilibs are enabled.
204         Update comments.  If multilibs not enabled, print .:${osdirout}
205         for each directory.  If multilibs are enabled, always print
206         ${dirout}:${osdirout}, even if the two are the same.
207         * Makefile.in (s-mlib): Pass @enable_multilib@ to genmultilib.
208         Pass all MULTILIB_* variables to genmultilib even if
209         --disable-multilib but MULTILIB_OSDIRNAMES is not empty.
211 2002-10-04  Bruce Korb  <bkorb@gnu.org>
213         * fixinc/inclhack.def(hpux11_abs):  use format fix
214         * fixinc/fixincl.x: regenerate
215         * fixinc/tests/base/stdlib.h: accommodate new fix test
217 Sat Oct  5 19:42:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
219         * c-common.c (cb_register_builtins):  Use really_no_inline.
221 2002-10-04  David Edelsohn  <edelsohn@gnu.org>
223         * unroll.c (copy_loop_body): Remove REG_EQUAL note attached to
224         copied instruction if the note is not loop invariant.
226 2002-10-04  Loren J. Rittle  <ljrittle@acm.org>
228         * gcc/ginclude/stddef.h: Support the FreeBSD 5 typedef system.
230 2002-10-04  Steve Ellcey  <sje@cup.hp.com>
232         * doc/invoke.texi (HPPA):  Add -mlinker-opt, -mgnu-ld,
233         and -mhp-ld options to list of options.  Add -mgnu-ld
234         and -mhp-ld option descriptions.
236 2002-10-04  Steve Ellcey  <sje@cup.hp.com>
238         * fixinc/inclhack.def (hpux11_abs):  New.
239         (stdio_va_list): change __va_list__ to __gnuc_va_list.
240         * fixinc/fixincl.x: Rebuild.
242 2002-10-04  Roger Sayle  <roger@eyesopen.com>
244         * config/i386/i386.h (processor_costs): Add new fields fadd,
245         fmul, fdiv, fabs, fchs and fsqrt to costs structure.
246         (RTX_COSTS): Use these fields to determine the RTX costs
247         of floating point addition/subtraction, multiplication,
248         division, fabs, negation and square root respectively.
249         * config/i386/i386.c (size_cost): Provide instruction sizes
250         for these new fields.
251         (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
252         k6_cost, athlon_cost, pentium4_cost): Provide typical cycle
253         counts for these new fields for all x86 processor variants.
255 2002-10-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
257         * mips.c (mips_const_double_ok): Delete unused variable.
259         * gengtype.c (rtx_next): Change type to int.
261 2002-10-04  Andreas Jaeger  <aj@suse.de>
263         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Fix value.
265 2002-10-04  Richard Henderson  <rth@redhat.com>
267         * real.h (SIGNIFICAND_BITS): Add one more word.
268         (CONST_DOUBLE_FORMAT): Accomodate 6 words.
269         * real.c (times_pten): New.
270         (real_to_decimal, real_from_string): Use it.
271         (sticky_rshift_significand): Use & to find modulus.
272         (rshift_significand, lshift_significand): Likewise.
273         (do_divide): Apply sticky bit after normalization.
274         (real_to_decimal, real_to_hexadecimal): Fix sign of Inf and NaN.
276 2002-10-03  Andreas Jaeger  <aj@suse.de>
278         * gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
279         to unsigned long, adjust printf format string.
280         (output_mangled_typename): Likewise.
282 2002-10-03  Jason Thorpe  <thorpej@wasabisystems.com>
284         * config/vax/vax.c (vax_output_function_prologue): Use asm_fprintf.
285         * config/vax/vax.h (VAX_FUNCTION_PROFILER_NAME): New.
286         (FUNCTION_PROFILER): Rewrite to use ASM_GENERATE_INTERNAL_LABEL,
287         assemble_name, asm_fprintf, and VAX_FUNCTION_PROFILER_NAME.
288         (ASM_OUTPUT_MI_THUNK): Use asm_fprintf instead of REGISTER_PREFIX.
289         (PRINT_OPERAND_PUNCT_VALID_P): Fix comment.
290         * config/vax/elf.h (FUNCTION_PROFILER): Remove.
291         (VAX_FUNCTION_PROFILER_NAME): Redefine as "__mcount".
293 2002-10-03  Mark Mitchell  <mark@codesourcery.com>
295         * doc/invoke.texi (-Wabi): Document mangling bug.
297 2002-10-04  Alan Modra  <amodra@bigpond.net.au>
299         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use a
300         name for the tbtab label that depends on the function asm name.
301         Don't output tbtab label unless optional_tbtab.
302         (output_mi_thunk): Formatting.
304 2002-10-03  Richard Henderson  <rth@redhat.com>
306         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Move additional code ...
307         * config/m68k/m68k.c (override_options): ... here.
308         * config/m68k/m68kelf.h (OVERRIDE_OPTIONS): Remove.
309         * config/m68k/m68kv4.h (OVERRIDE_OPTIONS): Remove.
310         * config/m68k/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
311         * config/m68k/netbsd-elf.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
313 2002-10-03  Richard Henderson  <rth@redhat.com>
315         * real.h (struct real_value): Use ENUM_BITFIELD.
317 2002-10-03  Richard Henderson  <rth@redhat.com>
319         * config/i960/i960.md (call, call_value): Use emit_call_insn.
321 2002-10-03  Steve Ellcey  <sje@cup.hp.com>
323         * config/pa/pa64-hpux.h (INIT_ENVIRONMENT): New.
325 2002-10-03  Steve Ellcey  <sje@cup.hp.com>
327         * config.gcc (hppa*64*-*-hpux11*): Check gnu_ld.
328         * config/pa/pa.h (MASK_GNU_LD): New.
329         (TARGET_GNU_LD): New.
330         * config/pa/pa64-hpux.h (LINK_SPEC): Set based
331         on gnu-ld and MASK_GNU_LD.
332         (SUBTARGET_SWITCHES): New gnu-ld & hp-ld flags.
334 Thu Oct  3 23:35:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
336         * i386.c (athlon_cost): Fix the move costs.
338 Thu Oct  3 23:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
340         * final.c (final): Use symbol name as function name for profiling.
341         * profile.c (get_exec_counts): Likewise.
342         (branch_prob): Likewise.
344 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
346         * longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
348 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
350         * gcc.c (print_multi_os_directory): New variable.
351         (option_map): Support --print-multi-os-directory.
352         (struct prefix_list): Add os_multilib field.
353         (multilib_os_dir): New variable.
354         (static_specs): Add multilib_options.
355         (find_a_file): Add multilib argument.  Search in GCC or OS multilib
356         subdirs if non-zero.
357         (read_specs, execute): Update callers.
358         (find_file): Likewise.  Don't prefix name with multilib_dir, instead
359         pass 1 as multilib option.
360         (display_help): Include --print-multi-os-directory.
361         (add_prefix): Add os_multilib argument.  Initialize pl->os_multilib.
362         (process_command): Update callers.  Handle --print-multi-os-directory.
363         (do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
364         set.
365         (main): Update find_a_file and add_prefix callers.
366         Handle print_multi_os_directory.
367         (struct mdswitchstr): New.
368         (mdswitches, n_mdswitches): New variables.
369         (used_arg): Add MULTILIB_DEFAULT switches too if they are not
370         present on the command line nor their mutually incompatible
371         switches.
372         (default_arg): Optimize.
373         (set_multilib_dir): Compute multilib_os_dir.  Initialize mdswitches
374         array.
375         (print_multilib_info): Only print GCC multilib dir name, not OS
376         multilib dirname.
377         * genmultilib: Add osdirnames parameter.  Output multilib_options
378         variable.  If osdirnames is specified, output dirnames as
379         dirname:osdirname.
380         * mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
381         and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
382         to compute libgcc_s soname and install path.
383         * Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
384         SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
385         (s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
386         argument.
388         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
389         (SHLIB_SLIBDIR_SUFFIXES): Remove.
390         * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
391         ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
392         (STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
393         and -m64.
394         * config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
395         (SHLIB_SLIBDIR_SUFFIXES): Remove.
396         * config/sparc/sol2-bi.h (STARTFILE_ARCH64_SPEC): Remove.
397         (STARTFILE_ARCH_SPEC): Remove.
398         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
399         (SHLIB_SLIBDIR_SUFFIXES): Remove.
400         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
401         * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
402         (SHLIB_SLIBDIR_SUFFIXES): Remove.
404 Thu Oct  3 21:42:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
406         * predict.c (choose_function_section): Avoid choice for linkonce functions.
408 Thu Oct  3 15:15:00 CEST 2002  Jan Hubicka  <jh@suse.cz>
410         * i386.md (lea to mul peep2): Fix condition.
412 2002-10-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
414         * pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro.
415         * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Define.
417 2002-10-02  Richard Henderson  <rth@redhat.com>
419         PR opt/7124
420         * config/i386/i386.c (ix86_register_move_cost): Increase cost
421         for secondary_memory_needed pairs.
423 2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>
425         * doc/vms.texi: Blow away false include file section.
427 2002-10-02  Roger Sayle  <roger@eyesopen.com>
429         PR optimization/6627
430         * toplev.c (force_align_functions_log): New global variable.
431         * flags.h (force_align_functions_log): Add extern prototype.
432         * varasm.c (assemble_start_function): Use it to force minimum
433         function alignment.
434         * config/i386/i386.h (FUNCTION_BOUNDARY): Set the correct
435         minimum function alignment to one byte.
436         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Store the virtual bit in
437         the least significant bit of vtable member function pointers.
438         * tree.h (enum ptrmemfunc_vbit_where_t): Move definition to
439         here from cp/cp-tree.h.
441 Wed Oct  2 17:01:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
443         * i386.c (print_operand_address): Use RIP addressing for offsetted
444         label refs too.
446 2002-09-30  David S. Miller  <davem@redhat.com>
448         PR middle-end/7151
449         * config/sparc/sparc.md (movdi_insn_sp32_v9): Accept 'e' regs.
450         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
452 2002-10-01  Roger Sayle  <roger@eyesopen.com>
454         * unroll.c (loop_iterations): Revert 2002-09-08 change.
456 2002-10-01  Richard Henderson  <rth@redhat.com>
458         * real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
459         (real_to_hexadecimal): Likewise.
460         * print-rtl.c (print_rtx): If we are linked with real.c, don't
461         dump the XWINT fields of a floating point CONST_DOUBLE.
463 2002-10-01  Jason Thorpe  <thorpej@wasabisystems.com>
465         * config/vax/elf.h (FUNCTION_PROFILER): Fix __mcount call.
467 2002-10-01  Richard Henderson  <rth@redhat.com>
469         * calls.c (precompute_register_parameters): Force non-legitimate
470         constants into pseudos.
472 2002-10-01  Nick Clifton  <nickc@redhat.com>
474         * config/rs6000/spe.md (spe_evrlwi): Add missing third operand
475         to assembler template.
477 2002-10-01  Richard Henderson  <rth@redhat.com>
479         * dwarf2out.c (loc_descriptor_from_tree): Relax requirement
480         for TLS debug info to !DECL_EXTERNAL.
482 2002-10-01  Matt Thomas  <matt@3am-software.com>
483             Jason Thorpe  <thorpej@wasabisystems.com>
485         * config.gcc (vax-*-netbsdelf*): Enable configuration.
486         * config/elfos.h (PCC_BITFIELD_TYPE_MATTERS): Define only
487         if not already defined.
488         * config/vax/elf.h: New file.
489         * config/vax/netbsd-elf.h: New file.
490         * config/vax/vax.c: Include "debug.h".
491         (vax_output_function_prologue): Add dwarf2 support.  Use
492         MAIN_NAME_P when checking for VMS_TARGET stack adjust.
493         * config/vax/vax.h (CONST_OK_FOR_LETTER_P): Add cases for
494         'J' [0..63], 'K' [-128..127], 'L' [-32768..32767],
495         'M' [0..255], 'N' [0..65535], and, 'O' [-63..-1].
496         (VAX_ISTREAM_SYNC): Remove.
497         (INITIALIZE_TRAMPOLINE): Use gen_sync_istream.
498         (JUMP_TABLES_IN_TEXT_SECTION): Define.
499         (ASM_OUTPUT_REG_POP): Use reg_names for the stack pointer.
500         (ASM_OUTPUT_ADDR_VEC_ELT): Use ASM_GENERATE_INTERNAL_LABEL
501         and assemble_name.
502         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
503         (PRINT_OPERAND_PUNCT_VALID_P): Accept '|'.
504         (PRINT_OPERAND): Output REGISTER_PREFIX for '|'.
505         (INCOMING_RETURN_ADDR_RTX): Define.
506         * config/vax/vax.md (VUNSPEC_BLOCKAGE)
507         (VUNSPEC_SYNC_ISTREAM): Define.
508         (blockage): Use VUNSPEC_BLOCKAGE.
509         (sync_istream): New insn.
511 2002-10-01  Richard Henderson  <rth@redhat.com>
513         * config/vax/vax.md (call_pop, *call_pop, call_value_pop)
514         (*call_value_pop, call, call_value): Add dwarf2 EH support.
515         (*call): New insn.
517 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
519         PR c/8083
520         * c-typeck.c (build_c_cast): Warn about type punning which breaks
521         type based aliasing.
523 2002-10-01  Mark Mitchell  <mark@codesourcery.com>
525         * stor-layout.c (update_alignment_for_field): New function.
526         (place_union_field): Use it.
527         (place_field): Likewise.
529 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
531         PR other/8077
532         * gcc.c (cc1_options): Add space on -auxbase-strip.
534 2002-10-01  Jim Wilson  <wilson@redhat.com>
536         * config/v850/v850.h (EPILOGUE_USES): Define.
538 2002-09-30  Andrew Haley  <aph@redhat.com>
540         * flow.c (insn_dead_p): When using non-call-exceptions, don't
541         eliminate insns that may trap.
542         * cse.c (insn_live_p): Likewise.
544 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
546         * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
547         (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
548         * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
549         * config/mips/mips.md: Apply same renaming here.
551 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
553         * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
554         (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
555         * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
556         * config/mips/mips.md (define_attr cpu): Remove r4320.
557         Remove vr4320 scheduler and uses of TARGET_MIPS4320.
559 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
561         * config/mips/mips.c (mips16_strings): New variable.
562         (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
563         symbol in mips16_strings.  Free the list.
564         (mips_encode_section_info): Keep track of local strings.
566 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
568         * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
569         (sordered_df, sordered_sf): Remove.
570         * config/mips/mips.c (get_float_compare_codes): New fn.
571         (gen_int_relational, gen_conditional_move): Use it.
573 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
575         * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
576         * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
577         * config/mips/mips.c (fcc_register_operand): New function.
578         (mips_emit_fcc_reload): New function, extracted from reload_incc.
579         (override_options): Allow TFmode values in float registers
580         if ISA_HAS_8CC.
581         * cnfig/mips/mips.md (reload_incc): Change destination prediate
582         to fcc_register_operand.  Remove misleading source constraint.
583         Use mips_emit_fcc_reload.
584         (reload_outcc): Duplicate reload_incc.
586 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
588         * longlong.h: Partially synchronize with GMP-4.1 version:
589         Use i370 definitions also for s390.
590         Add generic definition of umul_ppmm in terms of smul_ppmm.
591         [s390] (umul_ppmm): Remove.
592         [s390] (smul_ppmm): Fix incorrect assembler constraints.
593         [s390] (smul_ppmm, sdiv_qrnnd): Rename __xx to __x.
595 2002-09-30  Bob Wilson  <bob.wilson@acm.org>
597         * config/xtensa/xtensa.h (REG_CLASS_NAMES, REG_CLASS_CONTENTS):
598         Add new RL_REGS register class.
599         (PREFERRED_RELOAD_CLASS, PREFERRED_OUTPUT_RELOAD_CLASS):
600         Call xtensa_preferred_reload_class for both input and output reloads.
601         * config/xtensa/xtensa.c (xtensa_regno_to_class): Use new RL_REGS class.
602         (xtensa_preferred_reload_class): Handle output reloads; use RL_REGS
603         instead of either AR_REGS or GR_REGS classes.
604         (xtensa_secondary_reload_class): Use new RL_REGS class.
605         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class): Update.
607 2002-09-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
609         * pa.c (hppa_encode_label): Don't drop '*' from function labels.
610         (pa_strip_name_encoding): Strip '@' and '*', in that order.
611         * pa.h (ASM_OUTPUT_LABELREF): Output user_label_prefix except when
612         there is a '*' prefix in NAME.
614 Mon Sep 30 21:33:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
616         * reload.c (push_reload): Handle subregs and secondary memory.
617         * reload1.c (gen_reload): Likewise.
619         * jump.c (reg_or_subregno): New function.
620         * rtl.h (reg_or_subregno): Declare
621         * unroll.c (find_splittable_givs): Handle subregs.
623 2002-09-30  Mark Mitchell  <mark@codesourcery.com>
625         * store-layout.c (finish_record_layout): Add free_p parameter.
626         (layout_type): Pass it.
627         * tree.h (finish_record_layout): Update prototype.
629 Mon Sep 30 14:57:18 CEST 2002  Jan Hubicka  <jh@suse.cz>
631         * i386.h (TARGET_CPP_CPU_BUILTINS): Define __SSE_MATH__.
633         * gcse.c (cprop_jump): Check that the register has not
634         been modified
635         (cprop_jump): Likewise.
637 2002-09-30  Richard Earnshaw  <rearnsha@arm.com>
639         * arm.h (BASE_REG_CLASS): Always return LO_REGS for Thumb.
640         (MODE_BASE_REG_CLASS, case Thumb): Only return BASE_REGS if we know
641         that we have a SImode access, and only then if reload hasn't completed;
642         for all other cases, use LO_REGS.
644 2002-09-29  Richard Henderson  <rth@redhat.com>
646         * real.c (real_from_string): Apply sign last.  Tidy exponent handling.
648 2002-09-29  Richard Henderson  <rth@redhat.com>
650         PR c/8002
651         * combine.c (force_to_mode): Handle FLOAT_MODE destinations
652         for CONST_INT.
654 2002-09-29  David Edelsohn  <edelsohn@gnu.org>
656         * real.h (ibm_extended_format): Declare.
657         * real.c (encode_ibm_extended, decode_ibm_extended): New
658         functions.
660 2002-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
662         * darwin-protos.h (darwin_asm_output_dwarf_delta): Prototype.
664         * ia64.c (ia64_hpux_asm_file_end): Const-ify.
666 2002-09-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
668         * expmed.c (extract_bit_field): Fix bit-field extraction from SUBREGs.
670 2002-09-29  Kazu Hirata  <kazu@cs.umass.edu>
672         * builtins.def: Fix comment formatting.
673         * c-common.def: Likewise.
674         * cfgcleanup.c: Likewise.
675         * combine.c: Likewise.
676         * gengtype.c: Likewise.
677         * params.def: Likewise.
678         * predict.def: Likewise.
679         * rtl.def: Likewise.
680         * stab.def: Likewise.
681         * stor-layout.c: Likewise.
682         * tree.def: Likewise.
683         * config/darwin.c: Likewise.
684         * config/darwin.h: Likewise.
685         * config/dbxcoff.h: Likewise.
686         * config/elfos.h: Likewise.
687         * config/fp-bit.c: Likewise.
688         * config/freebsd-spec.h: Likewise.
689         * config/interix.h: Likewise.
690         * config/libgloss.h: Likewise.
691         * config/linux-aout.h: Likewise.
692         * config/linux.h: Likewise.
693         * config/lynx-ng.h: Likewise.
694         * config/lynx.h: Likewise.
695         * config/netbsd-aout.h: Likewise.
696         * config/netbsd.h: Likewise.
697         * config/netware.h: Likewise.
698         * config/psos.h: Likewise.
699         * config/ptx4.h: Likewise.
701 2002-09-28  Kazu Hirata  <kazu@cs.umass.edu>
703         * ChangeLog.4: Fix typos.
704         * ChangeLog.6: Likewise.
705         * FSFChangeLog.10: Likewise.
706         * genattrtab.c: Fix comment typos.
707         * haifa-sched.c: Likewise.
708         * real.c: Likewise.
709         * tree.h: Likewise.
710         * config/arm/arm.c: Likewise.
711         * config/arm/crti.asm: Likewise.
712         * config/arm/crtn.asm: Likewise.
713         * config/frv/frv.c: Likewise.
714         * config/frv/frv.md: Likewise.
715         * config/h8300/h8300.md: Likewise.
716         * config/i386/rtemself.h: Likewise.
717         * config/ia64/unwind-ia64.c: Likewise.
718         * config/ip2k/ip2k.h: Likewise.
719         * config/m88k/m88k.c: Likewise.
720         * config/m88k/m88k.md: Likewise.
721         * config/mips/sr71k.md: Likewise.
722         * config/mmix/mmix.c: Likewise.
723         * config/rs6000/rs6000.c: Likewise.
724         * config/sh/sh.md: Likewise.
726 2002-09-26  Theodore A. Roth  <troth@verinet.com>
728         * config/avr/avr.c: Eliminate use of _PC_ in pc relative insns.
729         * config/avr/avr.md: Ditto.
731 2002-09-27  Alexander N. Kabaev <ak03@gte.com>
733         PR preprocessor/8055
734         * cppmacro.c (stringify_arg): Do not overflow the buffer
735         with the terminating NUL when the argument to be stringified
736         has no tokens.
738 2002-09-27  Richard Henderson  <rth@redhat.com>
740         * unroll.c (simplify_cmp_and_jump_insns): New.
741         (unroll_loop): Use it.  Use simplify_gen_foo+force_operand
742         instead of expand_simple_foo.
744 2002-09-27  Richard Henderson  <rth@redhat.com>
746         PR optimization/7520
747         * cfganal.c (flow_active_insn_p): New.
748         (forwarder_block_p): Use it.
750 2002-09-27  Richard Henderson  <rth@redhat.com>
752         * emit-rtl.c (active_insn_p): Revert last change.
754 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
756         * doc/extend.texi (tls_model): Document.
757         * varasm.c (decl_tls_model): New.
758         * c-common.c (handle_tls_model_attribute): New.
759         (c_common_attribute_table): Add tls_model.
760         * config/alpha/alpha.c (alpha_encode_section_info): Use
761         decl_tls_model.
762         * flags.h (enum tls_model, flag_tls_default): Move...
763         * tree.h (enum tls_model, flag_tls_default): ...here.
764         (decl_tls_model): New prototype.
765         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
766         * config/i386/i386.c (ix86_encode_section_info): Likewise.
767         * config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base):
768         Allow !flag_pic.
770 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
772         * LANGUAGES: Follow spelling conventions.
773         * rtl.def: Likewise.
774         * sbitmap.c: Likewise.
775         * sched-int.h: Likewise.
776         * sched-rgn.c: Likewise.
777         * sibcall.c: Likewise.
778         * simplify-rtx.c: Likewise.
779         * ssa.c: Likewise.
780         * stab.def: Likewise.
781         * stmt.c: Likewise.
782         * stor-layout.c: Likewise.
783         * target.h: Likewise.
784         * timevar.c: Likewise.
785         * toplev.c: Likewise.
786         * tree-dump.c: Likewise.
787         * tree-inline.c: Likewise.
788         * tree.c: Likewise.
789         * tree.def: Likewise.
790         * tree.h: Likewise.
791         * unroll.c: Likewise.
792         * varasm.c: Likewise.
793         * vmsdbgout.c: Likewise.
794         * treelang/treelang.texi: Likewise.
795         * treelang/treetree.c: Likewise.
797 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
799         * config/h8300/h8300.c (compute_saved_regs): Use a macro
800         instead of a hard register number.
801         (get_shift_alg): Use an enumerated type instead of numbers.
802         (h8300_shift_needs_scratch_p): Likewise.
804 2002-09-26  David S. Miller  <davem@redhat.com>
806         PR optimization/7335
807         * calls.c (emit_library_call_value_1): Passing args by reference
808         converts a CONST function into a PURE one.
810 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
812         * dbxout.c (FORCE_TEXT): Switch to current_function_decl, not
813         text_section.
814         * xcoffout.h (DBX_STATIC_BLOCK_START): Remove explicit change to
815         text section.
816         * config/rs6000/rs6000.c (rs6000_override_options): Allow
817         function-sections and data-sections functionality on AIX.
819 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
820             Dale Johannesen  <dalej@apple.com>
822         * config/rs6000/rs6000.c (rs6000_emit_move): Insert zero-extend
823         in RTL for sub-word loads from memory.
825 2002-09-26  Richard Henderson  <rth@redhat.com>
827         PR c/7160
828         * sched-deps.c (sched_analyze_insn): Make clobber insns depend
829         on call insns.
831 2002-09-26  Richard Henderson  <rth@redhat.com>
833         * emit-rtl.c (const_double_htab_eq): Remove unused variable.
835 2002-09-26  Chris Lattner  <sabre@nondot.org>
837         * ssa.c (rename_insn_1): Handle RENAME_NO_RTX correctly when
838         handling undefined values.
840 2002-09-26  Richard Henderson  <rth@redhat.com>
842         PR opt/7520
843         * emit-rtl.c (active_insn_p): Consider a clobber of the
844         function return value to be active even after reload.
846 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
848         * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
849         by absolute loop increment, not loop increment.
851 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
853         * c-common.h: Follow spelling conventions.
854         * cpplex.c: Likewise.
855         * cpplib.h: Likewise.
856         * gthr-dce.h: Likewise.
857         * gthr-posix.h: Likewise.
858         * optabs.c: Likewise.
859         * output.h: Likewise.
860         * profile.c: Likewise.
861         * protoize.c: Likewise.
862         * ra-rewrite.c: Likewise.
863         * real.c: Likewise.
864         * recog.c: Likewise.
865         * reg-stack.c: Likewise.
866         * regclass.c: Likewise.
867         * regmove.c: Likewise.
868         * reload.c: Likewise.
869         * reload.h: Likewise.
870         * reload1.c: Likewise.
871         * reorg.c: Likewise.
872         * resource.c: Likewise.
873         * rtl.h: Likewise.
874         * rtlanal.c: Likewise.
876 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
878         * config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
879         for symbol address.
881 2002-09-24  Eric Christopher  <echristo@redhat.com>
883         * config/mips/elf.h: Add HANDLE_SYSV_PRAGMA.
884         * config/mips/elf64.h: Ditto.
886 2002-09-24  Eric Christopher  <echristo@redhat.com>
888         * except.c (expand_builtin_extract_return_address): Handle case
889         where Pmode != ptr_mode.
891 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
893         * config/ia64/hpux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): New
895 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
897         * config/ia64/hpux.h (TARGET_DEFAULT): Include TARGET_ILP32.
899 2002-09-26  Igor Shevlyakov <igor@microunity.com>
901         * combine.c (simplify_set): Don't call to force_to_mode if size
902         of integer type is larger than HOST_BITS_PER_WIDE_INT.
904 2002-09-26  Janis Johnson  <janis187@us.ibm.com>
906         * Makefile.in (qmtest-g++): Fix file path.
908 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
910         * expr.c (expand_expr) [MINUS_EXPR]: Convert A - const to
911         A + (-const) on RTX level, even for unsigned types.
913 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
915         * reload.c (dup_replacements): New function.
916         (find_reloads): Use it to duplicate replacements at the top level
917         of match_dup operands.
919 2002-09-26  Miles Bader  <miles@gnu.org>
921         * v850.md ("length"): Change default value to 4.
923 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
925         * ChangeLog.1: Follow spelling conventions.
926         * ChangeLog.4: Likewise.
927         * ChangeLog.6: Likewise.
928         * FSFChangeLog.11: Likewise.
929         * doc/cpp.texi: Likewise.
930         * doc/invoke.texi: Likewise.
931         * doc/tm.texi: Likewise.
933 2002-09-26  Nick Clifton  <nickc@redhat.com>
935         * config.gcc: Add x prefix to v850e case for handling
936         --with-cpu=v850e.
938 2002-09-25  David S. Miller  <davem@redhat.com>
940         PR target/7842
941         * config/sparc/sparc.c (set_extends): SImode ASHIFT does not
942         extend.
944 2002-09-25  Richard Henderson  <rth@redhat.com>
946         * emit-rtl.c (const_double_htab_eq): Distinguish integer and
947         fp CONST_DOUBLE; use real_identical.
949 2002-09-25  Mark Mitchell  <mark@codesourcery.com>
951         * doc/invoke.texi: Add more -Wabi examples.
953 2002-09-25  Richard Sandiford  <rsandifo@redhat.com>
955         * config/mips/mips.h (TARGET_MIPS4100): Add missing bracket.
957 2002-09-24  Denis Chertykov  <denisc@overta.ru>
959         * config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
960         cases of optimizing "add sp,w" to "inc sp".
962 2002-09-24  Adam Nemet  <anemet@lnxw.com>
964         * config/arm/arm.c (thumb_unexpanded_epilogue): Don't generate
965         epilogue for naked functions.
967 2002-09-24  Adam Nemet  <anemet@lnxw.com>
968             Nick Clifton  <nickc@redhat.com>
970         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
971         (FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
972         is defined.
974 2002-09-24  Ulrich Weigand  <uweigand@de.ibm.com>
976         * config/s390/s390.c (preferred_la_operand_p): New function.
977         * config/s390/s390-protos.h (preferred_la_operand_p): Declare it.
978         * config/s390/s390.md ("addaddr_esame", "*la_ccclobber"): Replace by ...
979         ("*la_64_cc", "*la_31_cc", splitters): ... these.
980         ("*la_31"): Deactivate for TARGET_64BIT.
981         ("*la_31_and", "*la_31_and_cc"): New.
983 2002-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
985         * real.h (real_value): Make `exp' explicitly signed.
987 2002-09-24  Kazu Hirata  <kazu@cs.umass.edu>
989         * config/elfos.h: Follow spelling conventions.
990         * config/alpha/alpha.h: Likewise.
991         * config/arc/arc.h: Likewise.
992         * config/arm/arm.md: Likewise.
993         * config/avr/avr.h: Likewise.
994         * config/cris/cris.md: Likewise.
995         * config/d30v/d30v.h: Likewise.
996         * config/frv/frv.c: Likewise.
997         * config/frv/frv.h: Likewise.
998         * config/h8300/h8300.c: Likewise.
999         * config/h8300/h8300.h: Likewise.
1000         * config/h8300/h8300.md: Likewise.
1001         * config/i386/cygwin.h: Likewise.
1002         * config/i386/i386.h: Likewise.
1003         * config/i386/sysv3.h: Likewise.
1004         * config/i960/i960.h: Likewise.
1005         * config/ia64/ia64.h: Likewise.
1006         * config/ia64/ia64.md: Likewise.
1007         * config/ip2k/ip2k.h: Likewise.
1008         * config/m32r/m32r.h: Likewise.
1009         * config/m68k/m68k.h: Likewise.
1010         * config/m88k/m88k.h: Likewise.
1011         * config/mcore/mcore.c: Likewise.
1012         * config/mcore/mcore.h: Likewise.
1013         * config/mcore/mcore.md: Likewise.
1014         * config/mips/mips.h: Likewise.
1015         * config/mmix/mmix.h: Likewise.
1016         * config/mmix/mmix.md: Likewise.
1017         * config/ns32k/netbsd.h: Likewise.
1018         * config/ns32k/ns32k.h: Likewise.
1019         * config/ns32k/ns32k.md: Likewise.
1020         * config/pa/pa.h: Likewise.
1021         * config/romp/romp.h: Likewise.
1022         * config/rs6000/rs6000.h: Likewise.
1023         * config/rs6000/rs6000.md: Likewise.
1024         * config/sparc/sparc.h: Likewise.
1025         * config/stormy16/stormy-abi: Likewise.
1026         * config/stormy16/stormy16.h: Likewise.
1027         * config/vax/vax.h: Likewise.
1029 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
1031         * version.c (version_string): Now const char[].
1032         * version.h: Update to match.
1034 2002-09-23  Richard Henderson  <rth@redhat.com>
1036         * config/i386/i386.h (MASK_ACCUMULATE_OUTGOING_ARGS_SET, MASK_MMX_SET,
1037         MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): Kill.
1038         (TARGET_SWITCHES): Don't reference them.
1039         * config/i386/i386.c (override_options): Use target_flags_explicit
1040         to examine bits set by the user.
1042 2002-09-23  Dale Johannesen  <dalej@apple.com>
1044         * dbxout.c (dbxout_parms):  Set current_sym_code for params
1045         passed on stack by invisible reference.
1047 2002-09-23  Richard Earnshaw  <rearnsha@arm.com>
1049         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
1050         at least one byte of space.
1052 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
1054         * c-common.h (flag_abi_version): Fix typo in comment.
1055         * doc/invoke.texi (flag_abi_version): Document default value.
1057 2002-09-23  Hans-Peter Nilsson  <hp@axis.com>
1059         * doc/extend.texi (Extended Asm): Clarify that overlap between
1060         asm-declared register variables used in an asm and the asm clobber
1061         list is not allowed.
1062         * stmt.c (decl_conflicts_with_clobbers_p): New function.
1063         (expand_asm_operands): Keep track of clobbered registers.  Call
1064         decl_conflicts_with_clobbers_p for each input and output operand.
1065         If no conflicts found before, also do conflict sanity check when
1066         emitting clobbers.
1068 2002-09-23  Richard Henderson  <rth@redhat.com>
1070         * c-common.c (cpp_define_data_format): Remove.
1071         (cb_register_builtins): Don't define __WCHAR_BIT__, __SHRT_BIT__,
1072         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
1073         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
1074         * doc/cpp.texi: Don't document them either.
1075         (__SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__,
1076         __LONG_LONG_MAX__): Document.
1077         (__TARGET_FLOAT_FORMAT__): Remove.
1079 2002-09-23  Richard Henderson  <rth@redhat.com>
1081         * real.c (do_multiply): Normalize U before addition.
1083 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
1085         * c-common.c (flag_abi_version): New variable.
1086         * c-common.h (flag_abi_version): Declare it.
1087         * c-opts.c (missing_arg): Add -fabi-version.
1088         (c_common_decode_option): Process -fabi-version.
1089         * doc/invoke.texi (-fabi-version): Document it.
1090         (-Wabi): Add information about bit-fields in unions.
1092 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
1094         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
1095         unless -fno-pic or -fno-PIC is specified.
1097 2002-09-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1099         * c-common.c (preprocessing_trad_p): Define.
1100         * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
1101         (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
1102         * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
1103         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
1104         * pa-linux.h (CPP_PREDEFINES): Delete.
1105         (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
1106         * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
1107         * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
1108         (TARGET_OS_CPP_BUILTINS): Define.
1109         * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
1110         (TARGET_SWITCHES): Reformat.  Use N_() macro.  Add SUBTARGET_SWITCHES.
1111         (SUBTARGET_SWITCHES): Provide default definition.
1112         (TARGET_OPTIONS): Reformat.  Use N_() macro.
1113         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
1114         CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS,
1115         EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete.
1116         (TARGET_CPU_CPP_BUILTINS): Define.
1117         (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
1118         * doc/invoke.texi (msio, mwsio): Document new hppa options.
1119         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
1120         preprocessing_trad_p().
1122 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
1124         * doc/install.texi: Document behavior of --with-headers and
1125         --with-libs when arguments are omitted.
1127 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>
1129         * dbxout.c: Follow spelling conventions.
1130         * defaults.h: Likewise.
1131         * df.c: Likewise.
1132         * diagnostic.h: Likewise.
1133         * doloop.c: Likewise.
1134         * dwarf2out.c: Likewise.
1135         * dwarfout.c: Likewise.
1136         * emit-rtl.c: Likewise.
1137         * except.c: Likewise.
1138         * explow.c: Likewise.
1139         * expmed.c: Likewise.
1140         * expr.c: Likewise.
1141         * expr.h: Likewise.
1142         * flags.h: Likewise.
1143         * flow.c: Likewise.
1144         * fold-const.c: Likewise.
1145         * function.c: Likewise.
1146         * function.h: Likewise.
1147         * gcc.c: Likewise.
1148         * gcov-io.h: Likewise.
1149         * gcov.c: Likewise.
1150         * gcse.c: Likewise.
1151         * genattrtab.c: Likewise.
1152         * genconfig.c: Likewise.
1153         * genrecog.c: Likewise.
1154         * ggc-page.c: Likewise.
1155         * ggc.h: Likewise.
1156         * global.c: Likewise.
1157         * gthr-win32.h: Likewise.
1158         * integrate.c: Likewise.
1159         * jump.c: Likewise.
1160         * langhooks.c: Likewise.
1161         * langhooks.h: Likewise.
1162         * line-map.h: Likewise.
1163         * local-alloc.c: Likewise.
1164         * longlong.h: Likewise.
1165         * loop.c: Likewise.
1166         * loop.h: Likewise.
1168 Tue Aug 27 22:26:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
1170         * i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
1172 Tue Aug 27 20:07:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
1174         * i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
1175         for -Os/TARGET_64BIT too.
1177 2002-09-21  Kazu Hirata  <kazu@cs.umass.edu>
1179         * ChangeLog: Follow spelling conventions.
1180         * ChangeLog.0: Likewise.
1181         * ChangeLog.1: Likewise.
1182         * ChangeLog.2: Likewise.
1183         * ChangeLog.3: Likewise.
1184         * ChangeLog.4: Likewise.
1185         * ChangeLog.5: Likewise.
1186         * ChangeLog.6: Likewise.
1187         * FSFChangeLog.10: Likewise.
1188         * FSFChangeLog.11: Likewise.
1189         * alias.c: Likewise.
1190         * basic-block.h: Likewise.
1191         * c-aux-info.c: Likewise.
1192         * c-common.c: Likewise.
1193         * c-common.h: Likewise.
1194         * c-decl.c: Likewise.
1195         * c-format.c: Likewise.
1196         * c-semantics.c: Likewise.
1197         * c-typeck.c: Likewise.
1198         * calls.c: Likewise.
1199         * cfganal.c: Likewise.
1200         * cfgloop.c: Likewise.
1201         * collect2.c: Likewise.
1202         * combine.c: Likewise.
1203         * conflict.c: Likewise.
1204         * cppexp.c: Likewise.
1205         * cppfiles.c: Likewise.
1206         * cpphash.h: Likewise.
1207         * cppinit.c: Likewise.
1208         * cpplex.c: Likewise.
1209         * cpplib.c: Likewise.
1210         * cpplib.h: Likewise.
1211         * cppmacro.c: Likewise.
1212         * cse.c: Likewise.
1214 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
1216         * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
1217         LINK_SPEC.
1218         (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
1219         * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
1220         (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
1222 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
1224         PR opt/7930
1225         * cse.c (fold_rtx): Calculate old_cost before we fold each
1226         operand.
1228 2002-09-21  Richard Henderson  <rth@redhat.com>
1230         * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
1231         __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
1232         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
1233         __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
1234         __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
1235         * doc/cpp.texi: Don't document them.
1237 2002-09-21  Richard Henderson  <rth@redhat.com>
1239         * c-common.c (builtin_define_float_constants): Use real_format
1240         to get the floating-point parameters.
1242 2002-09-21  Richard Henderson  <rth@redhat.com>
1244         * real.c (struct real_format): Move to real.h.
1245         (real_format_for_mode): Rename from fmt_for_mode; update all users;
1246         initialize with ieee defaults.
1247         (real_to_target_fmt, real_from_target_fmt): New.
1248         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
1249         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
1250         ieee_quad_format, i370_single_format, i370_double_format,
1251         c4x_single_format, c4x_extended_format): Rename from s/_format//.
1252         (ieee_quad_format): Fix emin.
1253         (format_for_size, init_real_once): Remove.
1254         * real.h (struct real_format): Move from real.c.
1255         (real_format_for_mode): Declare.
1256         (real_to_target_fmt, real_from_target_fmt): Declare.
1257         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
1258         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
1259         ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
1260         i370_single_format, i370_double_format, c4x_single_format,
1261         c4x_extended_format): Declare.
1262         * toplev.c (do_compile): Don't call init_real_once.
1264         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
1265         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
1267         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
1268         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
1269         * config/alpha/alpha.c (override_options): Set real_format_for_mode
1270         for VAX, if enabled.
1272         * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
1273         for C4X.
1275         * config/i370/i370.h (OVERRIDE_OPTIONS): New.
1276         * config/i370/i370.c (override_options): New.
1277         * config/i370/i370-protos.h: Update.
1279         * config/i386/i386.c (override_options): Set real_format_for_mode
1280         for Intel 80-bit extended.
1281         * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
1283         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
1284         (OVERRIDE_OPTIONS): Move code...
1285         * config/i960/i960.c (i960_initialize): ... here.  Set
1286         real_format_for_mode for Intel 80-bit extended.
1288         * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
1289         for Intel 80-bit extended, if enabled.
1291         * config/m68k/m68k.c (override_options): Set real_format_for_mode
1292         for Motorola 96-bit extended.
1294         * config/vax/vax.h (OVERRIDE_OPTIONS): New.
1295         * config/vax/vax.c (override_options): New.
1296         * config/vax/vax-protos.h: Update.
1298 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
1300         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
1301         #if TARGET_MACHO.
1303         * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
1304         insns.  Supply missing clobber of scratch reg.
1306 2002-09-20  Kazu Hirata  <kazu@cs.umass.edu>
1308         * config/m32r/m32r.c: Follow spelling conventions.
1309         * config/m32r/m32r.h: Likewise.
1310         * config/m32r/m32r.md: Likewise.
1311         * config/m68k/m68k.c: Likewise.
1312         * config/m88k/m88k.c: Likewise.
1313         * config/mcore/mcore.c: Likewise.
1314         * config/mips/mips.c: Likewise.
1315         * config/mips/mips.h: Likewise.
1316         * config/mmix/mmix.c: Likewise.
1317         * config/mn10200/mn10200.c: Likewise.
1318         * config/ns32k/ns32k.h: Likewise.
1319         * config/pa/pa.c: Likewise.
1320         * config/pa/pa64-linux.h: Likewise.
1321         * config/pdp11/pdp11.h: Likewise.
1322         * config/romp/romp.c: Likewise.
1323         * config/romp/romp.h: Likewise.
1324         * config/rs6000/eabi.asm: Likewise.
1325         * config/rs6000/linux64.h: Likewise.
1326         * config/rs6000/rs6000.c: Likewise.
1327         * config/rs6000/rs6000.h: Likewise.
1328         * config/rs6000/rs6000.md: Likewise.
1329         * config/rs6000/sysv4.h: Likewise.
1330         * config/rs6000/xcoff.h: Likewise.
1332 2002-09-20  Jim Wilson  <wilson@redhat.com>
1334         * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
1336 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
1338         * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
1339         * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
1340         UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
1341         (legitimate_address_p): Likewise.
1342         (legitimize_address): Use @gotntpoff and @indntpoff.
1343         (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
1344         (output_addr_const_extra): Likewise.
1346 2002-09-20  Jim Wilson  <wilson@redhat.com>
1348         * combine.c (try_combine): When split an instruction pair, where the
1349         first has a sign_extend src, verify that the src and dest modes match.
1351 2002-09-20  Richard Henderson  <rth@redhat.com>
1353         * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
1354         (override_options): Do not initialize them.
1355         (mips_const_double_ok): Allow no fp constants except zero,
1356         and not even that for mips16.
1357         (const_float_1_operand): Use dconst1.
1358         * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
1359         movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
1360         Don't allow arbitrary constants; fix predicates and C constraint.
1362 2002-09-20  Neil Booth  <neil@daikokuya.co.uk>
1364         * cppmacro.c: Don't warn about function-like macros without
1365         '(' during pre-expansion.
1367 2002-09-20  Jim Wilson  <wilson@redhat.com>
1369         * config/v850/v850.c (current_function_anonymous_args): Delete.
1370         (expand_prologue): Use current_function_args_info.anonymous_args.
1371         (expand_epilogue): Delete use of current_function_anonymous_args.
1372         * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
1373         (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
1374         (current_function_anonymous_args): Delete extern declaration.
1375         (SETUP_INCOMING_VARARGS): Set anonymous_args field.
1377 2002-09-20  Geoffrey Keating  <geoffk@apple.com>
1379         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
1380         to load_macho_picbase.
1381         * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
1382         (load_macho_picbase): Take the symbol to use as a parameter.
1383         (macho_correct_pic): New insn.
1384         (builtin_setjmp_reciever): On Darwin, restore the PIC register.
1386         * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
1387         RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
1388         (CAN_ELIMINATE): Likewise.
1389         (INITIAL_ELIMINATION_OFFSET): Likewise.
1390         (TOC_REGISTER): Likewise.
1392 2002-09-20  Richard Henderson  <rth@redhat.com>
1394         * real.c (real_hash): New.
1395         * real.h: Declare it.
1396         * cse.c (canon_hash): Use it.
1397         * cselib.c (hash_rtx): Likewise.
1398         * emit-rtl.c (const_double_htab_hash): Likewise.
1399         * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
1400         * varasm.c (struct rtx_const): Reduce vector size; separate
1401         integer and fp vectors.
1402         (HASHBITS): Remove.
1403         (const_hash_1): Rename from const_hash.  Use real_hash.  Do not
1404         take modulus MAX_HASH_TABLE.
1405         (const_hash): New.  Do take modulus MAX_HASH_TABLE.
1406         (output_constant_def): Do not take modulus MAX_HASH_TABLE.
1407         (SYMHASH): Don't use HASHBITS.
1408         (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
1409         Fix CONST_VECTOR thinko wrt fp vectors.  Fix kind comparison.
1410         (simplify_subtraction): Fix kind comparison.
1411         (const_hash_rtx): Return unsigned int.  Don't use HASHBITS.
1412         Use a union to pun integer array.
1413         * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
1414         only hash two words of integral CONST_DOUBLE.
1416 2002-09-20  Steve Ellcey  <sje@cup.hp.com>
1418         * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
1419         (STARTFILE_PREFIX_SPEC): New.
1420         (LINK_SPEC): Modify.
1421         (LIB_SPEC): Modify.
1422         (LIBGCC_SPEC): New.
1424 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
1426         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
1427         UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
1429 2002-09-20  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
1431         * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
1432         Add clobber of the condition code register.
1434 2002-09-20  Richard Henderson  <rth@redhat.com>
1436         * real.c (do_fix_trunc): Static.
1437         (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
1438         encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
1439         encode_i370_single, encode_i370_double, encode_c4x_single,
1440         encode_c4x_extended): Add default abort case.
1442 2002-09-20  Richard Henderson  <rth@redhat.com>
1444         * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
1445         MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
1446         (struct realvaluetype): Remove.
1447         (REAL_VALUE_TYPE): Use struct real_value.
1448         (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
1449         (test_real_width): New.
1450         * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
1451         (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
1452         (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
1453         real_isneg, real_isnegzero, real_identical, exact_real_inverse,
1454         real_to_integer, real_to_integer2, real_to_decimal,
1455         real_to_hexadecimal, real_from_string, real_from_integer,
1456         real_inf, real_nan, real_2expN, real_convert, real_to_target,
1457         real_from_target): Likewise.
1458         * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
1459         * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
1461 2002-09-20  Richard Henderson  <rth@redhat.com>
1463         * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
1464         IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
1465         * defaults.h: ... here.
1466         * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
1467         config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
1468         config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
1469         config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
1471 2002-09-20  Hans-Peter Nilsson  <hp@bitrange.com>
1473         * config/mmix/mmix.md ("negdf2"): Rewrite.
1474         ("*expanded_negdf2"): New.
1476 2002-09-19  Jim Wilson  <wilson@redhat.com>
1478         * combine.c (simplify_set): When optimizing a subreg src with a
1479         cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
1481 2002-09-19  Dale Johannesen <dalej@apple.com>
1482         * combine.c (make_extraction): Don't create
1483         invalid subreg.
1485 2002-09-19  Ulrich Weigand  <uweigand@de.ibm.com>
1487         * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
1488         and STRICT_LOW_PART within SET_DEST.
1489         * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
1490         splitters, replacing pre-reload splitters.
1491         ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
1492         "*zero_extendqihi2_31"): New insns.
1493         ("*zero_extendqihi2_64"): Do not clobber CC.
1495 2002-09-19  Steve Ellcey  <sje@cup.hp.com>
1497         * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
1498         (DTORS_SECTION_ASM_OP): Ditto.
1499         (READONLY_DATA_SECTION_ASM_OP): Moved.
1500         (DATA_SECTION_ASM_OP): New.
1501         (SDATA_SECTION_ASM_OP): New.
1502         (BSS_SECTION_ASM_OP): New.
1503         (SBSS_SECTION_ASM_OP): New.
1504         (TEXT_SECTION_ASM_OP): New.
1506 2002-09-19  Kazu Hirata  <kazu@cs.umass.edu>
1508         * config/fp-bit.c: Follow spelling conventions.
1509         * config/d30v/d30v.c: Likewise.
1510         * config/d30v/d30v.h: Likewise.
1511         * config/fr30/fr30.c: Likewise.
1512         * config/fr30/fr30.h: Likewise.
1513         * config/fr30/fr30.md: Likewise.
1514         * config/frv/frv.c: Likewise.
1515         * config/frv/frv.h: Likewise.
1516         * config/h8300/h8300.c: Likewise.
1517         * config/h8300/lib1funcs.asm: Likewise.
1518         * config/i370/i370.c: Likewise.
1519         * config/i386/i386.h: Likewise.
1520         * config/i386/i386.md: Likewise.
1521         * config/i386/pentium.md: Likewise.
1522         * config/i386/winnt.c: Likewise.
1523         * config/i960/i960.c: Likewise.
1524         * config/ia64/ia64.h: Likewise.
1525         * config/ip2k/ip2k.c: Likewise.
1526         * config/ip2k/ip2k.h: Likewise.
1527         * config/ip2k/ip2k.md: Likewise.
1528         * config/ip2k/libgcc.S: Likewise.
1530 2002-09-19  Stephen Clarke <stephen.clarke@superh.com>
1532         * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
1533         (GOTOFF_P): Extend to allow gotoff plus constant.
1535 2002-09-18  Richard Henderson  <rth@redhat.com>
1537         * ifcvt.c (noce_process_if_block): Correctly detect X modified
1538         with INSN_B before COND_EARLIEST.  Don't check A and B for
1539         modification in condition range.  Reorder INSN_B for A==B properly.
1540         (if_convert): Iterate until no matches for a block.
1542 2002-09-18  Richard Henderson  <rth@redhat.com>
1544         * calls.c (store_one_arg): Rename default_align to parm_align;
1545         always adjust parm_align for downward padding.
1547 2002-09-18  Richard Henderson  <rth@redhat.com>
1549         * toplev.c (backend_init): Move init_real_once invocation ...
1550         (do_compile): ... here.
1552 2002-09-18  Richard Henderson  <rth@redhat.com>
1554         * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
1555         RTX_UNCHANGING_P markers for successful tail-recursive replacement.
1557 2002-09-18  Richard Henderson  <rth@redhat.com>
1559         * real.c (round_for_format): Collect sticky as unsigned long, not bool.
1561 2002-09-19  Alan Modra  <amodra@bigpond.net.au>
1563         * config/rs6000/rs6000.md: (floatdisf2): Rename to
1564         floatdisf2_internal1.
1565         (floatdisf2): New define_expand.
1566         (floatdisf2_internal2): Likewise.
1568 2002-09-18  Richard Henderson  <rth@redhat.com>
1570         * real.c (sticky_rshift_significand): Collect sticky as
1571         unsigned long, not bool.
1573 2002-09-18  Ulrich Weigand  <uweigand@de.ibm.com>
1575         * config/s390/s390.c (s390_address_cost): New function.
1576         config/s390/s390-protos.h (s390_address_cost): Add prototype.
1577         config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
1578         (RTX_COST): Use COSTS_N_INSNS.
1580 2002-09-18  Douglas Rupp  <rupp@gnat.com>
1581             Donn Terry  <donnte@microsoft.com>
1583         * stor-layout.c (place_field): Handle alignment of whole
1584         structures when MSVC compatible bitfields are involved.
1585         Change method of computing location of MS bitfields to
1586         be compatible with #pragma pack(n).
1588         * tree.h (record_layout_info): Add new field
1589         remaining_in_alignment.
1591         * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
1592         (pragma pack): Add paragraph on MSVC bit-field packing.
1594 2002-09-18  Richard Earnshaw  (reanrsha@arm.com)
1596         PR optimization/7967
1597         * arm.md (ne_zeroextractsi): Add clobber of the condition code
1598         register.
1600 2002-09-18  Kazu Hirata  <kazu@cs.umass.edu>
1602         * config/s390/s390.c: Follow spelling conventions.
1603         * config/sh/lib1funcs.asm: Likewise.
1604         * config/sh/sh.c: Likewise.
1605         * config/sh/sh.h: Likewise.
1606         * config/sparc/sparc.c: Likewise.
1607         * config/sparc/sparc.h: Likewise.
1608         * config/sparc/sparc.md: Likewise.
1609         * config/stormy16/stormy16.c: Likewise.
1610         * config/stormy16/stormy16.h: Likewise.
1611         * config/v850/v850.c: Likewise.
1612         * config/v850/v850.h: Likewise.
1613         * config/vax/vax.c: Likewise.
1614         * config/vax/vax.h: Likewise.
1616 2002-09-18  Nick Clifton  <nickc@redhat.com>
1618         * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
1619         * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
1620         * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
1622 2002-09-17  Zack Weinberg  <zack@codesourcery.com>
1624         * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
1625         statement that the only translation is to en_UK.
1627 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
1629         * config/alpha/alpha.c: Follow spelling conventions.
1630         * config/alpha/alpha.h: Likewise.
1631         * config/alpha/alpha.md: Likewise.
1632         * config/arc/arc.h: Likewise.
1633         * config/arm/arm.c: Likewise.
1634         * config/arm/arm.h: Likewise.
1635         * config/arm/arm.md: Likewise.
1636         * config/arm/pe.c: Likewise.
1637         * config/arm/unknown-elf.h: Likewise.
1638         * config/avr/avr.c: Likewise.
1639         * config/avr/avr.h: Likewise.
1640         * config/c4x/c4x.c: Likewise.
1641         * config/cris/cris.c: Likewise.
1642         * config/cris/cris.h: Likewise.
1644 2002-09-17  Samuel Figueroa  <figueroa@apple.com>
1646         * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
1647         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
1648         * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
1650 2002-09-17  Dale Johannesen  <dalej@apple.com>
1652         * cfgcleanup.c (try_forward_edges):  Do not forward a
1653         branch to just after a loop exit before loop optimization;
1654         this interfered with doloop detection.
1656 2002-09-17  Nick Clifton  <nickc@redhat.com>
1658         * config/arm/arm.c (output_return_instruction): Do not
1659         writeback the stack pointer when it is being loaded.
1660         (arm_output_epilogue): Likewise.
1662 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
1664         * optabs.c (prepare_cmp_insn): Let emit_library_call_value
1665         generate a pseudo reg that receives the result of a libcall.
1666         (prepare_float_lib_cmp): Likewise.
1668 2002-09-17  Steve Ellcey  <sje@cup.hp.com>
1670         * config/ia64/elf.h: Remove CPP_PREDEFINES.
1672 Tue Sep 17 13:58:04 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1674         Fix PR/7014 and related objc bugs:
1675         * c-typeck.c (comp_target_types): Added a reflexive argument.
1676         Pass it to ObjC when/if calling objc_comptypes().  Updated all
1677         callers to provide the appropriate reflexive argument.
1678         * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
1679         typechecking for all cases of comparisons and assignments,
1680         particularly the obscure and less common ones involving protocols.
1682 2002-09-17  Nick Clifton  <nickc@redhat.com>
1684         * machmode.def (V1DImode): New mode.  A single element vector.
1685         * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
1686         (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
1687         * tree.c (build_common_tree_nodes_2): Build
1688         unsigned_V1DI_type_node and V1D1_type_node.
1689         * c-common.c (c_common_type_for_mode): Return
1690         unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
1691         * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
1693 Tue Sep 17 13:40:13 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1695         * doc/objc.texi (Constant string objects): Extended documentation
1696         to make clear that the constant string class ivar layout is
1697         completely fixed.
1699 2002-09-17  Roger Sayle  <roger@eyesopen.com>
1701         * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
1702         NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
1704 2002-09-16  Richard Henderson  <rth@redhat.com>
1706         * expr.c (emit_block_move): Set memory block size as appropriate
1707         for the copy.
1709 2002-09-16  Richard Henderson  <rth@redhat.com>
1711         PR fortran/3924
1712         * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
1714 2002-09-16  Richard Henderson  <rth@redhat.com>
1716         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
1717         as well as OFFSET for BITPOS.
1719 2002-09-16  Jeff Garzik  <jgarzik@mandrakesoft.com>
1721         * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
1722         * config/i386/i386.c (processor_alias_table): Add winchip-c6,
1723         winchip2 and c3.
1724         * doc/invoke.texi: Mention new aliases.
1726 2002-09-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1728         * calls.c (store_one_arg): Set default alignment for BLKmode arguments
1729         to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
1730         downward.
1731         * function.c (pad_below):  Always compile.
1732         (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
1733         alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
1734         Pad below when the argument is not in a register and the padding
1735         direction is downward.
1737         * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
1738         (PAD_VARARGS_DOWN): Define.
1739         * pa.c (function_arg_padding): Revise padding directions to make them
1740         compatible with the 32 and 64-bit runtime architecture documentation.
1741         (hppa_va_arg):  Add code to handle variable and size zero arguments
1742         passed by reference on TARGET_64BIT.  Reformat.
1743         (function_arg): Use a PARALLEL for BLKmode and aggregates args on
1744         TARGET_64BIT.  Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
1745         wide when !TARGET_64BIT.  Move forward check for mode==VOIDmode.
1746         Add comments.
1747         * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
1748         (RETURN_IN_MEMORY): Return size zero types in memory.
1749         (FUNCTION_VALUE): Return TFmode in general registers.
1750         (MUST_PASS_IN_STACK): Define.
1751         (FUNCTION_ARG_BOUNDARY): Simplify.
1752         (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
1753         by reference.
1754         (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
1756 2002-09-16  Richard Henderson  <rth@redhat.com>
1758         * real.c (do_fix_trunc): New.
1759         (real_arithmetic): Call it.
1760         * simplify-rtx.c (simplify_unary_operation): Handle FIX
1761         with a floating-point result mode.
1763 2002-09-16  Richard Henderson  <rth@redhat.com>
1765         * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
1766         (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
1767         * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
1768         (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
1769         * builtins.c (fold_builtin_nan): New.
1770         (fold_builtin): Call it.
1771         * real.c (real_nan): Parse a non-empty string.
1772         (round_for_format): Fix NaN significand truncation.
1773         * real.h (real_nan): Return bool.
1774         * doc/extend.texi: Document new builtins.
1776 2002-09-16  Jason Merrill  <jason@redhat.com>
1777             Danny Smith  <dannysmith@users.sourceforge.net>
1779         * config/i386/winnt.c (ix86_handle_dll_attribute): Set
1780         DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
1781         (i386_pe_mark_dllimport): Not here.
1783 2002-09-16  Nathan Sidwell  <nathan@codesourcery.com>
1785         * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
1787 2002-09-16  Geoffrey Keating  <geoffk@redhat.com>
1789         * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
1790         warnings about unused operands when HOST_BITS_PER_WIDE_INT is
1791         < 64.
1792         (rs6000_emit_cmove): Use real_isinf not target_isinf.
1794 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
1796         * calls.c (emit_library_call_value_1): Don't refer to
1797         hard_libcall_value.
1798         * optabs.c (prepare_float_lib_cmp): Likewise.
1800 2002-09-16  Geoffrey Keating  <geoffk@apple.com>
1802         * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
1803         mangling.
1805         The following changes are merged from pch-branch:
1807         * doc/gty.texi (GTY Options): Document %a.
1808         * gengtype.c (do_scalar_typedef): New function.
1809         (process_gc_options): Handle `length' option.
1810         (set_gc_used_type): A pointer to an array of structures doesn't
1811         qualify as a pointer to a structure.
1812         (output_escaped_param): Add `%a' escape.
1813         (write_gc_structure_fields): Allow 'desc' on array of unions.
1814         (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
1815         do_scalar_typedef.
1817         * gengtype.c (enum rtx_code): Make global.
1818         (rtx_format): Make global.
1819         (rtx_next): New.
1820         (gen_rtx_next): New.
1821         (write_rtx_next): New.
1822         (adjust_field_rtx_def): Skip fields marked by chain_next.
1823         (open_base_files): Delete redundant prototype.
1824         (write_enum_defn): New.
1825         (output_mangled_typename): Correct abort call.
1826         (write_gc_marker_routine_for_structure): Handle chain_next and
1827         chain_prev options.
1828         (finish_root_table): Don't output redundant \n.
1829         (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
1830         * c-tree.h (union lang_tree_node): Add chain_next option.
1832         * gengtype.h (NUM_PARAM): New definition.
1833         (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
1834         * gengtype.c (find_param_structure): New.
1835         (adjust_field_type): Handle param<n>_is option.
1836         (process_gc_options): Detect use_params option.  Update callers.
1837         (set_gc_used_type): Add 'param' parameter, update callers.  Handle
1838         'use_params' option.
1839         (open_base_files): Add splay-tree.h to list of files included.
1840         (output_mangled_typename): New.
1841         (write_gc_structure_fields): Update 'param' parameter to support
1842         multiple parameters.  Change name mangling.  Allow parameterized
1843         fields to have an apparent scalar type.  Handle param<n>_is options,
1844         use_param option.
1845         (write_gc_marker_routine_for_structure): Update for change to name
1846         mangling.  Better guess the output file for parameterized types.
1847         (write_gc_types): Update for change to name mangling.
1848         (write_gc_root): Update for change to name mangling.  Handle (ignore)
1849         param<n>_is options.
1850         * doc/gty.texi (GTY Options): Add description of param<n>_is
1851         options, use_params option.
1852         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
1853         * gengtype-lex.l: Produce token for param<n>_is.
1854         * gengtype-yacc.y: Parse param<n>_is.
1856         * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
1858         * rtl.c: Update comment describing rtx_format.
1859         * rtl.h (union rtunion): Separate definition and typedef.
1860         (struct rtx_def): Use gengtype to mark.
1861         * Makefile.in (gengtype.o): Also depend on rtl.def.
1862         * ggc.h (ggc_mark_rtx_children): Delete prototype.
1863         (ggc_mark_rtx): Change to alias of gengtype-generated routine.
1864         * ggc-common.c (ggc_mark_rtx_children): Delete.
1865         (ggc_mark_rtx_children_1): Delete.
1866         (gt_ggc_m_rtx_def): Delete.
1867         * gengtype.c (adjust_field_rtx_def): New.
1868         (adjust_field_type): Call adjust_field_rtx_def.
1869         (write_gc_structure_fields): Add 'default' case to switch if none
1870         is specified; remove unused code.
1872         * tree.h (struct tree_exp): Update for change to meaning
1873         of special.
1874         * gengtype.c (adjust_field_tree_exp): New function.
1875         (adjust_field_type): Handle `tree_exp' special here.
1876         (write_gc_structure_fields): Don't handle `tree_exp' special here.
1877         Handle new `dot' option.
1879         * gengtype.h: Make `info' a pointer-to-const.
1880         * gengtype-yacc.y (yacc_ids): Use xasprintf.
1882         * gengtype.c (write_gc_structure_fields): Remove implementation
1883         of `always' option, add `default' option.
1884         * doc/gty.texi (GTY Options): Remove documentation of `always',
1885         add `default'.
1887 2002-09-16  Hans-Peter Nilsson  <hp@bitrange.com>
1889         * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
1891 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1893         * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
1895         * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
1896         instead of the *-protos.h file directly.
1897         * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
1898         * darwin.c (machopic_output_stub): Move prototype ...
1899         * darwin-protos.h (machopic_output_stub): ... here.
1900         * rs6000-protos.h (machopic_output_stub): Don't declare.
1902 2002-09-16  Richard Henderson  <rth@redhat.com>
1904         * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
1906 2002-09-16  Richard Henderson  <rth@redhat.com>
1908         * real.c, real.h: Rewrite from scratch.
1910         * Makefile.in (simplify-rtx.o): Depend on TREE_H.
1911         (paranoia): New target.
1912         * builtins.c (fold_builtin_inf): Use new real.h interface.
1913         * c-common.c (builtin_define_with_hex_fp_value): Likewise.
1914         * c-lex.c (interpret_float): Likewise.
1915         * emit-rtl.c (gen_lowpart_common): Likewise.
1916         * optabs.c (expand_float): Use real_2expN.
1917         * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
1918         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
1919         (FLOAT_WORDS_BIG_ENDIAN): New.
1920         * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
1921         directly to REAL_VALUE_NEGATIVE.
1922         * loop.c (canonicalize_condition): Likewise.
1923         * simplify-rtx.c: Include tree.h.
1924         (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
1925         with floating-point result modes.
1926         * toplev.c (backend_init): Call init_real_once.
1928         * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
1929         * tree.c (build_real): Likewise.
1930         * config/alpha/alpha.c, config/vax/vax.c (float_strings,
1931         float_values, inited_float_values, check_float_value): Remove.
1932         * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
1933         config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
1934         * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
1935         (VAX_HALFWORD_ORDER): Remove.
1937 2002-09-16  Ulrich Weigand  <uweigand@de.ibm.com>
1939         * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
1940         (s390_load_address): ... this new function.
1941         (s390_decompose_address): Allow the argument pointer and all
1942         virtual registers as 'pointer' registers.
1943         (s390_expand_plus_operand): Use s390_load_address.
1944         config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
1945         ("force_la_31"): New insn pattern.
1946         config/s390/s390-protos.h (legitimize_la_operand): Remove.
1947         (s390_load_address): Add prototype.
1949         * config/s390/s390.c: Include "optabs.h".
1950         (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
1951         config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
1952         s390_expand_cmpstr): Add prototypes.
1953         config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
1954         ("movstrdi_short"): Rename to "movstr_short_64".  Change predicates
1955         for operands 0 and 1 to "memory_operand".  Add type attribute.
1956         ("movstrsi_short"): Rename to "movstr_short_31".  Change predicates
1957         for operands 0 and 1 to "memory_operand".  Add type attribute.
1958         ("movstrdi_long", "movstrsi_long"): Remove.
1959         ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
1960         ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
1961         ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
1962         ("clrstrsico"): Remove, replace by ...
1963         ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
1964         ("clrstrsi_64"): Rename to "clrstr_long_64".
1965         ("clrstrsi_31"): Rename to "clrstr_long_31".
1966         ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
1967         ("cmpstr_const"): Remove, replace by ...
1968         ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
1969         ("cmpstr_64"): Rename to "cmpstr_long_64".
1970         ("cmpstr_31"): Rename to "cmpstr_long_31".
1972 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
1974         * ABOUT-NLS: Follow spelling conventions.
1975         * ChangeLog: Likewise.
1976         * ChangeLog.1: Likewise.
1977         * ChangeLog.2: Likewise.
1978         * ChangeLog.3: Likewise.
1979         * ChangeLog.4: Likewise.
1980         * ChangeLog.5: Likewise.
1981         * ChangeLog.6: Likewise.
1982         * FSFChangeLog.10: Likewise.
1983         * FSFChangeLog.11: Likewise.
1984         * c-common.c: Likewise.
1985         * c-lex.c: Likewise.
1986         * c-objc-common.c: Likewise.
1987         * cppexp.c: Likewise.
1988         * cppinit.c: Likewise.
1989         * cpplex.c: Likewise.
1990         * doloop.c: Likewise.
1991         * flow.c: Likewise.
1992         * function.c: Likewise.
1993         * integrate.c: Likewise.
1994         * loop.c: Likewise.
1995         * reg-stack.c: Likewise.
1996         * reload.h: Likewise.
1997         * ssa.c: Likewise.
1999 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
2001         * ChangeLog: Follow spelling conventions.
2002         * ChangeLog.0: Likewise.
2003         * ChangeLog.1: Likewise.
2004         * ChangeLog.2: Likewise.
2005         * ChangeLog.4: Likewise.
2006         * ChangeLog.6: Likewise.
2007         * config.gcc: Likewise.
2008         * dwarfout.c: Likewise.
2009         * reload1.c: Likewise.
2010         * simplify-rtx.c: Likewise.
2011         * unwind-sjlj.c: Likewise.
2012         * config/avr/avr.h: Likewise.
2013         * config/d30v/d30v.h: Likewise.
2014         * config/frv/frv.c: Likewise.
2015         * config/frv/frv.h: Likewise.
2016         * config/ip2k/ip2k.h: Likewise.
2017         * config/m88k/m88k-move.sh: Likewise.
2018         * config/stormy16/stormy16.c: Likewise.
2019         * config/stormy16/stormy16.h: Likewise.
2020         * doc/extend.texi: Likewise.
2021         * doc/interface.texi: Likewise.
2022         * doc/invoke.texi: Likewise.
2023         * doc/md.texi: Likewise.
2024         * doc/rtl.texi: Likewise.
2025         * doc/tm.texi: Likewise.
2026         * doc/trouble.texi: Likewise.
2027         * ginclude/float.h: Likewise.
2028         * treelang/treelang.texi: Likewise.
2030 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2032         * i386-protos.h (i386_pe_dllexport_name_p,
2033         i386_pe_dllimport_name_p, i386_pe_unique_section,
2034         i386_pe_declare_function_type, i386_pe_record_external_function,
2035         i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
2036         prototype.
2037         * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
2038         * i386/t-interix (winnt.o): Likewise.
2040         * v850-protos.h (v850_output_addr_const_extra): Prototype.
2042 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
2044         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
2045         MIPS ABI CPP macros.
2046         (TARGET_CPU_CPP_BUILTINS): Redefine.
2047         (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
2048         (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
2050 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2052         * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2054 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
2056         * ChangeLog: Follow spelling conventions.
2057         * ChangeLog.0: Likewise.
2058         * ChangeLog.1: Likewise.
2059         * ChangeLog.2: Likewise.
2060         * ChangeLog.3: Likewise.
2061         * ChangeLog.4: Likewise.
2062         * ChangeLog.5: Likewise.
2063         * ChangeLog.6: Likewise.
2064         * FSFChangeLog.10: Likewise.
2065         * FSFChangeLog.11: Likewise.
2066         * c-common.c: Likewise.
2067         * c-common.h: Likewise.
2068         * c-format.c: Likewise.
2069         * c-opts.c: Likewise.
2070         * cpplib.c: Likewise.
2071         * langhooks.h: Likewise.
2072         * real.c: Likewise.
2073         * reg-stack.c: Likewise.
2074         * toplev.c: Likewise.
2075         * config/arm/arm.c: Likewise.
2076         * config/arm/arm.md: Likewise.
2077         * config/arm/linux-gas.h: Likewise.
2078         * config/arm/netbsd.h: Likewise.
2079         * config/c4x/c4x.c: Likewise.
2080         * config/c4x/c4x.h: Likewise.
2081         * config/c4x/c4x.md: Likewise.
2082         * config/c4x/libgcc.S: Likewise.
2083         * config/fr30/fr30.md: Likewise.
2084         * config/frv/frv.md: Likewise.
2085         * config/ia64/ia64.md: Likewise.
2086         * config/mips/mips.h: Likewise.
2087         * config/mn10300/mn10300.c: Likewise.
2088         * config/stormy16/stormy16.c: Likewise.
2089         * config/v850/v850.md: Likewise.
2090         * doc/extend.texi: Likewise.
2091         * doc/invoke.texi: Likewise.
2092         * doc/md.texi: Likewise.
2094 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
2096         * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
2097         library if -pthread is specified.
2099 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
2101         * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
2102         for --enable-threads=yes and --enable-threads=posix.
2104 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
2106         * config/sparc/cypress.md: Replace Sparc with SPARC.
2107         * config/sparc/freebsd.h: Likewise.
2108         * config/sparc/gmon-sol2.c: Likewise.
2109         * config/sparc/hypersparc.md: Likewise.
2110         * config/sparc/lb1spc.asm: Likewise.
2111         * config/sparc/lb1spl.asm: Likewise.
2112         * config/sparc/linux.h: Likewise.
2113         * config/sparc/linux64.h: Likewise.
2114         * config/sparc/lynx.h: Likewise.
2115         * config/sparc/sol2.h: Likewise.
2116         * config/sparc/sparc-modes.def: Likewise.
2117         * config/sparc/sparc.c: Likewise.
2118         * config/sparc/sparc.h: Likewise.
2119         * config/sparc/sparc.md: Likewise.
2120         * config/sparc/sparclet.md: Likewise.
2121         * config/sparc/supersparc.md: Likewise.
2122         * config/sparc/sysv4.h: Likewise.
2123         * config/sparc/vxsim.h: Likewise.
2124         * config/sparc/vxsparc64.h: Likewise.
2126 2002-09-14  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2128         * config/avr/avr.c (output.h): Move after inclusion of tree.h.
2130 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
2132         * ChangeLog: Follow spelling conventions.
2133         * ChangeLog.0: Likewise.
2134         * ChangeLog.2: Likewise.
2135         * ChangeLog.3: Likewise.
2136         * ChangeLog.4: Likewise.
2137         * ChangeLog.5: Likewise.
2138         * ChangeLog.6: Likewise.
2139         * cppfiles.c: Likewise.
2140         * cppinit.c: Likewise.
2141         * cpplib.h: Likewise.
2142         * cse.c: Likewise.
2143         * debug.h: Likewise.
2144         * df.c: Likewise.
2145         * dominance.c: Likewise.
2146         * hashtable.c: Likewise.
2147         * hashtable.h: Likewise.
2148         * loop.c: Likewise.
2149         * config/arm/README-interworking: Likewise.
2150         * config/arm/arm.c: Likewise.
2151         * config/arm/arm.h: Likewise.
2152         * config/arm/arm.md: Likewise.
2153         * config/dsp16xx/dsp16xx.h: Likewise.
2154         * config/frv/frv.c: Likewise.
2155         * config/frv/frv.h: Likewise.
2156         * config/ip2k/ip2k.h: Likewise.
2157         * config/rs6000/rs6000.c: Likewise.
2158         * config/stormy16/stormy-abi: Likewise.
2159         * config/stormy16/stormy16.h: Likewise.
2160         * config/v850/v850.c: Likewise.
2162 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
2164         * loop.c: Fix a comment typo.
2166 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
2168         * config/fr30/fr30.h: Fix comment typos.
2169         * config/frv/frv.c: Likewise.
2170         * config/i386/xmmintrin.h: Likewise.
2171         * config/mips/mips.c: Likewise.
2172         * config/sh/sh.c: Likewise.
2174 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
2176         * haifa-sched.c: Follow spelling conventions.
2177         * regclass.c: Likewise.
2178         * regrename.c: Likewise.
2179         * config/fp-bit.c: Likewise.
2180         * config/frv/frv.h: Likewise.
2181         * config/m88k/m88k.c: Likewise.
2182         * config/mcore/mcore.c: Likewise.
2183         * config/rs6000/darwin.h: Likewise.
2184         * config/rs6000/gnu.h: Likewise.
2185         * config/rs6000/linux.h: Likewise.
2186         * config/rs6000/linux64.h: Likewise.
2187         * config/rs6000/rs6000.c: Likewise.
2188         * config/rs6000/rs6000.h: Likewise.
2189         * config/sh/sh.c: Likewise.
2190         * config/sparc/sparc.c: Likewise.
2191         * config/sparc/ultra1_2.md: Likewise.
2193 2002-09-14  Stephane Carrez  <stcarrez@nerim.fr>
2195         * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
2196         memory operand when source is 0 (K constraint).
2197         ("movsi_internal"): Likewise.
2198         ("movdf_internal"): Likewise.
2199         ("movsf_internal"): Likewise.
2201 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
2203         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
2204         targetm.binds_local_p to set SYMBOL_REF_FLAG.
2205         (rs6000_xcoff_encode_section_info): Likewise.
2206         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2208 2002-09-10  Theodore A. Roth  <troth@verinet.com>
2210         * gcc/config/avr/avr.h: Set default options for C++ for avr.
2212 2002-09-13  Richard Henderson  <rth@redhat.com>
2214         * Makefile.in (toplev.o): Depend on real.h.
2215         (print-rtl.o, varasm.o, ifcvt.o): Likewise.
2217 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
2219         * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
2220         * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
2221         * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
2223 2002-09-13  Nathan Sidwell  <nathan@codesourcery.com>
2225         * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
2227 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
2229         * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
2230         ia64*-*-linux*): Set extra_parts.
2231         * config/ia64/t-aix (EXTRA_PARTS): Remove.
2232         * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
2234 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
2236         * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
2237         * config/h8300/h8300.c: Likewise.
2238         * config/h8300/h8300.h: Likewise.
2239         * config/h8300/h8300.md: Likewise.
2240         * doc/invoke.texi: Likewise.
2242 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
2244         * config/h8300/h8300.c (h8300_init_once): Fix formatting.
2246 2002-09-13  Matt Austern  <austern@apple.com>
2248         * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
2249         * cp/call.c: Change call-by-const-reference mechanism to use
2250         non_cast_lvalue_p when deciding whether the create a temporary.
2251         We need a temporary when passing, e.g. (long) x by const ref.
2252         * testsuite/g++.dg/other/constref[12].C: New, regression tests for
2253         passing a cast expression to a function by const reference.
2255 2002-09-13  Richard Henderson  <rth@redhat.com>
2257         * config/alpha/alpha.md (attr type): Add callpal.
2258         (imb, trap, load_tp, set_tp): Use it.
2259         * config/alpha/ev4.md (ev4_callpal): New.
2260         * config/alpha/ev5.md (ev5_callpal): New.
2261         * config/alpha/ev6.md (ev6_ibr): Handle callpal.
2262         * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
2263         (alphaev5_insn_pipe): Likewise.
2265 2002-09-13  Andreas Jaeger  <aj@suse.de>
2267         * Makefile.in (print-rtl.o): Depend on CONFIG_H.
2269 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
2271         * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
2272         LIB2ADDEH): New, set to NULL.
2273         (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
2275 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
2277         * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
2278         (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
2279         (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
2280         Add declarations.
2281         (_U_Qfneg): Remove.
2283 2002-09-13 Dhananjay Deshpande  <dhananjayd@kpit.com>
2285         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
2286         for H8/300, H8S aa:8 mode.
2287         (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
2288         * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
2289         for H8/300 aa:8 mode.
2291 2002-09-13  Hartmut Penner  <hpenner@de.ibm.com>
2293         * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
2294         insns.
2296 2002-09-12  Richard Henderson  <rth@redhat.com>
2298         * Makefile.in (HOST_PRINT): Use print-rtl1.o
2299         (print-rtl.o): Don't define GENERATOR_FILE.
2300         (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
2301         * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
2302         unless GENERATOR_FILE.
2304 2002-09-12  Stan Shebs  <shebs@apple.com>
2306         * config/darwin.h (USER_LABEL_PREFIX): Define here...
2307         * config/i386/darwin.h: ... instead of here.
2309         * target.h (struct gcc_target): New field
2310         terminate_dw2_eh_frame_info.
2311         * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
2312         (TARGET_INITIALIZER): Add it.
2313         * dwarf2out.c (output_call_frame_info): Use target hook.
2314         * dwarf2asm.c (dw2_asm_output_delta): Use macro
2315         ASM_OUTPUT_DWARF_DELTA if defined.
2316         * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
2317         (ASM_OUTPUT_DWARF_DELTA): Ditto.
2318         (ASM_OUTPUT_DWARF_OFFSET): Ditto.
2319         (ASM_OUTPUT_DWARF_PCREL): Ditto.
2320         * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
2321         (powerpc-*-darwin*): Ditto.
2322         * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
2323         to work correctly for Darwin.
2324         * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
2325         (STARTFILE_SPEC): Add crtbegin.o.
2326         (ENDFILE_SPEC): Define.
2327         (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
2328         (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
2329         (ASM_OUTPUT_DWARF_DELTA): Define.
2330         (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
2331         * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
2333 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
2335         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
2336         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
2337         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
2339 2002-09-12  Zack Weinberg  <zack@codesourcery.com>
2341         * toplev.c: Move default definition of USER_LABEL_PREFIX...
2342         * defaults.h: ... here.
2344 2002-09-12  Richard Henderson  <rth@redhat.com>
2346         * vax.c: Include tree.h earlier.
2348 2002-09-12  Stan Shebs  <shebs@apple.com>
2350         * config/darwin.c (machopic_finish): Remove #if 0 chunks.
2351         (machopic_operand_p): Ditto.
2353 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
2355         * config/arm/arm.c (arm_compute_initial_elimination_offset):
2356         Fix a comment typo.
2358 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
2360         * toplev.c (do_abort): Fix a comment typo.
2362 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
2364         * cselib.c: Fix comment formatting.
2365         * gengtype.c: Likewise.
2367 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
2369         * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
2370         (udivmodhi4): Likewise.
2372 2002-09-12  Graham Stott  <graham.stott@btinternet.com>
2373             Roger Sayle  <roger@eyesopen.com>
2375         * i386.c (any_fp_register_operand, fp_register_operand,
2376         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
2377         New predicate functions.
2378         * i386-protos.h:  Add their prototypes.
2379         * i386.h: Add them to PREDICATE_CODES.
2380         * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
2381         "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
2382         "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
2383         "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
2384         "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
2385         "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
2386         "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
2387         "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
2388         "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
2389         "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
2390         "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
2391         Use these new predicates to simplify and correct the use of
2392         FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
2394 2002-09-12  Jason Merrill  <jason@redhat.com>
2396         * diagnostic.c (output_add_identifier): New fn.
2397         * diagnostic.h: Declare it.
2399         * calls.c (store_one_arg): Use size_in_bytes to determine the
2400         amount of space to push.
2402 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
2404         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
2406 2002-09-12  Ulrich Weigand  <uweigand@de.ibm.com>
2408         * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
2409         * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
2410         (s390_select_ccmode): Likewise.
2411         (s390_branch_condition_mask): Likewise.
2412         (optimization_options): Do not set flag_branch_on_count.
2413         (s390_split_branches): Handle doloop branches.
2414         (s390_chunkify_pool): Likewise.
2415         * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
2416         ("doloop_end"): New expander.
2417         ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
2418         associated splitters): New.
2420 2002-09-11  Hartmut Penner  <hpenner@de.ibm.com>
2422         * fold-const.c (make_range): Only narrow to signed range if
2423         the signed range is smaller than the unsigned range.
2425 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
2427         * emit-rtl.c (set_mem_size): New function.
2428         * expr.h (set_mem_size): Declare.
2429         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
2430         (expand_block_move): Instead, use adjust_address and
2431         replace_equiv_address to generate proper aliasing info.
2432         Move common code out of conditionals.  Localize vars.
2434 2002-09-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
2436         * optabs.c (expand_binop): Minor cleanup.
2437         (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
2439 2002-09-11  Dan Nicolaescu  <dann@ics.uci.edu>
2441         * print-tree.c (print_node): Print the restrict qualifier.
2443 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
2445         * doc/install.texi: Fix typos.
2447 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
2449         * Makefile.in: Remove all references to s-under and underscore.c.
2450         * collect2.c, tlink.c: Change all uses of prepends_underscore
2451         to look directly at USER_LABEL_PREFIX.
2453 2002-09-11  David Edelsohn  <edelsohn@gnu.org>
2455         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
2456         alignment to csect.
2457         (rs6000_xcoff_unique_section): Only set section name for public
2458         data.
2459         (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
2460         * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
2461         duplicate definition.
2463 2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2465         * pa.md (extzv): Check predicates before emitting extzv_32.
2466         (insv): Likewise.
2468 2002-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2470         * config/s390/s390.h (MOVE_MAX): Define to correct value.
2471         (MAX_MOVE_MAX): Define.
2472         (MOVE_BY_PIECES_P): Define.
2473         (CLEAR_BY_PIECES_P): Define.
2475 2002-09-10  Denis Chertykov  <denisc@overta.ru>
2477         * config/avr/avr.md (movstrhi): Use right operands for conversion.
2479 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
2481         PR c/7873
2482         * arm.md (insv): Use reg_or_int_operand for operand[3].
2484 2002-09-10  David Edelsohn  <edelsohn@gnu.org>
2486         * rs6000.c (rs6000_assemble_visibility): Protect declaration
2487         inside macro.  Correct function definition typo.
2488         (rs6000_xcoff_section_type_flags): New function.
2489         (TARGET_SECTION_TYPE_FLAGS): Remove definition.
2490         (rs6000_elf_section_type_flags): Call default_section_type_flags_1
2491         with appropriate PIC test.
2492         (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
2493         determine readonly.
2494         (rs6000_binds_local_p): Combine PIC flags.
2495         * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
2496         * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
2498 2002-09-09  Per Bothner  <per@bothner.com>
2500         * print-tree.c (print_node):  In a STRING_CST, escape non-ascii
2501         characters, and only print TREE_STRING_LENGTH chars.
2503 2002-09-09  Steve Ellcey  <sje@cup.hp.com>
2505         * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
2506         (ASM_FILE_END) New.
2507         * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
2508         * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
2509         * config/ia64/ia64.c (ia64_asm_output_external): Create list
2510         of external functions if TARGET_HPUX_LD is true.
2511         (ia64_hpux_add_extern_decl): New, routine to put names on
2512         list of external functions.
2513         (ia64_hpux_asm_file_end): Put out declarations for external
2514         functions if and only if they are used.
2516 2002-09-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2518         * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
2519         on TARGET_64BIT before pic register restore.
2521 2002-09-09  David Edelsohn  <edelsohn@gnu.org>
2523         * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
2524         (TARGET_HAVE_TLS): New description.
2526 2002-09-09  Janis Johnson  <janis187@us.ibm.com>
2528         * doc/extend.texi (Statement Exprs): Fix broken link.
2530 2002-09-09  Denis Chertykov  <denisc@overta.ru>
2532         * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
2533         right conversion of operands[1].
2535 2002-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
2537         * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
2538         commutative.  Use "nonimmediate_operand" instead of "register_operand"
2539         as predicate for operand 0.  Move to after the "*tmXX_mem" insns.
2541         ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
2542         as commutative.
2544         ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
2545         mark as commutative.  Use "nonimmediate_operand" instead of
2546         "register_operand" as predicate for operand 1.
2548         ("movstrictsi"): Fix typo in insn name.
2550 2002-09-09  Jan Hubicka  <jh@suse.cz>
2552         * i386.c (index_register_operand): New.
2553         * i386.h (predicate_codes): Add new predicate.
2554         * i386.md (lea_general_*): Use index_regsiter_operand
2555         (ashift to lea splitter): Do not produce invalid leas
2556         (ashift to mov+ashift split): New.
2558 2002-09-09  Nick Clifton  <nickc@redhat.com>
2560         * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
2561         Fix folding marks.
2563 2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
2564             J"orn Rennecke <joern.rennecke@superh.com>
2566         * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
2568 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
2570         * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
2571         (function_ok_for_sibcall): Use binds_local_p.  Respect longcall
2572         attributes.
2574 2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2576         * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
2578 2002-09-08  Richard Henderson  <rth@redhat.com>
2580         * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
2581         (DW_OP_GNU_push_tls_address): New.
2582         (DW_OP_lo_user): Fix.
2583         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
2584         (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
2585         (size_of_loc_descr): Likewise.
2586         (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
2587         (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
2588         (loc_descriptor_from_tree): Handle TLS variables.
2589         (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
2590         (add_location_or_const_value_attribute): ... not here.  Defer
2591         to loc_descriptor_from_tree for TLS variables.
2593         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
2594         * config/i386/i386.c (i386_output_dwarf_dtprel): New.
2595         * config/i386/i386-protos.h: Update.
2597 2002-09-08  Roger Sayle  <roger@eyesopen.com>
2599         PR optimization/6405
2600         * unroll.c (loop_iterations): last_loop_insn should be the previous
2601         non-note instruction before loop->end.
2602         * loop.c (strength_reduce): The conditional jump is the last
2603         non-note instruction before loop->end (as above).
2605 2002-09-08  Roger Sayle  <roger@eyesopen.com>
2607         * combine.c (try_combine): Handle the case that undobuf.other_insn
2608         has been turned into a return or unconditional jump, by inserting
2609         a BARRIER if necessary.
2610         (simplify_set):  Test if a condition code setter has a constant
2611         comparison at compile time, if so convert this insn to a no-op move
2612         and update/simplify the condition code user (undobuf.other_insn).
2614 2002-09-08  Krister Walfridsson  <cato@df.lth.se>
2616         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
2617         (CLEAR_INSN_CACHE): Define.
2619 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
2621         * basic-block.h: Fix comment formatting.
2622         * c-common.c: Likewise.
2623         * c-common.h: Likewise.
2624         * c-lex.c: Likewise.
2625         * c-pretty-print.c: Likewise.
2626         * cfglayout.c: Likewise.
2627         * cfgloop.c: Likewise.
2628         * defaults.h: Likewise.
2629         * et-forest.c: Likewise.
2630         * explow.c: Likewise.
2631         * function.h: Likewise.
2632         * gcov.c: Likewise.
2633         * genattrtab.c: Likewise.
2634         * gengtype.c: Likewise.
2635         * ifcvt.c: Likewise.
2636         * libgcc2.c: Likewise.
2637         * loop.c: Likewise.
2638         * profile.c: Likewise.
2639         * ra-build.c: Likewise.
2640         * real.c: Likewise.
2641         * rtl.h: Likewise.
2642         * tracer.c: Likewise.
2643         * tree-inline.c: Likewise.
2644         * varasm.c: Likewise.
2646 2002-09-08  Jan Hubicka  <jh@suse.cz>
2648         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
2649         handling.
2651         * loop.c (loop_gics_reduce):  Emit addition after.
2653 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
2655         * varasm.c (default_assemble_visibility): Rename from
2656         assemble_visibility.
2657         * output.h: Here too.
2658         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
2659         * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
2661 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
2663         * reload.c (find_reloads <p constraint>): Pass operand_mode to
2664         find_reloads_address.
2666 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
2668         * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
2669         (anonymous pattern): Likewise.
2671 2002-09-07  Scott Snyder  <snyder@fnal.gov>
2673         PR target/7374
2674         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
2676 2002-09-07  Roger Sayle  <roger@eyesopen.com>
2678         * basic-block.h (struct loop): Remove unused cont_dominator field.
2680 2002-09-07  Igor Shevlyakov <igor@microunity.com>
2682         * varasm.c (decode_rtx_const): Don't check undefined field for
2683         CONST_VECTOR.
2685 2002-09-07  Glen Nakamura  <glen@imodulo.com>
2687         PR opt/7814
2688         * sched-deps.c (sched_analyze_insn): Make sure to add insn
2689         to reg_last->sets after flushing the dependency lists to guarantee
2690         that subsequent clobbers will be dependent on it.
2692 2002-09-07  Igor Shevlyakov <igor@microunity.com>
2694         * combine.c (simplify_shift_const): Calculate rotate count
2695         correctly for vector operands.
2697 2002-09-07  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>
2699         * c-typeck.c (c_tree_expr_nonnegative_p): New function.
2700         (build_binary_op): Call c_tree_expr_nonnegative_p rather than
2701         tree_expr_nonnegative_p.
2702         (build_conditional_expr): Likewise.
2703         * c-tree.h (c_tree_expr_nonnegative_p): Declare.
2705 2002-09-07  Richard Henderson  <rth@redhat.com>
2707         * builtins.def (inf, inff, infl): Mark const.
2708         (huge_val, huge_valf, huge_vall): Likewise.
2709         (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
2711         * real.c (ereal_inf): Clear E before use.
2713 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
2715         * config/h8300/h8300.md (udivmodqi4): Split the pattern into
2716         an expander and an anonymous pattern.  Zero out the upper half
2717         of the dividend in the expander.
2718         (udivmodqi4): Likewise.
2720 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
2722         * config/h8300/h8300.c: Fix formatting.
2723         * config/h8300/h8300.h: Likewise.
2724         * config/h8300/h8300.md: Likewise.
2726 2002-09-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2728         * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
2729         information.
2731 2002-09-07  Graham Stott  <graham.stott@btinternet.con>
2733        * rtlanal.c (dead_or_set_regno_p): Fix typo.
2735 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
2737         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2739         * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
2740         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
2741         (TARGET_ASM_OUT): Add the above here.
2742         * target.h (struct gcc_target): Add "visibility" field.
2743         * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
2744         * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
2745         (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
2746         (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
2748 2002-09-06  Ziemowit Laski <zlaski@apple.com>
2750         * c-lang.c (objc_is_id): New stub.
2751         * c-tree.h (objc_is_id): New forward declaration.
2752         * c-typeck.c (build_c_cast): Do not strip protocol
2753         qualifiers from 'id' type.
2754         * objc/objc-act.c (objc_comptypes): Correct handling
2755         of protocol qualifiers.
2756         (objc_is_id): New.
2758 Fri Sep  6 13:10:08 2002  Jeffrey A Law  (law@redhat.com)
2760         * pentium.md (pentium-firstvboth): Fix typo.
2762 2002-09-06      Dhananjay Deshpande <dhananjayd@kpit.com>
2764         * h8300.c (enum shift_alg): Move to earlier in h8300.c.
2765         (enum shift_type, enum h8_cpu): Likewise.
2766         (INL, ROT, LOP, SPC macros): Likewise.
2767         (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise.  Lose
2768         const designator.
2769         (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
2770         space efficient algorithms when optimize for codesize.
2772 Fri Sep  6 16:35:32 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2774         Fix PR/1727 and long-standing failing testcase
2775         objc/formal-protocol-6.m.
2776         * objc-act.c (build_protocol_expr): If compiling for the GNU
2777         runtime, create a list of Protocol statically allocated instances
2778         if it doesn't exist, then add the Protocol object to this same
2779         list.
2780         (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
2781         instead of TREE_CHAIN.
2783 Fri Sep  6 16:17:33 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2785         * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
2786         10k.  Fixed category dumping - print out category names with the
2787         proper syntax.  Print '@end\n' and not '\n@end' at the end of the
2788         interface.
2789         (finish_objc): Fixed the -gen-decls option.  It was printing out
2790         only the last class.  Dump an interface declaration of all classes
2791         being compiled instead.
2793 2002-09-06  Jason Thorpe  <thorpej@wasabisystems.com>
2795         * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
2796         prototype.
2797         * config/arm/arm.c (arm_gen_return_addr_mask): New function.
2798         * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
2799         if not APCS26 and not Thumb or ARMv4-or-higher.  Use gen_int_mode
2800         rather than GEN_INT.
2801         * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
2802         (return_addr_mask, *check_arch2): New.
2804 2002-09-06  Ulrich Weigand  <uweigand@de.ibm.com>
2806         * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
2807         "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
2808         "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
2809         "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
2810         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
2811         "adddf3", "*adddf3", "*adddf3_ibm",
2812         "addsf3", "*addsf3", "*addsf3_ibm",
2813         "muldi3", "mulsi3", "mulsidi3",
2814         "muldf3", "*muldf3", "*muldf3_ibm",
2815         "mulsf3", "*mulsf3", "*mulsf3_ibm",
2816         "*anddi3_cc", "*anddi3_cconly", "anddi3",
2817         "*andsi3_cc", "*andsi3_cconly", "andsi3",
2818         "*iordi3_cc", "*iordi3_cconly", "iordi3",
2819         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
2820         "*xordi3_cc", "*xordi3_cconly", "xordi3",
2821         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
2822         instead of "register_operand" as predicate for "%0" operand.
2824 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
2826         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
2827         unconditionally when gcc_cv_as_flags64 checks are gone.
2828         * configure: Rebuilt.
2830 2002-09-06  Alan Modra  <amodra@bigpond.net.au>
2832         * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
2833         2002-07-26 change.  Comment.
2835 2002-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2837         * frv.c (frv_unique_section, frv_select_section,
2838         frv_select_rtx_section): Delete.
2839         (frv_in_small_data_p): New.
2840         (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
2841         TARGET_ASM_SELECT_RTX_SECTION): Delete.
2842         (TARGET_IN_SMALL_DATA_P): Define.
2844 2002-09-05  Dale Johannesen  <dalej@apple.com>
2846         * reload1.c (reload):  Retain only those memory clobbers
2847         added for variable-array handling.
2849 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
2851         * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
2852         return-in-memory rules.
2853         * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
2855 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
2857         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
2858         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
2860 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
2862         * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
2863         not a compile-time constant for the non-IBM case.
2864         * config/arm/arm-protos.h (arm_float_words_big_endian): New
2865         prototype.
2866         * config/arm/arm.c (arm_float_words_big_endian): New function.
2867         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
2868         if TARGET_VFP  and not TARGET_HARD_FLOAT.
2869         (ARM_FLAG_VFP, TARGET_VFP): Define.
2870         (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
2872 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
2874         * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
2875         URLs.  Fix AIX wording.
2877 2002-09-05  Stan Shebs  <shebs@apple.com>
2879         * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
2880         -fPIC equivalent on Darwin.
2882 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
2884         * sh.c (sh_expand_builtin): Return early if encountering an
2885         error_mark for a type.
2887 2002-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2889         * config/s390/s390.c (s390_expand_plus_operand): Do not require
2890         double-word scratch register.
2891         config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
2893         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
2894         "*cli"): Replace s_operand by memory_operand.
2895         ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
2897 2002-09-05  Kazu Hirata  <kazu@cs.umass.edu>
2899         * config/h8300/h8300.c (asm_file_start): Add a missing
2900         semicolon.
2902 2002-09-04  Krister Walfridsson  <cato@df.lth.se>
2904         * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
2905         * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
2906         (ix86_output_addr_diff_elt) Likewise.
2907         (x86_output_mi_thunk) Likewise.
2908         * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
2910 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2912         * frv.c (frv_encode_section_info): Fix error in last change.
2914 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
2916         * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
2917         (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
2918         (TARGET_BINDS_LOCAL_P): Define.
2919         (rs6000_override_options): Save original flag_pic value.
2920         (rs6000_elf_select_section): Call default_elf_select_section_1.
2921         (rs6000_elf_unique_section): Call default_unique_section_1.
2922         (rs6000_elf_in_small_data_p): New function.
2923         (rs6000_xcoff_asm_named_section): Determine storage mapping class.
2924         (rs6000_xcoff_select_section): Update based on defaults.
2925         (rs6000_xcoff_unique_section): Set to basic name if not common.
2926         (rs6000_binds_local_p): New function.
2927         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
2928         targetm.have_srodata_section if SDATA_EABI.
2929         (TARGET_IN_SMALL_DATA_P): Define.
2931 2002-09-04  Dale Johannesen  <dalej@apple.com>
2933         * varasm.c (struct rtx_const, decode_rtx_const):
2934         Make veclo and vechi fields not share storage.
2936 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
2938         * loop.c (scan_loop): Don't mark separate insns out of a libcall
2939         for moving.
2940         (move_movables): Abort if we see the first insn of a libcall.
2942 2002-09-04  Richard Henderson  <rth@redhat.com>
2944         * builtin-types.def (BT_FN_FLOAT): New.
2945         (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
2946         * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
2947         BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
2948         * builtins.c (fold_builtin_inf): New.
2949         (fold_builtin): Call it.
2950         * real.c (ereal_inf): New.
2951         * real.h: Declare it.
2952         * doc/extend.texi: Document new builtins.
2954 2002-09-04  Richard Henderson  <rth@redhat.com>
2956         * cse.c (cse_insn): Avoid subreg games if the equivalence
2957         is already in the proper mode.
2959 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
2961         PR c/7102
2962         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
2964 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2966         * pa.md (setccfp0, setccfp1): New patterns.
2968 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2970         * frv-protos.h (frv_init_builtins, frv_expand_builtin,
2971         frv_select_section, frv_select_rtx_section,
2972         frv_encode_section_info, frv_unique_section): Delete.
2973         * frv.c: Update for target hooks.
2974         * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
2975         SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
2976         EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
2978 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2980         * ip2k-protos.h (function_prologue, function_epilogue,
2981         encode_section_info): Update to match target hook specification.
2982         * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
2983         (function_prologue, function_epilogue, encode_section_info):
2984         Update to match target hook specification.
2985         * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
2986         ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
2987         (NOTICE_UPDATE_CC): Cast to void.
2988         * ip2k.md: Add defaults in switch statements.
2990 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
2992         * doc/trouble.texi (Interoperation): Update information about C++ ABI
2993         issues.
2995 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
2997         * config/sparc/t-netbsd64: Disable multilib for now.
2999 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
3001         * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
3002         * target.h (gcc_target): Add have_srodata_section member.
3003         * varasm.c (section_category): Add SECCAT_SRODATA.
3004         (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
3005         READONLY_SDATA_SECTION defined.
3006         (decl_readonly_section_1): True for SECCAT_SRODATA also.
3007         (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
3008         (default_unique_section_1): Likewise.
3010 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3012         * expr.c (emit_group_load): Revise to allow splitting TCmode source
3013         into DImode pieces.
3015         * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
3016         * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
3017         for floating-point register class.
3018         * pa.c (function_arg): Fix handling of modes wider than one word for
3019         TARGET_64BIT.
3021 Wed Sep  4 18:48:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
3023         * combine.c (make_compound_operation): Don't generate zero / sign
3024         extensions in floating point modes.
3026 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
3028         * doc/c-tree.texi: Fix overfull hboxes.
3029         * doc/cppopts.texi: Ditto.
3030         * doc/extend.texi: Ditto.
3031         * doc/gty.texi: Ditto.
3032         * doc/invoke.texi: Ditto.
3033         * doc/makefile.texi: Ditto.
3034         * doc/rtl.texi: Ditto.
3035         * doc/standards.texi: Ditto.
3036         * doc/tm.texi: Ditto.
3038 2002-09-04  Richard Henderson  <rth@redhat.com>
3040         * c-common.c (builtin_define_with_hex_fp_value): New.
3041         (builtin_define_float_constants): Use it.  Fix H_FLOAT mant_dig.
3043 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
3045         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
3046         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
3047         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
3048         Warn that these options can break ABI compatibility.
3050 2002-09-04  Richard Henderson  <rth@redhat.com>
3052         * real.c (ereal_to_decimal): Add digits parameter.
3053         * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
3054         * c-pretty-print.c (pp_c_real_literal): Update call.
3055         * print-rtl.c (print_rtx): Likewise.
3056         * print-tree.c (print_node_brief, print_node): Likewise.
3057         * sched-vis.c (print_value): Likewise.
3058         * config/arc/arc.c (arc_print_operand): Likewise.
3059         * config/c4x/c4x.c (c4x_print_operand): Likewise.
3060         * config/i370/i370.h (PRINT_OPERAND): Likewise.
3061         * config/i386/i386.c (print_operand): Likewise.
3062         * config/i960/i960.c (i960_print_operand): Likewise.
3063         * config/ip2k/ip2k.c (asm_output_float): Likewise.
3064         * config/m32r/m32r.c (m32r_print_operand): Likewise.
3065         * config/m68hc11/m68hc11.c (print_operand): Likewise.
3066         * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
3067         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
3068         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
3069         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
3070         * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
3071         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
3072         * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
3073         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
3074         * config/mips/mips.c (print_operand): Likewise.
3075         * config/ns32k/ns32k.c (print_operand): Likewise.
3076         * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
3077         * config/vax/vax.h (PRINT_OPERAND): Likewise.
3078         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
3080 2002-09-04  Bob Wilson  <bob.wilson@acm.org>
3082         * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
3083         xtensa_multibss_section_type_flags.
3084         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
3086 2002-09-04  Richard Henderson  <rth@redhat.com>
3088         * doc/install-old.texi: Don't mention enquire.
3089         * doc/sourcebuild.texi: Update float.h description.
3091 Wed Sep  4 11:22:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
3093         * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
3095 2002-09-03  David Edelsohn  <edelsohn@gnu.org>
3097         * varasm.c (default_section_type_flags): Append _1 to name with
3098         shlib parameter.  Use original name to call new function with
3099         implicit flag_pic.
3100         (decl_readonly_section): Likewise.
3101         (default_elf_select_section): Likewise.
3102         (default_unique_section): Likewise.
3103         (default_bind_local_p): Likewise.
3104         (categorize_decl_for_section): Add shlib parameter to use in place
3105         of implicit flag_pic.
3106         * output.h: Declare new functions with _1 and shlib argument.
3108 2002-09-03  Janis Johnson  <janis187@us.ibm.com>
3110         * doc/install.texi: Fix typos, formatting problems, and obvious
3111         overfull/underfull boxes.
3113         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
3114         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
3115         include its file, compat.texi.
3116         * doc/compat.texi: New file with new chapter, Binary Compatibility.
3118 2002-09-03  Neil Booth  <neil@daikokuya.co.uk>
3120         Debian BTS Bug #157416
3121         * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
3122         * cpplib.c (destringize_and_run): Kludge around getting
3123         tokens from in-progress macros.
3124         (_cpp_do__Pragma): Simplify.
3126 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
3128         * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
3129         (CPP_CPU_SPEC): Remove.
3130         (TARGET_CPU_CPP_BUILTINS): New.
3131         * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
3132         (CPP_SPEC): Remove.
3133         (TARGET_OS_CPP_BUILTINS): New.
3134         * config/ia64/linux.h (CPP_PREDEFINES): Remove.
3135         (TARGET_OS_CPP_BUILTINS): New.
3136         * config/ia64/aix.h (CPP_SPEC): Move some stuff to
3137         TARGET_OS_CPP_BUILTINS.
3138         (CPP_PREDEFINES): Remove.
3139         (CPLUSPLUS_CPP_SPEC): Remove.
3140         (TARGET_OS_CPP_BUILTINS): New.
3142 2002-09-03  Richard Henderson  <rth@redhat.com>
3144         * Makefile.in (USER_H): Add ginclude/float.h.
3145         (FLOAT_H): Remove.
3146         (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
3147         (mostlyclean): Don't remove float.h intermediate files.
3148         (distclean): Don't remove float.h.
3149         * config.gcc: Remove all float_format references.
3150         * configure.in (float_format, float_h_file): Remove.
3152         * c-common.c: Include tree-inline.h.
3153         (builtin_define_with_int_value): New.
3154         (builtin_define_type_precision): Use it.
3155         (builtin_define_float_constants): New.
3156         (cb_register_builtins): Use it.  Define __FLT_RADIX__ and
3157         __FLT_EVAL_METHOD__.
3158         * defaults.h (TARGET_FLT_EVAL_METHOD): New.
3159         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
3160         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
3161         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
3162         (TARGET_FLT_EVAL_METHOD): New.
3164         * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
3165         config/float-i386.h, config/float-i64.h, config/float-m68k.h,
3166         config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
3167         * ginclude/float.h: New.
3169 2002-09-03  Stan Shebs  <shebs@apple.com>
3171         * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
3172         (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
3173         (PREFERRED_DEBUGGING_TYPE): Ditto.
3174         (ASM_OUTPUT_IDENT): Remove empty definition.
3176 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
3178         * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
3179         cxx_target.
3180         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
3181         handling routine for builtin pragma.
3182         * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
3183         Registered pragma handling routine.
3184         * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
3185         (ia64_hpux_add_pragma_builtin) New subroutine used by above.
3186         If builtin pragma seen for math routine and C89 conformance is
3187         requested use different math function in order to set errno.
3188         * t-ia64 (ia64-c.o): Add new rule for new file.
3190 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
3192         * config/s390/s390.md ("movti"): Add Q->Q alternative.
3193         ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
3194         "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
3196         ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
3197         "*movsf_ss"): Remove.
3199 2002-09-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3201         * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
3202         Delete macros.
3204 2002-09-03   Arati Dikey  <aratid@kpit.com>
3206         * h8300.c (asm_file_start): Corrected optimization comment.
3208 2002-09-03  Stan Shebs  <shebs@apple.com>
3210         * c-lang.c (recognize_objc_keyword): Remove, no longer used.
3211         * c-tree.h (recognize_objc_keyword): Remove decl.
3212         * c-typeck.c (comp_target_types): Update a comment.
3214 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
3216         * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
3217         and register validity checks.
3218         (general_s_operand): Adapt to s390_decompose_address interface change.
3219         (q_constraint): Likewise.
3220         (s390_expand_plus_operand): Likewise.
3221         (legitimiate_address_p): Likewise.
3222         (legitimate_la_operand_p): Likewise.
3223         (legitimize_la_operand): Likewise.
3224         (print_operand_address): Likewise.
3225         (print_operand): Likewise.
3227 Tue Sep  3 11:32:14 2002  Nicola Pero  <n.pero@mi.flashnet.it>
3229         PR objc/5956:
3230         * objc/objc-act.c (build_typed_selector_reference): Fix typo which
3231         was causing the new selector never to match the existing ones
3232         (Patch by Alexander Malmberg <alexander@malmberg.org>).
3234 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
3236         * config/i386/i386.md ("femms"): Add "memory" attr "none".
3238 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
3240         * expr.c (expand_expr): Remove extraneous comment and code.
3242 2002-08-31  Richard Henderson  <rth@redhat.com>
3244         * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
3246 2002-08-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3248         * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
3250 2002-08-30  Richard Henderson  <rth@redhat.com>
3252         PR opt/7515
3253         * c-objc-common.c: Include target.h.
3254         (c_cannot_inline_tree_fn): Don't auto-inline functions that
3255         don't bind locally.  Factor setting DECL_UNINLINABLE.
3256         * Makefile.in (c-objc-common.o): Update.
3258 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
3260         * doc/install.texi (Configuration, Building): Fix a typo and
3261         some formatting directives.
3263 2002-08-30  Paul Koning <pkoning@equallogic.com>
3265         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
3266         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
3267         implemented" note.
3268         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
3269         for alphabetic order.
3270         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
3271         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
3272         (VAX_HALFWORD_ORDER): Document.
3273         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
3274         IEEE float format.
3275         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
3276         (ASM_OUTPUT_LABEL_REF): Fix font.
3277         (CASE_VECTOR_SHORTEN_MODE): Ditto.
3279 2002-08-30  Denis Chertykov  <denisc@overta.ru>
3281         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
3282         stuff.
3283         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
3284         CONST_DOUBLE constants.
3286 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
3288         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
3289         related defines to...
3290         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
3291         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
3292         as a no-op.
3294 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
3296         * config/arm/arm.c (arm_asm_output_labelref): New function.
3297         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
3298         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
3300 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
3302         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
3303         memory exhausted" workarounds.
3305 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3307         * diagnostic.c (fancy_abort): Don't repeat "internal error".
3308         * toplev.c (crash_signal): Likewise.
3310 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
3312         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
3313         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
3314         Extended, updated documentation.
3315         (-Wundeclared-selector): Documented.
3317 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
3319         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
3320         the value 1.  Do not undef before defining.
3321         * config/darwin.h: Likewise.
3322         * config/dbx.h: Likewise.
3323         * config/dbxcoff.h: Likewise.
3324         * config/dbxelf.h: Likewise.
3325         * config/elfos.h: Likewise.
3326         * config/interix.h: Likewise.
3327         * config/lynx-ng.h: Likewise.
3328         * config/lynx.h: Likewise.
3329         * config/netware.h: Likewise.
3330         * config/psos.h: Likewise.
3331         * config/svr3.h: Likewise.
3332         * config/alpha/alpha.h: Likewise.
3333         * config/alpha/elf.h: Likewise.
3334         * config/alpha/vms.h: Likewise.
3335         * config/arc/arc.h: Likewise.
3336         * config/arm/aout.h: Likewise.
3337         * config/arm/coff.h: Likewise.
3338         * config/c4x/c4x.h: Likewise.
3339         * config/h8300/h8300.h: Likewise.
3340         * config/i386/cygwin.h: Likewise.
3341         * config/i386/djgpp.h: Likewise.
3342         * config/i386/gas.h: Likewise.
3343         * config/i386/gstabs.h: Likewise.
3344         * config/i386/i386-coff.h: Likewise.
3345         * config/i386/i386-interix.h: Likewise.
3346         * config/i386/sco5.h: Likewise.
3347         * config/i386/svr3dbx.h: Likewise.
3348         * config/i386/sysv3.h: Likewise.
3349         * config/i386/win32.h: Likewise.
3350         * config/i386/x86-64.h: Likewise.
3351         * config/i960/i960.h: Likewise.
3352         * config/ia64/ia64.h: Likewise.
3353         * config/ip2k/ip2k.h: Likewise.
3354         * config/m32r/m32r.h: Likewise.
3355         * config/m68k/3b1.h: Likewise.
3356         * config/m68k/3b1g.h: Likewise.
3357         * config/m68k/ccur-GAS.h: Likewise.
3358         * config/m68k/coff.h: Likewise.
3359         * config/m68k/hp2bsd.h: Likewise.
3360         * config/m68k/hp310g.h: Likewise.
3361         * config/m68k/hp320g.h: Likewise.
3362         * config/m68k/hp3bsd.h: Likewise.
3363         * config/m68k/hp3bsd44.h: Likewise.
3364         * config/m68k/linux-aout.h: Likewise.
3365         * config/m68k/m68k-aout.h: Likewise.
3366         * config/m68k/mot3300.h: Likewise.
3367         * config/m68k/netbsd.h: Likewise.
3368         * config/m68k/openbsd.h: Likewise.
3369         * config/m68k/pbb.h: Likewise.
3370         * config/m68k/plexus.h: Likewise.
3371         * config/m68k/sun2.h: Likewise.
3372         * config/m68k/sun3.h: Likewise.
3373         * config/m68k/tower-as.h: Likewise.
3374         * config/m68k/vxm68k.h: Likewise.
3375         * config/m88k/aout-dbx.h: Likewise.
3376         * config/m88k/m88k-aout.h: Likewise.
3377         * config/mcore/mcore-elf.h: Likewise.
3378         * config/mcore/mcore-pe.h: Likewise.
3379         * config/mips/elf.h: Likewise.
3380         * config/mips/elf64.h: Likewise.
3381         * config/mips/iris5gas.h: Likewise.
3382         * config/mips/iris6.h: Likewise.
3383         * config/mips/mips.h: Likewise.
3384         * config/mips/sni-gas.h: Likewise.
3385         * config/mmix/mmix.h: Likewise.
3386         * config/ns32k/netbsd.h: Likewise.
3387         * config/pa/pa64-hpux.h: Likewise.
3388         * config/romp/romp.h: Likewise.
3389         * config/rs6000/sysv4.h: Likewise.
3390         * config/rs6000/xcoff.h: Likewise.
3391         * config/sh/coff.h: Likewise.
3392         * config/sh/elf.h: Likewise.
3393         * config/sparc/linux64.h: Likewise.
3394         * config/sparc/liteelf.h: Likewise.
3395         * config/sparc/netbsd.h: Likewise.
3396         * config/sparc/openbsd.h: Likewise.
3397         * config/sparc/pbd.h: Likewise.
3398         * config/sparc/sp64-elf.h: Likewise.
3399         * config/sparc/sp86x-elf.h: Likewise.
3400         * config/sparc/sparc.h: Likewise.
3401         * config/vax/vax.h: Likewise.
3402         * config/vax/vaxv.h: Likewise.
3404 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
3406         * h8300.c (shift_alg_hi): Various tweaks to improve performance
3407         of HImode shifts.
3408         (get_shift_alg): Corresponding changes.
3410 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3412         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
3414 2002-08-29  Richard Henderson  <rth@redhat.com>
3416         * expr.h (enum block_op_methods): New.
3417         (emit_block_move): Update prototype.
3418         * expr.c (block_move_libcall_safe_for_call_parm): New.
3419         (emit_block_move_via_loop): New.
3420         (emit_block_move): Use them.  New argument METHOD.
3421         (emit_push_insn): Always respect the given alignment.
3422         (expand_assignment): Update call to emit_block_move.
3423         (store_expr, store_field, expand_expr): Likewise.
3424         * builtins.c (expand_builtin_apply): Likewise.
3425         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
3426         * function.c (expand_function_end): Likewise.
3427         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
3428         * config/sparc/sparc.c (sparc_va_arg): Likewise.
3429         * calls.c (expand_call, emit_library_call_value_1): Likewise.
3430         (save_fixed_argument_area): Use emit_block_move with
3431         BLOCK_OP_CALL_PARM instead of move_by_pieces.
3432         (restore_fixed_argument_area): Likewise.
3433         (store_one_arg): Fix alignment parameter to emit_push_insn.
3435 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3437         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
3439 2002-08-29  Catherine Moore  <clm@redhat.com>
3441         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
3442         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
3443         (PREDICATE_CODES): Include new predicates.
3444         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
3445         (TARGET_SWITCHES):  Add strict-align.
3446         (TARGET_STRICT_ALIGN): New.
3447         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.
3448         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3449         Define.
3450         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
3451         v850_muldi3.
3452         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
3453         L_callt_save_r2_r31, L_return_r2_r31,
3454         L_save_all_interrupt): Change addi to add.
3455         (L_save_interrupt, L_return_interrupt): Rework.
3456         (__return_r31):  Correct .size directive.
3457         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
3458         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
3459         New routines.
3460         * config/v850/v850.c (expand_prologue): Call
3461         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
3462         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
3463         (reg_or_int9_operand): New predicate.
3464         (reg_or_const_operand): New routine.
3465         * config/v850/v850.md (return_interrupt): Changed from
3466         restore_interrupt.
3467         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
3468         (callt_save_interrupt): Change save sequence.
3469         (callt_return_interrupt): New.
3470         (save_interrupt): Don't use runtime function for LONG_CALLS
3471         and TARGET_PROLOG_FUNCTION.
3472         (save_all_interrupt): Likewise.
3473         (mulsi3): Use new predicate.
3474         (moviscc): Disallow some combination of constants.
3475         Fix define_split for sasf insns, so that it will not generate bad
3476         code if operand0 and operand5 are the same.
3477         * config/v850/v850-protos.h: Prototype new predicates.
3479 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3481         * c-common.c (builtin_define_type_precision): New function.
3482         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
3483         wchar_t is unsigned in C++.
3484         * doc/cpp.texi (Common Predefined Macros): Document
3485         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
3486         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
3487         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
3489 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
3491         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
3492         section.  Mention that it is enabled by -Wall.
3493         (-Wall): Mention that there can be language-specific warnings as well.
3494         (-Wctor-dtor-privacy): Mention that it is enabled by default.
3495         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
3497 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
3499         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
3500         if it is ever live.
3502         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
3503         attribute for SHCOMPACT.
3505         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
3506         appropriately.
3507         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
3508         by the ABI.
3510         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
3512 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
3514         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
3515         "MASK_GAS|MASK_ABICALLS".
3516         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
3517         (TARGET_DEFAULT): Remove.
3518         (MACHINE_TYPE): Undefine before defining.
3519         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
3521 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
3523         * c-common.c (warn_abi): New variable.
3524         * c-common.h (warn_abi): Likewise.
3525         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
3526         (c_common_decode_option): Handle it.
3527         * doc/invoke.texi: Document -Wabi.
3529 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
3531         * c-common.c (warn_undeclared_selector): New variable.
3532         * c-common.h (warn_undeclared_selector): Idem.
3533         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
3534         to on when -Wundeclared-selector is found.
3535         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
3536         * objc/objc-act.c (build_selector_expr): If
3537         warn_undeclared_selector is set, check that the selector has
3538         already been defined, and emit a warning if not.
3540 2002-08-27  Nick Clifton  <nickc@redhat.com>
3541             Catherine Moore  <clm@redhat.com>
3542             Jim Wilson  <wilson@cygnus.com>
3544         * config.gcc: Add v850e-*-* target.
3545         Add --with-cpu= support for v850.
3546         * config/v850/lib1funcs.asm: Add v850e callt functions.
3547         * config/v850/v850.h: Add support for v850e target.
3548         * config/v850/v850.c: Add functions to support v850e target.
3549         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
3550         * config/v850/v850.md: Add patterns for v850e instructions.
3551         * doc/invoke.texi: Document new v850e command line switches.
3553 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
3554                           Aldy Hernandez <aldyh at redhat dot com>
3556         * doc/tm.texi: Applied numerous fixes to the automaton based
3557         scheduler descrition.
3559 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
3561         * i386.c (classify_argument): Handle variable sized objects.
3563 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
3565         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
3567 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3569         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
3571 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3573         * i386.c (classify_argument): Properly compute word size of the analyzed object.
3575 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
3577         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
3578         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
3579         accordingly.
3580         (attribute insn_class): Provide default definitions based on type.
3581         Remove all insn-specific settings.
3582         (various function units): Remove old SH4 scheduling.
3583         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
3584         New attributes.  Set them where appropriate.
3585         (cpu unit FS): Don't define / use.
3586         (F3, load_store): New cpu units.
3587         (F01): New reservation.
3588         (all insn_reservations): Make dependent on sh4 pipeline model.
3589         Fix latencies.
3590         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
3591         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
3592         (mt insn_reservation): Use type mt_group.
3593         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
3594         sh4_fload and sh4_store.
3595         (insn_reservation branch_zero and branch): Replace with sh4_branch.
3596         (insn_reservation branch_far): Replace with sh4_return.
3597         (insn_reservation return_from_exp): Rename to:
3598         (sh4_return_from_exp).  Change to be just d_lock*5.
3599         (insn_reservation lds_to_pr): Rename to:
3600         (sh4_lds_to_pr).  Change to be just d_lock*2.
3601         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
3602         d_lock*2.
3603         (insn_reservation prload_mem): Rename to:
3604         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
3605         (insn_reservation fpscr_store): Rename to:
3606         (fpscr_load).  Change to d_lock,nothing,F1*3.
3607         (insn_reservation fpscr_store_mem): Rename to:
3608         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
3609         (insn_reservation multi): Change to
3610         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
3611         (insn_reservation fp_arith): Change to issue,F01,F2.
3612         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
3613         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
3614         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
3615         (insn_reservation fp_double_cmp): Change to
3616         d_lock,(d_lock+F01),F1+F2,F2.
3617         (insn_reservation dp_div): Change to
3618         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
3619         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
3620         (sh_adjust_cost, SHcompact): Differentiate between different
3621         kinds of dependencies.  Drop factor of ten for superscalar.
3622         Use new instruction types.  Add new exception rules.
3624         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
3626         * sh.md (mperm_w): Add DONE.
3628 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
3630         * longlong.h: Import current PowerPC defintion from GMP-4.1.
3632         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
3634         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
3636 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
3638         * sh.h (MAX_FIXED_MODE_SIZE): Define.
3640 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
3642         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
3643         delimiter.
3645 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3647         * c-common.c (cpp_define_data_format): New function.
3648         (cb_register_builtins): Call it.
3650         * doc/cpp.texi (Common Predefined Macros): Document
3651         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
3652         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
3653         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
3654         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
3655         __TARGET_USES_VAX_H_FLOAT__.
3657 2002-08-26  Ziemowit Laski <zlaski@apple.com>
3659         * objc/objc-act.c (get_super_receiver): If inside a class method
3660         of a category, cast the receiver to 'id' before accessing the 'isa'
3661         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
3663 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
3665         * config/s390/s390-protos.h (s390_function_prologue,
3666         s390_function_epilogue): Remove.
3667         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
3668         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
3670         config/s390/s390.c (s390_machine_dependent_recorg): New function.
3671         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
3672         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
3673         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
3674         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
3676         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
3677         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
3678         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
3679         function is not a leaf function.  Use save_gprs and restore_gprs.
3680         (s390_emit_epilogue): Likewise.
3681         (save_gprs, restore_gprs): New functions.
3682         (struct s390_frame): Remove return_reg_saved_p member.
3683         (save_fprs_p): Remove.
3684         (s390_optimize_prolog): New function.
3685         (s390_legitimate_reload_constant): Remove now unnecessary check.
3687         (s390_function_count): Remove.
3688         (s390_output_symbolic_const): Replace s390_function_count by
3689         current_function_funcdef_no.
3690         (s390_output_constant_pool): Likewise.
3692         (legitimize_pic_address): Use regs_ever_live to track PIC register
3693         instead of current_function_uses_pic_offset_table.
3694         (s390_emit_prologue): Likewise.
3695         config/s390/s390.md ("call", "call_value"): Likewise.
3697 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
3699         * c-opts.c (find_opt): Don't complain about wrong languages
3700         here.  Return exact matches even for wrong language.
3701         (c_common_decode_option): Complain about wrong languages
3702         here.
3704 2002-08-24  Stuart Hastings  <stuart@apple.com>
3706         * function.h (struct function): Add flag
3707         all_throwers_are_sibcalls.
3708         * except.c (set_nothrow_function_flags): Replaces
3709         nothrow_function_p. Set new flag.
3710         * except.h (set_nothrow_function_flags): Replaces
3711         nothrow_function_p.
3712         * dwarf2out.c (struct dw_fde_struct): Add flag
3713         all_throwers_are_sibcalls.
3714         (output_call_frame_info): Test it.
3715         (dwarf2out_begin_prologue) Propagate it from cfun to
3716         dw_fde_struct.
3717         * toplev.c (rest_of_compilation): Update calls to
3718         nothrow_function_p.
3720 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
3722         * ggc-page.c (compute_inverse): Short circuit calculation for
3723         object sizes larger than half a page.
3725 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
3727         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
3728         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
3729         default.
3730         (rs6000_elf_unique_section): Likewise.
3732 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3734         * ns32k.c (ns32k_globalize_label): Delete.
3735         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
3737 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
3739         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
3740         for loading delta with num_insns_constant_wide.  Calculate
3741         delta_low, delta_high without using a conditional.
3743 2002-08-22  Jason Merrill  <jason@redhat.com>
3745         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
3746         * c-common.def: Adjust.
3747         * c-dump.c (c_dump_tree): Adjust.
3748         * c-semantics.c (genrtl_return_stmt): Adjust.
3749         * c-pretty-print.c (pp_c_statement): Adjust.
3750         * tree-inline.c (copy_body_r): Adjust.
3752 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
3754         * ggc-page.c: Avoid division in ggc_set_mark.
3755         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
3756         compute_inverse): New.
3757         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
3758         (init_ggc): Initialize inverse_table.
3760 2002-08-22  Tom Tromey  <tromey@redhat.com>
3762         * doc/install.texi (Configuration): Document --datadir.
3764 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
3766         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
3768 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
3770         * gengtype-lex.l (ID): Allow underscore as first character.
3772 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
3774         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
3775         function.
3776         (rs6000_xcoff_asm_named_section): Rename.
3777         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
3779 2002-08-21  Tom Tromey  <tromey@redhat.com>
3781         For PR java/6005 and PR java/7611:
3782         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
3783         (fold): Likewise.
3784         * langhooks.c (lhd_can_use_bit_fields_p): New function.
3785         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
3786         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
3787         (LANG_HOOKS_INITIALIZER): Use it.
3788         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
3789         field.
3791 2002-08-21  Stan Shebs  <shebs@apple.com>
3793         * tree.c (finish_vector_type): Fix a typo in a comment.
3794         * Makefile.in: Fix "the the" stutters in comments.
3795         * genautomata.c: Ditto.
3796         * ifcvt.c: Ditto.
3797         * regrename.c: Ditto.
3798         * config/alpha/alpha.c: Ditto.
3799         * config/alpha/vms-crt0-64.c: Ditto.
3800         * config/alpha/vms-crt0.c: Ditto.
3801         * config/alpha/vms-psxcrt0-64.c: Ditto.
3802         * config/alpha/vms-psxcrt0.c: Ditto.
3803         * config/d30v/d30v.h: Ditto.
3804         * config/fr30/fr30.h: Ditto.
3805         * config/rs6000/rs6000.c: Ditto.
3806         * config/stormy16/stormy16.h: Ditto.
3807         * doc/md.texi: Ditto.
3809 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3811         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
3813 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
3815         * c-decl.c (grokdeclarator): Make invalid combinations with long,
3816         short, signed or unsigned into hard errors.  Fixes PR c/4319.
3817         Also make duplicate modifiers such as "short short" into hard
3818         errors.
3820 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
3821             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3823         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
3824         to the actual end.  Add '@end table' and '@table @code'.
3826 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
3828         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
3830         * unroll.c (biv_total_increment): Don't try to compute the total
3831         increment for FP BIVs.
3833 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3835         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
3836         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
3837         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3838         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
3839         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
3840         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
3841         (GLOBAL_ASM_OP): Define.
3842         * arm.c (aof_globalize_label): New function.
3843         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
3844         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3845         * c4x.c (c4x_globalize_label): New function.
3846         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
3847         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
3848         (GLOBAL_ASM_OP): Define.
3849         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
3850         * darwin-protos.h (darwin_globalize_label): Declare.
3851         * darwin.c (darwin_globalize_label): New function.
3852         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
3853         (ASM_GLOBALIZE_LABEL): Delete.
3854         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
3855         * dsp16xx.c (asm_output_common): Use target hook.
3856         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
3857         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
3858         (GLOBAL_ASM_OP): Define.
3859         * i370.c (i370_globalize_label): New function.
3860         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
3861         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
3862         * i386.c (ix86_asm_file_end): Use target hook.
3863         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
3864         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
3865         * ia64.c (ia64_asm_output_external): Likewise.
3866         * ia64/sysv4.h: Update comment.
3867         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3868         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3869         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
3870         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3871         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
3872         * mmix-protos.h (mmix_asm_globalize_label): Delete.
3873         * mmix.c (mmix_asm_globalize_label): Likewise.
3874         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
3875         (GLOBAL_ASM_OP): Define.
3876         * ns32k.c (ns32k_globalize_label): New function.
3877         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
3878         (ASM_GLOBALIZE_LABEL): Delete.
3879         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
3880         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
3881         * pa.c (pa_globalize_label): New function.
3882         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
3883         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
3884         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
3885         (GLOBAL_ASM_OP): Define.
3886         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
3887         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3888         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
3889         (GLOBAL_ASM_OP): Define.
3890         * v850.c (v850_output_aligned_bss): Use target hook.
3891         * vax.c (vms_globalize_label): New function.
3892         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
3893         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
3894         (GLOBAL_ASM_OP): Define.
3895         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
3896         * doc/tm.texi: Update docs.
3897         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
3898         target hook.
3899         * final.c (output_alternate_entry_point): Likewise.
3900         * hooks.c (hook_FILEptr_constcharptr_void): New function.
3901         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
3902         * output.h (assemble_global): Delete.
3903         (default_globalize_label): Declare.
3904         * system.h (ASM_GLOBALIZE_LABEL): Poison.
3905         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
3906         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
3907         * target.h (gcc_target): Add globalize_label member.
3908         * varasm.c (asm_output_bss, asm_output_aligned_bss,
3909         globalize_decl): Use target hook.
3910         (assemble_global): Delete.
3911         (default_globalize_label): New function.
3913 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3915         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
3917 2002-08-20  Devang Patel  <dpatel@apple.com>
3918         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
3920 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3922         * arc.c (output_shift): Use stdio instead of asm_fprintf.
3923         * arm.c (thumb_output_function_prologue): Likewise.
3924         * avr.c (print_operand): Likewise.
3925         * c4x.c (c4x_print_operand): Likewise.
3926         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
3927         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
3928         * cris.c (cris_target_asm_function_prologue,
3929         cris_asm_output_mi_thunk): Likewise.
3930         * h8300.c (print_operand): Likewise.
3931         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3932         * ip2k.c (print_operand): Likewise.  Fix format specifier.
3933         * m68hc11.c (asm_print_register, print_operand,
3934         print_operand_address): Use stdio instead of asm_fprintf.
3935         (print_operand_address): Fix format specifier.
3936         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
3937         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
3938         asm_fprintf.
3939         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3940         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3941         * m68k.c (m68k_output_function_prologue,
3942         m68k_output_function_epilogue, print_operand): Likewise.
3943         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
3944         Likewise.  Fix format specifier.
3945         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3946         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3947         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3949 2002-08-15  Eric Christopher  <echristo@redhat.com>
3950             Jeff Knaggs  <jknaggs@redhat.com>
3952         * config.gcc (mipsisa64sr71k-elf): New target.
3953         * config/mips/sr71k.md: New file.
3954         * config/mips/mips.md: Use it.
3955         (rot*): Add sr71k specifics.
3956         * config/mips/t-sr71k: New file.
3957         * config/mips/mips.h (sr71k): New cpu.
3958         (TARGET_SR71K): Use it.
3959         (TUNE_SR71K): Ditto.
3960         (GENERATE_BRANCHLIKELY): Ditto.
3961         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
3962         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
3963         * config/mips/mips.c (sr71k): New cpu.
3964         (mips_use_dfa_pipeline_interface): Use.
3966 2002-08-15  Eric Christopher  <echristo@redhat.com>
3967             Richard Sandiford <rsandifo@redhat.com>
3968             Aldy Hernandez  <aldyh@redhat.com>
3969             Graham Stott    <grahams@redhat.com>
3970             Michael Meissner  <meissner@redhat.com>
3971             Gavin Romig-Koch  <gavin@redhat.com>
3972             Ken Raeburn  <raeburn@cygnus.com>
3973             Alexandre Oliva <aoliva@redhat.com>
3975         * config.gcc (mips64vr-elf): New target.
3976         * config/mips/5400.md: New file.
3977         * config/mips/5500.md: Ditto.
3978         * config/mips/mips.md: Use them.
3979         (frsqrt): New.
3980         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
3981         cpus.
3982         (mips_issue_rate): Use them.
3983         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
3984         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
3985         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
3986         cpus.
3987         (TARGET_MIPSx): Use them.
3988         (TUNE_MIPSx): Ditto.
3989         (GETNATE_MULT3_SI): Ditto.
3990         (ISA_HAS_BRANCHLIKELY): Ditto.
3991         (ISA_HAS_CONDMOVE): Ditto.
3992         (ISA_HAS_NMADD_NMSUB): Ditto.
3993         (ISA_HAS_MULHI): New. Ditto.
3994         (ISA_HAS_MULS): Ditto.
3995         (ISA_HAS_MSAC): Ditto.
3996         (ISA_HAS_MACC): Ditto.
3997         (ISA_HAS_ROTR_SI): Ditto.
3998         (ISA_HAS_ROTR_DI): Ditto.
3999         (RTX_COSTS): Use.
4001 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4003         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
4004         at head.
4005         (remove_dup_nonsys_dirs): New function.
4006         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
4007         (merge_include_chains): Remove non-system include directories from
4008         quote and bracket include chains when they duplicate equivalent system
4009         directories.
4010         * doc/cpp.texi (-I): Update.
4011         * doc/cppopts.texi (-I): Update.
4012         * doc/install.texi (--with-local-prefix): Further document usage of
4013         this option.
4014         * doc/invoke.texi (-I): Update.
4016 2002-08-20  Richard Henderson  <rth@redhat.com>
4018         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
4019         (emit_block_move): Split out subroutines.
4020         (emit_block_move_via_movstr): New.
4021         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
4022         (emit_block_move_libcall_fn): New.  Construct function prototype for
4023         bcopy as well.
4024         (clear_storage): Split out subroutines.
4025         (clear_storage_via_clrstr): New.
4026         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
4027         (clear_storage_libcall_fn): New.  Construct function prototype for
4028         bzero as well.
4029         (emit_push_insn): Use emit_block_move.
4030         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
4031         (store_constructor): Likewise.
4033 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
4035         * objc/objc-act.c (building_objc_message_expr): Rename to
4036         current_objc_message_selector.
4038 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
4040         * objc/objc-act.c (build_ivar_chain): Remove.
4041         (objc_copy_list): Likewise.
4042         (get_class_ivars): Inline call to removed build_ivar_chain
4043         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
4044         slot; use that slot (rather than CLASS_IVARS) when accessing
4045         ivars for base classes.  Call copy_list and chainon instead of
4046         objc_copy_list.
4047         (build_private_template): Call get_class_ivars instead of
4048         build_ivar_chain.
4049         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
4050         (continue_class): Call get_class_ivars instead of
4051         build_ivar_chain.
4052         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
4053         of DECL_BIT_FIELD (which may have been cleared).
4054         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
4056 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4058         * genautomata.c (output_translate_vect, output_state_ainsn_table,
4059         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
4060         in output file.
4061         (output_internal_min_issue_delay_func): Initialize variable in
4062         output file.
4064 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
4066         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
4067         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
4069 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
4070             Steve Ellcey  <sje@cup.hp.com>
4072         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
4073         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
4074         * explow.c (trunc_int_for_mode): Abort when the mode is not
4075         a scaler integer mode.
4076         * combine.c (expand_compound_operation): Don't expand Vector
4077         or Complex modes into shifts.
4078         (expand_field_assignment): Don't do bitwise arithmatic and
4079         shifts on Vector or Complex modes.
4080         (simplify_comparison): Don't call trunc_int_for_mode
4081         for VOIDmode.
4082         * recog.c (general_operand): Likewise.
4083         (immediate_operand): Likewise.
4084         (nonmemory_operand): Likewise.
4086 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
4088         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
4089         multi-instruction SImode constant.  Add REG_EQUAL note.
4090         * config/rs6000/rs6000.md (movsi splitter): Use
4091         rs6000_emit_set_const.
4093 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4095         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
4096         the macro test controlling its use.
4098 2002-08-18  H.J. Lu  (hjl@gnu.org)
4100         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
4101         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
4102         gnu_ld=yes.
4103         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
4104         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
4105         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
4106         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
4107         here.
4108         (cris-*-linux*): Remove setting thread_file here.
4110 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
4112         PR preprocessor/7602
4113         * cppinit.c (path_include): Treat the system environment
4114         variables as being cxx_aware.
4116 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
4118         * c-decl.c (flexible_array_type_p): New function.
4119         (grokdeclarator, finish_struct): Use it.
4120         * doc/extend.texi: Document constraints on use of structures with
4121         flexible array members.
4123 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
4125         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
4126         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
4127         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
4129 2002-08-16  Stan Shebs  <shebs@apple.com>
4131         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
4132         for ObjC with -fnext-runtime.
4133         * doc/cpp.texi: Document it.
4135 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
4137         * doc/install.texi (Final installation): Replace links to individual
4138         build status pages with a link to a common page that lists them all.
4140 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
4142         * doc/invoke.texi: Fix typo.
4144 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
4146         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
4148 2002-08-16  Andrew Haley  <aph@redhat.com>
4150         * tree-inline.c: Add includes for Java inliner.
4151         (remap_decl): Don't handle anonymous types for Java.
4152         (remap_block): Add handling for Java trees.
4153         (copy_scope_stmt): Conditionalize for non-Java use only.
4154         (copy_body_r): Handle Java trees.  Add handling for
4155         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
4156         (initialize_inlined_parameters):  Handle Java trees.
4157         (declare_return_variable): Likewise.
4158         (expand_call_inline): Handle Java trees.
4159         (walk_tree): Likewise.
4160         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
4161         (add_stmt_to_compound): New function.
4163 2002-08-15  Richard Henderson  <rth@redhat.com>
4165         * Makefile.in (LOOSE_WARN): Remove -fno-common.
4166         (NOCOMMON_FLAG): New substitution point.
4167         (GCC_WARN_CFLAGS): Include it.
4168         * configure.in (ac_checking): Set nocommon_flag.
4169         (nocommon_flag): New substitution point.
4171 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
4173         * c-tree.h (skip_evaluation): Move declaration...
4174         * c-common.h: ... here.
4175         * c-typeck.c (build_external_ref): Don't assemble_external nor
4176         mark a tree as used if skip_evaluation is set.
4177         * c-parse.in (typeof): New non-terminal to set skip_evaluation
4178         around TYPEOF.
4179         (typespec_nonreserved_nonattr): Use it.
4181 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
4183         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
4184         (xcoff_debug_hooks): Update end_prologue.
4185         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
4186         * debug.h (end_prologue): Add file arg.
4187         (end_epilogue): Add line and file args.
4188         (dwarf2out_end_epilogue): Add line and file args.
4189         (vmsdbgout_after_prologue): Remove.
4190         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
4191         (dwarf2_debug_hooks): Update end_prologue.
4192         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
4193         (dwarfout_end_prologue): Add file arg.
4194         * final.c (vmsdbgout_after_prologue): Remove
4195         (final_end_function): Update end_epilogue call.
4196         (final_scan_insn): Update end_prologue call.
4197         * sdbout.c (sdbout_end_epilogue): Add line and file args.
4198         (sdbout_end_prologue): Add file arg.
4199         (sdb_debug_hooks): Update end_prologue.
4200         (sdb_begin_prologue): Update sdbout_end_prologue call.
4201         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
4202         vmsdbgout_end_function.
4203         (vmsdbgout_end_prologue): New function renamed from
4204         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
4205         (vmsdbgout_end_function): New function.
4206         (vmsdbgout_end_epilogue): Add line and file args. Call
4207         vmsdbgout_source_line.
4208         (write_pclines): Write only valid line numbers.
4209         (write_srccorr): Don't write source correlation records if 0 lines.
4210         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
4212 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
4214         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
4215         (_Unwind_Internal_Ptr): 32 bit version for use in
4216         read_encoded_value_with_base.
4217         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
4218         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
4219         right size.
4221 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4223         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
4224         signed/unsigned warnings.
4226         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
4227         record_reg_classes): Likewise.
4229         * reload.c (reload_inner_reg_of_subreg, push_reload,
4230         find_reloads_address_1): Likewise.
4232 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
4234         * rs6000.c (output_mi_thunk): Return to function section on
4235         TARGET_ELF.
4237         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
4239 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
4241         * config/s390/s390.c (legitimize_address): Optimize loading
4242         of large displacements.
4244 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
4246         * config/alpha/alpha-protos.h: Update.
4248         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
4249         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
4250         (alpha_linkage_symbol_p): New static function.
4251         (print_operand_address): Print linkage operand.
4253         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
4254         variables.
4255         (reloc_kind): New enum.
4256         (struct alpha_funcs): New struct.
4257         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
4259         (alpha_need_linkage): Rewrite.
4260         (alpha_use_linkage): New global function.
4261         (alpha_write_linkage): Rewrite and make static.
4262         (alpha_write_one_linkage): Rewrite
4264         (alpha_start_function): Remove procedure descriptor output.
4265         (alpha_end_function): Write linkages at end of each function.
4267         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
4268         (call_vms_1, call_value_vms_1): Rewrite.
4270         * config/alpha/vms.h (ASM_FILE_END): Remove.
4272 2002-08-14  Richard Henderson  <rth@redhat.com>
4274         * ggc-page.c (RTL_SIZE): New.
4275         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
4276         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
4278 2002-08-14  Richard Henderson  <rth@redhat.com>
4280         * calls.c: Include target.h.
4281         * Makefile.in (calls.o): Update.
4283         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
4284         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
4286 2002-08-14  Richard Henderson  <rth@redhat.com>
4288         * Makefile.in (LOOSE_WARN): Add -fno-common.
4289         * c-common.h (constant_string_class_name): Add missing extern.
4291 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
4293         PR preprocessor/7358
4294         * c-opts.c (check_deps_environment_vars): Ignore main file
4295         for SUNPRO_DEPENDENCIES.
4296         * cppfiles.c (stack_include_file): Ignore main file if
4297         appropriate.
4298         * cpplib.h (struct cpp_options): New member in deps.
4299         * doc/cppenv.texi: Update.
4301 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
4303         PR preprocessor/7526
4304         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
4306 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
4308         * doc/invoke.texi (-a): Remove documentation.
4309         (-fprofile-arcs): Remove reference to -a, -ax options.
4310         * doc/gcov.texi (Gcov Data Files): Data might be merged.
4312 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
4314         Fix PR/7566
4315         * c-semantics.c (genrtl_case_label): Don't (mis)use
4316         warning_with_decl.
4318 2002-08-14  Dale Johannesen  <dalej@apple.com>
4320         * explow.c (emit_stack_restore):  Emit memory clobbers
4321         preceding the stack pop, to prevent the scheduler from
4322         moving refs to variable arrays below this pop.
4323         * reload1.c (reload):  Preserve these clobbers for sched2.
4324         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
4326 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
4328         * c-opts.c (c_common_post_options): Correct test.
4330 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4332         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
4333         order in call to fprintf.
4335 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4337         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
4339 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
4341         * reload.c (find_reloads): Handle constraint letters marked by
4342         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
4343         (alternative_allows_memconst): Likewise.
4344         * reload1.c (maybe_fix_stack_asms): Likewise.
4345         * recog.c (asm_operand_ok, preprocess_constraints,
4346         constrain_operands): Likewise.
4347         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
4348         * local-alloc.c (block_alloc, requires_inout): Likewise.
4349         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4351         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
4352         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
4353         * doc/tm.texi: Document these two new target macros.
4355         * config/s390/s390.c (s390_expand_plus_operand): Accept already
4356         valid operands.
4357         (q_constraint): New function.
4358         config/s390/s390-protos.h (q_constraint): Declare it.
4359         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
4360         (EXTRA_MEMORY_CONSTRAINT): New macro.
4362         * config/s390/s390.md: Throughout the machine description,
4363         replace all instances of the constraint combinations 'Qo'
4364         or 'oQ' with simply 'Q'.
4366 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
4368         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
4369         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
4370         (LIBGCC2_CFLAGS): Compile with -mrelax.
4372 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
4374         * doc/invoke.texi: Document -minmax for 68HC12.
4376         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
4377         ("uminqi3"): Likewise.
4378         ("uminhi3", "umaxhi3"): Likewise.
4380         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
4381         (TARGET_MIN_MAX): Define.
4382         (TARGET_SWITCHES): New option -minmax/-mnominmax.
4384 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
4386         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
4387         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
4389         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
4390         (ret, declare, farsym): New gas macros.
4391         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
4392         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
4393         and declare the symbol far when compiled with -mlong-calls.
4394         (__far_trampoline): New for 68HC12 trampoline code to invoke a
4395         far handler using jsr/bsr.
4397         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
4398         (jsr): New macro to transform a 'jsr' into a 'call'.
4400 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
4402         * doc/invoke.texi: Document -mlong-calls for 68HC12.
4404         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
4405         -mlong-calls is specified.
4406         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
4407         assembler directives.
4408         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
4409         (TARGET_SWITCHES): Add -mlong-calls options.
4410         (current_function_far): Declare.
4412         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
4413         into account the page register saved on the stack.
4414         (m68hc11_override_options): Take into account -mlong-calls option.
4415         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
4417         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
4418         if the function is going to be in 68HC12 banked memory (-mlong-calls).
4419         ("*return_16bit"): Likewise.
4420         ("*return_void"): Likewise.
4421         ("call", "call_value"): Use call for a far function call.
4423 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
4425         * toplev.c (parse_options_and_default_flags): Don't call
4426         post_options here.
4427         (general_init): Initialize GC, pools and tree hash here,
4428         instead of lang_independent_init.
4429         (lang_independent_init): Rename backend_init.
4430         (do_compile): Call post_options hook; exit early if there
4431         have been errors after switch processing.
4432         (toplev_main): Update.
4434 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
4436         * c-pretty-print.h: Guard against multiple inclusion.
4437         Robustify macros.
4438         (pp_c_attributes): Declare.
4439         * c-pretty-print.c (pp_c_attributes): New function.
4441 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4443         * m68k.c (m68k_output_function_prologue,
4444         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
4445         and NEWS/MOTOROLA.
4446         * genattrtab.c: Remove dpx2 comment.
4447         * libgcc2.c (__enable_execute_stack): Delete versions for
4448         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
4449         sony_news/SYSTYPE_BSD.
4450         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
4451         __gmicro__, __i860__, __NeXT__ and __pyr__.
4452         * rtl.h: Remove convex comment.
4453         * varasm.c: Likewise.
4455 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4457         * c-opts.c (lang_flags): Const-ify.
4458         * ra-build.c (undef_table): Likewise.
4459         * ra.c (eliminables): Likewise.
4461 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
4463         * tree.h: Guard against multiple inclusion.
4465 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
4467         * reload1.c (reload_cse_simplify): Before checking
4468         REG_FUNCTION_VALUE_P, check REG_P.
4470 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
4472         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
4474 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
4476         * c-opts.c (c_common_init_options): Extra braces needed.
4478 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
4480         * sh.c (sh_init_builtins): Add PARAMS to declaration.
4481         (sh_media_init_builtins, sh_expand_builtin): Likewise.
4482         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
4483         (sh_expand_binop_v2sf): Likewise.
4484         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
4485         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
4486         (sh_initialize_trampoline): Likewise.
4488 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
4490         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
4491         new condition code modes.
4492         s390.c (s390_match_ccmode_set): Handle those new CC modes.
4493         (s390_select_ccmode): Likewise.
4494         (s390_branch_condition_mask): Likewise.
4496         * s390-protos.h (s390_tm_ccmode): Declare.
4497         s390.c (s390_tm_ccmode): New function.
4498         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
4500         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
4501         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
4502         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
4504         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
4505         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
4506         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
4507         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
4508         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
4510         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
4511         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
4512         "*cmpqi_ccs_0"): Remove, replace by ...
4513         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
4514         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
4515         "*tstqi", "*tstqi_cconly"): ... these new patterns.
4517         ("*cmpsidi_ccs"): Remove, replace by ...
4518         ("*cmpsi_ccs_sign"): ... this new pattern.
4519         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
4521         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
4522         ("*cli"): ... this new pattern.
4524         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
4525         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
4526         New patterns.
4527         ("adddi3_64"): Rename to "*adddi3_64".
4528         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
4529         ("adddi3"): Adapt expander.
4531         ("*addsi3_cc"): Allow "general_operand" for operand 2.
4532         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
4533         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
4535         ("addhi3", "addqi3"): Remove, replace by ...
4536         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
4538         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
4539         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
4540         ("subdi3"): Replace by insn and splitter "*subdi3_31".
4541         ("subdi3"): New expander.
4543         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
4545         ("subhi3", "subqi3"): Remove, replace by ...
4546         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
4548         ("*muldi3_sign"): New pattern.
4549         ("muldi3"): Do not clobber CC.
4550         ("mulsi3"): Likewise.
4551         ("mulsi_6432"): Likewise.
4553 2002-08-13  Denis Chertykov  <denisc@overta.ru>
4555         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
4556         which can change CC0.
4558 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
4560         * gcse.c (adjust_libcall_notes): New function.
4561         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
4563 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
4565         * libgcc2.c (L_bb): Remove unneeded #includes.
4566         (__global_counters, __gthreads_active): Remove unused globals.
4567         (__bb_exit_func): Merge counts into files rather than appending.
4568         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
4569         (ALL_CFLAGS): ... to here.
4571 2002-08-13  Denis Chertykov  <denisc@overta.ru>
4573         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
4574         (function_epilogue): Don't calculate function size.
4575         (ip2k_set_compare): Don't use lookup_const_double.
4576         (asm_file_start): Initialization of commands_in_file removed.
4577         (asm_file_end): Output of commands_in_file removed.
4579         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
4580         __INT_MAX__.
4582 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
4584         * c-opts.c (c_common_init_options): Check option array is
4585         sorted if checking enabled.
4587 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
4589         * c-pretty-print.c: #include "c-tree.h".
4590         (pp_c_simple_type_specifier): Tweak.
4591         (pp_c_storage_class_specifier): New.
4592         (pp_c_function_specifier): Likewise.
4593         (pp_c_declaration_specifiers): Likewise.
4594         (pp_c_init_declarator): Likewise.
4595         (pp_c_declaration): Likewise.
4596         (pp_c_direct_declarator): Stub.
4597         (pp_c_declarator): Likewise.
4598         (pp_c_parameter_declaration): Likewise.
4600 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
4602         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
4603         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
4604         struct deferred_opt): New.
4605         (COMMAND_LINE_OPTIONS): Add -M*.
4606         (missing_arg): Update.
4607         (c_common_decode_option): Handle -M*.
4608         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
4609         don't call cpp_post_options.
4610         (c_common_finish, check_deps_environment_vars): Update.
4611         * cppfiles.c (stack_include_file, handle_missing_header): Update.
4612         * cpphash.h (CPP_PRINT_DEPS): Remove.
4613         * cppinit.c: Don't include version.h.
4614         (cpp_create_reader): Don't call deps_init.  Initialize
4615         warn_long_long.
4616         (cpp_read_main_file): Init deps if necessary.
4617         (cpp_destroy): Conditionally free deps.
4618         (cpp_finish): Update.
4619         (no_tgt): Remove.
4620         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
4621         (cpp_post_options): Rename post_options.
4622         * cpplib.h (struct cpp_options): Remove some dependency options;
4623         move others to a new structure.
4624         (cpp_post_options): Remove.
4625         (cpp_finish): Comment.
4626         * fix-header.c (read_scan_file): Don't call cpp_post_options.
4628 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
4630         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
4631         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
4632         MMIX_rR_REGNUM as clobbered.
4633         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
4635 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
4637         * diagnostic.h (output_formatted_scalar): Rename from
4638         output_formatted_integer.
4639         * diagnostic.def: Add DK_DEBUG.
4640         * diagnostic.c (output_decimal): Adjust.
4641         (output_long_decimal): Likewise.
4642         (output_unsigned_decimal): Likewise.
4643         (output_octal): Likewise.
4644         (output_long_octal): Likewise.
4645         (output_hexadecimal): Likewise.
4646         (output_long_hexadecimal): Likewise.
4647         * c-pretty-print.c (pp_c_type_specifier): New function.
4648         (pp_c_specifier_qualifier_list): Likewise.
4649         (pp_c_abstract_declarator): Likewise.
4650         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
4652 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
4654         * doc/trouble.texi (Disappointments): Add static constructor and
4655         destructor dependency information for AIX.
4657 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
4659         * cpphash.h (struct printer): New from cppmain.c.
4660         (cpp_reader): New member.
4661         * cppmain.c (struct printer): Move to cpphash.h.
4662         (options, print): Remove.
4663         (account_for_newlines, print_line, maybe_print_line,
4664         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
4665         scan_translation_unit_trad, cb_line_change, cb_ident,
4666         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
4667         cb_def_pragma): Make reentrant.
4669 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4671         * real.c (ieee_64): Always define.
4672         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
4673         (dec_h): Not used yet, hide it.
4674         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
4675         macro controlling use.
4676         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
4678 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
4680         * i386.md (tablejump): Sign extend the operand.
4681         * i386.c (classify_argument): Fix missed case from previous patch.
4683 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
4685         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
4686         to c-copts.c.
4687         (warn_multichar): Die.
4688         (cb_register_builtins): Export.
4689         * c-common.h (warn_multichar, preprocess_file): Remove.
4690         (cb_register_builtins): New.
4691         * c-lang.c (c_init): Remove.
4692         (LANG_HOOKS_INIT): Use c_objc_common_init.
4693         * c-lex.c (init_c_lex): Don't canonicalize filename.
4694         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
4695         (preprocess_file): Make static.  Update for cpplib.
4696         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
4697         (c_common_post_options): Set some cpp options here.
4698         (c_common_init): Move from c-common.c.
4699         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
4700         * cpplib.h (struct cpp_options): Remove in_fname.
4701         (cpp_preprocess_file): Update.
4702         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
4704 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4706         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
4708 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4710         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
4711         backslash in comment preceeding macro definition.
4712         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
4713         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
4714         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
4716 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
4718         * expr.c (store_expr): In condition for checking if value is
4719         generated in TARGET, move call to expr_size last.
4721 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
4723         * c-common.c (c_common_init): Call preprocess_file instead.
4724         (c_common_finish): Move to c-opts.c.
4725         * c-common.h (preprocess_file): new.
4726         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
4727         check_deps_environment_vars, c_common_finish): New.
4728         (c_common_decode_option): Update for out_fname and dependencies.
4729         * cppinit.c (init_dependency_output, output_deps): Remove.
4730         (cpp_destroy): Update prototype.
4731         (cpp_add_dependency_target): New.
4732         (cpp_read_main_file): Don't overlay a buffer.
4733         (cpp_finish): Take a deps output stream and write deps to it.
4734         Return the error count.
4735         (cpp_post_options): Don't canonicalize out_fname, or do anything
4736         with dependencies.
4737         * cpplib.h (struct cpp_options): Remove out_fname and
4738         preprocess_only.
4739         (cpp_add_dependency_target): New.
4740         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
4741         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
4742         set preprocess_only.  Don't handle the output stream directly.
4744 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4746         * dsp16xx.c (print_operand): Fix format specifier.
4747         * dsp16xx.md: Avoid automatic aggregate initialization.
4748         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
4749         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
4750         integer constant modifier.
4751         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
4752         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
4753         guards.
4754         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
4755         * v850.c (v850_select_section): Mark parameter with
4756         ATTRIBUTE_UNUSED.
4757         * global.c (global_alloc): Const-ify.
4758         * ra-colorize.c (hardregset_to_string): Fix format specifier.
4760 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4762         * darwin-c.c (darwin_pragma_options): Const-ify.
4763         * darwin.c (machopic_non_lazy_ptr_name,
4764         machopic_validate_stub_or_non_lazy_ptr): Likewise.
4765         (machopic_indirect_data_reference): Wrap variables in macros
4766         controlling their use.
4767         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
4768         (machopic_select_section): Use parentheses around && within ||.
4769         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
4771 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4773         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
4774         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
4775         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
4776         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
4777         mdr_try_remove_redundant_insns, track_w_reload,
4778         mdr_try_wreg_elim): Make function static to match prototype.
4779         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
4780         parameter with ATTRIBUTE_UNUSED.
4782 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4784         * arc.c (arc_init): Don't use ISO C style function definitions.
4785         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
4786         arm_get_strip_length, arm_strip_name_encoding): Likewise.
4787         * avr.h (progmem_section): Likewise.
4788         * h8300.c h8300_asm_insn_count): Likewise.
4789         * m32r.c (init_idents): Likewise.
4790         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
4791         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
4792         * xtensa.c (xtensa_build_va_list): Likewise.
4794 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
4796         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
4797         * c-opts.c (parse_option): Rename find_opt.
4798         (set_std_c99): New function.
4799         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
4800         (missing_arg): Remove OPT_std_bad.  Handle -o.
4801         (c_common_decode_option): Handle input and output file names,
4802         -o and -remap.  Clean up -std= handling.
4803         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
4804         (cpp_handle_option): Similarly.  Don't handle filenames.
4806 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
4808         * i386.c (classify_argument): Fix computing of field's offsets.
4810 2002-08-11  Andreas Jaeger  <aj@suse.de>
4812         PR target/7531:
4813         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
4815 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
4817         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
4818         reference to clk_objective_c with flag_objc.
4819         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
4820         Likewise.
4821         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4823 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
4825         * c-opts.c (set_std_cxx98, set_std_c89): New.
4826         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
4827         (c_common_decode_option): Handle new switches from cppinit.c.
4828         Add -std=gnu++98.
4829         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
4830         (no_arg, no_num): Remove.
4831         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
4832         switches apart from -lang-objc and lang-asm.
4833         (cpp_handle_option): Similarly.
4834         * cpplib.h (cpp_set_lang): New.
4835         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
4836         -std=gnu++98.
4837         * objc/lang-specs.h: Remove -ansi.
4839 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4840                                Graham Stott
4842         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
4843         errors.
4845 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4847         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
4848         emit_jump_insn): Fix uninitialized variable.
4849         * gcov.c (init_line_info): Likewise.
4850         * genautomata.c (transform_3): Add braces around ambiguous
4851         else.
4852         * ifcvt.c (cond_exec_process_insns): Mark parameter with
4853         ATTRIBUTE_UNUSED.
4854         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
4855         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
4856         variable.
4858         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
4859         warnings in output files.
4861 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
4863         * c-common.c (flag_objc): New.
4864         * c-common.h (c_language_kind): Get rid of clk_objective_c
4865         enum value.
4866         (flag_objc): New extern declaration.
4867         * c-decl.c (implicitly_declare): Call objc_check_decl
4868         instead of maybe_objc_check_decl.
4869         (finish_decl): Likewise.
4870         (grokfield): Likewise.
4871         (finish_struct): Likewise.
4872         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
4873         (maybe_objc_comptypes): Rename to objc_comptypes.
4874         (maybe_building_objc_message_expr): Rename to
4875         objc_message_selector.
4876         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
4877         replace with flag_objc as needed.
4878         * c-opts.c (c_common_init_options): Likewise.
4879         (c_common_decode_option): Likewise.
4880         * c-parse.in (init_reswords): Likewise.
4881         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
4882         (maybe_objc_comptypes): Rename to objc_comptypes.
4883         (maybe_building_objc_message_expr): Rename to
4884         objc_message_selector.
4885         * c-typeck.c (comptypes): Call objc_comptypes instead of
4886         maybe_objc_comptypes, and/or objc_message_selector instead of
4887         maybe_building_objc_message_expr.
4888         (comp_target_types): Likewise.
4889         (convert_for_assignment): Likewise.
4890         (warn_for_assignment): Likewise.
4891         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
4892         independently of those for other languages.
4893         * objc/objc-act.c (maybe_objc_comptypes): Delete.
4894         (maybe_objc_check_decl): Delete.
4895         (maybe_building_objc_message_expr): Rename to
4896         objc_message_selector.
4897         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
4898         clk_objective_c; set flag_objc flag.
4900 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4902         * ifcvt.c (find_if_case_2): Test correct basic block for size.
4904 2002-08-09  Dale Johannesen  <dalej@apple.com>
4906         * config/rs6000/rs6000.md: Add sibcall patterns.
4907         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
4908         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
4909         Rewritten to handle sibcalls.
4910         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
4911         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
4913 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
4915         * profile.c (da_file_name): New static var.
4916         (init_branch_prob): Initialize it.
4917         (end_branch_prob): Remove da file.
4919         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
4920         * configure.in (coverage_flags): Default to nothing.
4921         * configure: Rebuilt.
4923 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
4925         * Makefile.in (c-opts.o): Update
4926         * c-opts.c: Include intl.h.
4927         (print_help): Move from cppinit.c.  Remove unused options.
4928         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
4929         (missing_arg): Complain for switches without an argument.
4930         (c_common_decode_option): Reject missing joined arguments.
4931         Handle new switches from cppinit.c.
4932         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
4933         (cpp_handle_option): Similarly.
4934         (print_help): Moved to c-opts.c.
4935         * cpplib.h (struct cpp_options): Remove help_only.
4936         * gcc.c (cpp_unique_options): Remove -$.
4937         * doc/cppopts.texi: Undocument -h.
4939 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
4941         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
4942         legitimate constant.
4943         (legitimate_pic_operand_p): Neither pic operand.
4944         (legitimate_address_p): But legitimate address.
4945         (get_thread_pointer): Generate MEM/u instead of CONST around
4946         UNSPEC_TP.
4947         (print_operand): Remove printing of UNSPEC_TP.
4948         (print_operand_address): And print it here.
4950 2002-08-08  Devang Patel  <dpatel@apple.com>
4952         * objc/objc-act.c (build_selector_translation_table): Issue warning,
4953         when  -Wselector is used,if method for which selector is being
4954         created does not exist.
4956 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
4958         * config/sh/sh.c (prepare_move_operands): Only call
4959         target_reg_operand if TARGET_SHMEDIA.
4961 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
4963         * config/rs6000/rs6000.h, config/rs6000/aix.h,
4964         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
4965         two patches.
4966         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
4968 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
4969             Richard Henderson  <rth@redhat.com>
4971         * emit-rtl.c (gen_rtx_REG): After reload, only return
4972         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
4974 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
4976         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
4977         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
4978         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
4979         macro.
4981 2002-08-08  Adam Nemet  <anemet@lnxw.com>
4983         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
4984         register.
4985         (thumb_expand_prologue): Likewise.
4986         (thumb_output_function_prologue): Likewise.
4987         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
4988         the additional push of the PIC register.
4990 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
4992         * configure.in (enable_coverage): New enable switch.
4993         * configure: Rebuilt.
4994         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
4995         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
4996         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
4997         (mostlyclean): Remove coverage files.
4998         * doc/install.texi: Document enable_coverage.
5000         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
5001         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
5002         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
5003         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
5004         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
5005         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
5006         files.
5008 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
5010         * c-opts.c (cpp_opts): New.
5011         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
5012         (c_common_decode_options): Handle cpplib switches.
5013         (c_common_init_options): Set cpp_opts.
5014         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
5015         (cpp_handle_option): Similarly.
5017 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
5019         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
5020         (TARGET_ALTIVEC_ABI): Same.
5021         (TARGET_ALTIVEC_VRSAVE): Same.
5023         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
5024         icode not CODE_FOR_nothing.  Change switch to if.
5026 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
5028         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
5030 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
5032         * stor-layout.c (place_union_field): For bitfields if
5033         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
5034         TYPE_USER_ALIGN.
5036 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5038         * pa.c (struct deferred_plabel): Constify name field.
5040 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
5042         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
5044 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5046         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
5047         local_prefix are the same.
5048         * configure: Rebuilt.
5050 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
5051             Richard Henderson  <rth@redhat.com>
5053         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
5054         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
5055         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
5056         (place_field): Likewise.
5057         * config/i386/i386.c (x86_field_alignment): Don't check
5058         DECL_USER_ALIGN here.
5059         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
5060         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
5061         prototype.
5062         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
5063         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
5064         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
5065         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
5066         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
5067         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
5069 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
5071         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
5072         * c-common.c: Don't include tree-inline.h.
5073         (c_common_init_options, c_common_post_options): Move to c-opts.c.
5074         * c-common.h (c_common_decode_option): New.
5075         * c-decl.c (c_decode_option): Remove.
5076         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
5077         * c-opts.c: New file.
5078         * c-tree.h (c_decode_option): Remove.
5079         * doc/passes.texi: Update.
5080         * objc/objc-act.c (objc_decode_option): Remove.
5081         * objc/objc-act.h (objc_decode_option): Remove.
5082         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
5083         c_common_decode_option.
5085 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
5087         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
5088         dependency on TARGET_DOUBLE_FLOAT.
5090 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
5092         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
5093         overwrite callee-save registers.  Fix comment.
5095 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
5097         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
5098         in target_flags based on ISA, if it was not set on the command
5099         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
5100         support Branch Likely instructions.
5101         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
5102         (TARGET_BRANCHLIKELY): Likewise.
5103         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
5104         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
5105         ISA_HAS_BRANCHLIKELY.
5106         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
5107         * doc/invoke.texi: Document new MIPS -mbranch-likely and
5108         -mno-branch-likely options.
5110 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5112         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
5114         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
5115         $(GCONFIG_H).
5117 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
5119         * c-decl.c (duplicate_decls): Error out for incompatible TLS
5120         declarations.
5122         * testsuite/gcc.dg/tls/diag-3.c: New.
5124 2002-08-06  Dale Johannesen  <dalej@apple.com>
5126         * c-common.c (fname_decl): Use line number 0 for
5127         __func__, to avoid confusing debuggers.
5129 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
5131         * gcov.c: Tidy.
5132         (struct line_info, struct coverage): New structures.
5133         (gcov_file_name, gcov_file): Remove globals.
5134         (output_data): Take source file parameter. Fix memory leak. Break
5135         up into ...
5136         (init_line_info, output_line_info, make_gcov_file_name,
5137         accumulate_branch_counts): ... here.
5138         (calculate_branch_probs, function_summary): Adjust.
5139         (main): Adjust.
5140         (function_*): Remove global variables.
5142 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
5144         * dwarf2out.c: Remove unused macros.
5146 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
5148         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
5150 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
5152         * cppinit.c (struct lang_flags): Rename trigraphs std.
5153         (set_lang): Update.
5154         * cpplib.h (struct cpp_options): New member std.
5155         * cppmacro.c (_cpp_builtin_macro_text): Use std.
5156         (collect_args): Flag whether to swallow a possible future
5157         comma pasted with varargs.
5158         (replace_args): Use this flag.
5159         * doc/cpp.texi: Update varargs extension documentation.
5161 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
5163         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
5165 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
5167         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
5168         and MODE_CLASS_INT modes.
5170 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
5172         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
5173         --{enable,disable}-threads is given to configure.
5174         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
5175         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
5176         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
5177         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
5178         Remove thread_file setting here.
5180 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
5182         * doc/install.texi (Binaries): Update Bull Freeware URL.
5184 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5186         * doc/gcc.texi (Top): Rename Index to Keyword Index.
5188 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
5190         * gcov.c (output_data): Round to % to nearest, tweak formatting.
5192 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
5194         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
5195         of the operands into MINUS_EXPR if code is PLUS_EXPR.
5197 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
5199         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
5200         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
5201         drectve_section): Define.
5202         * config/i386/t-interix: Replace interix.o rule with winnt.o.
5203         * config/i386/interix.c: Remove.
5205 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
5207         * attribs.c: Don't include obstack.h.
5208         * builtins.c: Likewise.
5209         * cfganal.c: Likewise.
5210         * cfgbuild.c: Likewise.
5211         * cfgcleanup.c: Likewise.
5212         * emit-rtl.c: Likewise.
5213         * loop.c: Likewise.
5214         * stmt.c: Likewise.
5216         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
5218 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
5220         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
5222 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
5224         * doc/invoke.texi: Remove duplicated paragraph describing
5225         TARGET_SWITCHES.
5227 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
5229         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
5230         * collect2.h (permanent_obstack): Delete declaration.
5231         * collect2.c (permanent_obstack): Delete definition.
5232         (main): Don't initialize permanent_obstack.  Use xstrdup instead.
5233         * expr.c: Don't include obstack.h.
5234         (permanent_obstack): Delete declaration.
5235         * function.c: Don't include obstack.h.
5236         (permanent_obstack): Delete declaration.
5237         * integrate.c: Don't include obstack.h.
5238         (function_maybepermanent_obstack): Delete declaration.
5239         * print-tree.c (debug_tree): Use x*alloc not permalloc.
5240         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
5241         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
5242         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
5243         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
5244         of permalloc, expralloc, perm_calloc.
5245         * tree.c (permanent_obstack): Delete definition.
5246         (init_ttree): Rename from init_obstacks.
5247         (permalloc): Delete.
5248         (perm_calloc): Delete.
5249         (dump_tree_statistics): Don't print information about
5250         permanent_obstack.
5251         * varasm.c (assemble_start_function): Use xstrdup instead of
5252         permalloc/strcpy.
5253         (assemble_variable): Likewise.
5254         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
5255         permalloc.
5256         (unicosmk_add_extern): Likewise.
5257         * config/c4x/c4x.c (c4x_external_ref): Likewise.
5258         (c4x_global_label): Likewise.
5259         * config/frv/frv.c (frv_encode_section_info): Likewise.
5260         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
5261         (i386_pe_record_exported_symbol): Likewise.
5262         * config/mips/mips.c (mips_output_external): Likewise.
5263         (mips_output_external_libcall): Likewise.
5264         * config/pa/pa.c: (permanent_obstack): Delete declaration.
5265         (output_call): Use ggc_strdup instead of allocating on
5266         permanent_obstack.
5267         * config/romp/romp.c: Include ggc.h.
5268         (get_symref): Don't declare permanent_obstack, use ggc_strdup
5269         intead of permanent_obstack.
5270         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
5271         instead of permalloc.
5272         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
5273         instead of permalloc
5274         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
5275         instead of permalloc.
5276         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
5277         permalloc.
5279 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
5281         Contribute a port developed primarily by Michael Meissner,
5282         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
5283         * config.gcc: Add frv-elf target.
5284         * config/frv/cmovd.c: New file.
5285         * config/frv/cmovh.c: New file.
5286         * config/frv/cmovw.c: New file.
5287         * config/frv/frv-abi.h: New file.
5288         * config/frv/frv-asm.h: New file.
5289         * config/frv/frv-modes.def: New file.
5290         * config/frv/frv-protos.h: New file.
5291         * config/frv/frv.c: New file.
5292         * config/frv/frv.h: New file.
5293         * config/frv/frv.md: New file.
5294         * config/frv/frvbegin.c: New file.
5295         * config/frv/frvend.c: New file.
5296         * config/frv/lib1funcs.asm: New file.
5297         * config/frv/media.h: New file.
5298         * config/frv/modi.c: New file.
5299         * config/frv/t-frv: New file.
5300         * config/frv/uitod.c: New file.
5301         * config/frv/uitof.c: New file.
5302         * config/frv/ulltod.c: New file.
5303         * config/frv/ulltof.c: New file.
5304         * config/frv/umodi.c: New file.
5305         * config/frv/xm-frv.h: New file.
5307         * config/frv/media.h: Removed again.
5309 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
5311         * gcov.c (bb_file_time): New static variable.
5312         (object_directory): May also be object file.
5313         (preserve_paths): New static variable.
5314         (print_usage): Adjust.
5315         (options): Adjust.
5316         (process_args): Adjust.
5317         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
5318         file. Find modification date on bb file.
5319         (read_profile): Don't rewind a NULL file.
5320         (format_hwint): New static function.
5321         (function_summary): Use format_hwint.
5322         (output_data): SOURCE_FILE_NAME is never relative to
5323         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
5324         mangling. Adjust output format to make it more machine readable.
5325         * doc/gcov.texi: Document & clarify semantics.
5327 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
5329         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
5331 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
5333         * gcc.c (cc1_options): Pass output file as auxbase when
5334         appropriate.
5335         * profile.c (init_branch_prob): FILENAME has already had ending
5336         stripped.
5337         * final.c (end_final): Likewise.
5338         * toplev.c (aux_base_name): New global.
5339         (compile_file): Pass aux_base_name to init init_branch_prob and
5340         end_final.
5341         (independent_decode_option, case 'a'): New auxinfo options.
5342         (case 'd'): Protect against mising basename.
5343         (do_compile): Initialize aux_base_name.
5344         * toplev.h (aux_base_name): New global.
5345         * doc/invoke.texi: Adjust documentation.
5347 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
5349         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
5350         of TARGET_ALIGN_DOUBLE.
5352 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
5354         * diagnostic.c (inform): New function.
5355         * diagnostic.h (inform): Declare.
5357 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
5359         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
5360         (movhi_internal): Same.
5361         (movqi_internal): Same.
5362         (movdi_internal64): Same.
5364         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
5366         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
5367         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
5368         (COMMON_ASM_OP): Define.
5369         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
5370         Use ALIGN parameter.
5371         (LOCAL_COMMON_ASM_OP): Define.
5372         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
5374 2002-08-03  Roger Sayle  <roger@eyesopen.com>
5376         * builtins.def: Define new builtin functions exp, expf, expl,
5377         log, logf and logl (and their __builtin_* variants).
5378         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
5379         Define exp_optab and log_optab.
5380         * optabs.c (init_optans): Initialize exp_optab and log_optab.
5381         * genopinit.c (optabs): Implement exp_optab and log_optab
5382         using exp?f2 and log?f2 patterns.
5383         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
5384         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
5385         (expand_builtin): Ignore the new builtins (and all cos and
5386         sin variants) when not optimizing.  Expand new builtins via
5387         expand_builtin_mathfn when flag_unsafe_math_optimizations.
5389         * doc/extend.texi: Document new exp and log builtins.
5390         * doc/md.texi: Document new exp?f2 and log?f2 patterns
5391         (and previously undocumented cos?f2 and sin?f2 patterns).
5393 2002-08-03  Jason Merrill  <jason@redhat.com>
5395         * explow.c (int_expr_size): New fn.
5396         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
5397         * expr.h: Declare it.
5399 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
5401         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
5402         gengtype-* dependencies.
5404 2002-08-02  Eric Christopher  <echristo@redhat.com>
5406         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
5407         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
5408         #ifndef to #undef.
5409         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
5411 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
5413         PR optimize/7067
5414         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
5415         small if optimizing for size.
5417 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
5419         * configure.in (FORBUILD): Use $build_alias.
5420         * configure: Regenerated.
5422 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
5424         * config.gcc: Don't include mips/abi64.h in $tm_file.
5425         * hard-reg-set.h (call_really_used_regs): Declare.
5426         * config/mips/abi64.h: Remove file.
5427         * config/mips/linux.h,
5428         * config/mips/iris6.h: Don't include it.
5429         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
5430         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
5431         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
5432         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
5433         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
5434         Bring across definitions from abi64.h.
5435         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
5436         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
5437         (struct mips_args): Use it.
5438         * config/mips/mips.c (mips_conditional_register_usage): Define.
5440 2002-08-02  Jason Merrill  <jason@redhat.com>
5442         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
5443         * langhooks.c (lhd_expr_size): Define default.
5444         * langhooks.h (struct lang_hooks): Add expr_size.
5445         * explow.c (expr_size): Call it.
5446         * expr.c (store_expr): Don't copy an expression of size zero.
5447         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
5448         to store.
5449         * Makefile.in (builtins.o): Depend on langhooks.h.
5451 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5453         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
5454         * ra-debug.c: Include "tm_p.h".
5455         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
5457 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
5459         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
5460         when not honoring signalling NaNs.
5461         (simplify_ternary_operation): a == b has a definite value
5462         when not honoring NaNs.
5464 2002-08-02  Jason Merrill  <jason@redhat.com>
5466         * gdbinit.in (pct): New macro.
5468 2002-08-01  Stan Shebs  <shebs@apple.com>
5469             Andreas Tobler  <toa@pop.agri.ch>
5471         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
5472         plays nice with Darwin headers.
5473         (_BSD_RUNE_T_DEFINED_): Likewise.
5475 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
5477         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
5478         * cppinit.c (cpp_post_options): Likewise.
5480         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
5481         warning about 'LL' suffix (but not 'ULL' etc) when
5482         -Wno-long-long is in effect.
5484         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
5485         Check for failing time()/localtime(), issue a warning, and
5486         make __TIME__ and __DATE__ expand to fallback strings.
5488         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
5489         and __TIME__ when the date and time cannot be determined.
5491 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
5493         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
5495 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
5497         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
5499 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
5501         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
5502         (mipsisa64sb1el-*-elf*): Likewise.
5503         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
5504         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
5505         (TARGET_SB1, TUNE_SB1): New macros.
5506         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
5507         -mtune flags.
5509 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
5511         * varasm.c (asm_emit_uninitialized): Return false if global BSS
5512         and ASM_EMIT_BSS not supported by target.
5513         (assemble_variable): Do not duplicate uninitialized logic.
5514         Fall through if asm_emit_uninitialized failed.
5516 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
5518         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
5520 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
5522         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
5523         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
5525         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
5526         HOST_BITS_PER_WIDE_INT == 64.
5528 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5530         * df.c (df_insn_table_realloc): Change parameter to unsigned.
5531         * optabs.c (expand_binop): Make variable unsigned.
5532         * simplify-rtx.c (simplify_subreg): Likewise.
5533         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
5535 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5537         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
5539 2002-08-01  Richard Henderson  <rth@redhat.com>
5541         * toplev.c (parse_options_and_default_flags): Don't set
5542         flag_reorder_blocks for -Os.
5544         * config/avr/avr.c (avr_optimization_options): Remove.
5545         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
5546         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
5547         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
5549 2002-08-01  H.J. Lu <hjl@gnu.org>
5550             Richard Henderson  <rth@redhat.com>
5552         * output.h (DECL_READONLY_SECTION): Remove.
5553         (decl_readonly_section): Declare.
5554         * varasm.c (decl_readonly_section): New.
5555         (default_section_type_flags, default_select_section): Use it.
5556         * config/arm/pe.c (arm_pe_unique_section): Likewise.
5557         * config/i386/interix.c (i386_pe_unique_section): Likewise.
5558         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
5559         * config/mcore/mcore.c (mcore_unique_section): Likewise.
5560         * config/mips/mips.c (mips_unique_section): Likewise.
5562 2002-08-01  Richard Henderson  <rth@redhat.com>
5564         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
5565         refers to a subroutine parameter.
5567 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
5569         * varasm.c (assemble_visibility): Strip name encoding.
5571 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
5573         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
5574         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
5575         when there is no frame pointer.
5576         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
5577         registers properly.
5578         * config/ns32k/__unorddf2.c: New file.
5579         * config/ns32k/__unordsf2.c: New file.
5580         * config/ns32k/t-ns32k: New file.
5581         * config.gcc (ns32k-*-netbsd*): Use it.
5583 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
5585         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
5587 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
5589         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
5591 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
5593         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
5595 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
5597         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
5599 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5601         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
5602         n_sets): Removed.
5603         (expr_hash_table, set_hash_table): Type changed to ...
5604         (struct hash_table): New type.
5605         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
5606         insert_expr_in_table, insert_set_in_table, compute_hash_table,
5607         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
5608         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
5609         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
5610         (alloc_hash_table): New.
5611         (free_set_hash_table, free_expr_hash_table): Merged to ...
5612         (free_hash_table): New.
5613         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
5614         (compute_hash_table_work): New.
5615         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
5616         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
5617         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
5618         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
5619         hoist_code, one_code_hoisting_pass,
5620         trim_ld_motion_mems): Altered due to changed type of hash tables.
5622 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
5624         * final.c (output_alternate_entry_point):
5625         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
5627 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5629         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
5630         avoid ISO C style function definition.
5632         * expr.c (expand_assignment): Delete unused variable.
5634 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
5636         * c-common.c (cb_register_builtins): Set
5637         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
5638         is given, and to 0 otherwise.
5639         * combine.c (simplify_if_then_else): HONOR_NANS
5640         implies FLOAT_MODE_P.
5642 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
5644         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
5645         (cpp_handle_option): Don't handle it.
5646         (print_help): Update.
5647         * doc/cppopts.texi: Update.
5649 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
5651         * c-common.c (cb_register_builtins): If C++, define
5652         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
5653         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
5655         * lang-specs.h: Simplify in accordance with new code in
5656         c-common.c.
5658 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
5660         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
5661         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
5662         * c-decl.c: Move all warning and flag variables to c-common.c.
5663         * c-format.c: Move all warning variables to c-common.c.
5664         * c-tree.h: Move all warning and flag declarations to c-common.h.
5665         * objc/objc-act.c: Move all warning variables to c-common.c.
5666         (flag_warn_protocol): Rename warn_protocol.
5668 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5670         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
5672 2002-07-31  Graham Stott  <graham.stott@btinternet.com>
5674         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
5675         .section prefix.
5677 2002-07-31  Stan Shebs  <shebs@apple.com>
5679         * config.gcc (i[34567]86-*-darwin*): New configuration.
5680         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
5681         defining.
5682         (TARGET_ENCODE_SECTION_INFO): Ditto.
5683         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
5684         * config/darwin.c (machopic_indirect_data_reference): Remove
5685         setting of RTX_UNCHANGING_P.
5686         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
5687         not to be applied to sums.
5688         * config/i386/t-darwin: New file.
5689         * config/i386/darwin.h: New file.
5690         * config/i386/i386.h (TARGET_MACHO): Add default definition.
5691         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
5692         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
5693         label and not the GOT add.
5694         (constant_address_p): For Mach-O, seeing a CONST is enough.
5695         (legitimate_pic_address_disp_p): Add a Mach-O case.
5696         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
5697         (legitimize_pic_address): Use generic Mach-O code to legitimize.
5698         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
5699         if outputting a difference.
5700         (ix86_output_addr_diff_elt): Add Mach-O case.
5701         (ix86_expand_move): Similarly.
5702         (ix86_expand_call): Similarly.
5703         (current_machopic_label_num): New global.
5704         (machopic_output_stub): New function.
5705         (ix86_value_regno): New function.
5706         (ix86_function_value): Use it instead of VALUE_REGNO.
5707         (ix86_libcall_value): Ditto.
5708         * config/i386/unix.h (VALUE_REGNO): Remove.
5710 2002-07-31  Graham Stott  <grahas@btinternet.com>
5712         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
5713         hash for LABEL_REF's.
5715 2002-07-31  Graham Stott  <grahams@btinternet.com>
5717         * config/rs6000/rs6000.c (spe_init_builtins,
5718         altivec_init_builtins, rs6000_common_init_builtins):
5719         Replace ANSI with K&R function def.
5721 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
5723         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
5724         for CCFPmode.
5726 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
5728         * config/mips/crtn.asm: Don't use __mips16 to determine the
5729         return-address offset.  Define RA to a suitable temporary
5730         register for the return address.
5732 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
5734         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
5735         constraints to 'd'.
5737 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
5739         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
5740         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
5741         patch on 2002-07-29.)
5742         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5744 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5746         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
5747         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
5748         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
5749         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
5750         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
5751         (ASM_GLOBALIZE_LABEL): Delete.
5752         (GLOBAL_ASM_OP): Define.
5754         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
5756         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
5757         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
5759 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
5761         * doc/extend.texi (Hints implementation): Document that GCC
5762         mostly ignores `register'.
5764 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
5766         * flags.h: Declare flag_finite_math_only.
5767         Use it in definition of HONOR_NANS and
5768         HONOR_INFINITIES.
5769         * c-common.c (cb_register_builtins): Emit
5770         __FINITE_MATH_ONLY__ when flag_finite_math_only
5771         is set.
5772         * combine.c (simplify_if_then_else): If
5773         flag_finite_math_only is set, a == b has a
5774         definite value.
5775         * toplev.c: Initialize flag_finite_math_only.
5776         (set_flags_fast_math): Set it on -ffast-math.
5777         (flag_fast_math_set_p): Test it.
5778         * doc/invoke.texi: Document -ffinite-math-only.
5780 2002-07-30  Richard Henderson  <rth@redhat.com>
5782         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
5783         (noce_process_if_block): Likewise.
5785 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
5787         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
5788         Bail out early if false_expr is NULL and we'd crash due to this.
5789         * genemit.c (gen_expand): Recognize return insns even if the return
5790         appears in a parallel.
5791         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
5792         * config/fp-bit.c: Likewise.
5793         * doc/tm.texi: Document it.
5795 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
5796             Zack Weinberg  <zack@codesourcery.com>
5798         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
5799         CODE_FOR_nothing.  Change switch to if.
5800         (rs6000_expand_binop_builtin): Same.
5801         (rs6000_expand_builtin): Expand builtin if target support enabled.
5802         (rs6000_init_builtins): Init builtin if target support enabled.
5803         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
5805 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5807         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
5809 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
5811         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
5813 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
5815         * sh.md (cond_delay_slot): New attribute.
5816         (cbranch delay): Use it for anulled-true case.
5817         (stuff_delay_slot): New pattern.
5818         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
5819         delay slot insn.
5820         (gen_far_branch): Emit stuff_delay_slot pattern.
5822 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5824         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
5826 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
5828         * fold-const.c: Fix comment typos.
5829         * gcse.c: Likewise.
5830         * reload1.c: Likewise.
5832 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5834         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
5835         for TARGET_SPE.
5837 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
5839         * c-pretty-print.h (pp_c_statement): Declare.
5840         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
5841         (pp_c_statement): Define.
5843 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5845         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
5846         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
5847         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
5848         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
5849         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
5850         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
5852         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
5853         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
5855 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
5857         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
5858         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
5859         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
5860         (pp_c_expression): Update.
5862 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5864         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
5865         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
5866         * alpha/vms-ld.c (main): Likewise.
5867         * dsp16xx.c (double_reg_to_memory): Likewise.
5868         * mcore.c (mcore_expand_prolog): Likewise.
5869         * cppfiles.c (read_name_map): Likewise.
5870         * gensupport.c (process_rtx, identify_predicable_attribute,
5871         alter_test_for_insn): Likewise.
5872         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
5874 2002-07-29  Roger Sayle  <roger@eyesopen.com>
5876         * builtins.c (expand_builtin):  Change the default behavior to
5877         only issue an error if the builtin function doesn't have a
5878         fallback library call.  Remove several cases handled by the
5879         new default.
5881 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
5883         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
5884         floating point format of the target is IEEE.
5885         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
5886         format of the target is DEC.
5888 2002-07-29  Richard Henderson  <rth@redhat.com>
5890         * unroll.c (verify_addresses): Remove.
5891         (find_splittable_givs): Never split DEST_ADDR givs.
5893 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
5895         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
5896         is exhaustive.
5897         (Files): Improve documentation on generated source files.
5899         * doc/extend.texi (Translation implementation): Document what
5900         diagnostics look like.
5901         (Identifiers implementation): Document that there's normally no
5902         limit on identifier names.
5903         (Integers implementation): Document two's complement.
5904         (Hints implementation): Document that GCC honors 'inline', mostly.
5905         (Preprocessing directives implementation): Document that GCC
5906         requires the current time.
5908 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
5910         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
5911         (pp_initializer): New macro.
5912         (pp_c_initializer): Declare.
5913         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
5914         (pp_c_initializer): Define.
5915         (pp_c_initializer_list): New function.
5916         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
5917         VECTOR_CST, CONSTRUCTOR.
5918         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
5919         IMAGPART_EXPR.
5920         (pp_c_cast_expression): Handle FLOAT_EXPR.
5921         (pp_c_assignment_expression): Handle INIT_EXPR.
5922         (pp_c_expression): Update.
5924 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
5926         * objc/objc-act.c (objc_init): Return immediately if filename
5927         is NULL.
5929 2002-07-29  Eric Christopher  <echristo@redhat.com>
5931         * config/mips/elf.h: Remove ecoff.h and gofast includes.
5932         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
5933         (SDB_DEBUGGING_INFO): Undefine.
5934         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
5935         (PUT_SDB_SIZE): Remove.
5936         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
5937         (STARTFILE_SPEC): Add isa3264 define.
5938         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
5939         * config/mips/ecoff.h: Remove. and here...
5940         * config/mips/iris3.h: and here...
5941         * config/mips/sni-svr4.h: and here...
5942         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
5943         Add assembler -mmdebug options for non-dwarf debugging.
5944         * config/mips/r3900.h: Remove debug info defines.
5945         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
5946         * config/mips/isa3264.h: Ditto.
5947         * config/mips/t-isa3264: Fix up for file removal and gofast configure
5948         change.
5949         * config/mips/t-elf: Ditto.
5950         * config/mips/t-ecoff: Ditto.
5951         * config/mips/t-r3900: Ditto.
5952         * config/mips/t-iris5-6: Ditto.
5953         * config/mips/t-isa3264: Ditto.
5954         * config/mips/t-linux: Remove.
5955         * config/mips/t-netbsd: Remove.
5956         * config/mips/t-mips: New file.
5957         * config/mips/t-gofast: Ditto.
5958         * config/mips/netbsd.h: Remove unnecessary undefines.
5959         * config/mips/linux.h: Remove #include of mips.h.
5960         * config.gcc: Add mips.h include for elf targets. Remove tm_file
5961         for ecoff. Add gofast configure option for mips.
5963 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
5965         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
5966         linker scripts use STARTUP directives consistently.
5967         * configure: Regenerate.
5968         * config.in: Regenerate.
5969         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
5970         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
5971         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5972         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
5973         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
5974         will be the same.
5976 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5978         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
5980 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5982         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
5984 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
5986         * config/rs6000/rs6000.md: Move altivec patterns from here...
5988         * config/rs6000/altivec.md: ...to here.
5990 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
5992         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
5994 2002-07-29  Richard Henderson  <rth@redhat.com>
5996         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
5997         set_mem_attributes and add BITPOS argument.  Subtract it from
5998         OFFSET when same is adjusted.
5999         (set_mem_attributes): New wrapper function.
6000         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
6001         remove offset adjustment hack.
6002         * expr.h (set_mem_attributes_minus_bitpos): Declare.
6004 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
6006         * Makefile.in (C_OBJS): Include c-pretty-print.o
6007         (c-pretty-print.o): Add depency rule.
6008         * pretty-print.h: Add more macros.
6009         * c-pretty-print.c: New file.
6010         * c-pretty-print.h: Likewise.
6012 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
6014         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
6015         constants to __ev64_s32__.
6016         (__internal_ev_mwhgsmian): Same.
6017         (__internal_ev_mwhgsmfan): Same.
6018         (__internal_ev_mwhgssfan): Same.
6019         (__internal_ev_mwhgumiaa): Same.
6020         (__internal_ev_mwhgsmiaa): Same.
6021         (__internal_ev_mwhgsmfaa): Same.
6022         (__internal_ev_mwhgssfaa): Same.
6024 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
6026         * varasm.c (assemble_variable): Narrow test for uninitialized
6027         without BSS target support.
6029 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
6031         * profile.c: Add file comment describing the overall algorithm and
6032         structures.
6033         (struct edge_info): Add comments.
6034         (struct bb_info): Add comments.
6035         * basic-block.h (EDGE_*): Add comments.
6036         * doc/gcov.texi (Gcov Data Files): Document bit flags.
6038 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
6040         * config/xtensa/elf.h, config/xtensa/linux.h
6041         (TARGET_OS_CPP_BUILTINS): Define.
6042         (CPP_PREDEFINES): Remove.
6043         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
6044         (CPP_SPEC): Remove.
6046 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
6048         * gensupport.c: Include hashtab.h.
6049         (insn_elision, condition_table, hash_c_test, cmp_c_test,
6050         maybe_eval_c_test): New routines and data structures to
6051         support insn elision.
6052         (init_md_reader): Read and initialize the condition_table.
6053         (read_md_rtx): Discard insn patterns whose C test is provably
6054         always false.
6055         * gensupport.h: Declare new functions and data structures.
6057         * genconditions.c, dummy-conditions.c: New files.
6058         * Makefile.in: Build genconditions; run it to construct
6059         insn-conditions.c; build that and link it into most gen*
6060         programs.
6061         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
6062         (GEN): Delete, unused.
6063         (STAGESTUFF): Update.
6065         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
6066         CODE_FOR_nothing for all elided patterns.
6067         (main): Tweaked to support this.
6068         * genflags.c (gen_proto): Emit a static inline generator
6069         function here for all elided patterns, which simply returns
6070         NULL_RTX.
6071         (gen_insn): Do not define HAVE_xxx for elided patterns.
6072         (main): Tweaked to support this.  No need to forward-declare
6073         struct rtx_def.
6074         * genrecog.c: Do not bother emitting the C test if it's known
6075         to be true at compile time.
6077 2002-07-29  Mike Stump  <mrs@apple.com>
6079         * config.gcc (target_gtfiles): Initialize, as otherwise cross
6080         compilers hosted on powerpc-apple-darwin6.0 won't even build.
6082 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
6084         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
6085         remove clobber of LR.
6086         (sibcall_insn, sibcall_value_insn): Update accordingly.
6087         (sibcall_epilogue): Remove debugging comment from assembler stream.
6089 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
6091         * pretty-print.h: Define more macros.
6092         * diagnostic.h (output_formatted_integer): Moved from...
6093         * diagnostic.c: ... here.
6095 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6097         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
6099 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
6101         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
6102         arguments.  Always use ".-symbol" as expression argument.
6103         * doc/tm.texi: Update to match.  Document requirement for
6104         ".size symbol, .-symbol" to be acceptable to assembler.
6106         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
6107         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
6108         config/i386/freebsd-aout.h, config/i386/sco5.h,
6109         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
6110         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
6112 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6114         * Makefile.in (gengtype-lex.c): Fix error in last change.
6116         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
6117         backslash.
6119         * Makefile.in (vmsdbgout.o): Depend on function.h.
6121         * vmsdbgout.c: Include function.h.
6123 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
6125         * prefix.c (update_path): Don't strip single `.' path components
6126         unless stripping a later `..' component.  Exit loop as soon as
6127         a valid path is found.
6129 2002-07-27  Roger Sayle  <roger@eyesopen.com>
6131         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
6132         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
6133         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
6134         floating point unordered comparisons (e.g. __builtin_isgreater)
6135         as const, and leave the remaining GCC_BUILTINs unchanged.
6137         * c-decl.c (builtin_function): No need to explicitly mark
6138         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
6140 2002-07-27  Roger Sayle  <roger@eyesopen.com>
6142         * Makefile.in: rtlanal.o now depends upon real.h.
6144         * flags.h [flag_signaling_nans]: New flag.
6145         [HONOR_SNANS]: New macro.
6147         * toplev.c [flag_signaling_nans]: Initialize to false.
6148         (f_options): Add processing for "-fsignaling-nans".
6149         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
6150         (process_options): flag_signaling_nans implies flag_trapping_math.
6152         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
6153         when -fsignaling-nans.  First step to implementing WG14's N965.
6155         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
6156         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
6157         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
6159         * simplify-rtx.c (simplify_relational_operation): Conditionalize
6160         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
6162         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
6163         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
6164         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
6165         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
6166         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
6168         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
6170 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6172         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
6173         * gengtype-lex.l (YY_USE_PROTOS): Undef.
6174         (YY_DECL): Define.
6176 2002-07-27  Roger Sayle  <roger@eyesopen.com>
6178         * doc/invoke.texi: Document that both -fno-builtin-foo and
6179         -fno-builtin are supported by the g++ front-end.
6181 2002-07-27  Stan Shebs  <shebs@apple.com>
6183         * configure.in: Rename config_gtfiles to target_gtfiles.
6184         * configure: Regenerate.
6185         * doc/gty.texi: Update reference.
6186         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
6187         instead of appending to it.
6189 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
6191         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
6192         vectors are split into two registers.
6193         (function_arg): Same.
6195 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
6197         * pa.md (extv): Check predicates before emitting extv_32.
6199 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
6201         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
6202         (rs6000_traceback): New var.
6203         (rs6000_override_options): Set rs6000_traceback.
6204         (rs6000_output_function_epilogue): Implement traceback options.
6205         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
6206         (rs6000_traceback_name): Declare.
6208         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
6209         label reference when NO_PROFILE_COUNTERS.
6211 2002-07-26  Jason Merrill  <jason@redhat.com>
6213         * function.c (assign_parms): Handle frontend-directed pass by
6214         invisible reference.
6216 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
6218         * doc/cppopts.texi: Update.
6220 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
6222         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
6223         warnings on assertions.
6225 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
6227         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
6228         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
6229         RID_COMPL): Remove.
6230         * c-parse.in (rid_to_yy): Similarly.
6232 2002-07-26  Jason Merrill  <jason@redhat.com>
6234         * c-dump.c: Resurrect.
6235         * tree-dump.c: Move C-specific stuff to c-dump.c.
6236         * c-common.h: Declare c_dump_tree.
6237         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
6238         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
6239         (c-dump.o): New rule.
6241 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
6243         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
6244         PowerPC64.  Replace "T" and "S" constraints with "n" when the
6245         predicate will do.  Formatting fixes.
6246         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
6247         as for extzvsi_internal1.
6249 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
6251         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
6252         DERIV_END_LABEL_FMT): Remove.
6253         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
6255 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
6257         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
6258         Remove.
6260 2002-07-25  Stan Shebs  <shebs@apple.com>
6262         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
6263         local var dwarfp.
6264         (output_compiler_stub): Remove unused locals.
6265         (output_call): Always initialize line number.
6267 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
6269         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
6270         * sh.md (truncdiqi2, movqi_media): Likewise.
6272 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
6274         * gcse.c (obstack_chunk_alloc): Remove.
6275         (gcse_alloc): Fix to count allocated bytes.
6276         * collect2.c (SYMBOL__MAIN): Remove.
6278 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
6280         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
6281         HAVE_TARGET_EXECUTABLE_SUFFIX.
6283 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
6285         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
6286         SIZE, EXPR and OFFSET.
6288 2002-07-25  Richard Henderson  <rth@redhat.com>
6290         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
6291         in ARRAY_REF of DECL_P case.
6293 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
6295         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
6296         description.  Document -mips32, -mips64, and the associated -march
6297         values.  Describe the "mipsN" arguments to -march.  Say that the
6298         -mipsN options are equivalent to -march.  Reword the description
6299         of default type sizes.
6300         * toplev.h (target_flags_explicit): Declare.
6301         * toplev.c (target_flags_explicit): New var.
6302         (set_target_switch): Update target_flags_explicit.
6303         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
6304         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
6305         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
6306         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
6307         * config/mips/mips.h (mips_cpu_info): New struct.
6308         (mips_cpu_string, mips_explicit_type_size_string): Remove.
6309         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
6310         (MIPS_CPP_SET_PROCESSOR): New macro.
6311         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
6312         Define _MIPS_ARCH and _MIPS_TUNE.
6313         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
6314         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
6315         MIPS_ISA_DEFAULT were already defined.
6316         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
6317         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
6318         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
6319         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
6320         (ABI_GAS_ASM_SPEC): Remove.
6321         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
6322         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
6323         Invoke %(asm_abi_default_spec) if no ABI was specified.
6324         (CC1_SPEC): Remove ISA -> register-size rules.
6325         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
6326         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
6327         (mips_cpu_string, mips_explicit_type_size_string): Remove.
6328         (mips_cpu_info_table): New array.
6329         (mips_set_architecture, mips_set_tune): New fns.
6330         (override_options): Rework to make -mipsN equivalent to -march.
6331         Detect more erroneous cases, including those removed from CC1_SPEC.
6332         Don't change the ABI based on architecture, or vice versa.
6333         Unify logic with GAS.
6334         (mips_asm_file_start): Get architecture name from mips_arch_info.
6335         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
6336         (mips_parse_cpu): Take the name of the option as argument.  Handle
6337         'from-abi'.  Raise an error if the option is wrong.
6338         (mips_cpu_info_from_isa): New fn.
6340 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
6342         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
6343         (tablejump_mips162): Likewise.
6345 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
6347         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
6348         int_mode_for_mode.
6350 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
6352         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
6353         complaining.
6354         * c-common.h (c_sizeof): Adjust definition.
6355         (c_alignof): Likewise.
6356         * c-tree.h (c_sizeof_nowarn): Now macro.
6357         * c-typeck.c (c_sizeof_nowarn): Remove definition.
6359 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
6361         * c-decl.c (c_decode_option): No need to handle switches
6362         cpplib handles.
6364 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
6366         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
6367         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
6368         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
6369         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
6371         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
6372         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
6373         config/cris/aout.h, config/i386/freebsd-aout.h,
6374         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
6375         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
6376         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
6377         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
6378         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
6379         config/xtensa/elf.h, config/xtensa/linux.h:
6380         Use the new macros.
6381         Where possible, remove redundant definitions of SIZE_ASM_OP,
6382         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
6384 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
6386         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
6387         TARGET_ISEL, and TARGET_FPRS.
6389         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6390         -mabi=spe, -mabi=no-spe, and -misel=.
6392         * config/rs6000/rs6000-protos.h: Add output_isel.
6393         Move vrsave_operation prototype here.
6395         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
6396         (smaxsi3): Same.
6397         (uminsi3): Same.
6398         (umaxsi3): Same.
6399         (abssi2_nopower): Disallow when TARGET_ISEL.
6400         (*ne0): Same.
6401         (negsf2): Change to expand and rename old pattern to *negsf2.
6402         (abssf2): Change to expand and rename old pattern to *abssf2.
6404         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
6405         fixunssfsi2.
6407         Change patterns that check for TARGET_HARD_FLOAT or
6408         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
6410         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
6411         rs6000_isel, rs6000_fprs, rs6000_isel_string.
6412         (rs6000_override_options): Add 8540 case to
6413         processor_target_table.
6414         Set rs6000_isel for the 8540.
6415         Call rs6000_parse_isel_option.
6416         (enable_mask_for_builtins): New.
6417         (rs6000_parse_isel_option): New.
6418         (rs6000_parse_abi_options): Add spe and no-spe.
6419         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
6420         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
6421         for TARGET_HARD_FLOAT.
6422         Add case for SPE_VECTOR_MODE.
6423         (rs6000_legitimize_reload_address): Handle SPE vector modes.
6424         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
6425         vector modes.
6426         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
6427         (rs6000_emit_move): Check for TARGET_FPRS.
6428         Add cases for SPE vector modes.
6429         (function_arg_boundary): Return 64 for SPE vector modes.
6430         (function_arg_advance): Check for TARGET_FPRS and
6431         Handle SPE vectors.
6432         (function_arg): Same.
6433         (setup_incoming_varargs): Check for TARGET_FPRS.
6434         (rs6000_va_arg): Same.
6435         (struct builtin_description): Un-constify mask field.  Move up in
6436         file.
6437         (bdesc_2arg): Un-constify and add SPE builtins.
6438         (bdesc_1arg): Same.
6439         (bdesc_spe_predicates): New.
6440         (bdesc_spe_evsel): New.
6441         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
6442         (rs6000_expand_binop_builtin): Same.
6443         (bdesc_2arg_spe): New.
6444         (spe_expand_builtin): New.
6445         (spe_expand_predicate_builtin): New.
6446         (spe_expand_evsel_builtin): New.
6447         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
6448         (rs6000_init_builtins): Initialize SPE builtins.  Call
6449         rs6000_common_init_builtins.
6450         (altivec_init_builtins): Move all non-altivec builtin code to...
6451         (rs6000_common_init_builtins): ...here.  New function.
6452         (branch_positive_comparison_operator): Allow NE code for SPE.
6453         (ccr_bit): Return correct ccr bit for SPE fp.
6454         (print_operand): Emit crnor in 'D' case for SPE.
6455         New case 't'.
6456         Add SPE code for 'y' case.
6457         (rs6000_generate_compare): Generate rtl for SPE fp.
6458         (output_cbranch): Handle SPE hard floats.
6459         (rs6000_emit_cmove): Handle isel.
6460         (rs6000_emit_int_cmove): New.
6461         (output_isel): New.
6462         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
6463         64-bits for SPE.
6464         (debug_stack_info): Add SPE info.
6465         (gen_frame_mem_offset): New.
6466         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
6467         Change mode of frame pointer, when saving it, to Pmode.
6468         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
6469         Misc cleanups and use gen_frame_mem_offset when appropriate.
6471         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
6472         (TARGET_SPE_ABI): New.
6473         (TARGET_SPE): New.
6474         (TARGET_ISEL): New.
6475         (TARGET_FPRS): New.
6476         (FIXED_SCRATCH): New.
6477         (RTX_COSTS): Add PROCESSOR_PPC8540.
6478         (ASM_CPU_SPEC): Add case for 8540.
6479         (TARGET_OPTIONS): Add isel= case.
6480         (rs6000_spe_abi): New.
6481         (rs6000_isel): New.
6482         (rs6000_fprs): New.
6483         (rs6000_isel_string): New.
6484         (UNITS_PER_SPE_WORD): New.
6485         (LOCAL_ALIGNMENT): Adjust for SPE.
6486         (HARD_REGNO_MODE_OK): Same.
6487         (DATA_ALIGNMENT): Same.
6488         (MEMBER_TYPE_FORCES_BLK): New.
6489         (FIRST_PSEUDO_REGISTER): Set to 113.
6490         (FIXED_REGISTERS): Add SPE registers.
6491         (reg_class): Same.
6492         (REG_CLASS_NAMES): Same.
6493         (REG_CLASS_CONTENTS): Same.
6494         (REGNO_REG_CLASS): Same.
6495         (REGISTER_NAMES): Same.
6496         (DEBUG_REGISTER_NAMES): Same.
6497         (ADDITIONAL_REGISTER_NAMES): Same.
6498         (CALL_USED_REGISTERS): Same.
6499         (CALL_REALLY_USED_REGISTERS): Same.
6500         (SPE_ACC_REGNO): New.
6501         (SPEFSCR_REGNO): New.
6502         (SPE_SIMD_REGNO_P): New.
6503         (HARD_REGNO_NREGS): Adjust for SPE.
6504         (VECTOR_MODE_SUPPORTED_P): Same.
6505         (REGNO_REG_CLASS): Same.
6506         (FUNCTION_VALUE): Same.
6507         (LIBCALL_VALUE): Same.
6508         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
6509         (SPE_VECTOR_MODE): New.
6510         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
6511         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
6512         (rs6000_stack): Add spe_gp_size, spe_padding_size,
6513         spe_gp_save_offset.
6514         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
6515         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
6516         (SPE_CONST_OFFSET_OK): New.
6517         (rs6000_builtins): Add SPE builtins.
6519         * testsuite/gcc.dg/ppc-spe.c: New.
6521         * config/rs6000/eabispe.h: New.
6523         * config/rs6000/spe.h: New.
6525         * config/rs600/spe.md: New.
6527         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6528         __SIMD__ for TARGET_SPE.
6530         * config.gcc: Add powerpc-*-eabispe* case.
6531         Add spe.h to user headers for powerpc.
6533 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
6535         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
6536         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
6537         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
6539 2002-07-24  Richard Henderson  <rth@redhat.com>
6541         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
6542         form when not optimizing.
6544 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
6546         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
6547         thread_pointer_rtx as unchanging.
6549 2002-07-24  Michael Matz  <matz@suse.de>
6551         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
6552         (free_reg): Use it.
6554 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
6556         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
6557         pattern.
6558         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
6559         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
6561 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
6563         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
6564         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
6565         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
6567 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6569         * toplev.c (rest_of_compilation): Dump loops before clobbering
6570         the structure.
6572 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
6574         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
6576 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
6578         PR optimization/7291
6579         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
6580         problem on x86_64.
6582 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
6584         * pretty-print.h: Add macros from cp/error.c
6586 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
6588         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
6589         (mask64_2_operand): Declare.
6590         (build_mask64_2_operands): Declare.
6591         (and64_2_operand): Declare.
6592         (extract_MB): Declare.
6593         (extract_ME): Declare.
6594         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
6595         CONST_DOUBLE code.
6596         (mask_operand_wrap): New insn predicate.
6597         (mask64_2_operand): Likewise.
6598         (and64_2_operand): Likewise.
6599         (build_mask64_2_operands): New function.
6600         (extract_MB): New function.
6601         (extract_ME): New function.
6602         (print_operand <case m,M>): Use extract_MB and extract_ME.
6603         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
6604         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
6605         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
6606         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
6607         * config/rs6000/rs6000.md (andsi3_internal3): New
6608         (andsi3_internal3+1): Enable split for powerpc64.
6609         (andsi3_internal3+2): New split.
6610         (andsi3_internal4): Renamed old andsi3_internal3.
6611         (andsi3_internal5): New.
6612         (andsi3_internal5+1): Enable split for powerpc64.
6613         (andsi3_internal5+2): New split.
6614         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
6615         (anddi3): Handle 't' constraint.
6616         (anddi3+1): New split.
6617         (anddi3_internal2): Handle 't' constraint.
6618         (anddi3_internal2+1): New split.
6619         (anddi3_internal3): Handle 't' constraint.
6620         (anddi3_internal3+1): New split.
6622 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
6624         * config/rs6000/rs6000.md: Remove scratch reg on insns using
6625         addze and similar (plus (comparison r1 r2) r3) insns.  Add
6626         missing scratch reg in one case.  Formatting fixes.
6628 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
6630         * cppexp.c (parse_defined): Mark macro used.
6631         * cpphash.h (struct cpp_macro): New member "used".
6632         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
6633         (struct cpp_reader): New member.
6634         * cppinit.c (cpp_finish_options): Set first_unused_line.
6635         (cpp_finish): Warn of unused macros if requested.
6636         (OPT_TABLE): New switches.
6637         (cpp_handle_option): Handle them.
6638         * cpplib.c (do_undef): Warn if macro unused.
6639         (do_ifdef, do_ifndef): Mark macro used.
6640         * cpplib.h (struct cpp_options): New member.
6641         * cppmacro.c (_cpp_warn_if_unused_macro): New.
6642         (enter_macro_context): Mark macro used.
6643         (_cpp_create_definition): Mark macro unused; warn if unused
6644         when redefined.
6645         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
6646         Mark macros used.
6647         * doc/cppopts.texi: Update.
6649 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
6651         * dwarf2out.c (SECTION_ASM_OP,
6652         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
6653         * system.h (SECTION_ASM_OP): Poison.
6654         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
6655         * config/alpha/alpha-interix.h, config/mips/linux.h
6656         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
6657         * config/mmix/mmix-protos.h, config/mmix/mmix.c
6658         (mmix_asm_output_define_label_difference_symbol): Remove.
6659         * config/mmix/mmix.h
6660         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
6661         * doc/tm.texi: Remove documentation.
6663 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
6665         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
6666         (constrain_operands): Likewise.
6667         * regclass.c (record_reg_classes): Likewise.
6668         * reload.c (find_reloads): Likewise.
6669         * doc/md.texi: Likewise.
6671         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
6672         * simplify-rtx.c (simplify_subreg): When converting to a non-int
6673         mode, try to convert to an integer mode of matching size first.
6675         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
6676         from individual subregs, check that each subreg has been generated
6677         sucessfully.
6679 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
6681         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
6682         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
6683         FOR_EACH_BB_IN_SBITMAP): Remove.
6684         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
6685         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
6686         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
6687         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
6688         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
6689         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
6691 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
6693         * pretty-print.h: New file.
6695 2002-07-23      Paul Koning     <pkoning@equallogic.com>
6697         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
6698         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
6699         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
6700         (TARGET_G_FLOAT): Default to 0 if not defined.
6701         (ieeetoe): New, common routine to convert target format floats
6702         to internal form.
6703         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
6704         vs. others.
6705         (e113toe): Change to use ieeetoe.
6707 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6709         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
6710         IBM.
6711         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
6712         (e64toe): Remove special cases for DEC and IBM. Remove support for
6713         ARM_EXTENDED_IEEE_FORMAT.
6714         (e24toe): Remove special cases for DEC.
6715         (significand_size): Simplify. Indent.
6716         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
6717         (etoieee, toieee): New.
6718         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
6719         etoieee and toieee for IEEE arithmetic.
6721 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
6723         * doc/extend.texi: Say ISO C90, not ISO C89.
6724         * doc/invoke.texi: Likewise.
6725         * doc/standards.texi: Likewise.
6727 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
6729         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
6730         Fix permutation of conversion and plus/mult.
6731         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
6732         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
6733         (expand_builtin_strncpy) Ditto.
6734         (expand_builtin_memset) Ditto.
6736 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
6738         Fix PR/7363:
6739         * c-common.c (c_sizeof_or_alignof_type): New function.
6740         (c_alignof): Remove definition.
6741         * c-common.h (c_sizeof, c_alignof): Define as macros.
6742         (c_sizeof_or_alignof_type): Declare.
6743         (my_friendly_assert): Moved from cp/cp-tree.h
6744         * c-typeck.c (c_sizeof): Remove definition.
6746 2002-07-23  Jan Hubicka  <jh@suse.cz>
6748         * gcse.c (try_replace_reg): Use num_changes_pending.
6749         * recog.c (num_changes_pending): New function.
6750         (validate_replace_src): Use validate_repalce_src_group.
6751         (validate_replace_src_group): New.
6752         * recog.h (validate_repalce_src_group): New.
6753         (num_changes_pending): Likewise.
6755 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
6757         * calls.c (emit_library_call_value_1): If
6758         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
6759         libcall, const call nor pure call.
6761 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
6763         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
6765 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
6767         * vmsdbgout.c (SECTION_ASM_OP): Remove.
6769 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
6771         * config/i386/i386.c (AT_BP): Remove.
6773 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
6775         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
6776         Default definition.
6777         * gcse.c: Don't define obstack_chunk_free.
6778         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
6779         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
6780         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
6781         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
6782         Don't define obstack macros.
6784 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
6786         PR target/6744
6787         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
6788         ASM_OPERANDS instructions.
6790 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
6792         PR target/7361
6793         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
6794         constant addresses only on 68HC12.
6796 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
6798         * cppfiles.c (stack_include_file): Correct test of whether
6799         a dependency should be output.
6801 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
6803         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
6805 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
6807         * arm.md (movqi): If optimizing and we can create pseudos, use
6808         a ZERO_EXTEND to load from memory, then copy the result into the
6809         target.
6810         (movhi): Likewise, but only for ARMv4.
6812 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
6814         * ssa-ccp.c (PHI_PARMS): Remove.
6816 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
6818         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
6819         on big-endian targets.
6821 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6823         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
6824         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
6825         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
6826         New formatting macros.
6828         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
6830 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
6832         * rtlanal.c (subreg_regno_offset): Return correct offset for
6833         big endian paradoxical subregs.
6835         * optabs.c (expand_vector_unop): Don't expand using sub_optab
6836         if we got the wrong mode.
6838         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
6839         * genrecog.c (write_switch, write_cond): Use it.
6840         * genemit.c (gen_exp): Likewise.
6842 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
6844         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
6846 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
6848         * c-decl.c (build_compound_literal): Defer compound literal decls
6849         until until file end to emit them only if they are actually used.
6851 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6853         * ra-build.c (check_conflict_numbers): Hide unused function.
6854         (livethrough_conflicts_bb): Avoid automatic aggregate
6855         initialization.
6856         (parts_to_webs_1): Avoid `U' integer constant modifier.
6857         (conflicts_between_webs): Wrap a variable in the macro controlling
6858         its usage.
6859         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
6860         (dump_igraph, dump_graph_cost): Avoid string concatenation
6861         (dump_static_insn_cost): Avoid automatic aggregate
6862         initialization.
6863         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
6864         initialization.
6865         (dump_cost): Avoid string concatenation
6867 2002-07-21  Richard Henderson  <rth@redhat.com>
6869         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
6870         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
6872 2002-07-21  Richard Henderson  <rth@redhat.com>
6874         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
6875         that are not unrolled completely.
6877 2002-07-21  Richard Henderson  <rth@redhat.com>
6879         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
6880         * loop.c (strength_reduce): Update.
6881         * toplev.c (rest_of_compilation): Do unrolling in the first
6882         loop pass, not the second.
6884 2002-07-21  Richard Henderson  <rth@redhat.com>
6886         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
6887         when flag_argument_noalias == 2.
6888         * alias.c (nonoverlapping_memrefs_p): Handle that.
6889         * print-rtl.c (print_mem_expr): Likewise.
6891 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
6893         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
6894         instead of __negdi2 directly.
6896 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
6898         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
6899         * function.c (SYMBOL__MAIN): Remove definition.
6900         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
6901         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
6902         * profile.c (GCOV_INDEX_TO_BB): Remove.
6903         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
6904         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
6906 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
6908         * c-lex.c (GET_ENVIRONMENT): Remove.
6909         * collect2.c (GET_ENV_PATH_LIST): Remove.
6910         (prefix_from_env): Use GET_ENVIRONMENT.
6911         * cppinit.c (GET_ENV_PATH_LIST): Remove.
6912         (init_standard_includes): Use GET_ENVIRONMENT.
6913         * defaults.h (GET_ENVIRONMENT): Define here if not already.
6914         * gcc.c (GET_ENV_PATH_LIST): Remove.
6915         (make_relative_prefix, process_command): Update.
6916         * protoize.c (GET_ENV_PATH_LIST): Remove.
6917         (do_processing): Update.
6919 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
6921         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
6922         (grokdeclarator): Likewise.
6923         * c-format.c (C_STD_NAME): Likewise.
6924         * c-lex.c (interpret_integer): Likewise.
6925         * c-typeck.c (build_array_ref): Likewise.
6926         * cpplex.c (_cpp_lex_direct): Likewise.
6927         * toplev.c (documented_lang_options): Likewise.
6929 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
6931         * c-format.c (T99_I, T99_UI): Remove.
6933 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
6935         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
6937 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
6939         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
6940         do_local_cprop.
6942 2002-07-21  Andreas Jaeger  <aj@suse.de>
6944         * reload1.c (fixup_abnormal_edges): Remove unused variable.
6946 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
6948         Improvements for the ifcvt pass from Michael Meissner, with patches
6949         by Richard Sandiford <rsandifo@redhat.com>
6950         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
6951         * ifcvt.c (cond_exec_changed_p): New static variable.
6952         (last_active_insn): New function, renamed from last_active_insn_p
6953         and changed to return the last active insn in a basic block. All
6954         callers updated.
6955         (block_fallthru): New function.
6956         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
6957         IFCVT_MODIFY_INSN.  All callers updated.
6958         Return false if START or END are NULL.
6959         Handle case where we're processing an insn that is already
6960         conditional.
6962         (noce_process_if_block): CE_INFO argument rather than
6963         multiple args containing the involved basic blocks.  All callers
6964         changed.
6965         (process_if_block, merge_if_block, find_if_block,
6966         cond_exec_process_if_block): Likewise.
6968         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
6969         changed.
6970         Use new function last_active_insn to simplify some code.
6971         New code to handle multiple tests.
6972         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
6973         cond_exec_changed_p to TRUE.
6975         (process_if_block): New code to handle multiple tests.
6976         (merge_if_block): Likewise.
6977         (find_if_header): New arg PASS.  Changed to return the currently
6978         processed basic block or NULL instead of true/false. All callers
6979         changed.
6980         Call IFCVT_INIT_EXTRA_FIELDS.
6981         (block_jumps_and_fallthru_p): New function.
6982         (find_if_block): Discover opportunities to convert multiple tests.
6983         Add additional debugging output.
6984         Update the ce_info structure before returning.
6986         (if_convert): Run multiple passes of if-conversion.
6987         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
6988         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
6989         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
6990         these macros.
6992 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6994         * gcse.c: Include cselib.h
6995         (constptop_register): Break out from ...
6996         (cprop_insn): ... here; kill basic_block argument.
6997         (do_local_cprop, local_cprop_pass): New functions.
6998         (one_cprop_pass): Call local_cprop_pass.
7000 2002-07-20  Roger Sayle  <roger@eyesopen.com>
7002         * simplify-rtx.c (simplify_relational_operation): Optimize
7003         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
7005 2002-07-20  Michae Matz  <matz@suse.de>
7007         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
7009 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
7011         * cppexp.c (struct op): Add token pointer.
7012         (check_promotion, CHECK_PROMOTION): New.
7013         (optab): Update.
7014         (_cpp_parse_expr): Update, use token pointer of struct op.
7015         (reduce): Warn about change of sign owing to promotion.
7016         * cppinit.c (cpp_handle_option): New warning if -Wall.
7017         * cpplib.h (struct cpp_options): New member.
7019 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
7021         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
7022         fpu list.  Separate Power4 compare and delayed_compare.  Correct
7023         Power4 fpcompare.
7024         (fix_truncdfsi2_internal): Restore FPR preference.
7025         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
7026         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
7028 2002-07-19  Momchil Velikov <velco@fadata.bg>
7030         * reload1.c (reload_as_needed): Duplicate oldpat.
7032 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
7034         PR optimization/7130
7035         * loop.h (struct loop_info): Add "preconditioned".
7036         * unroll.c (unroll_loop): Set it.
7037         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
7039 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
7041         * rtl.def (CODE_LABEL): Remove slot 8.
7042         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
7043         (LABEL_ALTERNATE_NAME): Delete.
7044         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
7045         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
7047         * final.c (output_alternate_entry_point): New.
7048         (final_scan_insn): Use it instead of
7049         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
7050         of a case label being an alternate entry point.
7052         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
7053         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
7054         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
7055         (field deleted).
7056         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
7058         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
7059         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
7060         * doc/tm.texi: Delete documentation of
7061         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
7063 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7065         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
7066         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
7067         (LINK_SPEC): Define.
7068         (STARTFILE_SPEC): Define.
7069         (ENDFILE_SPEC): Define.
7071         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
7072         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
7074         * config/mips/iris6-o32-gas.h: New file.
7075         * config.gcc (mips-sgi-irix6*o32): Use it.
7077         * config/mips/t-iris5-gas: New file.
7078         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
7080 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
7082         * cppexp.c (ALWAYS_EVAL): Remove.
7083         (optab, reduce): Always evaluate.
7084         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
7085         only if not skipping evaluation.
7087 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7089         * config/avr/avr.c (debug_hard_reg_set): Remove.
7091 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
7093         * gcc.c (cpp_options): Include "%1" (cc1_spec).
7095 2002-07-19  Richard Henderson  <rth@redhat.com>
7097         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
7099 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
7101         * prefix.c (update_path): Don't zap single `.' path components
7102         unless followed by another `.' and fix typo last patch.
7104 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
7106         * cppexp.c (cpp_num_mul): Remove unused parameter.
7107         (UNARY, BINARY, OTHER, binary_handler): Remove.
7108         (ALWAYS_EVAL): New.
7109         (optab): Update.
7110         (reduce): Refactor to a large switch, don't use a function
7111         pointer.
7113 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
7115         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
7117 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
7119         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
7120         (sh_expand_binop_v2sf): Likewise.
7121         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
7122         (int_gpr_dest, trunc_hi_operand): New functions.
7123         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
7124         trunc_hi_operand.
7125         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
7126         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
7127         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
7128         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
7129         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
7130         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
7131         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
7132         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
7133         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
7134         (movsf_ie+1): Likewise.
7135         (loaddi_trunc): Use int_gpr_dest predicate.
7136         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
7137         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
7138         (casesi_worker_0+[12], casesi_worker): Likewise.
7139         (shcompact_preserve_incoming_args): Likewise.
7140         (mov_nop): Use any_register_operand predicate.
7141         (mperm_w0): Use trunc_hi_operand predicate.
7143 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7145         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
7146         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
7147         numbering.
7149 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7151         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
7153 2002-07-18  Richard Henderson  <rth@redhat.com>
7155         PR optimization/7147
7156         * ifcvt.c (noce_get_condition): Make certain that the condition
7157         is valid at JUMP.
7159 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
7161         * sh.c (barrier_align, push): Shut up compiler warnings.
7162         (initial_elimination_offset,sh_media_init_builtins): Likewise.
7163         (reg_no_subreg_operand): Delete.
7165 2002-07-17  Bo Thorsen  <bo@suse.de>
7167         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
7168         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
7169         (STARTFILE_SPEC): Remove hardcoded library paths.
7170         (ENDFILE_SPEC): Likewise.
7172 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
7174         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
7176         * gcse.c (try_replace_reg): Do not return false positives.
7178 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
7180         * prefix.c: (update_path): Strip ".." components when prior dir
7181         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
7183         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
7184         (ASM_OUTPUT_REG_POP): Likewise.
7186 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
7188         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
7189         adjustments to first_reg for profiling case.
7190         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
7191         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
7192         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
7193         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
7194         (ASM_OUTPUT_REG_POP): Define.
7195         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
7196         (ASM_OUTPUT_REG_POP): Undef.
7198 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
7200         * cpplib.c (do_sccs): Handle #sccs on all systems.
7201         * system.h (SCCS_DIRECTIVE): Poison.
7202         * config/darwin.h, config/freebsd.h, config/netbsd.h,
7203         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
7204         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
7205         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
7206         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
7207         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
7208         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
7209         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
7210         Remove all references to SCCS_DIRECTIVE.
7211         * doc/cpp.texi, doc/tm.texi: Update.
7213 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
7215         * regrename.c (maybe_mode_change): New function.
7216         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
7218 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
7220         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
7221         suppress addition when either ct or cf are zero.
7223 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
7224             Glen Nakamura <glen@imodulo.com>
7226         PR optimization/6713
7227         * loop.c (loop_givs_rescan): Explicitly delete the insn that
7228         sets a non-replaceable giv after issuing the new one.
7230 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
7232         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
7233         eval_token): Clarify and correct use of "bool" variables.
7234         * cpplib.h (struct cpp_options): Similarly.
7235         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
7236         * cpptrad.c (recursive_macro): Similarly.
7238 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
7240         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
7241         SHmedia code.
7243         * sh.md (cmpgtudi_media): Remove spurious @.
7245         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
7246         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
7248         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
7249         * sh-protos.h (sh_initialize_trampoline): Declare.
7250         * sh.c (sh_initialize_trampoline): New function.
7251         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
7252         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
7253         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
7254         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
7255         * sh.md (initialize_trampoline, double_shori): New patterns.
7256         (initialize_trampoline_compact): Likewise.
7257         (shmedia32_initialize_trampoline_big): Remove.
7258         (shmedia32_initialize_trampoline_little): Likewise.
7260         * sh-protos.h (binary_float_operator): Remove declaration.
7261         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
7262         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
7263         (unary_float_operator, sh_expand_unop_v2sf): New functions.
7264         (sh_expand_binop_v2sf): Likewise.
7265         (zero_vec_operand): Delete.
7266         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
7267         all non-shared ones.
7268         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
7269         Enable nsb and byterev.
7270         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
7271         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
7272         in general regs.
7273         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
7274         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
7275         immediate operands.
7276         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
7277         Add DF_HI_REGS.
7278         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
7279         lowpart fp regs - only for big endian for now.
7280         (LEGITIMATE_CONSTANT_P): Don't allow nonzero float vectors
7281         when FPU is in use.
7282         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
7283         (LOAD_EXTEND_OP): NIL for SImode.
7284         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
7285         general and fp registers is 4.
7286         PREDICATE_CODES: Amend binary_float_operator entry.
7287         Remove zero_vec_operand.  Add unary_float_operator.
7288         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
7289         subreg SET_DEST.
7290         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
7291         (truncdiqi2): Do sign extension.
7292         (movsi_media, movdi_media): Allow to use r63 to an fp register.
7293         (movdf_media, movsf_media): Likewise.
7294         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
7295         Collapse to one define_insn_and_split.  Allow immediate sources.
7296         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
7297         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
7298         (movv4sf): Allow immediate sources.
7299         (movsf_media_nofpu+1): Don't split moves to FP registers.
7300         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
7301         (movv8qi_i+3): Check against CONST0_RTX.
7302         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
7303         for input and output operands.  Fix argument 3 to gen_mextr_rl.
7304         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
7305         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
7306         (mshf0_w, fipr, ftrv): Likewise.
7307         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
7309 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7311         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
7312         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
7313         * arm.c: Similarly.
7315 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
7317         * config/mips/mips-protos.h (mips_sign_extend): Declare.
7318         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
7319         (TARGET_SWITCHES): Remove debugh.
7320         (ISA_HAS_TRUNC_W): New macro.
7321         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
7322         (PREDICATE_CODES): Remove se_nonimmediate_operand.
7323         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
7324         any SImode move_operand.
7325         (se_nonimmediate_operand): Remove.
7326         (mips_sign_extend): New.
7327         (mips_move_2words): Use it for sign-extended source operands.
7328         (override_options): Allow integers to be put into single FPRs.
7329         (mips_secondary_reload_class): Handle integers in float registers.
7330         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
7331         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
7332         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
7333         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
7334         (fix_truncdfdi2): Provide only a single alternative, in which the
7335         integer is in a float register.  Depend on TARGET_FLOAT64 rather
7336         than TARGET_64BIT.
7337         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
7338         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
7339         (movdi_internal2): Don't allow the source operand to be sign-extended.
7340         Add alternatives for float registers.
7341         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
7342         allows sign-extension.
7343         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
7344         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
7345         float registers.  Remove TARGET_DEBUG_H_MODE test.
7346         (movhi_internal1): Rename to movhi_internal.  Don't check
7347         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
7348         (movqi_internal1): Rename to movqi_internal and remove
7349         TARGET_DEBUG_H_MODE dependency.
7350         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
7352 2002-07-16  Jim Wilson  <wilson@redhat.com>
7354         * toplev.c (lang_dependent_init): Create function context for
7355         init_expr_once.
7357 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
7359         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
7360         --gc-sections if -r.
7361         * config/cris/cris.h: Ditto.
7363 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
7365         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
7366         the comparison directly gives a mask suppress addition when cf is
7367         zero by complementing the mask.
7369 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
7371         * Makefile.in: Delete references to enquire.
7372         * enquire.c: Move to contrib.
7374 2002-07-16  Stan Shebs  <shebs@apple.com>
7376         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
7377         config/rs6000/darwin.h.
7378         (ASM_OUTPUT_SKIP): Ditto.
7379         (TEXT_SECTION_ASM_OP): Ditto.
7380         (DATA_SECTION_ASM_OP): Ditto.
7381         (ASM_APP_ON): Define.
7382         (ASM_APP_OFF): Define.
7383         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
7384         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
7386         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
7387         (machopic_function_base_name): Declare result to be const.
7388         (machopic_non_lazy_ptr_name): Ditto.
7389         (machopic_stub_name): Ditto.
7390         * config/darwin-protos.h: Ditto for the prototypes.
7392 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
7394         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
7396 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
7398         * i386.md (prefetch): Fix for 64bit mode.
7399         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
7401 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
7403         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
7404         * i386.c (x86_machine_dependent_reorg): New function.
7405         * i386-protos.h (x86_machine_dependent_reorg): Declare.
7407 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
7409         * builtins.c (std_expand_builtin_va_start): Remove unused
7410         first argument.
7411         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
7412         std_expand_builtin_va_start with just two arguments.
7413         * expr.h: Update prototypes.
7415         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
7416         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
7417         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
7418         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
7419         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
7420         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
7421         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
7422         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
7423         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
7424         argument from all implementations of EXPAND_BUILTIN_VA_START
7425         and all uses of std_expand_builtin_va_start.
7427 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
7429         * regrename.c (copy_value): Don't record high part copies.
7431 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
7433         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
7434         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
7435         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
7437 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
7439         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
7441         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
7442         into addsi3 using register class "x" and "y".
7444         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
7445         "earlyclobber" constraint modifier for some alternative.
7447         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
7448         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
7449         unordered.
7450         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
7452         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
7453         (TARGET_SWITCHES): Add -mieee-compare option.
7454         (OVERRIDE_OPTIONS): 32332 is a subset of
7455         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
7456         (TARGET_SWITCHES): Fix description of bit-field option.
7457         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
7458         -mieee-compare option. Remove 32332 flag.
7460 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
7462         * explow.c (convert_memory_address): Remove special handling
7463         when POINTERS_EXTEND_UNSIGNED < 0.
7464         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
7465         (movedi_symbolic): Fix typo.
7466         (load_fptr): Remove mode restriction so it works for SI and DI.
7467         (load_fptr_internal1): Ditto.
7468         (load_gprel): Ditto.
7469         (load_symptr_internal1): Ditto.
7470         (call_pic): Ditto.
7471         * config/ia64.c (call_operand): Modify mode check.
7472         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
7473         (ia64_expand_move): Ditto.
7474         (ia64_assemble_integer): Handle SImode function pointers.
7475         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
7476         (ia64_expand_op_and_fetch): Ditto.
7477         (ia64_expand_compare_and_swap): Ditto.
7478         (ia64_expand_lock_test_and_set): Ditto.
7479         (ia64_expand_lock_release): Ditto.
7481 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7483         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
7485 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7486             Richard Earnshaw  <rearnsha@arm.com>
7488         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
7489         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
7491 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
7493         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
7494         understands to be a memory clobber.
7495         * arm.c (arm_expand_prologue): Use it.
7497 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
7499         * ra-rewrite.c: #include reload.h, insn-config.h
7500         * ra-build.c: #include reload.h
7501         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
7502         depend on reload.h, insn-config.h.
7504 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
7506         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
7507         the same size as a word.
7509         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
7510         BYTES_BIG_ENDIAN into account.
7512 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
7514         * i386.md (prefetch): Fix for 64bit mode.
7515         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
7517         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
7519 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7521         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
7523 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
7525         * ginclude/varargs.h: Replace with stub which issues #error.
7526         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
7527         __builtin_va_start.
7529         * builtins.def (BUILT_IN_VARARGS_START): Delete.
7530         (BUILT_IN_VA_START): New.
7531         * builtins.c (expand_builtin_va_start): Eliminate first
7532         argument and code to implement pre-ISO varargs.
7533         (std_expand_builtin_va_start): Ignore first argument; it is
7534         always 1.
7535         (expand_builtin): Handle BUILT_IN_VA_START and
7536         BUILT_IN_STDARG_START identically.  Delete
7537         BUILT_IN_VARARGS_START case.
7539         * function.c (assign_parms): Delete hide_last_arg and all
7540         its uses.
7541         (mark_varargs): Delete function.
7542         * function.h (struct function): Delete 'varargs' bit.
7543         (current_function_varargs): Delete macro.
7544         * tree.h: Don't declare mark_varargs.
7546         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
7547         (c_expand_body): Don't call mark_varargs.
7548         * c-objc-common.c: Handle BUILT_IN_VA_START and
7549         BUILT_IN_STDARG_START identically.  Delete
7550         BUILT_IN_VARARGS_START case.
7551         * c-tree.h: Don't declare c_mark_varargs.
7552         * c-parse.in: Remove grammar rules for '&...' (which has been
7553         commented out since before 2.7.2) and for '...' in K+R
7554         argument declarations.
7556         * builtins.c, function.c, integrate.c, sibcall.c,
7557         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
7558         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
7559         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
7560         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
7561         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
7562         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
7563         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
7564         config/stormy16/stormy16.c: Delete all references to
7565         current_function_varargs, and code predicated on that flag.
7567         * config/alpha/alpha.c (alpha_va_start),
7568         config/arc/arc.c (arc_va_start),
7569         config/i386/i386.c (ix86_va_start),
7570         config/mips/mips.c (mips_va_start),
7571         config/mn10300/mn10300.c (mn10300_va_start),
7572         config/rs6000/rs6000.c (rs6000_va_start),
7573         config/s390/s390.c (s390_va_start),
7574         config/sh/sh.c (sh_va_start),
7575         Ignore first argument; it is always 1.
7577         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
7578         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
7579         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
7580         Delete m68hc11_va_start.
7581         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
7582         No need to define EXPAND_BUILTIN_VA_START.
7584         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
7585         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
7587 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
7589         PR optimization/7153
7590         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
7591         dies in more than one insn.
7593 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
7595         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
7597 2002-07-15  Michael Matz  <matz@suse.de>,
7598             Daniel Berlin  <dberlin@dberlin.org>,
7599             Denis Chertykov  <denisc@overta.ru>
7601         Add a new register allocator.
7603         * ra.c: New file.
7604         * ra.h: New file.
7605         * ra-build.c: New file.
7606         * ra-colorize.c: New file.
7607         * ra-debug.c: New file.
7608         * ra-rewrite.c: New file.
7610         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
7611         (ra-rewrite.o): New .o files for libbackend.a.
7612         (GTFILES): Add basic-block.h.
7614         * toplev.c (flag_new_regalloc): New.
7615         (f_options): New option "new-ra".
7616         (rest_of_compilation): Call initialize_uninitialized_subregs()
7617         only for the old allocator.  If flag_new_regalloc is set, call
7618         new allocator, instead of local_alloc(), global_alloc() and
7619         friends.
7621         * doc/invoke.texi: Document -fnew-ra.
7622         * basic-block.h (FOR_ALL_BB): New.
7623         * config/rs6000/rs6000.c (print_operand): Write small constants
7624         as @l+80.
7626         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
7627         (df_reg_table_realloc): Make size at least as large as max_reg_num().
7628         (df_insn_table_realloc): Size argument now is absolute, not relative.
7629         Changed all callers.
7631         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
7632         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
7634         2002-06-20  Michael Matz  <matz@suse.de>
7636         * df.h (struct ref.id): Make unsigned.
7637         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
7639         2002-06-13  Michael Matz  <matz@suse.de>
7641         * df.h (DF_REF_MODE_CHANGE): New flag.
7642         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
7643         involving subregs with invalid mode changes, when
7644         CLASS_CANNOT_CHANGE_MODE is defined.
7646         2002-05-07  Michael Matz  <matz@suse.de>
7648         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
7650         2002-05-03  Michael Matz  <matz@suse.de>
7652         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
7654         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
7656         * regclass.c (regclass): Work with all regs which have sets or
7657         refs.
7658         (reg_scan_mark_refs): Count regs inside (clobber ...).
7660         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
7662         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
7663         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
7664         add new refs.
7665         (df_bb_refs_update): Don't clear insns_modified here, ...
7666         (df_analyse): ... but here.
7668         * sbitmap.c (dump_sbitmap_file): New.
7669         (debug_sbitmap): Use it.
7671         * sbitmap.h (dump_sbitmap_file): Add prototype.
7673         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
7675         * df.c (df_insn_modify): Grow the UID table if necessary, rather
7676         than assume all emits go through df_insns_modify.
7678         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
7680         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
7681         increase REG_N_REFS (like flow does), so that regclass doesn't
7682         think a reg is useless, and thus, not calculate a class, when it
7683         really should have.
7685         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
7687         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
7688         dataflow analysis.
7690 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
7692         PR middle-end/7245
7693         * config/i386/i386.c (const_int_1_31_operand): New.
7694         * config/i386/i386.h (PREDICATE_CODES): Add it.
7695         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
7696         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
7697         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
7699 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
7701         PR target/7282
7702         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
7703         (floatunssidf2): Likewise.
7704         (floatsidf_ppc64): New insn_and_split.
7705         (floatunssidf_ppc64): Likewise.
7707 2002-07-14  Andreas Jaeger  <aj@suse.de>
7709         * config.gcc (sh64): Remove unused
7710         target_requires_64bit_host_wide_int.
7712 2002-07-12  Roger Sayle  <roger@eyesopen.com>
7714         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
7715         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
7716         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
7717         whether clear_by_pieces should be used to clear storage.
7718         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
7720         * doc/tm.texi: Document these two new target macros.
7722 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
7724         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
7725         the scratch register.
7726         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
7727         of it, forbid reload to use it.
7729 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7731         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
7732         usage on 64-bit hosts, return value was truncated to 32 bits.
7734 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
7736         * simplify-rtx.c (simplify_subreg): Handle floating point
7737         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
7738         the element mode is requested, compute a subreg with an
7739         integer mode of the same size as the element mode first.
7741 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7743         * combine.c (try_combine): When converting a paradoxical subreg
7744         to an extension, take LOAD_EXTEND_OP into account.
7746 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7748         * config.gcc (mips-sgi-irix6*o32): New configuration.
7750         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
7751         configurations.
7752         * configure: Regenerate.
7754         * config/mips/iris6-o32-as.h: New file.
7755         * config/mips/iris6-o32.h: New file.
7757         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
7758         (NM_FLAGS): Define.
7759         (HAVE_AS_SHF_MERGE): Undefine.
7761         * config/mips/t-iris5-as: New file.
7762         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
7764         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
7765         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
7766         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
7767         dp-bit.c, fp-bit.c): Move ...
7768         * config/mips/t-iris5-6: ... here.
7769         New file, shared by IRIX 5 and IRIX 6.
7770         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
7771         mips-sgi-irix5*): Use it.
7773         * config/mips/iris6.h: Remove duplicate comment.
7775         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
7776         !TARGET_IRIX6]: Define.
7777         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
7779         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
7781 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7783         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
7784         and delete code to force constant to register.
7785         * pa-protos.h (adddi3_operand): Add prototype.
7786         * pa.c (adddi3_operand): New function.
7788 2002-07-11  Roger Sayle  <roger@eyesopen.com>
7790         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
7791         non-ANSI builtin functions.
7793 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
7795         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
7796         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
7797         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
7798         (gen_const_vector_0): Use it.
7800 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7802         * pa.md (adddi3): For 32-bit targets, force constants to a register
7803         if they don't fit in an 11-bit immediate.  Change insn predicate to
7804         arith11_operand.  Remove comment.
7805         * pa.c (cint_ok_for_move): Fix comment.
7806         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
7807         targets.
7809 2002-07-11  Tim Josling  <tej@melbpc.org.au>
7811         Remove front end hard coding from gengtype.c.
7813         * Makefile.in
7814         (STAGESTUFF): add gtyp-gen.h
7815         (GTFILES): Remove front end specific files.
7816         (GTFILES_FILES_LANGS): New, from configure..
7817         (GTFILES_FILES_FILES): Likewise.
7818         (GTFILES_LANG_DIR_NAMES): Likewise.
7819         (GTFILES_SRCDIR): Likewise.
7820         (gtyp-gen.h): Build from configure information.
7821         (s-gtype): Remove command line parameters from gengtype.
7822         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
7823         (mostlyclean): Delete files generated by and for gengtype.
7825         * c-config-lang.in: New file.
7827         * configure.in (all_gtfiles_files_langs): New. Accumulate files
7828         for each language.
7829         (all_gtfiles_files_files): New. Accumulate language for each file
7830         accumulated.
7831         (gtfiles): Pick up value for C.
7832         (srcdir): AC-SUBST this variable.
7833         (all_gtfiles_files_langs): AC-SUBST this variable.
7834         (all_gtfiles_files_files): AC-SUBST this variable.
7836         * configure: Regenerate.
7838         * gengtype-lex.l (parse_file): Make parameter const.
7840         * gengtype.c (toplevel): include gtyp-gen.h.
7841         (BASE_FILE_<language> unnamed enum): Delete.
7842         (lang_names): Delete (replaced by gtyp-gen.h)
7843         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
7844         all references.
7845         (NUM_GT_FILES): New.
7846         (NUM_LANG_FILES): New.
7847         (srcdir_len): New.
7848         (NUM_BASE_FILES): Change calculation.
7849         (open_base_files): Change prototype to avoid warning.
7850         (startswith): Delete.
7851         (get_file_basename): Iterate through generated language list not
7852         hard coded list.
7853         (get_base_file_bitmap): Use generated list of files and languages.
7854         (close_output_files): Add prototype to rmove warning.
7855         (main): Iterate through list of generated files from gtyp-gen.h
7856         rather than command line paramaters.  Ignore duplicated file
7857         names.
7859         * gengtype.h (parse_file): Amend prototype for const parameter.
7861         * doc/sourcebuild.texi: Document gtfiles variable.
7863         * doc/gty.texi: Document changes to gtfiles variable for front
7864         ends.
7866         * objc/config-lang.in (gtfiles): Add files needed for objc front
7867         end.
7869 2002-07-10  Roger Sayle  <roger@eyesopen.com>
7871         PR c/2454
7872         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
7873         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
7875 2002-07-10  Roger Sayle  <roger@eyesopen.com>
7876             Zack Weinberg <zack@codesourcery.com>
7878         * builtins.def: Make the argument types of abort and exit
7879         independent of the front-end.
7881 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
7883         * config/rs6000/linux64.h (ASM_SPEC): Define.
7885 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
7887         * config/rs6000/rs6000.c (emit_frame_save): New.
7888         (rs6000_frame_related): Replace reg2 before reg.
7889         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
7890         and eh_return registers.
7892 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
7894         Revert all patches for optimization of Complex .op. Real.
7895         * complex_part_zero_p: Remove
7896         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
7897         with x.
7898         * expand_cmplxdiv_wide: Ditto.
7899         * expand_binop: Ditto.
7901 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7903         * config/avr/avr.md: Fix two 0x80000000 constants to make them
7904         negative also on 64-bit hosts.
7906         Default to -fno-reorder-blocks when optimizing for size.
7907         * config/avr/avr-protos.h (avr_optimization_options): Declare.
7908         * config/avr/avr.c (avr_optimization_options): New function.
7909         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
7911         Optimize returning from simple functions.
7912         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
7913         * config/avr/avr.c (avr_simple_epilogue): New function.
7914         * config/avr/avr.md (return): New insn.
7916 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
7918         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
7919         HAS_INIT_SECTION to protection.
7921 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
7923         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
7924         deprecated.
7926 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
7928         * combine.c (gen_lowpart_for_combine): Handle vector modes.
7929         Supply non-VOID mode to simplify_gen_subreg.
7931 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
7933         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
7935 2002-07-10  Jeffrey A Law  <law@redhat.com>
7937         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
7938         as appropriate.
7940         * mn10200.c (expand_epilogue): Fix test to determine which scratch
7941         register to use.
7943 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
7945         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
7946         Get mode from dest.
7947         If simplify_gen_subreg fails, try next equivalent.
7949 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
7951         * diagnostic.h: #include location.h
7952         (location_t): Move definition to..
7953         * location.h: ... here.  New file.
7954         * tree.h: #include location.h
7955         (DECL_SOURCE_LOCATION): New macro.
7956         (DECL_SOURCE_FILE): Use.
7957         (DECL_SOURCE_LINE): Likewise.
7958         (struct tree_decl): REplace filename and linenum with locus.
7959         * Makefile.in (TREE_H): add location.h
7960         (diagnostic.o): Depends on gt-location.h
7961         (gt-location.h): Depends on s-gtype
7963 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
7965         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
7966         TARGET_OS_CPP_BUILTINS.
7967         * config/rs6000/aix31.h: Likewise.
7968         * config/rs6000/aix41.h: Likewise.
7969         * config/rs6000/aix43.h: Likewise.
7970         * config/rs6000/aix51.h: Likewise.
7971         * config/rs6000/beos.h: Likewise.
7972         * config/rs6000/darwin.h: Likewise.
7973         * config/rs6000/eabi.h: Likewise.
7974         * config/rs6000/eabisim.h: Likewise.
7975         * config/rs6000/linux.h: Likewise.
7976         * config/rs6000/linux64.h: Likewise.
7977         * config/rs6000/lynx.h: Likewise.
7978         * config/rs6000/mach.h: Likewise.
7979         * config/rs6000/rtems.h: Likewise.
7980         * config/rs6000/sysv4.h: Likewise.
7981         * config/rs6000/vxppc.h: Likewise.
7983 2002-07-09 Devang Patel <dpatel@apple.com>
7984         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
7985         Do not allow ObjC objects as a parameter type for Objective-C methods.
7986         My previous patch restricted  'struct' also.
7988 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
7990         * cpperror.c (cpp_error): Default to directive_line within
7991         directives here.
7992         * cppexp.c (cpp_interpret_integer): Only use traditional
7993         number semantics in directives.
7994         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
7995         (do_include_common): Similarly.
7996         * cpptrad.c (scan_out_logical_line): Implement accurate
7997         quoting of <> in #include.
7998         * doc/cpp.texi: Update.
8000 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
8001                           J"orn Rennecke <joern.rennecke@superh.com>
8003         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
8004         * sh.md (attribute issues): Replace with:
8005         (attribute pipe_model).  All users changed.
8006         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
8007         All users changed.
8008         (function units sh5issue, sh5fds): New.
8009         (attribute is_mac_media): New.
8010         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
8011         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
8012         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
8013         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
8014         (call_media, call_value_media, sibcall_media): Likewise.
8015         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
8016         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
8017         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
8018         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
8019         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
8020         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
8021         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
8022         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
8023         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
8024         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
8025         (truncdfsf2_media): Likewise.
8026         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
8027         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
8029 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
8031         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
8032         * sh.c (general_extend_operand, inqhi_operand): New functions.
8033         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
8034         alternatives using 'N' modifier.  Add type.
8035         (adddi3z_media): Likewise.  Enable generator function generation.
8036         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
8037         exact predicates / constraints.  Add type.
8038         (subsi3): Allow 0 for SHMEDIA.
8039         (udivsi3_i4_media): Use match_operand for input values
8040         rather than hard registers.
8041         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
8042         unnecessarily through hard registers.  Keep copies of pseudo
8043         registers outside of the libcall sequence.
8044         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
8045         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
8046         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
8047         (extendhidi2, extendqidi2): Likewise.
8048         (andsi3_compact): Name.
8049         (andcdi3): Enable generator function generation.
8050         (zero_extendhisi2, zero_extendqisi2): Rename to
8051         (zero_extendhisi2_compact, zero_extendqisi2_compact).
8052         (extendhisi2, extendqisi2): Rename to
8053         (extendhisi2_compact, extendqisi2_compact).
8054         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
8055         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
8056         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
8057         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
8058         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
8059         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
8060         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
8061         (shmedia32_initialize_trampoline_big): Likewise.
8062         (shmedia32_initialize_trampoline_little): Likewise.
8063         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
8064         (negdi2): Remove spurious T clobber.
8065         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
8066         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
8067         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
8068         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
8069         (ic_invalidate_line_media): Write back data cache before invalidating
8070         instruction cache.  Add type.
8071         (movsf_media): Sign-extend when the destination is a general
8072         purpose register.  Add type.
8073         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
8074         (casesi_worker_0+1): Only increment ref count for proper label.
8075         (casesi_worker_0+2): Likewise.
8077 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
8079         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
8081 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
8083         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
8084         from Pmode to ptr_mode.
8085         (get_exception_pointer): Ditto.
8086         (connect_post_landing_pads): Ditto.
8087         (dw2_build_landing_pads): Ditto.
8089 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
8090         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
8091         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
8092         (handle_pragma_redefine_extname): Change to use new function.
8094 2002-07-08  Roger Sayle  <roger@eyesopen.com>
8096         * combine.c (combine_simplify_rtx): Add an explicit cast
8097         to avoid signed/unsigned comparison warning.
8098         (simplify_if_then_else): Likewise.
8099         (extended_count): Likewise.
8100         (simplify_shift_const): Likewise.
8101         (simplify_comparison): Likewise.
8103 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
8105         * config/mips/mips.md: Add imadd type.  Update scheduler description
8106         to use imadd as well as imul.
8107         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
8108         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
8109         (*mul_sub_si): Likewise for first alternative.  Change second
8110         alternative from imul to multi.
8112 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
8114         * c-common.c (c_common_post_options): Update prototype;
8115         don't init backends if preprocessing only.
8116         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
8117         * langhooks.h (struct lang_hooks): Update post_options to
8118         return a boolean.
8119         * toplev.c (parse_options_and_default_flags, do_compile,
8120         lang_independent_init): Update prototypes.  Allow the
8121         front end to specify that there is no need to initialize
8122         the back end.
8123         (general_init): Move call to hex_init here...
8124         (toplev_main): ...from here.  Pass flag for back end init
8125         suppression.
8127 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
8129         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
8130         (PREDICATE_CODES): Add entries for equality_comparison_operator,
8131         greater_comparison_operator and less_comparison_operator.
8132         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
8133         more operators.
8134         (equality_comparison_operator): New function.
8135         (greater_comparison_operator, less_comparison_operator): Likewise.
8136         * sh.md (beq_media_i): Disable generator function generation.
8137         Use match_operator to handle a whole class of comparisons.  Add
8138         modifier in output template to provide branch prediction.  Add type.
8139         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
8140         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
8141         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
8142         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
8144 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
8146         Emit MMIX function prologue and epilogue as rtl.
8147         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
8148         not unprototyped get_hard_reg_initial_val.
8149         ("call_value", "nonlocal_goto_receiver"): Ditto.
8150         ("return"): Make define_expand.  Move real insn to...
8151         ("*expanded_return"): New pattern.
8152         ("prologue", "epilogue"): New define_expands.
8153         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
8154         (struct machine_function): New member in_prologue.
8155         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
8156         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
8157         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
8158         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
8159         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
8160         (LOCAL_REGNO): Define.  Adjust comment.
8161         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
8162         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
8163         leaf_function_p.
8164         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
8165         the prologue.
8166         (mmix_target_asm_function_prologue): Make static.  Just mark that
8167         the prologue is being emitted.  Move guts to...
8168         (mmix_expand_prologue): New function.  Adjust for emitting
8169         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
8170         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
8171         \n.  Move guts to...
8172         (mmix_expand_epilogue): New function.  Adjust for emitting
8173         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
8174         (mmix_target_asm_function_end_prologue): Mark that the prologue
8175         has ended.
8176         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
8177         (mmix_conditional_register_usage): Improve comments.
8178         (mmix_local_regno): New function.
8179         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
8180         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
8181         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
8182         (mmix_get_hard_reg_initial_val): Ditto.
8184 2002-07-06  Andreas Jaeger  <aj@suse.de>
8186         * toplev.c (set_fast_math_flags): Don't use ISO C style function
8187         definitions.
8188         * gengtype.c (open_base_files): Likewise.
8189         (close_output_files): Likewise.
8190         * tracer.c (find_best_predecessor): Likewise.
8191         (find_best_successor): Likewise.
8192         (ignore_bb_p): Likewise.
8194 2002-07-05  Roger Sayle  <roger@eyesopen.com>
8196         PR c++/7099
8197         * builtin-attrs.def: Define new attribute lists for use in
8198         builtins.def.
8199         * builtins.def [DEF_BUILTIN]: Modify to take an additional
8200         ATTRS argument, an enumerated value defined in builtin-attrs.def
8201         that represents the attribute list for the builtins.  Modify
8202         all builtin functions to pass an appropriate attribute list.
8203         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
8204         their required noreturn attributes.
8205         * tree.h (enum_builtin_function): Ignore the additional parameter
8206         to DEF_BUILTIN.
8207         * builtins.c (built_in_names): Likewise.
8208         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
8209         argument with a tree representing the functions attribute list.
8210         Pass this "attrs" argument to builtin_function.  No longer handle
8211         the noreturn_p processing manually.
8212         (built_in_attributes): Move the definitions from builtin-attrs.def
8213         before c_common_nodes_and_builtins.
8214         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
8215         DEF_BUILTIN, passing it to both builtin_function and the changed
8216         builtin_function_2.
8218         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
8219         __builtin__exit and __builtin__Exit.
8221 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
8223         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
8224         QI mode registers in soft registers.
8225         ("zero_extendqihi2"): Do not take into account soft registers
8226         for register allocation (use '*' constraint).
8228 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
8230         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
8231         it is dead.
8232         ("*ashrsi3"): Likewise.
8233         ("*lshrsi3"): Likewise.
8235 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
8237         * genautomata.c (output_max_insn_queue_index_def): Take latencies
8238         into account.
8240 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
8242         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
8243         address computation and memory moves.
8245 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
8247         PR c++/6706
8248         * dwarfout.c (output_reg_number): Fix warning message.
8249         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
8250         before using it.
8252 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8254         * gcc/gcc.c (asm_debug): Move initialization ...
8255         (init_spec): ... here.
8257 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
8259         * c-parse.in (extdef): Append ';'.
8260         (old_style_parm_decls): Append ';'.
8262 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
8264         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
8265         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
8266         to gcc_cv_as_gstabs_flag.
8267         * configure: Rebuilt.
8269 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
8271         * ggc.h (ggc_add_root): Document as obsolete.
8273 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
8275         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
8276         (mshflo_w): Likewise.
8278 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
8280         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
8281         vector mode subregs of constants to finding integer mode
8282         subregs of constants.
8283         * cse.c (cse_insn): Use simplify_gen_subreg.
8284         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
8285         From a vector mode expression of different size than the
8286         target mode.
8288 2002-07-03  Eric Christopher  <echristo@redhat.com>
8290         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
8291         * config/mips/mips.h: Remove deprecated -m<processor> options
8292         and cc1_cpu_spec associated.
8293         (CONSTANT_ADDRESS_P): Fix last patch.
8294         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
8295         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
8296         sunge_sf): Remove.
8298 2002-07-03  Stan Shebs  <shebs@apple.com>
8300         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
8301         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
8302         (CPP_SPEC): Remove insertion of APPLE_CC definition.
8304 2002-07-03  Roger Sayle  <roger@eyesopen.com>
8306         * combine.c (struct_undo): Change types of recorded substitutions
8307         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
8308         (do_SUBST_INT): Change types of the substitution from unsigned int
8309         to int, to avoid compilation warning from SUBST_INT's only caller.
8311         (make_extraction): Add cast to avoid compilation warning.
8312         (force_to_mode): Remove cast to avoid compilation warning.
8314 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
8315             Jeff Law  <law@redhat.com>
8317         * i386.md (length_immediate attribute): Fix typo.
8318         (length_address attribute): Likewise.
8319         (modrm attribute): Set it to 0 for immediate call instructions.
8320         (jcc_1 pattern): Set modrm attribute to 0.
8321         (jcc_2 pattern ): Likewise.
8322         (jump pattern): Likewise.
8323         (doloop_end_internal pattern): Explicitly set length.
8324         (leave pattern): Fix typo.
8325         (leave_rex64 pattern): Likewise.
8327 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
8329         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
8330         in FPR as preference.
8331         (fctiwz): Same.
8332         (floatdidf2, fix_truncdfdi2): Same.
8333         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
8334         (floatditf2): Same.
8335         (floatsitf2, fix_trunctfsi2): SImode in GPR.
8336         (ctrdi): Remove FPR alternative and splitter.
8338 2002-07-03  Will Cohen  <wcohen@redhat.com>
8340         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
8342 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
8344         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
8345         than UNITS_PER_WORD, unless this is little endian and the first unit
8346         in this word.  Let extract_bit_field decide how to load an element.
8347         Force arguments to matching mode.
8348         (expand_vector_unop): Likewise.
8350         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
8351         consist of word_mode elements.
8352         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
8353         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
8354         (build_unary_op): Allow vector types for BIT_NOT_EPR.
8355         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
8356         CONST_VECTOR.
8357         * optabs.c (expand_vector_binop): Try to perform operation in
8358         smaller vector modes with same inner size.  Add handling of AND, IOR
8359         and XOR.  Reject expansion to inner-mode sized scalars when using
8360         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
8361         (expand_vector_unop): Try to perform operation in smaller vector
8362         modes with same inner size.  Add handling of one's complement.
8363         When there is no vector negate operation, try a vector subtract
8364         operation.  Use simplify_gen_subreg on constants.
8365         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
8366         constants into smaller vectors with same inner mode, and to
8367         integer CONST_DOUBLEs.
8369 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8371         * c-parse.in (parsing_iso_function_signature): New variable.
8372         (extdef_1): New, copied from...
8373         (extdef): ... here.  Reset parsing_iso_function_signature.
8374         (old_style_parm_decls):  Reset parsing_iso_function_signature.
8375         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
8376         Warn about ISO C style function definitions.
8377         (nested_function, notype_nested_function): Reset
8378         parsing_iso_function_signature.
8379         (parmlist_2): Set parsing_iso_function_signature.
8381         * doc/invoke.texi (-Wtraditional): Document new behavior.
8383 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
8385         * config.gcc (mips*el-*-*): Use tm_defines to set
8386         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
8387         * config/mips/little.h: Remove.
8389 2002-07-02 Devang Patel <dpatel@apple.com>
8391         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
8392         object as parameter. Prevent something like 'NSObject' to be
8393         used as the type for a method argument.
8395 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
8397         * cpptrad.c: Update comment.
8399 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
8401         * doc/cpp.texi: Update for traditional preprocessing changes.
8402         * goc/cppopts.texi: Similarly.
8404 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
8406         * c-parse.in (designator): Enable designated initializers if ObjC.
8407         (objcmessageexpr): Remove references to objc_receiver_context.
8408         * objc/objc-act.h (objc_receiver_context): Remove decl.
8409         * objc/objc-act.c (objc_receiver_context): Remove.
8410         (lookup_objc_ivar): Test objc_method_context instead of
8411         objc_receiver_context.
8413 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
8415         * sh.c (print_operand, case 'N'): Allow zero vector.
8416         (arith_reg_or_0_operand): Likewise.
8417         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
8418         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
8419         IOR, XOR, PLUS and SET and take their respective constant
8420         ranges into account.
8421         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
8422         * sh.md (subdi3, subdi3_media): Allow zero operand.
8423         (movv8qi_i+3): Only vector that is not split is the zero vector.
8424         Fix operand 3 to simplify_subreg.
8425         (movv2si_i): Split alternative 1.
8426         (mshfhi_l_di_rev+1): New splitter.
8428 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
8430         PR preprocessor/7029
8431         * cppinit.c (cpp_handle_option):  Suppress warnings with an
8432         implicit "-w" for "-M" and "-MM".
8433         * doc/cppopts.texi: Update.
8435 2002-07-01  Roger Sayle  <roger@eyesopen.com>
8437         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
8438         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
8439         builtin_function.
8441 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
8443         * README.Portability: Fix typos.
8445 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
8447         PR target/7177
8448         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
8449         of indirections for register inside sign-extended mem part.
8451 2002-07-01  Roger Sayle  <roger@eyesopen.com>
8453         * tree.h:  Modify builtin_function interface to take an extra
8454         argument ATTRS, which is a tree representing an attribute list.
8456         * c-decl.c (builtin_function): Accept additional parameter.
8457         * objc/objc-act.c (builtin_function): Likewise.
8458         * f/com.c (builtin_function): Likewise.
8459         * java/decl.c (builtin_function): Likewise.
8460         * ada/utils.c (builtin_function): Likewise.
8461         * cp/decl.c (builtin_function): Likewise.
8462         (builtin_function_1): Likewise.
8464         * c-common.c (c_common_nodes_and_builtins): Pass an additional
8465         NULL_TREE argument to builtin_function.  (builtin_function_2):
8466         Likewise.
8467         * cp/call.c (build_java_interface_fn_ref): Likewise.
8468         * objc/objc-act.c (synth_module_prologue): Likewise.
8469         * java/decl.c (java_init_decl_processing): Likewise.
8470         * f/com.c (ffe_com_init_0): Likewise.
8472         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
8473         NULL_TREE argument to builtin_function.
8474         * config/arm/arm.c (def_builtin): Likewise.
8475         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
8476         * config/i386/i386.c (def_builtin): Likewise.
8477         * config/ia64/ia64.c (def_builtin): Likewise.
8478         * config/rs6000/rs6000.c (def_builtin): Likewise.
8480 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
8482         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
8483         * config/mips/t-isa3264: Likewise.
8484         * config/mmix/t-mmix: Likewise.
8486 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8488         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
8490 2002-07-01  Roger Sayle  <roger@eyesopen.com>
8492         PR opt/4046
8493         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
8494         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
8495         B are truth values.
8497 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
8499         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
8501 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
8503         * README.Portability (Function prototypes): Give an example of
8504         declaring and defining a function with no arguments.
8506         * README.Portability (Function prototypes): Document new
8507         variable-argument function macros.
8509 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
8511         * sh.c (langhooks.h): Include.
8512         (sh_init_builtins, sh_media_init_builtins): New functions.
8513         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
8514         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
8515         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
8516         (builtin_description): New struct tag.
8517         (signature_args, bdesc): New arrays.
8518         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
8519         (print_operand): Add 'N' modifier.
8520         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
8521         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
8522         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
8523         (CONST_COSTS): Add special case for SHmedia AND.
8524         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
8525         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
8526         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
8527         target_operand can also be const or unspec.
8528         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
8529         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
8530         (attribute type): Add new types.
8531         (anddi3): Add splitter.
8532         (movdi_const_16bit+1): Add code to handle vector constants and
8533         bitmasks efficiently.
8534         (shori_media): Have generator function made.
8535         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
8536         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
8537         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
8538         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
8539         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
8540         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
8541         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
8542         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
8543         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
8544         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
8545         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
8546         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
8547         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
8548         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
8549         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
8550         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
8551         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
8552         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
8553         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
8554         (ftrv): Likewise.
8556         (fpu_switch+1, fpu_switch+2): Remove constraint.
8558 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
8560         * tree.c (build_function_type_list): Update function comment.
8561         Rename first argument to return_type.
8563 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
8565         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
8566         tradcif.y and related files.
8568 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
8570         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
8572 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8574         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
8576 See ChangeLog.7 for earlier changes.