1 2002-09-17 Zack Weinberg <zack@codesourcery.com>
3 * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
4 statement that the only translation is to en_UK.
6 2002-09-17 Kazu Hirata <kazu@cs.umass.edu>
8 * config/alpha/alpha.c: Follow spelling conventions.
9 * config/alpha/alpha.h: Likewise.
10 * config/alpha/alpha.md: Likewise.
11 * config/arc/arc.h: Likewise.
12 * config/arm/arm.c: Likewise.
13 * config/arm/arm.h: Likewise.
14 * config/arm/arm.md: Likewise.
15 * config/arm/pe.c: Likewise.
16 * config/arm/unknown-elf.h: Likewise.
17 * config/avr/avr.c: Likewise.
18 * config/avr/avr.h: Likewise.
19 * config/c4x/c4x.c: Likewise.
20 * config/cris/cris.c: Likewise.
21 * config/cris/cris.h: Likewise.
23 2002-09-17 Samuel Figueroa <figueroa@apple.com>
25 * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
26 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
27 * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
29 2002-09-17 Dale Johannesen <dalej@apple.com>
31 * cfgcleanup.c (try_forward_edges): Do not forward a
32 branch to just after a loop exit before loop optimization;
33 this interfered with doloop detection.
35 2002-09-17 Nick Clifton <nickc@redhat.com>
37 * config/arm/arm.c (output_return_instruction): Do not
38 writeback the stack pointer when it is being loaded.
39 (arm_output_epilogue): Likewise.
41 2002-09-17 Kazu Hirata <kazu@cs.umass.edu>
43 * optabs.c (prepare_cmp_insn): Let emit_library_call_value
44 generate a pseudo reg that receives the result of a libcall.
45 (prepare_float_lib_cmp): Likewise.
47 2002-09-17 Steve Ellcey <sje@cup.hp.com>
49 * config/ia64/elf.h: Remove CPP_PREDEFINES.
51 Tue Sep 17 13:58:04 2002 Nicola Pero <n.pero@mi.flashnet.it>
53 Fix PR/7014 and related objc bugs:
54 * c-typeck.c (comp_target_types): Added a reflexive argument.
55 Pass it to ObjC when/if calling objc_comptypes(). Updated all
56 callers to provide the appropriate reflexive argument.
57 * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
58 typechecking for all cases of comparisons and assignments,
59 particularly the obscure and less common ones involving protocols.
61 2002-09-17 Nick Clifton <nickc@redhat.com>
63 * machmode.def (V1DImode): New mode. A single element vector.
64 * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
65 (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
66 * tree.c (build_common_tree_nodes_2): Build
67 unsigned_V1DI_type_node and V1D1_type_node.
68 * c-common.c (c_common_type_for_mode): Return
69 unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
70 * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
72 Tue Sep 17 13:40:13 2002 Nicola Pero <n.pero@mi.flashnet.it>
74 * doc/objc.texi (Constant string objects): Extended documentation
75 to make clear that the constant string class ivar layout is
78 2002-09-17 Roger Sayle <roger@eyesopen.com>
80 * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
81 NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
83 2002-09-16 Richard Henderson <rth@redhat.com>
85 * expr.c (emit_block_move): Set memory block size as appropriate
88 2002-09-16 Richard Henderson <rth@redhat.com>
91 * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
93 2002-09-16 Richard Henderson <rth@redhat.com>
95 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
96 as well as OFFSET for BITPOS.
98 2002-09-16 Jeff Garzik <jgarzik@mandrakesoft.com>
100 * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
101 * config/i386/i386.c (processor_alias_table): Add winchip-c6,
103 * doc/invoke.texi: Mention new aliases.
105 2002-09-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
107 * calls.c (store_one_arg): Set default alignment for BLKmode arguments
108 to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
110 * function.c (pad_below): Always compile.
111 (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
112 alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
113 Pad below when the argument is not in a register and the padding
114 direction is downward.
116 * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
117 (PAD_VARARGS_DOWN): Define.
118 * pa.c (function_arg_padding): Revise padding directions to make them
119 compatible with the 32 and 64-bit runtime architecture documentation.
120 (hppa_va_arg): Add code to handle variable and size zero arguments
121 passed by reference on TARGET_64BIT. Reformat.
122 (function_arg): Use a PARALLEL for BLKmode and aggregates args on
123 TARGET_64BIT. Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
124 wide when !TARGET_64BIT. Move forward check for mode==VOIDmode.
126 * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
127 (RETURN_IN_MEMORY): Return size zero types in memory.
128 (FUNCTION_VALUE): Return TFmode in general registers.
129 (MUST_PASS_IN_STACK): Define.
130 (FUNCTION_ARG_BOUNDARY): Simplify.
131 (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
133 (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
135 2002-09-16 Richard Henderson <rth@redhat.com>
137 * real.c (do_fix_trunc): New.
138 (real_arithmetic): Call it.
139 * simplify-rtx.c (simplify_unary_operation): Handle FIX
140 with a floating-point result mode.
142 2002-09-16 Richard Henderson <rth@redhat.com>
144 * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
145 (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
146 * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
147 (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
148 * builtins.c (fold_builtin_nan): New.
149 (fold_builtin): Call it.
150 * real.c (real_nan): Parse a non-empty string.
151 (round_for_format): Fix NaN significand truncation.
152 * real.h (real_nan): Return bool.
153 * doc/extend.texi: Document new builtins.
156 2002-09-16 Jason Merrill <jason@redhat.com>
157 Danny Smith <dannysmith@users.sourceforge.net>
159 * config/i386/winnt.c (ix86_handle_dll_attribute): Set
160 DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
161 (i386_pe_mark_dllimport): Not here.
163 2002-09-16 Nathan Sidwell <nathan@codesourcery.com>
165 * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
167 2002-09-16 Geoffrey Keating <geoffk@redhat.com>
169 * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
170 warnings about unused operands when HOST_BITS_PER_WIDE_INT is
172 (rs6000_emit_cmove): Use real_isinf not target_isinf.
174 2002-09-16 Kazu Hirata <kazu@cs.umass.edu>
176 * calls.c (emit_library_call_value_1): Don't refer to
178 * optabs.c (prepare_float_lib_cmp): Likewise.
180 2002-09-16 Geoffrey Keating <geoffk@apple.com>
182 * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
185 The following changes are merged from pch-branch:
187 * doc/gty.texi (GTY Options): Document %a.
188 * gengtype.c (do_scalar_typedef): New function.
189 (process_gc_options): Handle `length' option.
190 (set_gc_used_type): A pointer to an array of structures doesn't
191 qualify as a pointer to a structure.
192 (output_escaped_param): Add `%a' escape.
193 (write_gc_structure_fields): Allow 'desc' on array of unions.
194 (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
197 * gengtype.c (enum rtx_code): Make global.
198 (rtx_format): Make global.
201 (write_rtx_next): New.
202 (adjust_field_rtx_def): Skip fields marked by chain_next.
203 (open_base_files): Delete redundant prototype.
204 (write_enum_defn): New.
205 (output_mangled_typename): Correct abort call.
206 (write_gc_marker_routine_for_structure): Handle chain_next and
208 (finish_root_table): Don't output redundant \n.
209 (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
210 * c-tree.h (union lang_tree_node): Add chain_next option.
212 * gengtype.h (NUM_PARAM): New definition.
213 (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
214 * gengtype.c (find_param_structure): New.
215 (adjust_field_type): Handle param<n>_is option.
216 (process_gc_options): Detect use_params option. Update callers.
217 (set_gc_used_type): Add 'param' parameter, update callers. Handle
219 (open_base_files): Add splay-tree.h to list of files included.
220 (output_mangled_typename): New.
221 (write_gc_structure_fields): Update 'param' parameter to support
222 multiple parameters. Change name mangling. Allow parameterized
223 fields to have an apparent scalar type. Handle param<n>_is options,
225 (write_gc_marker_routine_for_structure): Update for change to name
226 mangling. Better guess the output file for parameterized types.
227 (write_gc_types): Update for change to name mangling.
228 (write_gc_root): Update for change to name mangling. Handle (ignore)
230 * doc/gty.texi (GTY Options): Add description of param<n>_is
231 options, use_params option.
232 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
233 * gengtype-lex.l: Produce token for param<n>_is.
234 * gengtype-yacc.y: Parse param<n>_is.
236 * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
238 * rtl.c: Update comment describing rtx_format.
239 * rtl.h (union rtunion): Separate definition and typedef.
240 (struct rtx_def): Use gengtype to mark.
241 * Makefile.in (gengtype.o): Also depend on rtl.def.
242 * ggc.h (ggc_mark_rtx_children): Delete prototype.
243 (ggc_mark_rtx): Change to alias of gengtype-generated routine.
244 * ggc-common.c (ggc_mark_rtx_children): Delete.
245 (ggc_mark_rtx_children_1): Delete.
246 (gt_ggc_m_rtx_def): Delete.
247 * gengtype.c (adjust_field_rtx_def): New.
248 (adjust_field_type): Call adjust_field_rtx_def.
249 (write_gc_structure_fields): Add 'default' case to switch if none
250 is specified; remove unused code.
252 * tree.h (struct tree_exp): Update for change to meaning
254 * gengtype.c (adjust_field_tree_exp): New function.
255 (adjust_field_type): Handle `tree_exp' special here.
256 (write_gc_structure_fields): Don't handle `tree_exp' special here.
257 Handle new `dot' option.
259 * gengtype.h: Make `info' a pointer-to-const.
260 * gengtype-yacc.y (yacc_ids): Use xasprintf.
262 * gengtype.c (write_gc_structure_fields): Remove implementation
263 of `always' option, add `default' option.
264 * doc/gty.texi (GTY Options): Remove documentation of `always',
267 2002-09-16 Hans-Peter Nilsson <hp@bitrange.com>
269 * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
271 2002-09-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
273 * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
275 * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
276 instead of the *-protos.h file directly.
277 * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
278 * darwin.c (machopic_output_stub): Move prototype ...
279 * darwin-protos.h (machopic_output_stub): ... here.
280 * rs6000-protos.h (machopic_output_stub): Don't declare.
282 2002-09-16 Richard Henderson <rth@redhat.com>
284 * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
286 2002-09-16 Richard Henderson <rth@redhat.com>
288 * real.c, real.h: Rewrite from scratch.
290 * Makefile.in (simplify-rtx.o): Depend on TREE_H.
291 (paranoia): New target.
292 * builtins.c (fold_builtin_inf): Use new real.h interface.
293 * c-common.c (builtin_define_with_hex_fp_value): Likewise.
294 * c-lex.c (interpret_float): Likewise.
295 * emit-rtl.c (gen_lowpart_common): Likewise.
296 * optabs.c (expand_float): Use real_2expN.
297 * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
298 * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
299 (FLOAT_WORDS_BIG_ENDIAN): New.
300 * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
301 directly to REAL_VALUE_NEGATIVE.
302 * loop.c (canonicalize_condition): Likewise.
303 * simplify-rtx.c: Include tree.h.
304 (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
305 with floating-point result modes.
306 * toplev.c (backend_init): Call init_real_once.
308 * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
309 * tree.c (build_real): Likewise.
310 * config/alpha/alpha.c, config/vax/vax.c (float_strings,
311 float_values, inited_float_values, check_float_value): Remove.
312 * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
313 config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
314 * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
315 (VAX_HALFWORD_ORDER): Remove.
317 2002-09-16 Ulrich Weigand <uweigand@de.ibm.com>
319 * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
320 (s390_load_address): ... this new function.
321 (s390_decompose_address): Allow the argument pointer and all
322 virtual registers as 'pointer' registers.
323 (s390_expand_plus_operand): Use s390_load_address.
324 config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
325 ("force_la_31"): New insn pattern.
326 config/s390/s390-protos.h (legitimize_la_operand): Remove.
327 (s390_load_address): Add prototype.
329 * config/s390/s390.c: Include "optabs.h".
330 (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
331 config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
332 s390_expand_cmpstr): Add prototypes.
333 config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
334 ("movstrdi_short"): Rename to "movstr_short_64". Change predicates
335 for operands 0 and 1 to "memory_operand". Add type attribute.
336 ("movstrsi_short"): Rename to "movstr_short_31". Change predicates
337 for operands 0 and 1 to "memory_operand". Add type attribute.
338 ("movstrdi_long", "movstrsi_long"): Remove.
339 ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
340 ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
341 ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
342 ("clrstrsico"): Remove, replace by ...
343 ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
344 ("clrstrsi_64"): Rename to "clrstr_long_64".
345 ("clrstrsi_31"): Rename to "clrstr_long_31".
346 ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
347 ("cmpstr_const"): Remove, replace by ...
348 ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
349 ("cmpstr_64"): Rename to "cmpstr_long_64".
350 ("cmpstr_31"): Rename to "cmpstr_long_31".
352 2002-09-16 Kazu Hirata <kazu@cs.umass.edu>
354 * ABOUT-NLS: Follow spelling conventions.
355 * ChangeLog: Likewise.
356 * ChangeLog.1: Likewise.
357 * ChangeLog.2: Likewise.
358 * ChangeLog.3: Likewise.
359 * ChangeLog.4: Likewise.
360 * ChangeLog.5: Likewise.
361 * ChangeLog.6: Likewise.
362 * FSFChangeLog.10: Likewise.
363 * FSFChangeLog.11: Likewise.
364 * c-common.c: Likewise.
366 * c-objc-common.c: Likewise.
367 * cppexp.c: Likewise.
368 * cppinit.c: Likewise.
369 * cpplex.c: Likewise.
370 * doloop.c: Likewise.
372 * function.c: Likewise.
373 * integrate.c: Likewise.
375 * reg-stack.c: Likewise.
376 * reload.h: Likewise.
379 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
381 * ChangeLog: Follow spelling conventions.
382 * ChangeLog.0: Likewise.
383 * ChangeLog.1: Likewise.
384 * ChangeLog.2: Likewise.
385 * ChangeLog.4: Likewise.
386 * ChangeLog.6: Likewise.
387 * config.gcc: Likewise.
388 * dwarfout.c: Likewise.
389 * reload1.c: Likewise.
390 * simplify-rtx.c: Likewise.
391 * unwind-sjlj.c: Likewise.
392 * config/avr/avr.h: Likewise.
393 * config/d30v/d30v.h: Likewise.
394 * config/frv/frv.c: Likewise.
395 * config/frv/frv.h: Likewise.
396 * config/ip2k/ip2k.h: Likewise.
397 * config/m88k/m88k-move.sh: Likewise.
398 * config/stormy16/stormy16.c: Likewise.
399 * config/stormy16/stormy16.h: Likewise.
400 * doc/extend.texi: Likewise.
401 * doc/interface.texi: Likewise.
402 * doc/invoke.texi: Likewise.
403 * doc/md.texi: Likewise.
404 * doc/rtl.texi: Likewise.
405 * doc/tm.texi: Likewise.
406 * doc/trouble.texi: Likewise.
407 * ginclude/float.h: Likewise.
408 * treelang/treelang.texi: Likewise.
410 2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
412 * i386-protos.h (i386_pe_dllexport_name_p,
413 i386_pe_dllimport_name_p, i386_pe_unique_section,
414 i386_pe_declare_function_type, i386_pe_record_external_function,
415 i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
417 * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
418 * i386/t-interix (winnt.o): Likewise.
420 * v850-protos.h (v850_output_addr_const_extra): Prototype.
422 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
424 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
426 (TARGET_CPU_CPP_BUILTINS): Redefine.
427 (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
428 (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
430 2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
432 * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
434 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
436 * ChangeLog: Follow spelling conventions.
437 * ChangeLog.0: Likewise.
438 * ChangeLog.1: Likewise.
439 * ChangeLog.2: Likewise.
440 * ChangeLog.3: Likewise.
441 * ChangeLog.4: Likewise.
442 * ChangeLog.5: Likewise.
443 * ChangeLog.6: Likewise.
444 * FSFChangeLog.10: Likewise.
445 * FSFChangeLog.11: Likewise.
446 * c-common.c: Likewise.
447 * c-common.h: Likewise.
448 * c-format.c: Likewise.
449 * c-opts.c: Likewise.
450 * cpplib.c: Likewise.
451 * langhooks.h: Likewise.
453 * reg-stack.c: Likewise.
454 * toplev.c: Likewise.
455 * config/arm/arm.c: Likewise.
456 * config/arm/arm.md: Likewise.
457 * config/arm/linux-gas.h: Likewise.
458 * config/arm/netbsd.h: Likewise.
459 * config/c4x/c4x.c: Likewise.
460 * config/c4x/c4x.h: Likewise.
461 * config/c4x/c4x.md: Likewise.
462 * config/c4x/libgcc.S: Likewise.
463 * config/fr30/fr30.md: Likewise.
464 * config/frv/frv.md: Likewise.
465 * config/ia64/ia64.md: Likewise.
466 * config/mips/mips.h: Likewise.
467 * config/mn10300/mn10300.c: Likewise.
468 * config/stormy16/stormy16.c: Likewise.
469 * config/v850/v850.md: Likewise.
470 * doc/extend.texi: Likewise.
471 * doc/invoke.texi: Likewise.
472 * doc/md.texi: Likewise.
474 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
476 * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
477 library if -pthread is specified.
479 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
481 * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
482 for --enable-threads=yes and --enable-threads=posix.
484 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
486 * config/sparc/cypress.md: Replace Sparc with SPARC.
487 * config/sparc/freebsd.h: Likewise.
488 * config/sparc/gmon-sol2.c: Likewise.
489 * config/sparc/hypersparc.md: Likewise.
490 * config/sparc/lb1spc.asm: Likewise.
491 * config/sparc/lb1spl.asm: Likewise.
492 * config/sparc/linux.h: Likewise.
493 * config/sparc/linux64.h: Likewise.
494 * config/sparc/lynx.h: Likewise.
495 * config/sparc/sol2.h: Likewise.
496 * config/sparc/sparc-modes.def: Likewise.
497 * config/sparc/sparc.c: Likewise.
498 * config/sparc/sparc.h: Likewise.
499 * config/sparc/sparc.md: Likewise.
500 * config/sparc/sparclet.md: Likewise.
501 * config/sparc/supersparc.md: Likewise.
502 * config/sparc/sysv4.h: Likewise.
503 * config/sparc/vxsim.h: Likewise.
504 * config/sparc/vxsparc64.h: Likewise.
506 2002-09-14 Marek Michalkiewicz <marekm@amelek.gda.pl>
508 * config/avr/avr.c (output.h): Move after inclusion of tree.h.
510 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
512 * ChangeLog: Follow spelling conventions.
513 * ChangeLog.0: Likewise.
514 * ChangeLog.2: Likewise.
515 * ChangeLog.3: Likewise.
516 * ChangeLog.4: Likewise.
517 * ChangeLog.5: Likewise.
518 * ChangeLog.6: Likewise.
519 * cppfiles.c: Likewise.
520 * cppinit.c: Likewise.
521 * cpplib.h: Likewise.
525 * dominance.c: Likewise.
526 * hashtable.c: Likewise.
527 * hashtable.h: Likewise.
529 * config/arm/README-interworking: Likewise.
530 * config/arm/arm.c: Likewise.
531 * config/arm/arm.h: Likewise.
532 * config/arm/arm.md: Likewise.
533 * config/dsp16xx/dsp16xx.h: Likewise.
534 * config/frv/frv.c: Likewise.
535 * config/frv/frv.h: Likewise.
536 * config/ip2k/ip2k.h: Likewise.
537 * config/rs6000/rs6000.c: Likewise.
538 * config/stormy16/stormy-abi: Likewise.
539 * config/stormy16/stormy16.h: Likewise.
540 * config/v850/v850.c: Likewise.
542 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
544 * loop.c: Fix a comment typo.
546 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
548 * config/fr30/fr30.h: Fix comment typos.
549 * config/frv/frv.c: Likewise.
550 * config/i386/xmmintrin.h: Likewise.
551 * config/mips/mips.c: Likewise.
552 * config/sh/sh.c: Likewise.
554 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
556 * haifa-sched.c: Follow spelling conventions.
557 * regclass.c: Likewise.
558 * regrename.c: Likewise.
559 * config/fp-bit.c: Likewise.
560 * config/frv/frv.h: Likewise.
561 * config/m88k/m88k.c: Likewise.
562 * config/mcore/mcore.c: Likewise.
563 * config/rs6000/darwin.h: Likewise.
564 * config/rs6000/gnu.h: Likewise.
565 * config/rs6000/linux.h: Likewise.
566 * config/rs6000/linux64.h: Likewise.
567 * config/rs6000/rs6000.c: Likewise.
568 * config/rs6000/rs6000.h: Likewise.
569 * config/sh/sh.c: Likewise.
570 * config/sparc/sparc.c: Likewise.
571 * config/sparc/ultra1_2.md: Likewise.
573 2002-09-14 Stephane Carrez <stcarrez@nerim.fr>
575 * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
576 memory operand when source is 0 (K constraint).
577 ("movsi_internal"): Likewise.
578 ("movdf_internal"): Likewise.
579 ("movsf_internal"): Likewise.
581 2002-09-14 Alan Modra <amodra@bigpond.net.au>
583 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
584 targetm.binds_local_p to set SYMBOL_REF_FLAG.
585 (rs6000_xcoff_encode_section_info): Likewise.
586 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
588 2002-09-10 Theodore A. Roth <troth@verinet.com>
590 * gcc/config/avr/avr.h: Set default options for C++ for avr.
592 2002-09-13 Richard Henderson <rth@redhat.com>
594 * Makefile.in (toplev.o): Depend on real.h.
595 (print-rtl.o, varasm.o, ifcvt.o): Likewise.
597 2002-09-14 Alan Modra <amodra@bigpond.net.au>
599 * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
600 * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
601 * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
603 2002-09-13 Nathan Sidwell <nathan@codesourcery.com>
605 * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
607 2002-09-13 Steve Ellcey <sje@cup.hp.com>
609 * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
610 ia64*-*-linux*): Set extra_parts.
611 * config/ia64/t-aix (EXTRA_PARTS): Remove.
612 * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
614 2002-09-13 Kazu Hirata <kazu@cs.umass.edu>
616 * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
617 * config/h8300/h8300.c: Likewise.
618 * config/h8300/h8300.h: Likewise.
619 * config/h8300/h8300.md: Likewise.
620 * doc/invoke.texi: Likewise.
622 2002-09-13 Kazu Hirata <kazu@cs.umass.edu>
624 * config/h8300/h8300.c (h8300_init_once): Fix formatting.
626 2002-09-13 Matt Austern <austern@apple.com>
628 * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
629 * cp/call.c: Change call-by-const-reference mechanism to use
630 non_cast_lvalue_p when deciding whether the create a temporary.
631 We need a temporary when passing, e.g. (long) x by const ref.
632 * testsuite/g++.dg/other/constref[12].C: New, regression tests for
633 passing a cast expression to a function by const reference.
635 2002-09-13 Richard Henderson <rth@redhat.com>
637 * config/alpha/alpha.md (attr type): Add callpal.
638 (imb, trap, load_tp, set_tp): Use it.
639 * config/alpha/ev4.md (ev4_callpal): New.
640 * config/alpha/ev5.md (ev5_callpal): New.
641 * config/alpha/ev6.md (ev6_ibr): Handle callpal.
642 * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
643 (alphaev5_insn_pipe): Likewise.
645 2002-09-13 Andreas Jaeger <aj@suse.de>
647 * Makefile.in (print-rtl.o): Depend on CONFIG_H.
649 2002-09-13 Steve Ellcey <sje@cup.hp.com>
651 * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
652 LIB2ADDEH): New, set to NULL.
653 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
655 2002-09-13 Steve Ellcey <sje@cup.hp.com>
657 * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
658 (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
659 (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
663 2002-09-13 Dhananjay Deshpande <dhananjayd@kpit.com>
665 * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
666 for H8/300, H8S aa:8 mode.
667 (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
668 * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
669 for H8/300 aa:8 mode.
671 2002-09-13 Hartmut Penner <hpenner@de.ibm.com>
673 * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
676 2002-09-12 Richard Henderson <rth@redhat.com>
678 * Makefile.in (HOST_PRINT): Use print-rtl1.o
679 (print-rtl.o): Don't define GENERATOR_FILE.
680 (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
681 * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
682 unless GENERATOR_FILE.
684 2002-09-12 Stan Shebs <shebs@apple.com>
686 * config/darwin.h (USER_LABEL_PREFIX): Define here...
687 * config/i386/darwin.h: ... instead of here.
689 * target.h (struct gcc_target): New field
690 terminate_dw2_eh_frame_info.
691 * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
692 (TARGET_INITIALIZER): Add it.
693 * dwarf2out.c (output_call_frame_info): Use target hook.
694 * dwarf2asm.c (dw2_asm_output_delta): Use macro
695 ASM_OUTPUT_DWARF_DELTA if defined.
696 * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
697 (ASM_OUTPUT_DWARF_DELTA): Ditto.
698 (ASM_OUTPUT_DWARF_OFFSET): Ditto.
699 (ASM_OUTPUT_DWARF_PCREL): Ditto.
700 * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
701 (powerpc-*-darwin*): Ditto.
702 * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
703 to work correctly for Darwin.
704 * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
705 (STARTFILE_SPEC): Add crtbegin.o.
706 (ENDFILE_SPEC): Define.
707 (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
708 (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
709 (ASM_OUTPUT_DWARF_DELTA): Define.
710 (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
711 * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
713 2002-09-13 Alan Modra <amodra@bigpond.net.au>
715 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
716 nesting. Correct test for non-PowerPC64 ELF ABI_AIX.
717 * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
719 2002-09-12 Zack Weinberg <zack@codesourcery.com>
721 * toplev.c: Move default definition of USER_LABEL_PREFIX...
722 * defaults.h: ... here.
724 2002-09-12 Richard Henderson <rth@redhat.com>
726 * vax.c: Include tree.h earlier.
728 2002-09-12 Stan Shebs <shebs@apple.com>
730 * config/darwin.c (machopic_finish): Remove #if 0 chunks.
731 (machopic_operand_p): Ditto.
733 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
735 * config/arm/arm.c (arm_compute_initial_elimination_offset):
738 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
740 * toplev.c (do_abort): Fix a comment typo.
742 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
744 * cselib.c: Fix comment formatting.
745 * gengtype.c: Likewise.
747 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
749 * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
750 (udivmodhi4): Likewise.
752 2002-09-12 Graham Stott <graham.stott@btinternet.com>
753 Roger Sayle <roger@eyesopen.com>
755 * i386.c (any_fp_register_operand, fp_register_operand,
756 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
757 New predicate functions.
758 * i386-protos.h: Add their prototypes.
759 * i386.h: Add them to PREDICATE_CODES.
760 * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
761 "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
762 "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
763 "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
764 "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
765 "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
766 "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
767 "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
768 "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
769 "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
770 "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
771 Use these new predicates to simplify and correct the use of
772 FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
774 2002-09-12 Jason Merrill <jason@redhat.com>
776 * diagnostic.c (output_add_identifier): New fn.
777 * diagnostic.h: Declare it.
779 * calls.c (store_one_arg): Use size_in_bytes to determine the
780 amount of space to push.
782 2002-09-12 Jakub Jelinek <jakub@redhat.com>
784 * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
786 2002-09-12 Ulrich Weigand <uweigand@de.ibm.com>
788 * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
789 * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
790 (s390_select_ccmode): Likewise.
791 (s390_branch_condition_mask): Likewise.
792 (optimization_options): Do not set flag_branch_on_count.
793 (s390_split_branches): Handle doloop branches.
794 (s390_chunkify_pool): Likewise.
795 * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
796 ("doloop_end"): New expander.
797 ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
798 associated splitters): New.
800 2002-09-11 Hartmut Penner <hpenner@de.ibm.com>
802 * fold-const.c (make_range): Only narrow to signed range if
803 the signed range is smaller than the unsigned range.
805 2002-09-12 Alan Modra <amodra@bigpond.net.au>
807 * emit-rtl.c (set_mem_size): New function.
808 * expr.h (set_mem_size): Declare.
809 * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
810 (expand_block_move): Instead, use adjust_address and
811 replace_equiv_address to generate proper aliasing info.
812 Move common code out of conditionals. Localize vars.
814 2002-09-09 Eric Botcazou ebotcazou@libertysurf.fr
816 * optabs.c (expand_binop): Minor cleanup.
817 (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
819 2002-09-11 Dan Nicolaescu <dann@ics.uci.edu>
821 * print-tree.c (print_node): Print the restrict qualifier.
823 2002-09-11 Janis Johnson <janis187@us.ibm.com>
825 * doc/install.texi: Fix typos.
827 2002-09-11 Zack Weinberg <zack@codesourcery.com>
829 * Makefile.in: Remove all references to s-under and underscore.c.
830 * collect2.c, tlink.c: Change all uses of prepends_underscore
831 to look directly at USER_LABEL_PREFIX.
833 2002-09-11 David Edelsohn <edelsohn@gnu.org>
835 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
837 (rs6000_xcoff_unique_section): Only set section name for public
839 (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
840 * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
841 duplicate definition.
843 2002-09-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
845 * pa.md (extzv): Check predicates before emitting extzv_32.
848 2002-09-10 Ulrich Weigand <uweigand@de.ibm.com>
850 * config/s390/s390.h (MOVE_MAX): Define to correct value.
851 (MAX_MOVE_MAX): Define.
852 (MOVE_BY_PIECES_P): Define.
853 (CLEAR_BY_PIECES_P): Define.
855 2002-09-10 Denis Chertykov <denisc@overta.ru>
857 * config/avr/avr.md (movstrhi): Use right operands for conversion.
859 2002-09-10 Richard Earnshaw <rearnsha@arm.com>
862 * arm.md (insv): Use reg_or_int_operand for operand[3].
864 2002-09-10 David Edelsohn <edelsohn@gnu.org>
866 * rs6000.c (rs6000_assemble_visibility): Protect declaration
867 inside macro. Correct function definition typo.
868 (rs6000_xcoff_section_type_flags): New function.
869 (TARGET_SECTION_TYPE_FLAGS): Remove definition.
870 (rs6000_elf_section_type_flags): Call default_section_type_flags_1
871 with appropriate PIC test.
872 (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
874 (rs6000_binds_local_p): Combine PIC flags.
875 * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
876 * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
878 2002-09-09 Per Bothner <per@bothner.com>
880 * print-tree.c (print_node): In a STRING_CST, escape non-ascii
881 characters, and only print TREE_STRING_LENGTH chars.
883 2002-09-09 Steve Ellcey <sje@cup.hp.com>
885 * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
887 * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
888 * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
889 * config/ia64/ia64.c (ia64_asm_output_external): Create list
890 of external functions if TARGET_HPUX_LD is true.
891 (ia64_hpux_add_extern_decl): New, routine to put names on
892 list of external functions.
893 (ia64_hpux_asm_file_end): Put out declarations for external
894 functions if and only if they are used.
896 2002-09-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
898 * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
899 on TARGET_64BIT before pic register restore.
901 2002-09-09 David Edelsohn <edelsohn@gnu.org>
903 * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
904 (TARGET_HAVE_TLS): New description.
906 2002-09-09 Janis Johnson <janis187@us.ibm.com>
908 * doc/extend.texi (Statement Exprs): Fix broken link.
910 2002-09-09 Denis Chertykov <denisc@overta.ru>
912 * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
913 right conversion of operands[1].
915 2002-09-09 Ulrich Weigand <uweigand@de.ibm.com>
917 * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
918 commutative. Use "nonimmediate_operand" instead of "register_operand"
919 as predicate for operand 0. Move to after the "*tmXX_mem" insns.
921 ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
924 ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
925 mark as commutative. Use "nonimmediate_operand" instead of
926 "register_operand" as predicate for operand 1.
928 ("movstrictsi"): Fix typo in insn name.
930 2002-09-09 Jan Hubicka <jh@suse.cz>
932 * i386.c (index_register_operand): New.
933 * i386.h (predicate_codes): Add new predicate.
934 * i386.md (lea_general_*): Use index_regsiter_operand
935 (ashift to lea splitter): Do not produce invalid leas
936 (ashift to mov+ashift split): New.
938 2002-09-09 Nick Clifton <nickc@redhat.com>
940 * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
943 2002-09-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
944 J"orn Rennecke <joern.rennecke@superh.com>
946 * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
948 2002-09-09 Alan Modra <amodra@bigpond.net.au>
950 * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
951 (function_ok_for_sibcall): Use binds_local_p. Respect longcall
954 2002-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
956 * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
958 2002-09-08 Richard Henderson <rth@redhat.com>
960 * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
961 (DW_OP_GNU_push_tls_address): New.
962 (DW_OP_lo_user): Fix.
963 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
964 (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
965 (size_of_loc_descr): Likewise.
966 (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
967 (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
968 (loc_descriptor_from_tree): Handle TLS variables.
969 (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
970 (add_location_or_const_value_attribute): ... not here. Defer
971 to loc_descriptor_from_tree for TLS variables.
973 * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
974 * config/i386/i386.c (i386_output_dwarf_dtprel): New.
975 * config/i386/i386-protos.h: Update.
977 2002-09-08 Roger Sayle <roger@eyesopen.com>
980 * unroll.c (loop_iterations): last_loop_insn should be the previous
981 non-note instruction before loop->end.
982 * loop.c (strength_reduce): The conditional jump is the last
983 non-note instruction before loop->end (as above).
985 2002-09-08 Roger Sayle <roger@eyesopen.com>
987 * combine.c (try_combine): Handle the case that undobuf.other_insn
988 has been turned into a return or unconditional jump, by inserting
989 a BARRIER if necessary.
990 (simplify_set): Test if a condition code setter has a constant
991 comparison at compile time, if so convert this insn to a no-op move
992 and update/simplify the condition code user (undobuf.other_insn).
994 2002-09-08 Krister Walfridsson <cato@df.lth.se>
996 * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
997 (CLEAR_INSN_CACHE): Define.
999 2002-09-08 Kazu Hirata <kazu@cs.umass.edu>
1001 * basic-block.h: Fix comment formatting.
1002 * c-common.c: Likewise.
1003 * c-common.h: Likewise.
1004 * c-lex.c: Likewise.
1005 * c-pretty-print.c: Likewise.
1006 * cfglayout.c: Likewise.
1007 * cfgloop.c: Likewise.
1008 * defaults.h: Likewise.
1009 * et-forest.c: Likewise.
1010 * explow.c: Likewise.
1011 * function.h: Likewise.
1013 * genattrtab.c: Likewise.
1014 * gengtype.c: Likewise.
1015 * ifcvt.c: Likewise.
1016 * libgcc2.c: Likewise.
1018 * profile.c: Likewise.
1019 * ra-build.c: Likewise.
1022 * tracer.c: Likewise.
1023 * tree-inline.c: Likewise.
1024 * varasm.c: Likewise.
1026 2002-09-08 Jan Hubicka <jh@suse.cz>
1028 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
1031 * loop.c (loop_gics_reduce): Emit addition after.
1033 2002-09-08 Alan Modra <amodra@bigpond.net.au>
1035 * varasm.c (default_assemble_visibility): Rename from
1036 assemble_visibility.
1037 * output.h: Here too.
1038 * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
1039 * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
1041 2002-09-08 Alan Modra <amodra@bigpond.net.au>
1043 * reload.c (find_reloads <p constraint>): Pass operand_mode to
1044 find_reloads_address.
1046 2002-09-08 Kazu Hirata <kazu@cs.umass.edu>
1048 * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
1049 (anonymous pattern): Likewise.
1051 2002-09-07 Scott Snyder <snyder@fnal.gov>
1054 * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
1056 2002-09-07 Roger Sayle <roger@eyesopen.com>
1058 * basic-block.h (struct loop): Remove unused cont_dominator field.
1060 2002-09-07 Igor Shevlyakov <igor@microunity.com>
1062 * varasm.c (decode_rtx_const): Don't check undefined field for
1065 2002-09-07 Glen Nakamura <glen@imodulo.com>
1068 * sched-deps.c (sched_analyze_insn): Make sure to add insn
1069 to reg_last->sets after flushing the dependency lists to guarantee
1070 that subsequent clobbers will be dependent on it.
1072 2002-09-07 Igor Shevlyakov <igor@microunity.com>
1074 * combine.c (simplify_shift_const): Calculate rotate count
1075 correctly for vector operands.
1077 2002-09-07 Ansgar Esztermann <ansgar@thphy.uni-duesseldorf.de>
1079 * c-typeck.c (c_tree_expr_nonnegative_p): New function.
1080 (build_binary_op): Call c_tree_expr_nonnegative_p rather than
1081 tree_expr_nonnegative_p.
1082 (build_conditional_expr): Likewise.
1083 * c-tree.h (c_tree_expr_nonnegative_p): Declare.
1085 2002-09-07 Richard Henderson <rth@redhat.com>
1087 * builtins.def (inf, inff, infl): Mark const.
1088 (huge_val, huge_valf, huge_vall): Likewise.
1089 (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
1091 * real.c (ereal_inf): Clear E before use.
1093 2002-09-07 Kazu Hirata <kazu@cs.umass.edu>
1095 * config/h8300/h8300.md (udivmodqi4): Split the pattern into
1096 an expander and an anonymous pattern. Zero out the upper half
1097 of the dividend in the expander.
1098 (udivmodqi4): Likewise.
1100 2002-09-07 Kazu Hirata <kazu@cs.umass.edu>
1102 * config/h8300/h8300.c: Fix formatting.
1103 * config/h8300/h8300.h: Likewise.
1104 * config/h8300/h8300.md: Likewise.
1106 2002-09-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1108 * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
1111 2002-09-07 Graham Stott <graham.stott@btinternet.con>
1113 * rtlanal.c (dead_or_set_regno_p): Fix typo.
1115 2002-09-07 Alan Modra <amodra@bigpond.net.au>
1117 * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1119 * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
1120 * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
1121 (TARGET_ASM_OUT): Add the above here.
1122 * target.h (struct gcc_target): Add "visibility" field.
1123 * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
1124 * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
1125 (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
1126 (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
1128 2002-09-06 Ziemowit Laski <zlaski@apple.com>
1130 * c-lang.c (objc_is_id): New stub.
1131 * c-tree.h (objc_is_id): New forward declaration.
1132 * c-typeck.c (build_c_cast): Do not strip protocol
1133 qualifiers from 'id' type.
1134 * objc/objc-act.c (objc_comptypes): Correct handling
1135 of protocol qualifiers.
1138 Fri Sep 6 13:10:08 2002 Jeffrey A Law (law@redhat.com)
1140 * pentium.md (pentium-firstvboth): Fix typo.
1142 2002-09-06 Dhananjay Deshpande <dhananjayd@kpit.com>
1144 * h8300.c (enum shift_alg): Move to earlier in h8300.c.
1145 (enum shift_type, enum h8_cpu): Likewise.
1146 (INL, ROT, LOP, SPC macros): Likewise.
1147 (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise. Lose
1149 (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
1150 space efficient algorithms when optimize for codesize.
1152 Fri Sep 6 16:35:32 2002 Nicola Pero <n.pero@mi.flashnet.it>
1154 Fix PR/1727 and long-standing failing testcase
1155 objc/formal-protocol-6.m.
1156 * objc-act.c (build_protocol_expr): If compiling for the GNU
1157 runtime, create a list of Protocol statically allocated instances
1158 if it doesn't exist, then add the Protocol object to this same
1160 (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
1161 instead of TREE_CHAIN.
1163 Fri Sep 6 16:17:33 2002 Nicola Pero <n.pero@mi.flashnet.it>
1165 * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
1166 10k. Fixed category dumping - print out category names with the
1167 proper syntax. Print '@end\n' and not '\n@end' at the end of the
1169 (finish_objc): Fixed the -gen-decls option. It was printing out
1170 only the last class. Dump an interface declaration of all classes
1171 being compiled instead.
1173 2002-09-06 Jason Thorpe <thorpej@wasabisystems.com>
1175 * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
1177 * config/arm/arm.c (arm_gen_return_addr_mask): New function.
1178 * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
1179 if not APCS26 and not Thumb or ARMv4-or-higher. Use gen_int_mode
1180 rather than GEN_INT.
1181 * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
1182 (return_addr_mask, *check_arch2): New.
1184 2002-09-06 Ulrich Weigand <uweigand@de.ibm.com>
1186 * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
1187 "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
1188 "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
1189 "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
1190 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
1191 "adddf3", "*adddf3", "*adddf3_ibm",
1192 "addsf3", "*addsf3", "*addsf3_ibm",
1193 "muldi3", "mulsi3", "mulsidi3",
1194 "muldf3", "*muldf3", "*muldf3_ibm",
1195 "mulsf3", "*mulsf3", "*mulsf3_ibm",
1196 "*anddi3_cc", "*anddi3_cconly", "anddi3",
1197 "*andsi3_cc", "*andsi3_cconly", "andsi3",
1198 "*iordi3_cc", "*iordi3_cconly", "iordi3",
1199 "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
1200 "*xordi3_cc", "*xordi3_cconly", "xordi3",
1201 "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
1202 instead of "register_operand" as predicate for "%0" operand.
1204 2002-09-06 Jakub Jelinek <jakub@redhat.com>
1206 * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
1207 unconditionally when gcc_cv_as_flags64 checks are gone.
1208 * configure: Rebuilt.
1210 2002-09-06 Alan Modra <amodra@bigpond.net.au>
1212 * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
1213 2002-07-26 change. Comment.
1215 2002-09-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1217 * frv.c (frv_unique_section, frv_select_section,
1218 frv_select_rtx_section): Delete.
1219 (frv_in_small_data_p): New.
1220 (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
1221 TARGET_ASM_SELECT_RTX_SECTION): Delete.
1222 (TARGET_IN_SMALL_DATA_P): Define.
1224 2002-09-05 Dale Johannesen <dalej@apple.com>
1226 * reload1.c (reload): Retain only those memory clobbers
1227 added for variable-array handling.
1229 2002-09-05 Jason Thorpe <thorpej@wasabisystems.com>
1231 * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
1232 return-in-memory rules.
1233 * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
1235 2002-09-05 David Edelsohn <edelsohn@gnu.org>
1237 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
1238 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
1240 2002-09-05 Jason Thorpe <thorpej@wasabisystems.com>
1242 * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
1243 not a compile-time constant for the non-IBM case.
1244 * config/arm/arm-protos.h (arm_float_words_big_endian): New
1246 * config/arm/arm.c (arm_float_words_big_endian): New function.
1247 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
1248 if TARGET_VFP and not TARGET_HARD_FLOAT.
1249 (ARM_FLAG_VFP, TARGET_VFP): Define.
1250 (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
1252 2002-09-05 David Edelsohn <edelsohn@gnu.org>
1254 * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
1255 URLs. Fix AIX wording.
1257 2002-09-05 Stan Shebs <shebs@apple.com>
1259 * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
1260 -fPIC equivalent on Darwin.
1262 Thu Sep 5 16:27:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
1264 * sh.c (sh_expand_builtin): Return early if encountering an
1265 error_mark for a type.
1267 2002-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1269 * config/s390/s390.c (s390_expand_plus_operand): Do not require
1270 double-word scratch register.
1271 config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
1273 ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
1274 "*cli"): Replace s_operand by memory_operand.
1275 ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
1277 2002-09-05 Kazu Hirata <kazu@cs.umass.edu>
1279 * config/h8300/h8300.c (asm_file_start): Add a missing
1282 2002-09-04 Krister Walfridsson <cato@df.lth.se>
1284 * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
1285 * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
1286 (ix86_output_addr_diff_elt) Likewise.
1287 (x86_output_mi_thunk) Likewise.
1288 * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
1290 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1292 * frv.c (frv_encode_section_info): Fix error in last change.
1294 2002-09-04 David Edelsohn <edelsohn@gnu.org>
1296 * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
1297 (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
1298 (TARGET_BINDS_LOCAL_P): Define.
1299 (rs6000_override_options): Save original flag_pic value.
1300 (rs6000_elf_select_section): Call default_elf_select_section_1.
1301 (rs6000_elf_unique_section): Call default_unique_section_1.
1302 (rs6000_elf_in_small_data_p): New function.
1303 (rs6000_xcoff_asm_named_section): Determine storage mapping class.
1304 (rs6000_xcoff_select_section): Update based on defaults.
1305 (rs6000_xcoff_unique_section): Set to basic name if not common.
1306 (rs6000_binds_local_p): New function.
1307 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
1308 targetm.have_srodata_section if SDATA_EABI.
1309 (TARGET_IN_SMALL_DATA_P): Define.
1311 2002-09-04 Dale Johannesen <dalej@apple.com>
1313 * varasm.c (struct rtx_const, decode_rtx_const):
1314 Make veclo and vechi fields not share storage.
1316 Thu Sep 5 00:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
1318 * loop.c (scan_loop): Don't mark separate insns out of a libcall
1320 (move_movables): Abort if we see the first insn of a libcall.
1322 2002-09-04 Richard Henderson <rth@redhat.com>
1324 * builtin-types.def (BT_FN_FLOAT): New.
1325 (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
1326 * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
1327 BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
1328 * builtins.c (fold_builtin_inf): New.
1329 (fold_builtin): Call it.
1330 * real.c (ereal_inf): New.
1331 * real.h: Declare it.
1332 * doc/extend.texi: Document new builtins.
1334 2002-09-04 Richard Henderson <rth@redhat.com>
1336 * cse.c (cse_insn): Avoid subreg games if the equivalence
1337 is already in the proper mode.
1339 2002-09-04 Eric Botcazou <ebotcazou@multimania.com>
1342 * optabs.c (expand_binop): Convert CONST_INTs in all cases.
1344 2002-09-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1346 * pa.md (setccfp0, setccfp1): New patterns.
1348 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1350 * frv-protos.h (frv_init_builtins, frv_expand_builtin,
1351 frv_select_section, frv_select_rtx_section,
1352 frv_encode_section_info, frv_unique_section): Delete.
1353 * frv.c: Update for target hooks.
1354 * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
1355 SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
1356 EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
1358 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1360 * ip2k-protos.h (function_prologue, function_epilogue,
1361 encode_section_info): Update to match target hook specification.
1362 * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
1363 (function_prologue, function_epilogue, encode_section_info):
1364 Update to match target hook specification.
1365 * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
1366 ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
1367 (NOTICE_UPDATE_CC): Cast to void.
1368 * ip2k.md: Add defaults in switch statements.
1370 2002-09-04 Janis Johnson <janis187@us.ibm.com>
1372 * doc/trouble.texi (Interoperation): Update information about C++ ABI
1375 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1377 * config/sparc/t-netbsd64: Disable multilib for now.
1379 2002-09-04 David Edelsohn <edelsohn@gnu.org>
1381 * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
1382 * target.h (gcc_target): Add have_srodata_section member.
1383 * varasm.c (section_category): Add SECCAT_SRODATA.
1384 (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
1385 READONLY_SDATA_SECTION defined.
1386 (decl_readonly_section_1): True for SECCAT_SRODATA also.
1387 (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
1388 (default_unique_section_1): Likewise.
1390 2002-09-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1392 * expr.c (emit_group_load): Revise to allow splitting TCmode source
1395 * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
1396 * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
1397 for floating-point register class.
1398 * pa.c (function_arg): Fix handling of modes wider than one word for
1401 Wed Sep 4 18:48:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
1403 * combine.c (make_compound_operation): Don't generate zero / sign
1404 extensions in floating point modes.
1406 2002-09-04 Janis Johnson <janis187@us.ibm.com>
1408 * doc/c-tree.texi: Fix overfull hboxes.
1409 * doc/cppopts.texi: Ditto.
1410 * doc/extend.texi: Ditto.
1411 * doc/gty.texi: Ditto.
1412 * doc/invoke.texi: Ditto.
1413 * doc/makefile.texi: Ditto.
1414 * doc/rtl.texi: Ditto.
1415 * doc/standards.texi: Ditto.
1416 * doc/tm.texi: Ditto.
1418 2002-09-04 Richard Henderson <rth@redhat.com>
1420 * c-common.c (builtin_define_with_hex_fp_value): New.
1421 (builtin_define_float_constants): Use it. Fix H_FLOAT mant_dig.
1423 2002-09-04 Janis Johnson <janis187@us.ibm.com>
1425 * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
1426 (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
1427 -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
1428 Warn that these options can break ABI compatibility.
1430 2002-09-04 Richard Henderson <rth@redhat.com>
1432 * real.c (ereal_to_decimal): Add digits parameter.
1433 * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
1434 * c-pretty-print.c (pp_c_real_literal): Update call.
1435 * print-rtl.c (print_rtx): Likewise.
1436 * print-tree.c (print_node_brief, print_node): Likewise.
1437 * sched-vis.c (print_value): Likewise.
1438 * config/arc/arc.c (arc_print_operand): Likewise.
1439 * config/c4x/c4x.c (c4x_print_operand): Likewise.
1440 * config/i370/i370.h (PRINT_OPERAND): Likewise.
1441 * config/i386/i386.c (print_operand): Likewise.
1442 * config/i960/i960.c (i960_print_operand): Likewise.
1443 * config/ip2k/ip2k.c (asm_output_float): Likewise.
1444 * config/m32r/m32r.c (m32r_print_operand): Likewise.
1445 * config/m68hc11/m68hc11.c (print_operand): Likewise.
1446 * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
1447 ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
1448 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
1449 ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
1450 * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
1451 ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1452 * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
1453 ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1454 * config/mips/mips.c (print_operand): Likewise.
1455 * config/ns32k/ns32k.c (print_operand): Likewise.
1456 * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
1457 * config/vax/vax.h (PRINT_OPERAND): Likewise.
1458 * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
1460 2002-09-04 Bob Wilson <bob.wilson@acm.org>
1462 * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
1463 xtensa_multibss_section_type_flags.
1464 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
1466 2002-09-04 Richard Henderson <rth@redhat.com>
1468 * doc/install-old.texi: Don't mention enquire.
1469 * doc/sourcebuild.texi: Update float.h description.
1471 Wed Sep 4 11:22:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
1473 * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
1475 2002-09-03 David Edelsohn <edelsohn@gnu.org>
1477 * varasm.c (default_section_type_flags): Append _1 to name with
1478 shlib parameter. Use original name to call new function with
1480 (decl_readonly_section): Likewise.
1481 (default_elf_select_section): Likewise.
1482 (default_unique_section): Likewise.
1483 (default_bind_local_p): Likewise.
1484 (categorize_decl_for_section): Add shlib parameter to use in place
1485 of implicit flag_pic.
1486 * output.h: Declare new functions with _1 and shlib argument.
1488 2002-09-03 Janis Johnson <janis187@us.ibm.com>
1490 * doc/install.texi: Fix typos, formatting problems, and obvious
1491 overfull/underfull boxes.
1493 * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
1494 * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
1495 include its file, compat.texi.
1496 * doc/compat.texi: New file with new chapter, Binary Compatibility.
1498 2002-09-03 Neil Booth <neil@daikokuya.co.uk>
1500 Debian BTS Bug #157416
1501 * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
1502 * cpplib.c (destringize_and_run): Kludge around getting
1503 tokens from in-progress macros.
1504 (_cpp_do__Pragma): Simplify.
1506 2002-09-03 Steve Ellcey <sje@cup.hp.com>
1508 * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
1509 (CPP_CPU_SPEC): Remove.
1510 (TARGET_CPU_CPP_BUILTINS): New.
1511 * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
1513 (TARGET_OS_CPP_BUILTINS): New.
1514 * config/ia64/linux.h (CPP_PREDEFINES): Remove.
1515 (TARGET_OS_CPP_BUILTINS): New.
1516 * config/ia64/aix.h (CPP_SPEC): Move some stuff to
1517 TARGET_OS_CPP_BUILTINS.
1518 (CPP_PREDEFINES): Remove.
1519 (CPLUSPLUS_CPP_SPEC): Remove.
1520 (TARGET_OS_CPP_BUILTINS): New.
1522 2002-09-03 Richard Henderson <rth@redhat.com>
1524 * Makefile.in (USER_H): Add ginclude/float.h.
1526 (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
1527 (mostlyclean): Don't remove float.h intermediate files.
1528 (distclean): Don't remove float.h.
1529 * config.gcc: Remove all float_format references.
1530 * configure.in (float_format, float_h_file): Remove.
1532 * c-common.c: Include tree-inline.h.
1533 (builtin_define_with_int_value): New.
1534 (builtin_define_type_precision): Use it.
1535 (builtin_define_float_constants): New.
1536 (cb_register_builtins): Use it. Define __FLT_RADIX__ and
1537 __FLT_EVAL_METHOD__.
1538 * defaults.h (TARGET_FLT_EVAL_METHOD): New.
1539 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
1540 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
1541 * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
1542 (TARGET_FLT_EVAL_METHOD): New.
1544 * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
1545 config/float-i386.h, config/float-i64.h, config/float-m68k.h,
1546 config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
1547 * ginclude/float.h: New.
1549 2002-09-03 Stan Shebs <shebs@apple.com>
1551 * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
1552 (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
1553 (PREFERRED_DEBUGGING_TYPE): Ditto.
1554 (ASM_OUTPUT_IDENT): Remove empty definition.
1556 2002-09-03 Steve Ellcey <sje@cup.hp.com>
1558 * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
1560 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
1561 handling routine for builtin pragma.
1562 * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
1563 Registered pragma handling routine.
1564 * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
1565 (ia64_hpux_add_pragma_builtin) New subroutine used by above.
1566 If builtin pragma seen for math routine and C89 conformance is
1567 requested use different math function in order to set errno.
1568 * t-ia64 (ia64-c.o): Add new rule for new file.
1570 2002-09-03 Ulrich Weigand <uweigand@de.ibm.com>
1572 * config/s390/s390.md ("movti"): Add Q->Q alternative.
1573 ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
1574 "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
1576 ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
1577 "*movsf_ss"): Remove.
1579 2002-09-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
1581 * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
1584 2002-09-03 Arati Dikey <aratid@kpit.com>
1586 * h8300.c (asm_file_start): Corrected optimization comment.
1588 2002-09-03 Stan Shebs <shebs@apple.com>
1590 * c-lang.c (recognize_objc_keyword): Remove, no longer used.
1591 * c-tree.h (recognize_objc_keyword): Remove decl.
1592 * c-typeck.c (comp_target_types): Update a comment.
1594 2002-09-03 Ulrich Weigand <uweigand@de.ibm.com>
1596 * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
1597 and register validity checks.
1598 (general_s_operand): Adapt to s390_decompose_address interface change.
1599 (q_constraint): Likewise.
1600 (s390_expand_plus_operand): Likewise.
1601 (legitimiate_address_p): Likewise.
1602 (legitimate_la_operand_p): Likewise.
1603 (legitimize_la_operand): Likewise.
1604 (print_operand_address): Likewise.
1605 (print_operand): Likewise.
1607 Tue Sep 3 11:32:14 2002 Nicola Pero <n.pero@mi.flashnet.it>
1610 * objc/objc-act.c (build_typed_selector_reference): Fix typo which
1611 was causing the new selector never to match the existing ones
1612 (Patch by Alexander Malmberg <alexander@malmberg.org>).
1614 2002-09-03 Graham Stott <graham.stott@btinternet.com>
1616 * config/i386/i386.md ("femms"): Add "memory" attr "none".
1618 2002-09-03 Graham Stott <graham.stott@btinternet.com>
1620 * expr.c (expand_expr): Remove extraneous comment and code.
1622 2002-08-31 Richard Henderson <rth@redhat.com>
1624 * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
1626 2002-08-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
1628 * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
1630 2002-08-30 Richard Henderson <rth@redhat.com>
1633 * c-objc-common.c: Include target.h.
1634 (c_cannot_inline_tree_fn): Don't auto-inline functions that
1635 don't bind locally. Factor setting DECL_UNINLINABLE.
1636 * Makefile.in (c-objc-common.o): Update.
1638 2002-08-30 Janis Johnson <janis187@us.ibm.com>
1640 * doc/install.texi (Configuration, Building): Fix a typo and
1641 some formatting directives.
1643 2002-08-30 Paul Koning <pkoning@equallogic.com>
1645 * doc/c-tree.texi (RDIV_EXPR): Fix typo.
1646 * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
1648 * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
1649 for alphabetic order.
1650 * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
1651 VAX_FLOAT_FORMAT. Remove reference to HOST_FLOAT_FORMAT.
1652 (VAX_HALFWORD_ORDER): Document.
1653 (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
1655 (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
1656 (ASM_OUTPUT_LABEL_REF): Fix font.
1657 (CASE_VECTOR_SHORTEN_MODE): Ditto.
1659 2002-08-30 Denis Chertykov <denisc@overta.ru>
1661 * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
1663 (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
1664 CONST_DOUBLE constants.
1666 2002-08-30 Jason Thorpe <thorpej@wasabisystems.com>
1668 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
1669 related defines to...
1670 (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
1671 * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
1674 2002-08-30 Krister Walfridsson <cato@df.lth.se>
1676 * config/arm/arm.c (arm_asm_output_labelref): New function.
1677 * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
1678 * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
1680 2002-08-29 Rodney Brown <rbrown64@csc.com.au>
1682 * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
1683 memory exhausted" workarounds.
1685 2002-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1687 * diagnostic.c (fancy_abort): Don't repeat "internal error".
1688 * toplev.c (crash_signal): Likewise.
1690 Fri Aug 30 00:33:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
1692 * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
1693 * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
1694 Extended, updated documentation.
1695 (-Wundeclared-selector): Documented.
1697 2002-08-29 Jason Thorpe <thorpej@wasabisystems.com>
1699 * config/chorus.h: Consistently define *_DEBUGGING_INFO with
1700 the value 1. Do not undef before defining.
1701 * config/darwin.h: Likewise.
1702 * config/dbx.h: Likewise.
1703 * config/dbxcoff.h: Likewise.
1704 * config/dbxelf.h: Likewise.
1705 * config/elfos.h: Likewise.
1706 * config/interix.h: Likewise.
1707 * config/lynx-ng.h: Likewise.
1708 * config/lynx.h: Likewise.
1709 * config/netware.h: Likewise.
1710 * config/psos.h: Likewise.
1711 * config/svr3.h: Likewise.
1712 * config/alpha/alpha.h: Likewise.
1713 * config/alpha/elf.h: Likewise.
1714 * config/alpha/vms.h: Likewise.
1715 * config/arc/arc.h: Likewise.
1716 * config/arm/aout.h: Likewise.
1717 * config/arm/coff.h: Likewise.
1718 * config/c4x/c4x.h: Likewise.
1719 * config/h8300/h8300.h: Likewise.
1720 * config/i386/cygwin.h: Likewise.
1721 * config/i386/djgpp.h: Likewise.
1722 * config/i386/gas.h: Likewise.
1723 * config/i386/gstabs.h: Likewise.
1724 * config/i386/i386-coff.h: Likewise.
1725 * config/i386/i386-interix.h: Likewise.
1726 * config/i386/sco5.h: Likewise.
1727 * config/i386/svr3dbx.h: Likewise.
1728 * config/i386/sysv3.h: Likewise.
1729 * config/i386/win32.h: Likewise.
1730 * config/i386/x86-64.h: Likewise.
1731 * config/i960/i960.h: Likewise.
1732 * config/ia64/ia64.h: Likewise.
1733 * config/ip2k/ip2k.h: Likewise.
1734 * config/m32r/m32r.h: Likewise.
1735 * config/m68k/3b1.h: Likewise.
1736 * config/m68k/3b1g.h: Likewise.
1737 * config/m68k/ccur-GAS.h: Likewise.
1738 * config/m68k/coff.h: Likewise.
1739 * config/m68k/hp2bsd.h: Likewise.
1740 * config/m68k/hp310g.h: Likewise.
1741 * config/m68k/hp320g.h: Likewise.
1742 * config/m68k/hp3bsd.h: Likewise.
1743 * config/m68k/hp3bsd44.h: Likewise.
1744 * config/m68k/linux-aout.h: Likewise.
1745 * config/m68k/m68k-aout.h: Likewise.
1746 * config/m68k/mot3300.h: Likewise.
1747 * config/m68k/netbsd.h: Likewise.
1748 * config/m68k/openbsd.h: Likewise.
1749 * config/m68k/pbb.h: Likewise.
1750 * config/m68k/plexus.h: Likewise.
1751 * config/m68k/sun2.h: Likewise.
1752 * config/m68k/sun3.h: Likewise.
1753 * config/m68k/tower-as.h: Likewise.
1754 * config/m68k/vxm68k.h: Likewise.
1755 * config/m88k/aout-dbx.h: Likewise.
1756 * config/m88k/m88k-aout.h: Likewise.
1757 * config/mcore/mcore-elf.h: Likewise.
1758 * config/mcore/mcore-pe.h: Likewise.
1759 * config/mips/elf.h: Likewise.
1760 * config/mips/elf64.h: Likewise.
1761 * config/mips/iris5gas.h: Likewise.
1762 * config/mips/iris6.h: Likewise.
1763 * config/mips/mips.h: Likewise.
1764 * config/mips/sni-gas.h: Likewise.
1765 * config/mmix/mmix.h: Likewise.
1766 * config/ns32k/netbsd.h: Likewise.
1767 * config/pa/pa64-hpux.h: Likewise.
1768 * config/romp/romp.h: Likewise.
1769 * config/rs6000/sysv4.h: Likewise.
1770 * config/rs6000/xcoff.h: Likewise.
1771 * config/sh/coff.h: Likewise.
1772 * config/sh/elf.h: Likewise.
1773 * config/sparc/linux64.h: Likewise.
1774 * config/sparc/liteelf.h: Likewise.
1775 * config/sparc/netbsd.h: Likewise.
1776 * config/sparc/openbsd.h: Likewise.
1777 * config/sparc/pbd.h: Likewise.
1778 * config/sparc/sp64-elf.h: Likewise.
1779 * config/sparc/sp86x-elf.h: Likewise.
1780 * config/sparc/sparc.h: Likewise.
1781 * config/vax/vax.h: Likewise.
1782 * config/vax/vaxv.h: Likewise.
1784 2002-08-29 "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
1786 * h8300.c (shift_alg_hi): Various tweaks to improve performance
1788 (get_shift_alg): Corresponding changes.
1790 2002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
1792 * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
1794 2002-08-29 Richard Henderson <rth@redhat.com>
1796 * expr.h (enum block_op_methods): New.
1797 (emit_block_move): Update prototype.
1798 * expr.c (block_move_libcall_safe_for_call_parm): New.
1799 (emit_block_move_via_loop): New.
1800 (emit_block_move): Use them. New argument METHOD.
1801 (emit_push_insn): Always respect the given alignment.
1802 (expand_assignment): Update call to emit_block_move.
1803 (store_expr, store_field, expand_expr): Likewise.
1804 * builtins.c (expand_builtin_apply): Likewise.
1805 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
1806 * function.c (expand_function_end): Likewise.
1807 * config/sh/sh.c (sh_initialize_trampoline): Likewise.
1808 * config/sparc/sparc.c (sparc_va_arg): Likewise.
1809 * calls.c (expand_call, emit_library_call_value_1): Likewise.
1810 (save_fixed_argument_area): Use emit_block_move with
1811 BLOCK_OP_CALL_PARM instead of move_by_pieces.
1812 (restore_fixed_argument_area): Likewise.
1813 (store_one_arg): Fix alignment parameter to emit_push_insn.
1815 2002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
1817 * install.texi (hppa64-hp-hpux11*): Document installation procedure.
1819 2002-08-29 Catherine Moore <clm@redhat.com>
1821 * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
1822 NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
1823 (PREDICATE_CODES): Include new predicates.
1824 (RTX_COSTS): Handle UMOD and UDIV. Tune MULT for v850e.
1825 (TARGET_SWITCHES): Add strict-align.
1826 (TARGET_STRICT_ALIGN): New.
1827 (MASK_DEFAULT, STRICT_ALIGNMENT): Redefine.
1828 * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
1830 (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
1832 * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
1833 L_callt_save_r2_r31, L_return_r2_r31,
1834 L_save_all_interrupt): Change addi to add.
1835 (L_save_interrupt, L_return_interrupt): Rework.
1836 (__return_r31): Correct .size directive.
1837 (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
1838 (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
1840 * config/v850/v850.c (expand_prologue): Call
1841 gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
1842 gen_callt_return_interrupt and gen_callt_save_all_interrupt.
1843 (reg_or_int9_operand): New predicate.
1844 (reg_or_const_operand): New routine.
1845 * config/v850/v850.md (return_interrupt): Changed from
1847 (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
1848 (callt_save_interrupt): Change save sequence.
1849 (callt_return_interrupt): New.
1850 (save_interrupt): Don't use runtime function for LONG_CALLS
1851 and TARGET_PROLOG_FUNCTION.
1852 (save_all_interrupt): Likewise.
1853 (mulsi3): Use new predicate.
1854 (moviscc): Disallow some combination of constants.
1855 Fix define_split for sasf insns, so that it will not generate bad
1856 code if operand0 and operand5 are the same.
1857 * config/v850/v850-protos.h: Prototype new predicates.
1859 2002-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
1861 * c-common.c (builtin_define_type_precision): New function.
1862 (cb_register_builtins): Use it. Define __WCHAR_UNSIGNED__ is
1863 wchar_t is unsigned in C++.
1864 * doc/cpp.texi (Common Predefined Macros): Document
1865 __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
1866 __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
1867 __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
1869 2002-08-28 Sylvain Pion <pion@cs.nyu.edu>
1871 * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
1872 section. Mention that it is enabled by -Wall.
1873 (-Wall): Mention that there can be language-specific warnings as well.
1874 (-Wctor-dtor-privacy): Mention that it is enabled by default.
1875 (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
1877 Wed Aug 28 15:35:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
1879 * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
1882 * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
1883 attribute for SHCOMPACT.
1885 * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
1887 (FUNCTION_BOUNDARY): Specify only the minimum alignment required
1890 * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
1892 2002-08-28 Jason Thorpe <thorpej@wasabisystems.com>
1894 * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
1895 "MASK_GAS|MASK_ABICALLS".
1896 * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
1897 (TARGET_DEFAULT): Remove.
1898 (MACHINE_TYPE): Undefine before defining.
1899 (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
1901 2002-08-27 Mark Mitchell <mark@codesourcery.com>
1903 * c-common.c (warn_abi): New variable.
1904 * c-common.h (warn_abi): Likewise.
1905 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
1906 (c_common_decode_option): Handle it.
1907 * doc/invoke.texi: Document -Wabi.
1909 Tue Aug 27 23:03:52 2002 Nicola Pero <n.pero@mi.flashnet.it>
1911 * c-common.c (warn_undeclared_selector): New variable.
1912 * c-common.h (warn_undeclared_selector): Idem.
1913 * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
1914 to on when -Wundeclared-selector is found.
1915 (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
1916 * objc/objc-act.c (build_selector_expr): If
1917 warn_undeclared_selector is set, check that the selector has
1918 already been defined, and emit a warning if not.
1920 2002-08-27 Nick Clifton <nickc@redhat.com>
1921 Catherine Moore <clm@redhat.com>
1922 Jim Wilson <wilson@cygnus.com>
1924 * config.gcc: Add v850e-*-* target.
1925 Add --with-cpu= support for v850.
1926 * config/v850/lib1funcs.asm: Add v850e callt functions.
1927 * config/v850/v850.h: Add support for v850e target.
1928 * config/v850/v850.c: Add functions to support v850e target.
1929 * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
1930 * config/v850/v850.md: Add patterns for v850e instructions.
1931 * doc/invoke.texi: Document new v850e command line switches.
1933 Tue Aug 27 18:30:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
1934 Aldy Hernandez <aldyh at redhat dot com>
1936 * doc/tm.texi: Applied numerous fixes to the automaton based
1937 scheduler descrition.
1939 Tue Aug 27 19:51:05 CEST 2002 Jan Hubicka <jh@suse.cz>
1941 * i386.c (classify_argument): Handle variable sized objects.
1943 Tue Aug 27 19:18:16 CEST 2002 Jan Hubicka <jh@suse.cz>
1945 * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
1947 Tue Aug 27 18:01:45 CEST 2002 Jan Hubicka <jh@suse.cz>
1949 * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
1951 Tue Aug 27 18:00:11 CEST 2002 Jan Hubicka <jh@suse.cz>
1953 * i386.c (classify_argument): Properly compute word size of the analyzed object.
1955 Tue Aug 27 14:39:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
1957 * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
1958 mac_gp ftrc_s and cwb. Add / Adjust definitions in individual insn
1960 (attribute insn_class): Provide default definitions based on type.
1961 Remove all insn-specific settings.
1962 (various function units): Remove old SH4 scheduling.
1963 (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
1964 New attributes. Set them where appropriate.
1965 (cpu unit FS): Don't define / use.
1966 (F3, load_store): New cpu units.
1967 (F01): New reservation.
1968 (all insn_reservations): Make dependent on sh4 pipeline model.
1970 (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
1971 (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
1972 (mt insn_reservation): Use type mt_group.
1973 (insn_reservation load_store): Split into sh4_load, sh4_load_si,
1974 sh4_fload and sh4_store.
1975 (insn_reservation branch_zero and branch): Replace with sh4_branch.
1976 (insn_reservation branch_far): Replace with sh4_return.
1977 (insn_reservation return_from_exp): Rename to:
1978 (sh4_return_from_exp). Change to be just d_lock*5.
1979 (insn_reservation lds_to_pr): Rename to:
1980 (sh4_lds_to_pr). Change to be just d_lock*2.
1981 (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
1983 (insn_reservation prload_mem): Rename to:
1984 (sh4_prstore_mem). Change to d_lock*2,nothing,memory.
1985 (insn_reservation fpscr_store): Rename to:
1986 (fpscr_load). Change to d_lock,nothing,F1*3.
1987 (insn_reservation fpscr_store_mem): Rename to:
1988 (fpscr_load_mem). Change to d_lock,nothing,(F1+memory),F1*2.
1989 (insn_reservation multi): Change to
1990 d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
1991 (insn_reservation fp_arith): Change to issue,F01,F2.
1992 (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
1993 (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
1994 (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
1995 (insn_reservation fp_double_cmp): Change to
1996 d_lock,(d_lock+F01),F1+F2,F2.
1997 (insn_reservation dp_div): Change to
1998 issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
1999 * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
2000 (sh_adjust_cost, SHcompact): Differentiate between different
2001 kinds of dependencies. Drop factor of ten for superscalar.
2002 Use new instruction types. Add new exception rules.
2004 * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
2006 * sh.md (mperm_w): Add DONE.
2008 2002-08-27 David Edelsohn <edelsohn@gnu.org>
2010 * longlong.h: Import current PowerPC defintion from GMP-4.1.
2012 * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
2014 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
2016 Tue Aug 27 13:53:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2018 * sh.h (MAX_FIXED_MODE_SIZE): Define.
2020 2002-08-27 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
2022 * doc/cpp.texi (Common Predefined Macros): Don't mess with table
2025 2002-08-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2027 * c-common.c (cpp_define_data_format): New function.
2028 (cb_register_builtins): Call it.
2030 * doc/cpp.texi (Common Predefined Macros): Document
2031 __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
2032 __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
2033 __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
2034 __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
2035 __TARGET_USES_VAX_H_FLOAT__.
2037 2002-08-26 Ziemowit Laski <zlaski@apple.com>
2039 * objc/objc-act.c (get_super_receiver): If inside a class method
2040 of a category, cast the receiver to 'id' before accessing the 'isa'
2041 field so that <objc/objc-class.h> is not needed. For NeXT runtime.
2043 2002-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2045 * config/s390/s390-protos.h (s390_function_prologue,
2046 s390_function_epilogue): Remove.
2047 config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
2048 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2050 config/s390/s390.c (s390_machine_dependent_recorg): New function.
2051 config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
2052 config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
2053 config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
2054 to being called from MACHINE_DEPENDENT_REORG. Update regs_ever_live.
2056 config/s390/s390.c (s390_frame_info): Inline save_fprs_p. Always
2057 assume BASE_REGISTER and RETURN_REGNUM need to be saved.
2058 (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
2059 function is not a leaf function. Use save_gprs and restore_gprs.
2060 (s390_emit_epilogue): Likewise.
2061 (save_gprs, restore_gprs): New functions.
2062 (struct s390_frame): Remove return_reg_saved_p member.
2063 (save_fprs_p): Remove.
2064 (s390_optimize_prolog): New function.
2065 (s390_legitimate_reload_constant): Remove now unnecessary check.
2067 (s390_function_count): Remove.
2068 (s390_output_symbolic_const): Replace s390_function_count by
2069 current_function_funcdef_no.
2070 (s390_output_constant_pool): Likewise.
2072 (legitimize_pic_address): Use regs_ever_live to track PIC register
2073 instead of current_function_uses_pic_offset_table.
2074 (s390_emit_prologue): Likewise.
2075 config/s390/s390.md ("call", "call_value"): Likewise.
2077 2002-08-26 Neil Booth <neil@daikokuya.co.uk>
2079 * c-opts.c (find_opt): Don't complain about wrong languages
2080 here. Return exact matches even for wrong language.
2081 (c_common_decode_option): Complain about wrong languages
2084 2002-08-24 Stuart Hastings <stuart@apple.com>
2086 * function.h (struct function): Add flag
2087 all_throwers_are_sibcalls.
2088 * except.c (set_nothrow_function_flags): Replaces
2089 nothrow_function_p. Set new flag.
2090 * except.h (set_nothrow_function_flags): Replaces
2092 * dwarf2out.c (struct dw_fde_struct): Add flag
2093 all_throwers_are_sibcalls.
2094 (output_call_frame_info): Test it.
2095 (dwarf2out_begin_prologue) Propagate it from cfun to
2097 * toplev.c (rest_of_compilation): Update calls to
2100 2002-08-23 Zack Weinberg <zack@codesourcery.com>
2102 * ggc-page.c (compute_inverse): Short circuit calculation for
2103 object sizes larger than half a page.
2105 2002-08-23 David Edelsohn <edelsohn@gnu.org>
2107 * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
2108 DEFAULT_ABI == ABI_AIX like PIC. Test PIC & reloc for readonly
2110 (rs6000_elf_unique_section): Likewise.
2112 2002-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2114 * ns32k.c (ns32k_globalize_label): Delete.
2115 * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
2117 2002-08-23 Alan Modra <amodra@bigpond.net.au>
2119 * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
2120 for loading delta with num_insns_constant_wide. Calculate
2121 delta_low, delta_high without using a conditional.
2123 2002-08-22 Jason Merrill <jason@redhat.com>
2125 * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
2126 * c-common.def: Adjust.
2127 * c-dump.c (c_dump_tree): Adjust.
2128 * c-semantics.c (genrtl_return_stmt): Adjust.
2129 * c-pretty-print.c (pp_c_statement): Adjust.
2130 * tree-inline.c (copy_body_r): Adjust.
2132 2002-08-22 Zack Weinberg <zack@codesourcery.com>
2134 * ggc-page.c: Avoid division in ggc_set_mark.
2135 (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
2136 compute_inverse): New.
2137 (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
2138 (init_ggc): Initialize inverse_table.
2140 2002-08-22 Tom Tromey <tromey@redhat.com>
2142 * doc/install.texi (Configuration): Document --datadir.
2144 2002-08-22 Alexandre Oliva <aoliva@redhat.com>
2146 * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
2148 2002-08-22 Hans-Peter Nilsson <hp@bitrange.com>
2150 * gengtype-lex.l (ID): Allow underscore as first character.
2152 2002-08-21 David Edelsohn <edelsohn@gnu.org>
2154 * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
2156 (rs6000_xcoff_asm_named_section): Rename.
2157 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
2159 2002-08-21 Tom Tromey <tromey@redhat.com>
2161 For PR java/6005 and PR java/7611:
2162 * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
2164 * langhooks.c (lhd_can_use_bit_fields_p): New function.
2165 * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
2166 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
2167 (LANG_HOOKS_INITIALIZER): Use it.
2168 * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
2171 2002-08-21 Stan Shebs <shebs@apple.com>
2173 * tree.c (finish_vector_type): Fix a typo in a comment.
2174 * Makefile.in: Fix "the the" stutters in comments.
2175 * genautomata.c: Ditto.
2177 * regrename.c: Ditto.
2178 * config/alpha/alpha.c: Ditto.
2179 * config/alpha/vms-crt0-64.c: Ditto.
2180 * config/alpha/vms-crt0.c: Ditto.
2181 * config/alpha/vms-psxcrt0-64.c: Ditto.
2182 * config/alpha/vms-psxcrt0.c: Ditto.
2183 * config/d30v/d30v.h: Ditto.
2184 * config/fr30/fr30.h: Ditto.
2185 * config/rs6000/rs6000.c: Ditto.
2186 * config/stormy16/stormy16.h: Ditto.
2187 * doc/md.texi: Ditto.
2189 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
2191 * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
2193 2002-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
2195 * c-decl.c (grokdeclarator): Make invalid combinations with long,
2196 short, signed or unsigned into hard errors. Fixes PR c/4319.
2197 Also make duplicate modifiers such as "short short" into hard
2200 2002-08-21 Andrew Pinski <pinskia@physics.uc.edu>
2201 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2203 * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
2204 to the actual end. Add '@end table' and '@table @code'.
2206 2002-08-20 Geoffrey Keating <geoffk@redhat.com>
2208 * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
2210 * unroll.c (biv_total_increment): Don't try to compute the total
2211 increment for FP BIVs.
2213 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2215 * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
2216 * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
2217 ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2218 * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
2219 * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
2220 * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
2221 (GLOBAL_ASM_OP): Define.
2222 * arm.c (aof_globalize_label): New function.
2223 (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
2224 * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2225 * c4x.c (c4x_globalize_label): New function.
2226 (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
2227 * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
2228 (GLOBAL_ASM_OP): Define.
2229 * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
2230 * darwin-protos.h (darwin_globalize_label): Declare.
2231 * darwin.c (darwin_globalize_label): New function.
2232 * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
2233 (ASM_GLOBALIZE_LABEL): Delete.
2234 (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
2235 * dsp16xx.c (asm_output_common): Use target hook.
2236 * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2237 * frv.h (ASM_GLOBALIZE_LABEL): Delete.
2238 (GLOBAL_ASM_OP): Define.
2239 * i370.c (i370_globalize_label): New function.
2240 (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
2241 * i370.h (ASM_GLOBALIZE_LABEL): Delete.
2242 * i386.c (ix86_asm_file_end): Use target hook.
2243 * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
2244 (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
2245 * ia64.c (ia64_asm_output_external): Likewise.
2246 * ia64/sysv4.h: Update comment.
2247 * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2248 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2249 * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
2250 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2251 * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
2252 * mmix-protos.h (mmix_asm_globalize_label): Delete.
2253 * mmix.c (mmix_asm_globalize_label): Likewise.
2254 * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
2255 (GLOBAL_ASM_OP): Define.
2256 * ns32k.c (ns32k_globalize_label): New function.
2257 * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
2258 (ASM_GLOBALIZE_LABEL): Delete.
2259 * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
2260 (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
2261 * pa.c (pa_globalize_label): New function.
2262 * pa.h (ASM_GLOBALIZE_LABEL): Delete.
2263 (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
2264 * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
2265 (GLOBAL_ASM_OP): Define.
2266 (TARGET_ASM_GLOBALIZE_LABEL): Undef.
2267 * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2268 * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
2269 (GLOBAL_ASM_OP): Define.
2270 * v850.c (v850_output_aligned_bss): Use target hook.
2271 * vax.c (vms_globalize_label): New function.
2272 (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
2273 * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
2274 (GLOBAL_ASM_OP): Define.
2275 * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
2276 * doc/tm.texi: Update docs.
2277 * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
2279 * final.c (output_alternate_entry_point): Likewise.
2280 * hooks.c (hook_FILEptr_constcharptr_void): New function.
2281 * hooks.h (hook_FILEptr_constcharptr_void): Declare.
2282 * output.h (assemble_global): Delete.
2283 (default_globalize_label): Declare.
2284 * system.h (ASM_GLOBALIZE_LABEL): Poison.
2285 * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
2286 (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
2287 * target.h (gcc_target): Add globalize_label member.
2288 * varasm.c (asm_output_bss, asm_output_aligned_bss,
2289 globalize_decl): Use target hook.
2290 (assemble_global): Delete.
2291 (default_globalize_label): New function.
2293 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2295 * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
2297 2002-08-20 Devang Patel <dpatel@apple.com>
2298 * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
2300 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2302 * arc.c (output_shift): Use stdio instead of asm_fprintf.
2303 * arm.c (thumb_output_function_prologue): Likewise.
2304 * avr.c (print_operand): Likewise.
2305 * c4x.c (c4x_print_operand): Likewise.
2306 * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
2307 ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
2308 * cris.c (cris_target_asm_function_prologue,
2309 cris_asm_output_mi_thunk): Likewise.
2310 * h8300.c (print_operand): Likewise.
2311 * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2312 * ip2k.c (print_operand): Likewise. Fix format specifier.
2313 * m68hc11.c (asm_print_register, print_operand,
2314 print_operand_address): Use stdio instead of asm_fprintf.
2315 (print_operand_address): Fix format specifier.
2316 * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
2317 ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
2319 * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2320 * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2321 * m68k.c (m68k_output_function_prologue,
2322 m68k_output_function_epilogue, print_operand): Likewise.
2323 * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
2324 Likewise. Fix format specifier.
2325 * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2326 * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2327 * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2329 2002-08-15 Eric Christopher <echristo@redhat.com>
2330 Jeff Knaggs <jknaggs@redhat.com>
2332 * config.gcc (mipsisa64sr71k-elf): New target.
2333 * config/mips/sr71k.md: New file.
2334 * config/mips/mips.md: Use it.
2335 (rot*): Add sr71k specifics.
2336 * config/mips/t-sr71k: New file.
2337 * config/mips/mips.h (sr71k): New cpu.
2338 (TARGET_SR71K): Use it.
2339 (TUNE_SR71K): Ditto.
2340 (GENERATE_BRANCHLIKELY): Ditto.
2341 (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
2342 ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
2343 * config/mips/mips.c (sr71k): New cpu.
2344 (mips_use_dfa_pipeline_interface): Use.
2346 2002-08-15 Eric Christopher <echristo@redhat.com>
2347 Richard Sandiford <rsandifo@redhat.com>
2348 Aldy Hernandez <aldyh@redhat.com>
2349 Graham Stott <grahams@redhat.com>
2350 Michael Meissner <meissner@redhat.com>
2351 Gavin Romig-Koch <gavin@redhat.com>
2352 Ken Raeburn <raeburn@cygnus.com>
2353 Alexandre Oliva <aoliva@redhat.com>
2355 * config.gcc (mips64vr-elf): New target.
2356 * config/mips/5400.md: New file.
2357 * config/mips/5500.md: Ditto.
2358 * config/mips/mips.md: Use them.
2360 * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
2362 (mips_issue_rate): Use them.
2363 (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
2364 (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
2365 * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
2367 (TARGET_MIPSx): Use them.
2368 (TUNE_MIPSx): Ditto.
2369 (GETNATE_MULT3_SI): Ditto.
2370 (ISA_HAS_BRANCHLIKELY): Ditto.
2371 (ISA_HAS_CONDMOVE): Ditto.
2372 (ISA_HAS_NMADD_NMSUB): Ditto.
2373 (ISA_HAS_MULHI): New. Ditto.
2374 (ISA_HAS_MULS): Ditto.
2375 (ISA_HAS_MSAC): Ditto.
2376 (ISA_HAS_MACC): Ditto.
2377 (ISA_HAS_ROTR_SI): Ditto.
2378 (ISA_HAS_ROTR_DI): Ditto.
2381 2002-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
2383 * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
2385 (remove_dup_nonsys_dirs): New function.
2386 (remove_dup_dirs): Change argument head to head_ptr. Remove warnings.
2387 (merge_include_chains): Remove non-system include directories from
2388 quote and bracket include chains when they duplicate equivalent system
2390 * doc/cpp.texi (-I): Update.
2391 * doc/cppopts.texi (-I): Update.
2392 * doc/install.texi (--with-local-prefix): Further document usage of
2394 * doc/invoke.texi (-I): Update.
2396 2002-08-20 Richard Henderson <rth@redhat.com>
2398 * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
2399 (emit_block_move): Split out subroutines.
2400 (emit_block_move_via_movstr): New.
2401 (emit_block_move_via_libcall): New. Emit bcopy via normal call also.
2402 (emit_block_move_libcall_fn): New. Construct function prototype for
2404 (clear_storage): Split out subroutines.
2405 (clear_storage_via_clrstr): New.
2406 (clear_storage_via_libcall): New. Emit bzero as a normal call also.
2407 (clear_storage_libcall_fn): New. Construct function prototype for
2409 (emit_push_insn): Use emit_block_move.
2410 (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
2411 (store_constructor): Likewise.
2413 2002-08-19 Ziemowit Laski <zlaski@apple.com>
2415 * objc/objc-act.c (building_objc_message_expr): Rename to
2416 current_objc_message_selector.
2418 2002-08-19 Ziemowit Laski <zlaski@apple.com>
2420 * objc/objc-act.c (build_ivar_chain): Remove.
2421 (objc_copy_list): Likewise.
2422 (get_class_ivars): Inline call to removed build_ivar_chain
2423 function. Save off a clean copy of ivars in the CLASS_OWN_IVARS
2424 slot; use that slot (rather than CLASS_IVARS) when accessing
2425 ivars for base classes. Call copy_list and chainon instead of
2427 (build_private_template): Call get_class_ivars instead of
2429 (start_class): Allocate room for the CLASS_OWN_IVARS slot.
2430 (continue_class): Call get_class_ivars instead of
2432 (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
2433 of DECL_BIT_FIELD (which may have been cleared).
2434 * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
2436 2002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2438 * genautomata.c (output_translate_vect, output_state_ainsn_table,
2439 output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
2441 (output_internal_min_issue_delay_func): Initialize variable in
2444 2002-08-19 Alexandre Oliva <aoliva@redhat.com>
2446 * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
2447 (stage2_build, stage3_build, stage4_build): Likewise, to CC.
2449 2002-08-19 Geoffrey Keating <geoffk@redhat.com>
2450 Steve Ellcey <sje@cup.hp.com>
2452 * machmode.h (SCALAR_INT_MODE_P): New macro to test for
2453 scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
2454 * explow.c (trunc_int_for_mode): Abort when the mode is not
2455 a scaler integer mode.
2456 * combine.c (expand_compound_operation): Don't expand Vector
2457 or Complex modes into shifts.
2458 (expand_field_assignment): Don't do bitwise arithmatic and
2459 shifts on Vector or Complex modes.
2460 (simplify_comparison): Don't call trunc_int_for_mode
2462 * recog.c (general_operand): Likewise.
2463 (immediate_operand): Likewise.
2464 (nonmemory_operand): Likewise.
2466 2002-08-19 David Edelsohn <edelsohn@gnu.org>
2468 * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
2469 multi-instruction SImode constant. Add REG_EQUAL note.
2470 * config/rs6000/rs6000.md (movsi splitter): Use
2471 rs6000_emit_set_const.
2473 2002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2475 * tree-inline.c (initialize_inlined_parameters): Wrap variable in
2476 the macro test controlling its use.
2478 2002-08-18 H.J. Lu (hjl@gnu.org)
2480 * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
2481 crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
2483 (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
2484 i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
2485 s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
2486 xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
2488 (cris-*-linux*): Remove setting thread_file here.
2490 2002-08-18 Neil Booth <neil@daikokuya.co.uk>
2492 PR preprocessor/7602
2493 * cppinit.c (path_include): Treat the system environment
2494 variables as being cxx_aware.
2496 2002-08-17 Joseph S. Myers <jsm@polyomino.org.uk>
2498 * c-decl.c (flexible_array_type_p): New function.
2499 (grokdeclarator, finish_struct): Use it.
2500 * doc/extend.texi: Document constraints on use of structures with
2501 flexible array members.
2503 2002-08-17 Richard Sandiford <rsandifo@redhat.com>
2505 * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
2506 config/mips/t-r3900 (MULTILIB_MATCHES): Define.
2507 * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
2509 2002-08-16 Stan Shebs <shebs@apple.com>
2511 * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
2512 for ObjC with -fnext-runtime.
2513 * doc/cpp.texi: Document it.
2515 2002-08-16 Janis Johnson <janis187@us.ibm.com>
2517 * doc/install.texi (Final installation): Replace links to individual
2518 build status pages with a link to a common page that lists them all.
2520 2002-08-16 Sylvain Pion <pion@cs.nyu.edu>
2522 * doc/invoke.texi: Fix typo.
2524 2002-08-16 David Edelsohn <edelsohn@gnu.org>
2526 * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
2528 2002-08-16 Andrew Haley <aph@redhat.com>
2530 * tree-inline.c: Add includes for Java inliner.
2531 (remap_decl): Don't handle anonymous types for Java.
2532 (remap_block): Add handling for Java trees.
2533 (copy_scope_stmt): Conditionalize for non-Java use only.
2534 (copy_body_r): Handle Java trees. Add handling for
2535 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
2536 (initialize_inlined_parameters): Handle Java trees.
2537 (declare_return_variable): Likewise.
2538 (expand_call_inline): Handle Java trees.
2539 (walk_tree): Likewise.
2540 (copy_tree_r): Don't handle SCOPE_STMTs for Java.
2541 (add_stmt_to_compound): New function.
2543 2002-08-15 Richard Henderson <rth@redhat.com>
2545 * Makefile.in (LOOSE_WARN): Remove -fno-common.
2546 (NOCOMMON_FLAG): New substitution point.
2547 (GCC_WARN_CFLAGS): Include it.
2548 * configure.in (ac_checking): Set nocommon_flag.
2549 (nocommon_flag): New substitution point.
2551 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2553 * c-tree.h (skip_evaluation): Move declaration...
2554 * c-common.h: ... here.
2555 * c-typeck.c (build_external_ref): Don't assemble_external nor
2556 mark a tree as used if skip_evaluation is set.
2557 * c-parse.in (typeof): New non-terminal to set skip_evaluation
2559 (typespec_nonreserved_nonattr): Use it.
2561 2002-08-15 Douglas B Rupp <rupp@gnat.com>
2563 * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
2564 (xcoff_debug_hooks): Update end_prologue.
2565 * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
2566 * debug.h (end_prologue): Add file arg.
2567 (end_epilogue): Add line and file args.
2568 (dwarf2out_end_epilogue): Add line and file args.
2569 (vmsdbgout_after_prologue): Remove.
2570 * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
2571 (dwarf2_debug_hooks): Update end_prologue.
2572 * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
2573 (dwarfout_end_prologue): Add file arg.
2574 * final.c (vmsdbgout_after_prologue): Remove
2575 (final_end_function): Update end_epilogue call.
2576 (final_scan_insn): Update end_prologue call.
2577 * sdbout.c (sdbout_end_epilogue): Add line and file args.
2578 (sdbout_end_prologue): Add file arg.
2579 (sdb_debug_hooks): Update end_prologue.
2580 (sdb_begin_prologue): Update sdbout_end_prologue call.
2581 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
2582 vmsdbgout_end_function.
2583 (vmsdbgout_end_prologue): New function renamed from
2584 vmsdbgout_after_prologue. Call vmsdbgout_source_line.
2585 (vmsdbgout_end_function): New function.
2586 (vmsdbgout_end_epilogue): Add line and file args. Call
2587 vmsdbgout_source_line.
2588 (write_pclines): Write only valid line numbers.
2589 (write_srccorr): Don't write source correlation records if 0 lines.
2590 * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
2592 2002-08-15 Steve Ellcey <sje@cup.hp.com>
2594 * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
2595 (_Unwind_Internal_Ptr): 32 bit version for use in
2596 read_encoded_value_with_base.
2597 * gcc/unwind-pe.h (read_encoded_value_with_base): Use
2598 _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
2601 2002-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2603 * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
2604 signed/unsigned warnings.
2606 * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
2607 record_reg_classes): Likewise.
2609 * reload.c (reload_inner_reg_of_subreg, push_reload,
2610 find_reloads_address_1): Likewise.
2612 2002-08-15 David Edelsohn <edelsohn@gnu.org>
2614 * rs6000.c (output_mi_thunk): Return to function section on
2617 * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
2619 2002-08-15 Ulrich Weigand <uweigand@de.ibm.com>
2621 * config/s390/s390.c (legitimize_address): Optimize loading
2622 of large displacements.
2624 2002-08-14 Douglas B Rupp <rupp@gnat.com>
2626 * config/alpha/alpha-protos.h: Update.
2628 * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
2629 (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
2630 (alpha_linkage_symbol_p): New static function.
2631 (print_operand_address): Print linkage operand.
2633 (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
2635 (reloc_kind): New enum.
2636 (struct alpha_funcs): New struct.
2637 (struct alpha_links): Add reloc_kind field. Rename links_kind field.
2639 (alpha_need_linkage): Rewrite.
2640 (alpha_use_linkage): New global function.
2641 (alpha_write_linkage): Rewrite and make static.
2642 (alpha_write_one_linkage): Rewrite
2644 (alpha_start_function): Remove procedure descriptor output.
2645 (alpha_end_function): Write linkages at end of each function.
2647 * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
2648 (call_vms_1, call_value_vms_1): Rewrite.
2650 * config/alpha/vms.h (ASM_FILE_END): Remove.
2652 2002-08-14 Richard Henderson <rth@redhat.com>
2654 * ggc-page.c (RTL_SIZE): New.
2655 (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
2656 * rtl.def (BARRIER, NOTE): Pad to 9 slots.
2658 2002-08-14 Richard Henderson <rth@redhat.com>
2660 * calls.c: Include target.h.
2661 * Makefile.in (calls.o): Update.
2663 * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
2664 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
2666 2002-08-14 Richard Henderson <rth@redhat.com>
2668 * Makefile.in (LOOSE_WARN): Add -fno-common.
2669 * c-common.h (constant_string_class_name): Add missing extern.
2671 2002-08-15 Neil Booth <neil@daikokuya.co.uk>
2673 PR preprocessor/7358
2674 * c-opts.c (check_deps_environment_vars): Ignore main file
2675 for SUNPRO_DEPENDENCIES.
2676 * cppfiles.c (stack_include_file): Ignore main file if
2678 * cpplib.h (struct cpp_options): New member in deps.
2679 * doc/cppenv.texi: Update.
2681 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
2683 PR preprocessor/7526
2684 * cpplib.c (run_directive): Kludge so _Pragma dependency works.
2686 2002-08-14 Nathan Sidwell <nathan@codesourcery.com>
2688 * doc/invoke.texi (-a): Remove documentation.
2689 (-fprofile-arcs): Remove reference to -a, -ax options.
2690 * doc/gcov.texi (Gcov Data Files): Data might be merged.
2692 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
2695 * c-semantics.c (genrtl_case_label): Don't (mis)use
2698 2002-08-14 Dale Johannesen <dalej@apple.com>
2700 * explow.c (emit_stack_restore): Emit memory clobbers
2701 preceding the stack pop, to prevent the scheduler from
2702 moving refs to variable arrays below this pop.
2703 * reload1.c (reload): Preserve these clobbers for sched2.
2704 * doc/rtl.texi: Document clobber (mem:BLK (scratch)).
2706 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
2708 * c-opts.c (c_common_post_options): Correct test.
2710 2002-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2712 * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
2713 order in call to fprintf.
2715 2002-08-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2717 * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
2719 2002-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2721 * reload.c (find_reloads): Handle constraint letters marked by
2722 EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
2723 (alternative_allows_memconst): Likewise.
2724 * reload1.c (maybe_fix_stack_asms): Likewise.
2725 * recog.c (asm_operand_ok, preprocess_constraints,
2726 constrain_operands): Likewise.
2727 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
2728 * local-alloc.c (block_alloc, requires_inout): Likewise.
2729 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
2731 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
2732 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
2733 * doc/tm.texi: Document these two new target macros.
2735 * config/s390/s390.c (s390_expand_plus_operand): Accept already
2737 (q_constraint): New function.
2738 config/s390/s390-protos.h (q_constraint): Declare it.
2739 config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
2740 (EXTRA_MEMORY_CONSTRAINT): New macro.
2742 * config/s390/s390.md: Throughout the machine description,
2743 replace all instances of the constraint combinations 'Qo'
2744 or 'oQ' with simply 'Q'.
2746 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
2748 * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
2749 * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
2750 (LIBGCC2_CFLAGS): Compile with -mrelax.
2752 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
2754 * doc/invoke.texi: Document -minmax for 68HC12.
2756 * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
2757 ("uminqi3"): Likewise.
2758 ("uminhi3", "umaxhi3"): Likewise.
2760 * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
2761 (TARGET_MIN_MAX): Define.
2762 (TARGET_SWITCHES): New option -minmax/-mnominmax.
2764 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
2766 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
2767 (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
2769 * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
2770 (ret, declare, farsym): New gas macros.
2771 (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
2772 ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
2773 and declare the symbol far when compiled with -mlong-calls.
2774 (__far_trampoline): New for 68HC12 trampoline code to invoke a
2775 far handler using jsr/bsr.
2777 * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
2778 (jsr): New macro to transform a 'jsr' into a 'call'.
2780 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
2782 * doc/invoke.texi: Document -mlong-calls for 68HC12.
2784 * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
2785 -mlong-calls is specified.
2786 (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
2787 assembler directives.
2788 (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
2789 (TARGET_SWITCHES): Add -mlong-calls options.
2790 (current_function_far): Declare.
2792 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
2793 into account the page register saved on the stack.
2794 (m68hc11_override_options): Take into account -mlong-calls option.
2795 (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
2797 * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
2798 if the function is going to be in 68HC12 banked memory (-mlong-calls).
2799 ("*return_16bit"): Likewise.
2800 ("*return_void"): Likewise.
2801 ("call", "call_value"): Use call for a far function call.
2803 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
2805 * toplev.c (parse_options_and_default_flags): Don't call
2807 (general_init): Initialize GC, pools and tree hash here,
2808 instead of lang_independent_init.
2809 (lang_independent_init): Rename backend_init.
2810 (do_compile): Call post_options hook; exit early if there
2811 have been errors after switch processing.
2812 (toplev_main): Update.
2814 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
2816 * c-pretty-print.h: Guard against multiple inclusion.
2818 (pp_c_attributes): Declare.
2819 * c-pretty-print.c (pp_c_attributes): New function.
2821 2002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2823 * m68k.c (m68k_output_function_prologue,
2824 m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
2826 * genattrtab.c: Remove dpx2 comment.
2827 * libgcc2.c (__enable_execute_stack): Delete versions for
2828 NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
2829 sony_news/SYSTYPE_BSD.
2830 * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
2831 __gmicro__, __i860__, __NeXT__ and __pyr__.
2832 * rtl.h: Remove convex comment.
2833 * varasm.c: Likewise.
2835 2002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2837 * c-opts.c (lang_flags): Const-ify.
2838 * ra-build.c (undef_table): Likewise.
2839 * ra.c (eliminables): Likewise.
2841 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
2843 * tree.h: Guard against multiple inclusion.
2845 2002-08-14 Hans-Peter Nilsson <hp@bitrange.com>
2847 * reload1.c (reload_cse_simplify): Before checking
2848 REG_FUNCTION_VALUE_P, check REG_P.
2850 2002-08-13 Geoffrey Keating <geoffk@redhat.com>
2852 * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
2854 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
2856 * c-opts.c (c_common_init_options): Extra braces needed.
2858 Tue Aug 13 17:40:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
2860 * sh.c (sh_init_builtins): Add PARAMS to declaration.
2861 (sh_media_init_builtins, sh_expand_builtin): Likewise.
2862 (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
2863 (sh_expand_binop_v2sf): Likewise.
2864 * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
2865 (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
2866 (sh_initialize_trampoline): Likewise.
2868 2002-08-13 Ulrich Weigand <uweigand@de.ibm.com>
2870 * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
2871 new condition code modes.
2872 s390.c (s390_match_ccmode_set): Handle those new CC modes.
2873 (s390_select_ccmode): Likewise.
2874 (s390_branch_condition_mask): Likewise.
2876 * s390-protos.h (s390_tm_ccmode): Declare.
2877 s390.c (s390_tm_ccmode): New function.
2878 (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
2880 * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
2881 ("*cmpsi_tm2"): Rename to "*tmsi_ext".
2882 ("*cmpqi_tm2"): Rename to "*tmqi_ext".
2884 ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
2885 "*cmphi_tm_sub","*cmphi_cct_0", "*cmpqi_tm", "*cmpqi_tm_sub",
2886 "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
2887 ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
2888 "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
2890 ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
2891 "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
2892 "*cmpqi_ccs_0"): Remove, replace by ...
2893 ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
2894 "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
2895 "*tstqi", "*tstqi_cconly"): ... these new patterns.
2897 ("*cmpsidi_ccs"): Remove, replace by ...
2898 ("*cmpsi_ccs_sign"): ... this new pattern.
2899 ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
2901 ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
2902 ("*cli"): ... this new pattern.
2904 ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
2905 "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
2907 ("adddi3_64"): Rename to "*adddi3_64".
2908 ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
2909 ("adddi3"): Adapt expander.
2911 ("*addsi3_cc"): Allow "general_operand" for operand 2.
2912 ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
2913 "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
2915 ("addhi3", "addqi3"): Remove, replace by ...
2916 ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
2918 ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
2919 "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
2920 ("subdi3"): Replace by insn and splitter "*subdi3_31".
2921 ("subdi3"): New expander.
2923 ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
2925 ("subhi3", "subqi3"): Remove, replace by ...
2926 ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
2928 ("*muldi3_sign"): New pattern.
2929 ("muldi3"): Do not clobber CC.
2930 ("mulsi3"): Likewise.
2931 ("mulsi_6432"): Likewise.
2933 2002-08-13 Denis Chertykov <denisc@overta.ru>
2935 * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
2936 which can change CC0.
2938 Tue Aug 13 14:49:20 2002 J"orn Rennecke <joern.rennecke@superh.com>
2940 * gcse.c (adjust_libcall_notes): New function.
2941 (do_local_cprop): Use it. Add fourth parameter. Changed caller.
2943 2002-08-13 Nathan Sidwell <nathan@codesourcery.com>
2945 * libgcc2.c (L_bb): Remove unneeded #includes.
2946 (__global_counters, __gthreads_active): Remove unused globals.
2947 (__bb_exit_func): Merge counts into files rather than appending.
2948 * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
2949 (ALL_CFLAGS): ... to here.
2951 2002-08-13 Denis Chertykov <denisc@overta.ru>
2953 * config/ip2k/ip2k.c (commands_in_file): Variable removed.
2954 (function_epilogue): Don't calculate function size.
2955 (ip2k_set_compare): Don't use lookup_const_double.
2956 (asm_file_start): Initialization of commands_in_file removed.
2957 (asm_file_end): Output of commands_in_file removed.
2959 * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
2962 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
2964 * c-opts.c (c_common_init_options): Check option array is
2965 sorted if checking enabled.
2967 2002-08-13 Gabriel Dos Reis <gdr@nerim.net>
2969 * c-pretty-print.c: #include "c-tree.h".
2970 (pp_c_simple_type_specifier): Tweak.
2971 (pp_c_storage_class_specifier): New.
2972 (pp_c_function_specifier): Likewise.
2973 (pp_c_declaration_specifiers): Likewise.
2974 (pp_c_init_declarator): Likewise.
2975 (pp_c_declaration): Likewise.
2976 (pp_c_direct_declarator): Stub.
2977 (pp_c_declarator): Likewise.
2978 (pp_c_parameter_declaration): Likewise.
2980 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
2982 * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
2983 handle_deferred_opts, sanitize_cpp_opts, defer_opt,
2984 struct deferred_opt): New.
2985 (COMMAND_LINE_OPTIONS): Add -M*.
2986 (missing_arg): Update.
2987 (c_common_decode_option): Handle -M*.
2988 (c_common_post_options): Handle -M*. Use sanitize_cpp_opts;
2989 don't call cpp_post_options.
2990 (c_common_finish, check_deps_environment_vars): Update.
2991 * cppfiles.c (stack_include_file, handle_missing_header): Update.
2992 * cpphash.h (CPP_PRINT_DEPS): Remove.
2993 * cppinit.c: Don't include version.h.
2994 (cpp_create_reader): Don't call deps_init. Initialize
2996 (cpp_read_main_file): Init deps if necessary.
2997 (cpp_destroy): Conditionally free deps.
2998 (cpp_finish): Update.
3000 (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
3001 (cpp_post_options): Rename post_options.
3002 * cpplib.h (struct cpp_options): Remove some dependency options;
3003 move others to a new structure.
3004 (cpp_post_options): Remove.
3005 (cpp_finish): Comment.
3006 * fix-header.c (read_scan_file): Don't call cpp_post_options.
3008 2002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
3010 * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
3011 ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
3012 MMIX_rR_REGNUM as clobbered.
3013 * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
3015 2002-08-12 Gabriel Dos Reis <gdr@nerim.net>
3017 * diagnostic.h (output_formatted_scalar): Rename from
3018 output_formatted_integer.
3019 * diagnostic.def: Add DK_DEBUG.
3020 * diagnostic.c (output_decimal): Adjust.
3021 (output_long_decimal): Likewise.
3022 (output_unsigned_decimal): Likewise.
3023 (output_octal): Likewise.
3024 (output_long_octal): Likewise.
3025 (output_hexadecimal): Likewise.
3026 (output_long_hexadecimal): Likewise.
3027 * c-pretty-print.c (pp_c_type_specifier): New function.
3028 (pp_c_specifier_qualifier_list): Likewise.
3029 (pp_c_abstract_declarator): Likewise.
3030 (pp_c_char): Replace pp_format_integer with pp_format_scalar.
3032 2002-08-12 David Edelsohn <edelsohn@gnu.org>
3034 * doc/trouble.texi (Disappointments): Add static constructor and
3035 destructor dependency information for AIX.
3037 2002-08-12 Neil Booth <neil@daikokuya.co.uk>
3039 * cpphash.h (struct printer): New from cppmain.c.
3040 (cpp_reader): New member.
3041 * cppmain.c (struct printer): Move to cpphash.h.
3042 (options, print): Remove.
3043 (account_for_newlines, print_line, maybe_print_line,
3044 cpp_preprocess_file, setup_callbacks, scan_translation_unit,
3045 scan_translation_unit_trad, cb_line_change, cb_ident,
3046 cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
3047 cb_def_pragma): Make reentrant.
3049 2002-08-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3051 * real.c (ieee_64): Always define.
3052 (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
3053 (dec_h): Not used yet, hide it.
3054 (emdnorm): Mark parameter in ATTRIBUTE_UNUSED. Guard label with
3055 macro controlling use.
3056 (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
3058 Mon Aug 12 12:48:20 CEST 2002 Jan Hubicka <jh@suse.cz>
3060 * i386.md (tablejump): Sign extend the operand.
3061 * i386.c (classify_argument): Fix missed case from previous patch.
3063 2002-08-12 Neil Booth <neil@daikokuya.co.uk>
3065 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
3067 (warn_multichar): Die.
3068 (cb_register_builtins): Export.
3069 * c-common.h (warn_multichar, preprocess_file): Remove.
3070 (cb_register_builtins): New.
3071 * c-lang.c (c_init): Remove.
3072 (LANG_HOOKS_INIT): Use c_objc_common_init.
3073 * c-lex.c (init_c_lex): Don't canonicalize filename.
3074 * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
3075 (preprocess_file): Make static. Update for cpplib.
3076 (c_common_decode_option): Remove warn_multichar. Use in_fname.
3077 (c_common_post_options): Set some cpp options here.
3078 (c_common_init): Move from c-common.c.
3079 * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
3080 * cpplib.h (struct cpp_options): Remove in_fname.
3081 (cpp_preprocess_file): Update.
3082 * cppmain.c (cpp_preprocess_file): Update for new prototypes.
3084 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3086 * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
3088 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3090 * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
3091 backslash in comment preceeding macro definition.
3092 * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
3093 * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
3094 * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
3096 2002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
3098 * expr.c (store_expr): In condition for checking if value is
3099 generated in TARGET, move call to expr_size last.
3101 2002-08-11 Neil Booth <neil@daikokuya.co.uk>
3103 * c-common.c (c_common_init): Call preprocess_file instead.
3104 (c_common_finish): Move to c-opts.c.
3105 * c-common.h (preprocess_file): new.
3106 * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
3107 check_deps_environment_vars, c_common_finish): New.
3108 (c_common_decode_option): Update for out_fname and dependencies.
3109 * cppinit.c (init_dependency_output, output_deps): Remove.
3110 (cpp_destroy): Update prototype.
3111 (cpp_add_dependency_target): New.
3112 (cpp_read_main_file): Don't overlay a buffer.
3113 (cpp_finish): Take a deps output stream and write deps to it.
3114 Return the error count.
3115 (cpp_post_options): Don't canonicalize out_fname, or do anything
3117 * cpplib.h (struct cpp_options): Remove out_fname and
3119 (cpp_add_dependency_target): New.
3120 (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
3121 * cppmain.c (cpp_preprocess_file): Update prototype. Don't
3122 set preprocess_only. Don't handle the output stream directly.
3124 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3126 * dsp16xx.c (print_operand): Fix format specifier.
3127 * dsp16xx.md: Avoid automatic aggregate initialization.
3128 * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
3129 * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
3130 integer constant modifier.
3131 * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
3132 * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
3134 * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
3135 * v850.c (v850_select_section): Mark parameter with
3137 * global.c (global_alloc): Const-ify.
3138 * ra-colorize.c (hardregset_to_string): Fix format specifier.
3140 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3142 * darwin-c.c (darwin_pragma_options): Const-ify.
3143 * darwin.c (machopic_non_lazy_ptr_name,
3144 machopic_validate_stub_or_non_lazy_ptr): Likewise.
3145 (machopic_indirect_data_reference): Wrap variables in macros
3146 controlling their use.
3147 (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
3148 (machopic_select_section): Use parentheses around && within ||.
3149 * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
3151 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3153 * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
3154 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
3155 ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
3156 ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
3157 mdr_try_remove_redundant_insns, track_w_reload,
3158 mdr_try_wreg_elim): Make function static to match prototype.
3159 * mmix.c (mmix_target_asm_function_epilogue): Likewise. Mark
3160 parameter with ATTRIBUTE_UNUSED.
3162 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3164 * arc.c (arc_init): Don't use ISO C style function definitions.
3165 * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
3166 arm_get_strip_length, arm_strip_name_encoding): Likewise.
3167 * avr.h (progmem_section): Likewise.
3168 * h8300.c h8300_asm_insn_count): Likewise.
3169 * m32r.c (init_idents): Likewise.
3170 * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
3171 * sh.c (sh_cfun_interrupt_handler_p): Likewise.
3172 * xtensa.c (xtensa_build_va_list): Likewise.
3174 2002-08-11 Neil Booth <neil@daikokuya.co.uk>
3176 * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
3177 * c-opts.c (parse_option): Rename find_opt.
3178 (set_std_c99): New function.
3179 (COMMAND_LINE_OPTIONS): Handle -remap and -o. Remove OPT_std_bad.
3180 (missing_arg): Remove OPT_std_bad. Handle -o.
3181 (c_common_decode_option): Handle input and output file names,
3182 -o and -remap. Clean up -std= handling.
3183 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
3184 (cpp_handle_option): Similarly. Don't handle filenames.
3186 Sun Aug 11 14:43:17 CEST 2002 Jan Hubicka <jh@suse.cz>
3188 * i386.c (classify_argument): Fix computing of field's offsets.
3190 2002-08-11 Andreas Jaeger <aj@suse.de>
3193 * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
3195 2002-08-10 Ziemowit Laski <zlaski@apple.com>
3197 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
3198 reference to clk_objective_c with flag_objc.
3199 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
3201 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3203 2002-08-10 Neil Booth <neil@daikokuya.co.uk>
3205 * c-opts.c (set_std_cxx98, set_std_c89): New.
3206 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
3207 (c_common_decode_option): Handle new switches from cppinit.c.
3209 * cppinit.c (set_lang): Rename cpp_set_lang. Export.
3210 (no_arg, no_num): Remove.
3211 (COMMAND_LINE_OPTIONS): Move more to c-opts.c. Drop all lang-
3212 switches apart from -lang-objc and lang-asm.
3213 (cpp_handle_option): Similarly.
3214 * cpplib.h (cpp_set_lang): New.
3215 * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
3217 * objc/lang-specs.h: Remove -ansi.
3219 Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka <jh@suse.cz>
3222 * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
3225 2002-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3227 * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
3228 emit_jump_insn): Fix uninitialized variable.
3229 * gcov.c (init_line_info): Likewise.
3230 * genautomata.c (transform_3): Add braces around ambiguous
3232 * ifcvt.c (cond_exec_process_insns): Mark parameter with
3234 * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
3235 * regrename.c (copyprop_hardreg_forward): Fix uninitialized
3238 * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
3239 warnings in output files.
3241 2002-08-09 Ziemowit Laski <zlaski@apple.com>
3243 * c-common.c (flag_objc): New.
3244 * c-common.h (c_language_kind): Get rid of clk_objective_c
3246 (flag_objc): New extern declaration.
3247 * c-decl.c (implicitly_declare): Call objc_check_decl
3248 instead of maybe_objc_check_decl.
3249 (finish_decl): Likewise.
3250 (grokfield): Likewise.
3251 (finish_struct): Likewise.
3252 * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
3253 (maybe_objc_comptypes): Rename to objc_comptypes.
3254 (maybe_building_objc_message_expr): Rename to
3255 objc_message_selector.
3256 * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
3257 replace with flag_objc as needed.
3258 * c-opts.c (c_common_init_options): Likewise.
3259 (c_common_decode_option): Likewise.
3260 * c-parse.in (init_reswords): Likewise.
3261 * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
3262 (maybe_objc_comptypes): Rename to objc_comptypes.
3263 (maybe_building_objc_message_expr): Rename to
3264 objc_message_selector.
3265 * c-typeck.c (comptypes): Call objc_comptypes instead of
3266 maybe_objc_comptypes, and/or objc_message_selector instead of
3267 maybe_building_objc_message_expr.
3268 (comp_target_types): Likewise.
3269 (convert_for_assignment): Likewise.
3270 (warn_for_assignment): Likewise.
3271 * cppinit.c (init_builtins): Set __OBJC__ manifest constant
3272 independently of those for other languages.
3273 * objc/objc-act.c (maybe_objc_comptypes): Delete.
3274 (maybe_objc_check_decl): Delete.
3275 (maybe_building_objc_message_expr): Rename to
3276 objc_message_selector.
3277 * objc/objc-lang.c (objc_init_options): Use clk_c instead of
3278 clk_objective_c; set flag_objc flag.
3280 2002-08-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3282 * ifcvt.c (find_if_case_2): Test correct basic block for size.
3284 2002-08-09 Dale Johannesen <dalej@apple.com>
3286 * config/rs6000/rs6000.md: Add sibcall patterns.
3287 * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL): Define.
3288 * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
3289 Rewritten to handle sibcalls.
3290 * config/rs6000/rs6000.c (function_ok_for_sibcall): New.
3291 * config/rs6000/rs6000-protos.h (function_ok_for_sibcall): New.
3293 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
3295 * profile.c (da_file_name): New static var.
3296 (init_branch_prob): Initialize it.
3297 (end_branch_prob): Remove da file.
3299 * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
3300 * configure.in (coverage_flags): Default to nothing.
3301 * configure: Rebuilt.
3303 2002-08-09 Neil Booth <neil@daikokuya.co.uk>
3305 * Makefile.in (c-opts.o): Update
3306 * c-opts.c: Include intl.h.
3307 (print_help): Move from cppinit.c. Remove unused options.
3308 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
3309 (missing_arg): Complain for switches without an argument.
3310 (c_common_decode_option): Reject missing joined arguments.
3311 Handle new switches from cppinit.c.
3312 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
3313 (cpp_handle_option): Similarly.
3314 (print_help): Moved to c-opts.c.
3315 * cpplib.h (struct cpp_options): Remove help_only.
3316 * gcc.c (cpp_unique_options): Remove -$.
3317 * doc/cppopts.texi: Undocument -h.
3319 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3321 * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
3322 legitimate constant.
3323 (legitimate_pic_operand_p): Neither pic operand.
3324 (legitimate_address_p): But legitimate address.
3325 (get_thread_pointer): Generate MEM/u instead of CONST around
3327 (print_operand): Remove printing of UNSPEC_TP.
3328 (print_operand_address): And print it here.
3330 2002-08-08 Devang Patel <dpatel@apple.com>
3332 * objc/objc-act.c (build_selector_translation_table): Issue warning,
3333 when -Wselector is used,if method for which selector is being
3334 created does not exist.
3336 2002-08-08 Stephen Clarke <stephen.clarke@superh.com>
3338 * config/sh/sh.c (prepare_move_operands): Only call
3339 target_reg_operand if TARGET_SHMEDIA.
3341 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3343 * config/rs6000/rs6000.h, config/rs6000/aix.h,
3344 config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
3346 * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
3348 2002-08-08 Lars Brinkhoff <lars@nocrew.org>
3349 Richard Henderson <rth@redhat.com>
3351 * emit-rtl.c (gen_rtx_REG): After reload, only return
3352 frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
3354 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3356 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
3357 * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
3358 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
3361 2002-08-08 Adam Nemet <anemet@lnxw.com>
3363 * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
3365 (thumb_expand_prologue): Likewise.
3366 (thumb_output_function_prologue): Likewise.
3367 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
3368 the additional push of the PIC register.
3370 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
3372 * configure.in (enable_coverage): New enable switch.
3373 * configure: Rebuilt.
3374 * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
3375 (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
3376 (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
3377 (mostlyclean): Remove coverage files.
3378 * doc/install.texi: Document enable_coverage.
3380 * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
3381 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
3382 * f/Make-lang.in (f.mostlyclean): Remove coverage files.
3383 * java/Make-lang.in (java.mostlyclean): Remove coverage files.
3384 * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
3385 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
3388 2002-08-08 Neil Booth <neil@daikokuya.co.uk>
3390 * c-opts.c (cpp_opts): New.
3391 (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
3392 (c_common_decode_options): Handle cpplib switches.
3393 (c_common_init_options): Set cpp_opts.
3394 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
3395 (cpp_handle_option): Similarly.
3397 2002-08-08 David Edelsohn <edelsohn@gnu.org>
3399 * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
3400 (TARGET_ALTIVEC_ABI): Same.
3401 (TARGET_ALTIVEC_VRSAVE): Same.
3403 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
3404 icode not CODE_FOR_nothing. Change switch to if.
3406 2002-08-08 Alan Modra <amodra@bigpond.net.au>
3408 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
3410 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3412 * stor-layout.c (place_union_field): For bitfields if
3413 PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
3416 2002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
3418 * pa.c (struct deferred_plabel): Constify name field.
3420 2002-08-07 Neil Booth <neil@daikokuya.co.uk>
3422 * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
3424 2002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
3426 * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
3427 local_prefix are the same.
3428 * configure: Rebuilt.
3430 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3431 Richard Henderson <rth@redhat.com>
3433 * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
3434 to type_align when PCC_BITFIELD_TYPE_MATTERS. Only apply
3435 ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
3436 (place_field): Likewise.
3437 * config/i386/i386.c (x86_field_alignment): Don't check
3438 DECL_USER_ALIGN here.
3439 * config/rs6000/rs6000.c (rs6000_field_alignment): New.
3440 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
3442 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
3443 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
3444 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
3445 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
3446 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
3447 * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
3449 2002-08-07 Neil Booth <neil@daikokuya.co.uk>
3451 * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
3452 * c-common.c: Don't include tree-inline.h.
3453 (c_common_init_options, c_common_post_options): Move to c-opts.c.
3454 * c-common.h (c_common_decode_option): New.
3455 * c-decl.c (c_decode_option): Remove.
3456 * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
3457 * c-opts.c: New file.
3458 * c-tree.h (c_decode_option): Remove.
3459 * doc/passes.texi: Update.
3460 * objc/objc-act.c (objc_decode_option): Remove.
3461 * objc/objc-act.h (objc_decode_option): Remove.
3462 * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
3463 c_common_decode_option.
3465 2002-08-07 Chris Demetriou <cgd@broadcom.com>
3467 * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
3468 dependency on TARGET_DOUBLE_FLOAT.
3470 2002-08-07 Stephen Clarke <stephen.clarke@superh.com>
3472 * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
3473 overwrite callee-save registers. Fix comment.
3475 2002-08-06 Chris Demetriou <cgd@broadcom.com>
3477 * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
3478 in target_flags based on ISA, if it was not set on the command
3479 line. Warn if MASK_BRANCHLIKLEY is set but the ISA does not
3480 support Branch Likely instructions.
3481 * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
3482 (TARGET_BRANCHLIKELY): Likewise.
3483 (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
3484 (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
3485 ISA_HAS_BRANCHLIKELY.
3486 (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
3487 * doc/invoke.texi: Document new MIPS -mbranch-likely and
3488 -mno-branch-likely options.
3490 2002-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3492 * ip2k.c (ip2k_set_compare): Add missing iteration variable.
3494 * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
3497 2002-08-06 Aldy Hernandez <aldyh@redhat.com>
3499 * c-decl.c (duplicate_decls): Error out for incompatible TLS
3502 * testsuite/gcc.dg/tls/diag-3.c: New.
3504 2002-08-06 Dale Johannesen <dalej@apple.com>
3506 * c-common.c (fname_decl): Use line number 0 for
3507 __func__, to avoid confusing debuggers.
3509 2002-08-06 Nathan Sidwell <nathan@codesourcery.com>
3512 (struct line_info, struct coverage): New structures.
3513 (gcov_file_name, gcov_file): Remove globals.
3514 (output_data): Take source file parameter. Fix memory leak. Break
3516 (init_line_info, output_line_info, make_gcov_file_name,
3517 accumulate_branch_counts): ... here.
3518 (calculate_branch_probs, function_summary): Adjust.
3520 (function_*): Remove global variables.
3522 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
3524 * dwarf2out.c: Remove unused macros.
3526 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
3528 * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
3530 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
3532 * cppinit.c (struct lang_flags): Rename trigraphs std.
3534 * cpplib.h (struct cpp_options): New member std.
3535 * cppmacro.c (_cpp_builtin_macro_text): Use std.
3536 (collect_args): Flag whether to swallow a possible future
3537 comma pasted with varargs.
3538 (replace_args): Use this flag.
3539 * doc/cpp.texi: Update varargs extension documentation.
3541 2002-08-06 Jakub Jelinek <jakub@redhat.com>
3543 * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
3545 2002-08-06 Jakub Jelinek <jakub@redhat.com>
3547 * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
3548 and MODE_CLASS_INT modes.
3550 2002-08-06 Jakub Jelinek <jakub@redhat.com>
3552 * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
3553 --{enable,disable}-threads is given to configure.
3554 (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
3555 x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
3556 powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
3557 s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
3558 Remove thread_file setting here.
3560 2002-08-06 David Edelsohn <edelsohn@gnu.org>
3562 * doc/install.texi (Binaries): Update Bull Freeware URL.
3564 2002-08-06 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3566 * doc/gcc.texi (Top): Rename Index to Keyword Index.
3568 2002-08-05 Nathan Sidwell <nathan@codesourcery.com>
3570 * gcov.c (output_data): Round to % to nearest, tweak formatting.
3572 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3574 * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
3575 of the operands into MINUS_EXPR if code is PLUS_EXPR.
3577 2002-08-05 Douglas B Rupp <rupp@gnat.com>
3579 * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
3580 * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
3581 drectve_section): Define.
3582 * config/i386/t-interix: Replace interix.o rule with winnt.o.
3583 * config/i386/interix.c: Remove.
3585 2002-08-05 Geoffrey Keating <geoffk@redhat.com>
3587 * attribs.c: Don't include obstack.h.
3588 * builtins.c: Likewise.
3589 * cfganal.c: Likewise.
3590 * cfgbuild.c: Likewise.
3591 * cfgcleanup.c: Likewise.
3592 * emit-rtl.c: Likewise.
3596 * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
3598 2002-08-05 Gabriel Dos Reis <gdr@nerim.net>
3600 * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
3602 2002-08-04 Chris Demetriou <cgd@broadcom.com>
3604 * doc/invoke.texi: Remove duplicated paragraph describing
3607 2002-08-04 Geoffrey Keating <geoffk@redhat.com>
3609 * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
3610 * collect2.h (permanent_obstack): Delete declaration.
3611 * collect2.c (permanent_obstack): Delete definition.
3612 (main): Don't initialize permanent_obstack. Use xstrdup instead.
3613 * expr.c: Don't include obstack.h.
3614 (permanent_obstack): Delete declaration.
3615 * function.c: Don't include obstack.h.
3616 (permanent_obstack): Delete declaration.
3617 * integrate.c: Don't include obstack.h.
3618 (function_maybepermanent_obstack): Delete declaration.
3619 * print-tree.c (debug_tree): Use x*alloc not permalloc.
3620 * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
3621 * tlink.c (pfgets): Use xstrdup not permanent_obstack.
3622 * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
3623 * tree.h: Rename init_obstacks to init_ttree. Remove declarations
3624 of permalloc, expralloc, perm_calloc.
3625 * tree.c (permanent_obstack): Delete definition.
3626 (init_ttree): Rename from init_obstacks.
3627 (permalloc): Delete.
3628 (perm_calloc): Delete.
3629 (dump_tree_statistics): Don't print information about
3631 * varasm.c (assemble_start_function): Use xstrdup instead of
3633 (assemble_variable): Likewise.
3634 * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
3636 (unicosmk_add_extern): Likewise.
3637 * config/c4x/c4x.c (c4x_external_ref): Likewise.
3638 (c4x_global_label): Likewise.
3639 * config/frv/frv.c (frv_encode_section_info): Likewise.
3640 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
3641 (i386_pe_record_exported_symbol): Likewise.
3642 * config/mips/mips.c (mips_output_external): Likewise.
3643 (mips_output_external_libcall): Likewise.
3644 * config/pa/pa.c: (permanent_obstack): Delete declaration.
3645 (output_call): Use ggc_strdup instead of allocating on
3647 * config/romp/romp.c: Include ggc.h.
3648 (get_symref): Don't declare permanent_obstack, use ggc_strdup
3649 intead of permanent_obstack.
3650 * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
3651 instead of permalloc.
3652 * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
3653 instead of permalloc
3654 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
3655 instead of permalloc.
3656 * config/vax/vax.c (vms_check_external): Use xmalloc instead of
3659 2002-08-04 Bernd Schmidt <bernds@redhat.com>
3661 Contribute a port developed primarily by Michael Meissner,
3662 Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
3663 * config.gcc: Add frv-elf target.
3664 * config/frv/cmovd.c: New file.
3665 * config/frv/cmovh.c: New file.
3666 * config/frv/cmovw.c: New file.
3667 * config/frv/frv-abi.h: New file.
3668 * config/frv/frv-asm.h: New file.
3669 * config/frv/frv-modes.def: New file.
3670 * config/frv/frv-protos.h: New file.
3671 * config/frv/frv.c: New file.
3672 * config/frv/frv.h: New file.
3673 * config/frv/frv.md: New file.
3674 * config/frv/frvbegin.c: New file.
3675 * config/frv/frvend.c: New file.
3676 * config/frv/lib1funcs.asm: New file.
3677 * config/frv/media.h: New file.
3678 * config/frv/modi.c: New file.
3679 * config/frv/t-frv: New file.
3680 * config/frv/uitod.c: New file.
3681 * config/frv/uitof.c: New file.
3682 * config/frv/ulltod.c: New file.
3683 * config/frv/ulltof.c: New file.
3684 * config/frv/umodi.c: New file.
3685 * config/frv/xm-frv.h: New file.
3687 * config/frv/media.h: Removed again.
3689 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
3691 * gcov.c (bb_file_time): New static variable.
3692 (object_directory): May also be object file.
3693 (preserve_paths): New static variable.
3694 (print_usage): Adjust.
3696 (process_args): Adjust.
3697 (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
3698 file. Find modification date on bb file.
3699 (read_profile): Don't rewind a NULL file.
3700 (format_hwint): New static function.
3701 (function_summary): Use format_hwint.
3702 (output_data): SOURCE_FILE_NAME is never relative to
3703 OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
3704 mangling. Adjust output format to make it more machine readable.
3705 * doc/gcov.texi: Document & clarify semantics.
3707 2002-08-04 Joseph S. Myers <jsm@polyomino.org.uk>
3709 * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
3711 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
3713 * gcc.c (cc1_options): Pass output file as auxbase when
3715 * profile.c (init_branch_prob): FILENAME has already had ending
3717 * final.c (end_final): Likewise.
3718 * toplev.c (aux_base_name): New global.
3719 (compile_file): Pass aux_base_name to init init_branch_prob and
3721 (independent_decode_option, case 'a'): New auxinfo options.
3722 (case 'd'): Protect against mising basename.
3723 (do_compile): Initialize aux_base_name.
3724 * toplev.h (aux_base_name): New global.
3725 * doc/invoke.texi: Adjust documentation.
3727 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
3729 * config/i386/i386.c (x86_field_alignment): Remove duplicate test
3730 of TARGET_ALIGN_DOUBLE.
3732 2002-08-04 Gabriel Dos Reis <gdr@nerim.net>
3734 * diagnostic.c (inform): New function.
3735 * diagnostic.h (inform): Declare.
3737 2002-08-03 David Edelsohn <edelsohn@gnu.org>
3739 * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
3740 (movhi_internal): Same.
3741 (movqi_internal): Same.
3742 (movdi_internal64): Same.
3744 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
3746 * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
3747 (ASM_OUTPUT_SKIP): Use it. SIZE unsigned.
3748 (COMMON_ASM_OP): Define.
3749 (ASM_OUTPUT_ALIGNED_COMMON): Use it. SIZE unsigned.
3750 Use ALIGN parameter.
3751 (LOCAL_COMMON_ASM_OP): Define.
3752 (ASM_OUTPUT_LOCAL): Use it. SIZE unsigned.
3754 2002-08-03 Roger Sayle <roger@eyesopen.com>
3756 * builtins.def: Define new builtin functions exp, expf, expl,
3757 log, logf and logl (and their __builtin_* variants).
3758 * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
3759 Define exp_optab and log_optab.
3760 * optabs.c (init_optans): Initialize exp_optab and log_optab.
3761 * genopinit.c (optabs): Implement exp_optab and log_optab
3762 using exp?f2 and log?f2 patterns.
3763 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
3764 and BUILT_IN_LOG* using exp_optab and log_optab respectively.
3765 (expand_builtin): Ignore the new builtins (and all cos and
3766 sin variants) when not optimizing. Expand new builtins via
3767 expand_builtin_mathfn when flag_unsafe_math_optimizations.
3769 * doc/extend.texi: Document new exp and log builtins.
3770 * doc/md.texi: Document new exp?f2 and log?f2 patterns
3771 (and previously undocumented cos?f2 and sin?f2 patterns).
3773 2002-08-03 Jason Merrill <jason@redhat.com>
3775 * explow.c (int_expr_size): New fn.
3776 * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
3777 * expr.h: Declare it.
3779 2002-08-02 Krister Walfridsson <cato@df.lth.se>
3781 * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
3782 gengtype-* dependencies.
3784 2002-08-02 Eric Christopher <echristo@redhat.com>
3786 * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
3787 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
3789 (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
3791 2002-08-02 David Edelsohn <edelsohn@gnu.org>
3794 * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
3795 small if optimizing for size.
3797 2002-08-02 Daniel Jacobowitz <drow@mvista.com>
3799 * configure.in (FORBUILD): Use $build_alias.
3800 * configure: Regenerated.
3802 2002-08-02 Richard Sandiford <rsandifo@redhat.com>
3804 * config.gcc: Don't include mips/abi64.h in $tm_file.
3805 * hard-reg-set.h (call_really_used_regs): Declare.
3806 * config/mips/abi64.h: Remove file.
3807 * config/mips/linux.h,
3808 * config/mips/iris6.h: Don't include it.
3809 * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
3810 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
3811 (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
3812 FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
3813 FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
3814 Bring across definitions from abi64.h.
3815 (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
3816 (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
3817 (struct mips_args): Use it.
3818 * config/mips/mips.c (mips_conditional_register_usage): Define.
3820 2002-08-02 Jason Merrill <jason@redhat.com>
3822 * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
3823 * langhooks.c (lhd_expr_size): Define default.
3824 * langhooks.h (struct lang_hooks): Add expr_size.
3825 * explow.c (expr_size): Call it.
3826 * expr.c (store_expr): Don't copy an expression of size zero.
3827 (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
3829 * Makefile.in (builtins.o): Depend on langhooks.h.
3831 2002-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3833 * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
3834 * ra-debug.c: Include "tm_p.h".
3835 * ra-rewrite.c (is_partly_live_1): Change return type to bool.
3837 2002-08-02 Toon Moene <toon@moene.indiv.nluug.nl>
3839 * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
3840 when not honoring signalling NaNs.
3841 (simplify_ternary_operation): a == b has a definite value
3842 when not honoring NaNs.
3844 2002-08-02 Jason Merrill <jason@redhat.com>
3846 * gdbinit.in (pct): New macro.
3848 2002-08-01 Stan Shebs <shebs@apple.com>
3849 Andreas Tobler <toa@pop.agri.ch>
3851 * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
3852 plays nice with Darwin headers.
3853 (_BSD_RUNE_T_DEFINED_): Likewise.
3855 2002-08-01 Zack Weinberg <zack@codesourcery.com>
3857 * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
3858 * cppinit.c (cpp_post_options): Likewise.
3860 * cppexp.c (cpp_classify_number): Suppress -Wtraditional
3861 warning about 'LL' suffix (but not 'ULL' etc) when
3862 -Wno-long-long is in effect.
3864 * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
3865 Check for failing time()/localtime(), issue a warning, and
3866 make __TIME__ and __DATE__ expand to fallback strings.
3868 * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
3869 and __TIME__ when the date and time cannot be determined.
3871 2002-08-02 Alan Modra <amodra@bigpond.net.au>
3873 * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
3875 2002-08-01 Daniel Jacobowitz <drow@mvista.com>
3877 * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
3879 2002-08-01 Chris Demetriou <cgd@broadcom.com>
3881 * config.gcc (mipsisa64sb1-*-elf*): New configuration.
3882 (mipsisa64sb1el-*-elf*): Likewise.
3883 * config/mips/mips.c (mips_cpu_info_table): Add sb1.
3884 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
3885 (TARGET_SB1, TUNE_SB1): New macros.
3886 * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
3889 2002-08-01 David Edelsohn <edelsohn@gnu.org>
3891 * varasm.c (asm_emit_uninitialized): Return false if global BSS
3892 and ASM_EMIT_BSS not supported by target.
3893 (assemble_variable): Do not duplicate uninitialized logic.
3894 Fall through if asm_emit_uninitialized failed.
3896 2002-08-01 Chris Demetriou <cgd@broadcom.com>
3898 * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
3900 2002-08-02 Alan Modra <amodra@bigpond.net.au>
3902 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
3903 (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
3905 * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
3906 HOST_BITS_PER_WIDE_INT == 64.
3908 2002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3910 * df.c (df_insn_table_realloc): Change parameter to unsigned.
3911 * optabs.c (expand_binop): Make variable unsigned.
3912 * simplify-rtx.c (simplify_subreg): Likewise.
3913 * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
3915 2002-08-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3917 * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
3919 2002-08-01 Richard Henderson <rth@redhat.com>
3921 * toplev.c (parse_options_and_default_flags): Don't set
3922 flag_reorder_blocks for -Os.
3924 * config/avr/avr.c (avr_optimization_options): Remove.
3925 * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
3926 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
3927 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
3929 2002-08-01 H.J. Lu <hjl@gnu.org>
3930 Richard Henderson <rth@redhat.com>
3932 * output.h (DECL_READONLY_SECTION): Remove.
3933 (decl_readonly_section): Declare.
3934 * varasm.c (decl_readonly_section): New.
3935 (default_section_type_flags, default_select_section): Use it.
3936 * config/arm/pe.c (arm_pe_unique_section): Likewise.
3937 * config/i386/interix.c (i386_pe_unique_section): Likewise.
3938 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
3939 * config/mcore/mcore.c (mcore_unique_section): Likewise.
3940 * config/mips/mips.c (mips_unique_section): Likewise.
3942 2002-08-01 Richard Henderson <rth@redhat.com>
3944 * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
3945 refers to a subroutine parameter.
3947 2002-08-01 Jakub Jelinek <jakub@redhat.com>
3949 * varasm.c (assemble_visibility): Strip name encoding.
3951 2002-08-01 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3953 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
3954 (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
3955 when there is no frame pointer.
3956 (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
3958 * config/ns32k/__unorddf2.c: New file.
3959 * config/ns32k/__unordsf2.c: New file.
3960 * config/ns32k/t-ns32k: New file.
3961 * config.gcc (ns32k-*-netbsd*): Use it.
3963 2002-08-01 Aldy Hernandez <aldyh@redhat.com>
3965 * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
3967 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
3969 * c-common.c (__GXX_ABI_VERSION): Correct spelling.
3971 2002-08-01 Benjamin Kosnik <bkoz@redhat.com>
3973 * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
3975 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3977 * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
3979 2002-08-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3981 * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
3983 (expr_hash_table, set_hash_table): Type changed to ...
3984 (struct hash_table): New type.
3985 (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
3986 insert_expr_in_table, insert_set_in_table, compute_hash_table,
3987 dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
3988 compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
3989 (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
3990 (alloc_hash_table): New.
3991 (free_set_hash_table, free_expr_hash_table): Merged to ...
3992 (free_hash_table): New.
3993 (compute_set_hash_table, compute_expr_hash_table): Merged to ...
3994 (compute_hash_table_work): New.
3995 (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
3996 find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
3997 pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
3998 one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
3999 hoist_code, one_code_hoisting_pass,
4000 trim_ld_motion_mems): Altered due to changed type of hash tables.
4002 2002-08-01 Zack Weinberg <zack@codesourcery.com>
4004 * final.c (output_alternate_entry_point):
4005 If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
4007 2002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4009 * objc/objc-act.c (encode_complete_bitfield): Add prototype and
4010 avoid ISO C style function definition.
4012 * expr.c (expand_assignment): Delete unused variable.
4014 2002-08-01 Toon Moene <toon@moene.indiv.nluug.nl>
4016 * c-common.c (cb_register_builtins): Set
4017 __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
4018 is given, and to 0 otherwise.
4019 * combine.c (simplify_if_then_else): HONOR_NANS
4020 implies FLOAT_MODE_P.
4022 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
4024 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
4025 (cpp_handle_option): Don't handle it.
4026 (print_help): Update.
4027 * doc/cppopts.texi: Update.
4029 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
4031 * c-common.c (cb_register_builtins): If C++, define
4032 __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
4033 * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
4035 * lang-specs.h: Simplify in accordance with new code in
4038 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
4040 * c-common.c: Define all C/ObjC/C++ warning and flag variables.
4041 * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
4042 * c-decl.c: Move all warning and flag variables to c-common.c.
4043 * c-format.c: Move all warning variables to c-common.c.
4044 * c-tree.h: Move all warning and flag declarations to c-common.h.
4045 * objc/objc-act.c: Move all warning variables to c-common.c.
4046 (flag_warn_protocol): Rename warn_protocol.
4048 2002-07-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4050 * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
4052 2002-07-31 Graham Stott <graham.stott@btinternet.com>
4054 * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
4057 2002-07-31 Stan Shebs <shebs@apple.com>
4059 * config.gcc (i[34567]86-*-darwin*): New configuration.
4060 * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
4062 (TARGET_ENCODE_SECTION_INFO): Ditto.
4063 (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
4064 * config/darwin.c (machopic_indirect_data_reference): Remove
4065 setting of RTX_UNCHANGING_P.
4066 (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
4067 not to be applied to sums.
4068 * config/i386/t-darwin: New file.
4069 * config/i386/darwin.h: New file.
4070 * config/i386/i386.h (TARGET_MACHO): Add default definition.
4071 * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
4072 * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
4073 label and not the GOT add.
4074 (constant_address_p): For Mach-O, seeing a CONST is enough.
4075 (legitimate_pic_address_disp_p): Add a Mach-O case.
4076 (legitimate_address_p): Also test machopic_operand_p if Mach-O.
4077 (legitimize_pic_address): Use generic Mach-O code to legitimize.
4078 (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
4079 if outputting a difference.
4080 (ix86_output_addr_diff_elt): Add Mach-O case.
4081 (ix86_expand_move): Similarly.
4082 (ix86_expand_call): Similarly.
4083 (current_machopic_label_num): New global.
4084 (machopic_output_stub): New function.
4085 (ix86_value_regno): New function.
4086 (ix86_function_value): Use it instead of VALUE_REGNO.
4087 (ix86_libcall_value): Ditto.
4088 * config/i386/unix.h (VALUE_REGNO): Remove.
4090 2002-07-31 Graham Stott <grahas@btinternet.com>
4092 * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
4093 hash for LABEL_REF's.
4095 2002-07-31 Graham Stott <grahams@btinternet.com>
4097 * config/rs6000/rs6000.c (spe_init_builtins,
4098 altivec_init_builtins, rs6000_common_init_builtins):
4099 Replace ANSI with K&R function def.
4101 2002-07-31 David Edelsohn <edelsohn@gnu.org>
4103 * rs6000.c (validate_condition_mode): Test flag_finite_math_only
4106 2002-07-31 Richard Sandiford <rsandifo@redhat.com>
4108 * config/mips/crtn.asm: Don't use __mips16 to determine the
4109 return-address offset. Define RA to a suitable temporary
4110 register for the return address.
4112 2002-07-31 Richard Sandiford <rsandifo@redhat.com>
4114 * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
4117 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4119 * config/mips/elf.h (STARTFILE_SPEC): Define differently if
4120 default ABI is MEABI. (Undoes incorrect change in Eric Christopher's
4121 patch on 2002-07-29.)
4122 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4124 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4126 * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
4127 fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
4128 ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
4129 openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
4130 s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
4131 (ASM_GLOBALIZE_LABEL): Delete.
4132 (GLOBAL_ASM_OP): Define.
4134 * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
4136 * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
4137 * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
4139 2002-07-30 Geoffrey Keating <geoffk@redhat.com>
4141 * doc/extend.texi (Hints implementation): Document that GCC
4142 mostly ignores `register'.
4144 2002-07-30 Toon Moene <toon@moene.indiv.nluug.nl>
4146 * flags.h: Declare flag_finite_math_only.
4147 Use it in definition of HONOR_NANS and
4149 * c-common.c (cb_register_builtins): Emit
4150 __FINITE_MATH_ONLY__ when flag_finite_math_only
4152 * combine.c (simplify_if_then_else): If
4153 flag_finite_math_only is set, a == b has a
4155 * toplev.c: Initialize flag_finite_math_only.
4156 (set_flags_fast_math): Set it on -ffast-math.
4157 (flag_fast_math_set_p): Test it.
4158 * doc/invoke.texi: Document -ffinite-math-only.
4160 2002-07-30 Richard Henderson <rth@redhat.com>
4162 * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
4163 (noce_process_if_block): Likewise.
4165 2002-07-30 Bernd Schmidt <bernds@redhat.com>
4167 * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
4168 Bail out early if false_expr is NULL and we'd crash due to this.
4169 * genemit.c (gen_expand): Recognize return insns even if the return
4170 appears in a parallel.
4171 * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
4172 * config/fp-bit.c: Likewise.
4173 * doc/tm.texi: Document it.
4175 2002-07-30 David Edelsohn <edelsohn@gnu.org>
4176 Zack Weinberg <zack@codesourcery.com>
4178 * rs6000.c (rs6000_expand_unop_builtin): Check icode not
4179 CODE_FOR_nothing. Change switch to if.
4180 (rs6000_expand_binop_builtin): Same.
4181 (rs6000_expand_builtin): Expand builtin if target support enabled.
4182 (rs6000_init_builtins): Init builtin if target support enabled.
4183 (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
4185 2002-07-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4187 * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
4189 2002-07-30 Richard Sandiford <rsandifo@redhat.com>
4191 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
4193 Tue Jul 30 18:31:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
4195 * sh.md (cond_delay_slot): New attribute.
4196 (cbranch delay): Use it for anulled-true case.
4197 (stuff_delay_slot): New pattern.
4198 * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
4200 (gen_far_branch): Emit stuff_delay_slot pattern.
4202 Tue Jul 30 11:21:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
4204 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
4206 2002-07-30 Kazu Hirata <kazu@cs.umass.edu>
4208 * fold-const.c: Fix comment typos.
4210 * reload1.c: Likewise.
4212 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
4214 * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
4217 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
4219 * c-pretty-print.h (pp_c_statement): Declare.
4220 * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
4221 (pp_c_statement): Define.
4223 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4225 * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
4226 darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
4227 ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
4228 mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
4229 rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
4230 v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
4232 * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
4233 * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
4235 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
4237 * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
4238 (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
4239 COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
4240 (pp_c_expression): Update.
4242 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4244 * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
4245 concat in lieu of xmalloc/strcpy/memcpy/sprintf.
4246 * alpha/vms-ld.c (main): Likewise.
4247 * dsp16xx.c (double_reg_to_memory): Likewise.
4248 * mcore.c (mcore_expand_prolog): Likewise.
4249 * cppfiles.c (read_name_map): Likewise.
4250 * gensupport.c (process_rtx, identify_predicable_attribute,
4251 alter_test_for_insn): Likewise.
4252 * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
4254 2002-07-29 Roger Sayle <roger@eyesopen.com>
4256 * builtins.c (expand_builtin): Change the default behavior to
4257 only issue an error if the builtin function doesn't have a
4258 fallback library call. Remove several cases handled by the
4261 2002-07-29 John David Anglin <dave@hiauly1.hia.nrc>
4263 * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
4264 floating point format of the target is IEEE.
4265 * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
4266 format of the target is DEC.
4268 2002-07-29 Richard Henderson <rth@redhat.com>
4270 * unroll.c (verify_addresses): Remove.
4271 (find_splittable_givs): Never split DEST_ADDR givs.
4273 2002-07-29 Geoffrey Keating <geoffk@redhat.com>
4275 * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
4277 (Files): Improve documentation on generated source files.
4279 * doc/extend.texi (Translation implementation): Document what
4280 diagnostics look like.
4281 (Identifiers implementation): Document that there's normally no
4282 limit on identifier names.
4283 (Integers implementation): Document two's complement.
4284 (Hints implementation): Document that GCC honors 'inline', mostly.
4285 (Preprocessing directives implementation): Document that GCC
4286 requires the current time.
4288 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
4290 * c-pretty-print.h (struct c_pretty_print_info): Add new member.
4291 (pp_initializer): New macro.
4292 (pp_c_initializer): Declare.
4293 * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
4294 (pp_c_initializer): Define.
4295 (pp_c_initializer_list): New function.
4296 (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
4297 VECTOR_CST, CONSTRUCTOR.
4298 (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
4300 (pp_c_cast_expression): Handle FLOAT_EXPR.
4301 (pp_c_assignment_expression): Handle INIT_EXPR.
4302 (pp_c_expression): Update.
4304 2002-07-30 Neil Booth <neil@daikokuya.co.uk>
4306 * objc/objc-act.c (objc_init): Return immediately if filename
4309 2002-07-29 Eric Christopher <echristo@redhat.com>
4311 * config/mips/elf.h: Remove ecoff.h and gofast includes.
4312 (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
4313 (SDB_DEBUGGING_INFO): Undefine.
4314 (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
4315 (PUT_SDB_SIZE): Remove.
4316 (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
4317 (STARTFILE_SPEC): Add isa3264 define.
4318 * config/mips/elf64.h: Ditto. Move TARGET_MEM_FUNCTIONS from here...
4319 * config/mips/ecoff.h: Remove. and here...
4320 * config/mips/iris3.h: and here...
4321 * config/mips/sni-svr4.h: and here...
4322 * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
4323 Add assembler -mmdebug options for non-dwarf debugging.
4324 * config/mips/r3900.h: Remove debug info defines.
4325 * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
4326 * config/mips/isa3264.h: Ditto.
4327 * config/mips/t-isa3264: Fix up for file removal and gofast configure
4329 * config/mips/t-elf: Ditto.
4330 * config/mips/t-ecoff: Ditto.
4331 * config/mips/t-r3900: Ditto.
4332 * config/mips/t-iris5-6: Ditto.
4333 * config/mips/t-isa3264: Ditto.
4334 * config/mips/t-linux: Remove.
4335 * config/mips/t-netbsd: Remove.
4336 * config/mips/t-mips: New file.
4337 * config/mips/t-gofast: Ditto.
4338 * config/mips/netbsd.h: Remove unnecessary undefines.
4339 * config/mips/linux.h: Remove #include of mips.h.
4340 * config.gcc: Add mips.h include for elf targets. Remove tm_file
4341 for ecoff. Add gofast configure option for mips.
4343 2002-07-29 Chris Demetriou <cgd@broadcom.com>
4345 * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
4346 linker scripts use STARTUP directives consistently.
4347 * configure: Regenerate.
4348 * config.in: Regenerate.
4349 * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
4350 on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
4351 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4352 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
4353 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
4356 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
4358 * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
4360 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
4362 * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
4364 2002-07-29 Aldy Hernandez <aldy@quesejoda.com>
4366 * config/rs6000/rs6000.md: Move altivec patterns from here...
4368 * config/rs6000/altivec.md: ...to here.
4370 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
4372 * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
4374 2002-07-29 Richard Henderson <rth@redhat.com>
4376 * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
4377 set_mem_attributes and add BITPOS argument. Subtract it from
4378 OFFSET when same is adjusted.
4379 (set_mem_attributes): New wrapper function.
4380 * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
4381 remove offset adjustment hack.
4382 * expr.h (set_mem_attributes_minus_bitpos): Declare.
4384 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
4386 * Makefile.in (C_OBJS): Include c-pretty-print.o
4387 (c-pretty-print.o): Add depency rule.
4388 * pretty-print.h: Add more macros.
4389 * c-pretty-print.c: New file.
4390 * c-pretty-print.h: Likewise.
4392 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
4394 * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
4395 constants to __ev64_s32__.
4396 (__internal_ev_mwhgsmian): Same.
4397 (__internal_ev_mwhgsmfan): Same.
4398 (__internal_ev_mwhgssfan): Same.
4399 (__internal_ev_mwhgumiaa): Same.
4400 (__internal_ev_mwhgsmiaa): Same.
4401 (__internal_ev_mwhgsmfaa): Same.
4402 (__internal_ev_mwhgssfaa): Same.
4404 2002-07-29 David Edelsohn <edelsohn@gnu.org>
4406 * varasm.c (assemble_variable): Narrow test for uninitialized
4407 without BSS target support.
4409 2002-07-29 Nathan Sidwell <nathan@codesourcery.com>
4411 * profile.c: Add file comment describing the overall algorithm and
4413 (struct edge_info): Add comments.
4414 (struct bb_info): Add comments.
4415 * basic-block.h (EDGE_*): Add comments.
4416 * doc/gcov.texi (Gcov Data Files): Document bit flags.
4418 2002-07-29 Bob Wilson <bob.wilson@acm.org>
4420 * config/xtensa/elf.h, config/xtensa/linux.h
4421 (TARGET_OS_CPP_BUILTINS): Define.
4422 (CPP_PREDEFINES): Remove.
4423 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
4426 2002-07-29 Zack Weinberg <zack@codesourcery.com>
4428 * gensupport.c: Include hashtab.h.
4429 (insn_elision, condition_table, hash_c_test, cmp_c_test,
4430 maybe_eval_c_test): New routines and data structures to
4431 support insn elision.
4432 (init_md_reader): Read and initialize the condition_table.
4433 (read_md_rtx): Discard insn patterns whose C test is provably
4435 * gensupport.h: Declare new functions and data structures.
4437 * genconditions.c, dummy-conditions.c: New files.
4438 * Makefile.in: Build genconditions; run it to construct
4439 insn-conditions.c; build that and link it into most gen*
4441 (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
4442 (GEN): Delete, unused.
4443 (STAGESTUFF): Update.
4445 * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
4446 CODE_FOR_nothing for all elided patterns.
4447 (main): Tweaked to support this.
4448 * genflags.c (gen_proto): Emit a static inline generator
4449 function here for all elided patterns, which simply returns
4451 (gen_insn): Do not define HAVE_xxx for elided patterns.
4452 (main): Tweaked to support this. No need to forward-declare
4454 * genrecog.c: Do not bother emitting the C test if it's known
4455 to be true at compile time.
4457 2002-07-29 Mike Stump <mrs@apple.com>
4459 * config.gcc (target_gtfiles): Initialize, as otherwise cross
4460 compilers hosted on powerpc-apple-darwin6.0 won't even build.
4462 2002-07-29 Richard Earnshaw <rearnsha@arm.com>
4464 * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
4465 remove clobber of LR.
4466 (sibcall_insn, sibcall_value_insn): Update accordingly.
4467 (sibcall_epilogue): Remove debugging comment from assembler stream.
4469 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
4471 * pretty-print.h: Define more macros.
4472 * diagnostic.h (output_formatted_integer): Moved from...
4473 * diagnostic.c: ... here.
4475 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4477 * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
4479 2002-07-28 Zack Weinberg <zack@codesourcery.com>
4481 * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
4482 arguments. Always use ".-symbol" as expression argument.
4483 * doc/tm.texi: Update to match. Document requirement for
4484 ".size symbol, .-symbol" to be acceptable to assembler.
4486 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
4487 config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
4488 config/i386/freebsd-aout.h, config/i386/sco5.h,
4489 config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
4490 config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
4492 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4494 * Makefile.in (gengtype-lex.c): Fix error in last change.
4496 * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
4499 * Makefile.in (vmsdbgout.o): Depend on function.h.
4501 * vmsdbgout.c: Include function.h.
4503 2002-07-28 Alan Modra <amodra@bigpond.net.au>
4505 * prefix.c (update_path): Don't strip single `.' path components
4506 unless stripping a later `..' component. Exit loop as soon as
4507 a valid path is found.
4509 2002-07-27 Roger Sayle <roger@eyesopen.com>
4511 * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
4512 argument. Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
4513 BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
4514 floating point unordered comparisons (e.g. __builtin_isgreater)
4515 as const, and leave the remaining GCC_BUILTINs unchanged.
4517 * c-decl.c (builtin_function): No need to explicitly mark
4518 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
4520 2002-07-27 Roger Sayle <roger@eyesopen.com>
4522 * Makefile.in: rtlanal.o now depends upon real.h.
4524 * flags.h [flag_signaling_nans]: New flag.
4525 [HONOR_SNANS]: New macro.
4527 * toplev.c [flag_signaling_nans]: Initialize to false.
4528 (f_options): Add processing for "-fsignaling-nans".
4529 (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
4530 (process_options): flag_signaling_nans implies flag_trapping_math.
4532 * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
4533 when -fsignaling-nans. First step to implementing WG14's N965.
4535 * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
4536 1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
4537 [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
4539 * simplify-rtx.c (simplify_relational_operation): Conditionalize
4540 transforming abs(x) < 0.0 into false on !HONOR_SNANS.
4542 * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
4543 required by HONOR_SNANS. (may_trap_p): Floating point DIV, MOD,
4544 UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
4545 -fsignaling_nans. EQ and NE only trap for flag_signaling_nans
4546 not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
4548 * doc/invoke.texi: Document new -fsignaling-nans compiler option.
4550 2002-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4552 * Makefile.in (gengtype-lex.c): Work around a bug in flex.
4553 * gengtype-lex.l (YY_USE_PROTOS): Undef.
4556 2002-07-27 Roger Sayle <roger@eyesopen.com>
4558 * doc/invoke.texi: Document that both -fno-builtin-foo and
4559 -fno-builtin are supported by the g++ front-end.
4561 2002-07-27 Stan Shebs <shebs@apple.com>
4563 * configure.in: Rename config_gtfiles to target_gtfiles.
4564 * configure: Regenerate.
4565 * doc/gty.texi: Update reference.
4566 * config.gcc (powerpc-*-darwin*): Set target_gtfiles
4567 instead of appending to it.
4569 2002-07-25 Aldy Hernandez <aldyh@redhat.com>
4571 * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
4572 vectors are split into two registers.
4573 (function_arg): Same.
4575 Thu Jul 26 23:00:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
4577 * pa.md (extv): Check predicates before emitting extv_32.
4579 2002-07-27 Alan Modra <amodra@bigpond.net.au>
4581 * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
4582 (rs6000_traceback): New var.
4583 (rs6000_override_options): Set rs6000_traceback.
4584 (rs6000_output_function_epilogue): Implement traceback options.
4585 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
4586 (rs6000_traceback_name): Declare.
4588 * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
4589 label reference when NO_PROFILE_COUNTERS.
4591 2002-07-26 Jason Merrill <jason@redhat.com>
4593 * function.c (assign_parms): Handle frontend-directed pass by
4594 invisible reference.
4596 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
4598 * doc/cppopts.texi: Update.
4600 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
4602 * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
4603 warnings on assertions.
4605 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
4607 * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
4608 RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
4610 * c-parse.in (rid_to_yy): Similarly.
4612 2002-07-26 Jason Merrill <jason@redhat.com>
4614 * c-dump.c: Resurrect.
4615 * tree-dump.c: Move C-specific stuff to c-dump.c.
4616 * c-common.h: Declare c_dump_tree.
4617 * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
4618 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
4619 (c-dump.o): New rule.
4621 2002-07-26 Alan Modra <amodra@bigpond.net.au>
4623 * config/rs6000/rs6000.md: Enable patterns using rlwinm for
4624 PowerPC64. Replace "T" and "S" constraints with "n" when the
4625 predicate will do. Formatting fixes.
4626 (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
4627 as for extzvsi_internal1.
4629 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
4631 * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
4632 DERIV_END_LABEL_FMT): Remove.
4633 (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
4635 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
4637 * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
4640 2002-07-25 Stan Shebs <shebs@apple.com>
4642 * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
4644 (output_compiler_stub): Remove unused locals.
4645 (output_call): Always initialize line number.
4647 Thu Jul 25 20:34:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
4649 * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
4650 * sh.md (truncdiqi2, movqi_media): Likewise.
4652 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
4654 * gcse.c (obstack_chunk_alloc): Remove.
4655 (gcse_alloc): Fix to count allocated bytes.
4656 * collect2.c (SYMBOL__MAIN): Remove.
4658 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
4660 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
4661 HAVE_TARGET_EXECUTABLE_SUFFIX.
4663 Thu Jul 25 18:57:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
4665 * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
4666 SIZE, EXPR and OFFSET.
4668 2002-07-25 Richard Henderson <rth@redhat.com>
4670 * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
4671 in ARRAY_REF of DECL_P case.
4673 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4675 * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
4676 description. Document -mips32, -mips64, and the associated -march
4677 values. Describe the "mipsN" arguments to -march. Say that the
4678 -mipsN options are equivalent to -march. Reword the description
4679 of default type sizes.
4680 * toplev.h (target_flags_explicit): Declare.
4681 * toplev.c (target_flags_explicit): New var.
4682 (set_target_switch): Update target_flags_explicit.
4683 * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
4684 * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
4685 * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
4686 * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
4687 * config/mips/mips.h (mips_cpu_info): New struct.
4688 (mips_cpu_string, mips_explicit_type_size_string): Remove.
4689 (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
4690 (MIPS_CPP_SET_PROCESSOR): New macro.
4691 (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
4692 Define _MIPS_ARCH and _MIPS_TUNE.
4693 (MIPS_ISA_DEFAULT): Don't provide a default value. Instead...
4694 (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
4695 MIPS_ISA_DEFAULT were already defined.
4696 (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
4697 (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
4698 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
4699 (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
4700 (ABI_GAS_ASM_SPEC): Remove.
4701 (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
4702 (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
4703 Invoke %(asm_abi_default_spec) if no ABI was specified.
4704 (CC1_SPEC): Remove ISA -> register-size rules.
4705 (EXTRA_SPECS): Remove abi_gas_asm_spec. Add asm_abi_default_spec.
4706 * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
4707 (mips_cpu_string, mips_explicit_type_size_string): Remove.
4708 (mips_cpu_info_table): New array.
4709 (mips_set_architecture, mips_set_tune): New fns.
4710 (override_options): Rework to make -mipsN equivalent to -march.
4711 Detect more erroneous cases, including those removed from CC1_SPEC.
4712 Don't change the ABI based on architecture, or vice versa.
4713 Unify logic with GAS.
4714 (mips_asm_file_start): Get architecture name from mips_arch_info.
4715 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4716 (mips_parse_cpu): Take the name of the option as argument. Handle
4717 'from-abi'. Raise an error if the option is wrong.
4718 (mips_cpu_info_from_isa): New fn.
4720 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4722 * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
4723 (tablejump_mips162): Likewise.
4725 Thu Jul 25 10:23:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
4727 * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
4730 2002-07-25 Gabriel Dos Reis <gdr@nerim.net>
4732 * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
4734 * c-common.h (c_sizeof): Adjust definition.
4735 (c_alignof): Likewise.
4736 * c-tree.h (c_sizeof_nowarn): Now macro.
4737 * c-typeck.c (c_sizeof_nowarn): Remove definition.
4739 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
4741 * c-decl.c (c_decode_option): No need to handle switches
4744 2002-07-24 Zack Weinberg <zack@codesourcery.com>
4746 * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
4747 ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
4748 * doc/tm.texi: Document them. Also document SIZE_ASM_OP,
4749 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
4751 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
4752 config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
4753 config/cris/aout.h, config/i386/freebsd-aout.h,
4754 config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
4755 config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
4756 config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
4757 config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
4758 config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
4759 config/xtensa/elf.h, config/xtensa/linux.h:
4761 Where possible, remove redundant definitions of SIZE_ASM_OP,
4762 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
4764 2002-07-24 Aldy Hernandez <aldyh@redhat.com>
4766 * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
4767 TARGET_ISEL, and TARGET_FPRS.
4769 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4770 -mabi=spe, -mabi=no-spe, and -misel=.
4772 * config/rs6000/rs6000-protos.h: Add output_isel.
4773 Move vrsave_operation prototype here.
4775 * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
4779 (abssi2_nopower): Disallow when TARGET_ISEL.
4781 (negsf2): Change to expand and rename old pattern to *negsf2.
4782 (abssf2): Change to expand and rename old pattern to *abssf2.
4784 New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
4787 Change patterns that check for TARGET_HARD_FLOAT or
4788 TARGET_SOFT_FLOAT to also check TARGET_FPRS.
4790 * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
4791 rs6000_isel, rs6000_fprs, rs6000_isel_string.
4792 (rs6000_override_options): Add 8540 case to
4793 processor_target_table.
4794 Set rs6000_isel for the 8540.
4795 Call rs6000_parse_isel_option.
4796 (enable_mask_for_builtins): New.
4797 (rs6000_parse_isel_option): New.
4798 (rs6000_parse_abi_options): Add spe and no-spe.
4799 (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
4800 (rs6000_legitimize_address): Check for TARGET_FPRS when checking
4801 for TARGET_HARD_FLOAT.
4802 Add case for SPE_VECTOR_MODE.
4803 (rs6000_legitimize_reload_address): Handle SPE vector modes.
4804 (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
4806 Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
4807 (rs6000_emit_move): Check for TARGET_FPRS.
4808 Add cases for SPE vector modes.
4809 (function_arg_boundary): Return 64 for SPE vector modes.
4810 (function_arg_advance): Check for TARGET_FPRS and
4812 (function_arg): Same.
4813 (setup_incoming_varargs): Check for TARGET_FPRS.
4814 (rs6000_va_arg): Same.
4815 (struct builtin_description): Un-constify mask field. Move up in
4817 (bdesc_2arg): Un-constify and add SPE builtins.
4819 (bdesc_spe_predicates): New.
4820 (bdesc_spe_evsel): New.
4821 (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
4822 (rs6000_expand_binop_builtin): Same.
4823 (bdesc_2arg_spe): New.
4824 (spe_expand_builtin): New.
4825 (spe_expand_predicate_builtin): New.
4826 (spe_expand_evsel_builtin): New.
4827 (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
4828 (rs6000_init_builtins): Initialize SPE builtins. Call
4829 rs6000_common_init_builtins.
4830 (altivec_init_builtins): Move all non-altivec builtin code to...
4831 (rs6000_common_init_builtins): ...here. New function.
4832 (branch_positive_comparison_operator): Allow NE code for SPE.
4833 (ccr_bit): Return correct ccr bit for SPE fp.
4834 (print_operand): Emit crnor in 'D' case for SPE.
4836 Add SPE code for 'y' case.
4837 (rs6000_generate_compare): Generate rtl for SPE fp.
4838 (output_cbranch): Handle SPE hard floats.
4839 (rs6000_emit_cmove): Handle isel.
4840 (rs6000_emit_int_cmove): New.
4842 (rs6000_stack_info): Adjust stack frame so GPRs are saved in
4844 (debug_stack_info): Add SPE info.
4845 (gen_frame_mem_offset): New.
4846 (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
4847 Change mode of frame pointer, when saving it, to Pmode.
4848 (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
4849 Misc cleanups and use gen_frame_mem_offset when appropriate.
4851 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
4852 (TARGET_SPE_ABI): New.
4856 (FIXED_SCRATCH): New.
4857 (RTX_COSTS): Add PROCESSOR_PPC8540.
4858 (ASM_CPU_SPEC): Add case for 8540.
4859 (TARGET_OPTIONS): Add isel= case.
4860 (rs6000_spe_abi): New.
4863 (rs6000_isel_string): New.
4864 (UNITS_PER_SPE_WORD): New.
4865 (LOCAL_ALIGNMENT): Adjust for SPE.
4866 (HARD_REGNO_MODE_OK): Same.
4867 (DATA_ALIGNMENT): Same.
4868 (MEMBER_TYPE_FORCES_BLK): New.
4869 (FIRST_PSEUDO_REGISTER): Set to 113.
4870 (FIXED_REGISTERS): Add SPE registers.
4872 (REG_CLASS_NAMES): Same.
4873 (REG_CLASS_CONTENTS): Same.
4874 (REGNO_REG_CLASS): Same.
4875 (REGISTER_NAMES): Same.
4876 (DEBUG_REGISTER_NAMES): Same.
4877 (ADDITIONAL_REGISTER_NAMES): Same.
4878 (CALL_USED_REGISTERS): Same.
4879 (CALL_REALLY_USED_REGISTERS): Same.
4880 (SPE_ACC_REGNO): New.
4881 (SPEFSCR_REGNO): New.
4882 (SPE_SIMD_REGNO_P): New.
4883 (HARD_REGNO_NREGS): Adjust for SPE.
4884 (VECTOR_MODE_SUPPORTED_P): Same.
4885 (REGNO_REG_CLASS): Same.
4886 (FUNCTION_VALUE): Same.
4887 (LIBCALL_VALUE): Same.
4888 (LEGITIMATE_OFFSET_ADDRESS_P): Same.
4889 (SPE_VECTOR_MODE): New.
4890 (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
4891 the GPRs. Set FIXED_SCRATCH fixed in SPE case.
4892 (rs6000_stack): Add spe_gp_size, spe_padding_size,
4894 (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
4895 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
4896 (SPE_CONST_OFFSET_OK): New.
4897 (rs6000_builtins): Add SPE builtins.
4899 * testsuite/gcc.dg/ppc-spe.c: New.
4901 * config/rs6000/eabispe.h: New.
4903 * config/rs6000/spe.h: New.
4905 * config/rs600/spe.md: New.
4907 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4908 __SIMD__ for TARGET_SPE.
4910 * config.gcc: Add powerpc-*-eabispe* case.
4911 Add spe.h to user headers for powerpc.
4913 2002-07-24 Chris Demetriou <cgd@broadcom.com>
4915 * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
4916 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4917 * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
4919 2002-07-24 Richard Henderson <rth@redhat.com>
4921 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
4922 form when not optimizing.
4924 2002-07-24 David Mosberger <davidm@hpl.hp.com>
4926 * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
4927 thread_pointer_rtx as unchanging.
4929 2002-07-24 Michael Matz <matz@suse.de>
4931 * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
4934 2002-07-24 Richard Earnshaw <rearnsha@arm.com>
4936 * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
4938 (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
4939 (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
4941 2002-07-24 Chris Demetriou <cgd@broadcom.com>
4943 * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
4944 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4945 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
4947 Wed Jul 24 17:59:12 CEST 2002 Jan Hubicka <jh@suse.cz>
4949 * toplev.c (rest_of_compilation): Dump loops before clobbering
4952 Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
4954 * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
4956 2002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
4958 PR optimization/7291
4959 * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
4962 2002-07-24 Gabriel Dos Reis <gdr@nerim.net>
4964 * pretty-print.h: Add macros from cp/error.c
4966 2002-07-24 Alan Modra <amodra@bigpond.net.au>
4968 * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
4969 (mask64_2_operand): Declare.
4970 (build_mask64_2_operands): Declare.
4971 (and64_2_operand): Declare.
4972 (extract_MB): Declare.
4973 (extract_ME): Declare.
4974 * config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
4976 (mask_operand_wrap): New insn predicate.
4977 (mask64_2_operand): Likewise.
4978 (and64_2_operand): Likewise.
4979 (build_mask64_2_operands): New function.
4980 (extract_MB): New function.
4981 (extract_ME): New function.
4982 (print_operand <case m,M>): Use extract_MB and extract_ME.
4983 (print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
4984 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
4985 (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
4986 mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
4987 * config/rs6000/rs6000.md (andsi3_internal3): New
4988 (andsi3_internal3+1): Enable split for powerpc64.
4989 (andsi3_internal3+2): New split.
4990 (andsi3_internal4): Renamed old andsi3_internal3.
4991 (andsi3_internal5): New.
4992 (andsi3_internal5+1): Enable split for powerpc64.
4993 (andsi3_internal5+2): New split.
4994 (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
4995 (anddi3): Handle 't' constraint.
4996 (anddi3+1): New split.
4997 (anddi3_internal2): Handle 't' constraint.
4998 (anddi3_internal2+1): New split.
4999 (anddi3_internal3): Handle 't' constraint.
5000 (anddi3_internal3+1): New split.
5002 2002-07-24 Alan Modra <amodra@bigpond.net.au>
5004 * config/rs6000/rs6000.md: Remove scratch reg on insns using
5005 addze and similar (plus (comparison r1 r2) r3) insns. Add
5006 missing scratch reg in one case. Formatting fixes.
5008 2002-07-24 Neil Booth <neil@daikokuya.co.uk>
5010 * cppexp.c (parse_defined): Mark macro used.
5011 * cpphash.h (struct cpp_macro): New member "used".
5012 (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
5013 (struct cpp_reader): New member.
5014 * cppinit.c (cpp_finish_options): Set first_unused_line.
5015 (cpp_finish): Warn of unused macros if requested.
5016 (OPT_TABLE): New switches.
5017 (cpp_handle_option): Handle them.
5018 * cpplib.c (do_undef): Warn if macro unused.
5019 (do_ifdef, do_ifndef): Mark macro used.
5020 * cpplib.h (struct cpp_options): New member.
5021 * cppmacro.c (_cpp_warn_if_unused_macro): New.
5022 (enter_macro_context): Mark macro used.
5023 (_cpp_create_definition): Mark macro unused; warn if unused
5025 * cpptrad.c (scan_out_logcial_line, push_replacement_text):
5027 * doc/cppopts.texi: Update.
5029 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
5031 * dwarf2out.c (SECTION_ASM_OP,
5032 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5033 * system.h (SECTION_ASM_OP): Poison.
5034 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
5035 * config/alpha/alpha-interix.h, config/mips/linux.h
5036 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5037 * config/mmix/mmix-protos.h, config/mmix/mmix.c
5038 (mmix_asm_output_define_label_difference_symbol): Remove.
5039 * config/mmix/mmix.h
5040 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5041 * doc/tm.texi: Remove documentation.
5043 Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
5045 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
5046 (constrain_operands): Likewise.
5047 * regclass.c (record_reg_classes): Likewise.
5048 * reload.c (find_reloads): Likewise.
5049 * doc/md.texi: Likewise.
5051 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
5052 * simplify-rtx.c (simplify_subreg): When converting to a non-int
5053 mode, try to convert to an integer mode of matching size first.
5055 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
5056 from individual subregs, check that each subreg has been generated
5059 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
5061 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
5062 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
5063 FOR_EACH_BB_IN_SBITMAP): Remove.
5064 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
5065 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
5066 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
5067 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
5068 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
5069 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
5071 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
5073 * pretty-print.h: New file.
5075 2002-07-23 Paul Koning <pkoning@equallogic.com>
5077 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
5078 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
5079 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
5080 (TARGET_G_FLOAT): Default to 0 if not defined.
5081 (ieeetoe): New, common routine to convert target format floats
5083 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
5085 (e113toe): Change to use ieeetoe.
5087 2002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
5089 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
5091 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
5092 (e64toe): Remove special cases for DEC and IBM. Remove support for
5093 ARM_EXTENDED_IEEE_FORMAT.
5094 (e24toe): Remove special cases for DEC.
5095 (significand_size): Simplify. Indent.
5096 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
5097 (etoieee, toieee): New.
5098 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
5099 etoieee and toieee for IEEE arithmetic.
5101 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
5103 * doc/extend.texi: Say ISO C90, not ISO C89.
5104 * doc/invoke.texi: Likewise.
5105 * doc/standards.texi: Likewise.
5107 2002-07-23 Steve Ellcey <sje@cup.hp.com>
5109 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
5110 Fix permutation of conversion and plus/mult.
5111 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
5112 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
5113 (expand_builtin_strncpy) Ditto.
5114 (expand_builtin_memset) Ditto.
5116 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
5119 * c-common.c (c_sizeof_or_alignof_type): New function.
5120 (c_alignof): Remove definition.
5121 * c-common.h (c_sizeof, c_alignof): Define as macros.
5122 (c_sizeof_or_alignof_type): Declare.
5123 (my_friendly_assert): Moved from cp/cp-tree.h
5124 * c-typeck.c (c_sizeof): Remove definition.
5126 2002-07-23 Jan Hubicka <jh@suse.cz>
5128 * gcse.c (try_replace_reg): Use num_changes_pending.
5129 * recog.c (num_changes_pending): New function.
5130 (validate_replace_src): Use validate_repalce_src_group.
5131 (validate_replace_src_group): New.
5132 * recog.h (validate_repalce_src_group): New.
5133 (num_changes_pending): Likewise.
5135 Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
5137 * calls.c (emit_library_call_value_1): If
5138 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
5139 libcall, const call nor pure call.
5141 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
5143 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
5145 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
5147 * vmsdbgout.c (SECTION_ASM_OP): Remove.
5149 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
5151 * config/i386/i386.c (AT_BP): Remove.
5153 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
5155 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
5157 * gcse.c: Don't define obstack_chunk_free.
5158 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
5159 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
5160 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
5161 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
5162 Don't define obstack macros.
5164 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
5167 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
5168 ASM_OPERANDS instructions.
5170 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
5173 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
5174 constant addresses only on 68HC12.
5176 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
5178 * cppfiles.c (stack_include_file): Correct test of whether
5179 a dependency should be output.
5181 2002-07-22 David Edelsohn <edelsohn@gnu.org>
5183 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
5185 2002-07-22 Richard Earnshaw <rearnsha@arm.com>
5187 * arm.md (movqi): If optimizing and we can create pseudos, use
5188 a ZERO_EXTEND to load from memory, then copy the result into the
5190 (movhi): Likewise, but only for ARMv4.
5192 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
5194 * ssa-ccp.c (PHI_PARMS): Remove.
5196 2002-07-22 Richard Sandiford <rsandifo@redhat.com>
5198 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
5199 on big-endian targets.
5201 2002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5203 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
5204 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
5205 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
5206 New formatting macros.
5208 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
5210 Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
5212 * rtlanal.c (subreg_regno_offset): Return correct offset for
5213 big endian paradoxical subregs.
5215 * optabs.c (expand_vector_unop): Don't expand using sub_optab
5216 if we got the wrong mode.
5218 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
5219 * genrecog.c (write_switch, write_cond): Use it.
5220 * genemit.c (gen_exp): Likewise.
5222 2002-07-22 Jakub Jelinek <jakub@redhat.com>
5224 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
5226 2002-07-22 Jakub Jelinek <jakub@redhat.com>
5228 * c-decl.c (build_compound_literal): Defer compound literal decls
5229 until until file end to emit them only if they are actually used.
5231 2002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5233 * ra-build.c (check_conflict_numbers): Hide unused function.
5234 (livethrough_conflicts_bb): Avoid automatic aggregate
5236 (parts_to_webs_1): Avoid `U' integer constant modifier.
5237 (conflicts_between_webs): Wrap a variable in the macro controlling
5239 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
5240 (dump_igraph, dump_graph_cost): Avoid string concatenation
5241 (dump_static_insn_cost): Avoid automatic aggregate
5243 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
5245 (dump_cost): Avoid string concatenation
5247 2002-07-21 Richard Henderson <rth@redhat.com>
5249 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
5250 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
5252 2002-07-21 Richard Henderson <rth@redhat.com>
5254 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
5255 that are not unrolled completely.
5257 2002-07-21 Richard Henderson <rth@redhat.com>
5259 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
5260 * loop.c (strength_reduce): Update.
5261 * toplev.c (rest_of_compilation): Do unrolling in the first
5262 loop pass, not the second.
5264 2002-07-21 Richard Henderson <rth@redhat.com>
5266 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
5267 when flag_argument_noalias == 2.
5268 * alias.c (nonoverlapping_memrefs_p): Handle that.
5269 * print-rtl.c (print_mem_expr): Likewise.
5271 2002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
5273 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
5274 instead of __negdi2 directly.
5276 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
5278 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
5279 * function.c (SYMBOL__MAIN): Remove definition.
5280 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
5281 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
5282 * profile.c (GCOV_INDEX_TO_BB): Remove.
5283 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
5284 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
5286 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
5288 * c-lex.c (GET_ENVIRONMENT): Remove.
5289 * collect2.c (GET_ENV_PATH_LIST): Remove.
5290 (prefix_from_env): Use GET_ENVIRONMENT.
5291 * cppinit.c (GET_ENV_PATH_LIST): Remove.
5292 (init_standard_includes): Use GET_ENVIRONMENT.
5293 * defaults.h (GET_ENVIRONMENT): Define here if not already.
5294 * gcc.c (GET_ENV_PATH_LIST): Remove.
5295 (make_relative_prefix, process_command): Update.
5296 * protoize.c (GET_ENV_PATH_LIST): Remove.
5297 (do_processing): Update.
5299 2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
5301 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
5302 (grokdeclarator): Likewise.
5303 * c-format.c (C_STD_NAME): Likewise.
5304 * c-lex.c (interpret_integer): Likewise.
5305 * c-typeck.c (build_array_ref): Likewise.
5306 * cpplex.c (_cpp_lex_direct): Likewise.
5307 * toplev.c (documented_lang_options): Likewise.
5309 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
5311 * c-format.c (T99_I, T99_UI): Remove.
5313 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
5315 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
5317 Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5319 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
5322 2002-07-21 Andreas Jaeger <aj@suse.de>
5324 * reload1.c (fixup_abnormal_edges): Remove unused variable.
5326 2002-07-21 Bernd Schmidt <bernds@redhat.com>
5328 Improvements for the ifcvt pass from Michael Meissner, with patches
5329 by Richard Sandiford <rsandifo@redhat.com>
5330 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
5331 * ifcvt.c (cond_exec_changed_p): New static variable.
5332 (last_active_insn): New function, renamed from last_active_insn_p
5333 and changed to return the last active insn in a basic block. All
5335 (block_fallthru): New function.
5336 (cond_exec_process_insns): New argument CE_INFO. Pass it to
5337 IFCVT_MODIFY_INSN. All callers updated.
5338 Return false if START or END are NULL.
5339 Handle case where we're processing an insn that is already
5342 (noce_process_if_block): CE_INFO argument rather than
5343 multiple args containing the involved basic blocks. All callers
5345 (process_if_block, merge_if_block, find_if_block,
5346 cond_exec_process_if_block): Likewise.
5348 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
5350 Use new function last_active_insn to simplify some code.
5351 New code to handle multiple tests.
5352 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
5353 cond_exec_changed_p to TRUE.
5355 (process_if_block): New code to handle multiple tests.
5356 (merge_if_block): Likewise.
5357 (find_if_header): New arg PASS. Changed to return the currently
5358 processed basic block or NULL instead of true/false. All callers
5360 Call IFCVT_INIT_EXTRA_FIELDS.
5361 (block_jumps_and_fallthru_p): New function.
5362 (find_if_block): Discover opportunities to convert multiple tests.
5363 Add additional debugging output.
5364 Update the ce_info structure before returning.
5366 (if_convert): Run multiple passes of if-conversion.
5367 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
5368 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
5369 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
5372 Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
5374 * gcse.c: Include cselib.h
5375 (constptop_register): Break out from ...
5376 (cprop_insn): ... here; kill basic_block argument.
5377 (do_local_cprop, local_cprop_pass): New functions.
5378 (one_cprop_pass): Call local_cprop_pass.
5380 2002-07-20 Roger Sayle <roger@eyesopen.com>
5382 * simplify-rtx.c (simplify_relational_operation): Optimize
5383 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
5385 2002-07-20 Michae Matz <matz@suse.de>
5387 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
5389 2002-07-20 Neil Booth <neil@daikokuya.co.uk>
5391 * cppexp.c (struct op): Add token pointer.
5392 (check_promotion, CHECK_PROMOTION): New.
5394 (_cpp_parse_expr): Update, use token pointer of struct op.
5395 (reduce): Warn about change of sign owing to promotion.
5396 * cppinit.c (cpp_handle_option): New warning if -Wall.
5397 * cpplib.h (struct cpp_options): New member.
5399 2002-07-19 David Edelsohn <edelsohn@gnu.org>
5401 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
5402 fpu list. Separate Power4 compare and delayed_compare. Correct
5404 (fix_truncdfsi2_internal): Restore FPR preference.
5405 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
5406 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
5408 2002-07-19 Momchil Velikov <velco@fadata.bg>
5410 * reload1.c (reload_as_needed): Duplicate oldpat.
5412 2002-07-20 Alan Modra <amodra@bigpond.net.au>
5414 PR optimization/7130
5415 * loop.h (struct loop_info): Add "preconditioned".
5416 * unroll.c (unroll_loop): Set it.
5417 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
5419 2002-07-19 Zack Weinberg <zack@codesourcery.com>
5421 * rtl.def (CODE_LABEL): Remove slot 8.
5422 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
5423 (LABEL_ALTERNATE_NAME): Delete.
5424 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
5425 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
5427 * final.c (output_alternate_entry_point): New.
5428 (final_scan_insn): Use it instead of
5429 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
5430 of a case label being an alternate entry point.
5432 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
5433 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
5434 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
5436 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
5438 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
5439 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
5440 * doc/tm.texi: Delete documentation of
5441 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
5443 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5445 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
5446 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
5447 (LINK_SPEC): Define.
5448 (STARTFILE_SPEC): Define.
5449 (ENDFILE_SPEC): Define.
5451 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
5452 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
5454 * config/mips/iris6-o32-gas.h: New file.
5455 * config.gcc (mips-sgi-irix6*o32): Use it.
5457 * config/mips/t-iris5-gas: New file.
5458 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
5460 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
5462 * cppexp.c (ALWAYS_EVAL): Remove.
5463 (optab, reduce): Always evaluate.
5464 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
5465 only if not skipping evaluation.
5467 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
5469 * config/avr/avr.c (debug_hard_reg_set): Remove.
5471 2002-07-19 Chris Demetriou <cgd@broadcom.com>
5473 * gcc.c (cpp_options): Include "%1" (cc1_spec).
5475 2002-07-19 Richard Henderson <rth@redhat.com>
5477 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
5479 2002-07-19 Alan Modra <amodra@bigpond.net.au>
5481 * prefix.c (update_path): Don't zap single `.' path components
5482 unless followed by another `.' and fix typo last patch.
5484 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
5486 * cppexp.c (cpp_num_mul): Remove unused parameter.
5487 (UNARY, BINARY, OTHER, binary_handler): Remove.
5490 (reduce): Refactor to a large switch, don't use a function
5493 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
5495 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
5497 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
5499 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
5500 (sh_expand_binop_v2sf): Likewise.
5501 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
5502 (int_gpr_dest, trunc_hi_operand): New functions.
5503 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
5505 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
5506 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
5507 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
5508 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
5509 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
5510 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
5511 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
5512 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
5513 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
5514 (movsf_ie+1): Likewise.
5515 (loaddi_trunc): Use int_gpr_dest predicate.
5516 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
5517 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
5518 (casesi_worker_0+[12], casesi_worker): Likewise.
5519 (shcompact_preserve_incoming_args): Likewise.
5520 (mov_nop): Use any_register_operand predicate.
5521 (mperm_w0): Use trunc_hi_operand predicate.
5523 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
5525 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
5526 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
5529 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
5531 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
5533 2002-07-18 Richard Henderson <rth@redhat.com>
5535 PR optimization/7147
5536 * ifcvt.c (noce_get_condition): Make certain that the condition
5539 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
5541 * sh.c (barrier_align, push): Shut up compiler warnings.
5542 (initial_elimination_offset,sh_media_init_builtins): Likewise.
5543 (reg_no_subreg_operand): Delete.
5545 2002-07-17 Bo Thorsen <bo@suse.de>
5547 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
5548 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
5549 (STARTFILE_SPEC): Remove hardcoded library paths.
5550 (ENDFILE_SPEC): Likewise.
5552 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
5554 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
5556 * gcse.c (try_replace_reg): Do not return false positives.
5558 2002-07-18 Alan Modra <amodra@bigpond.net.au>
5560 * prefix.c: (update_path): Strip ".." components when prior dir
5561 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
5563 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
5564 (ASM_OUTPUT_REG_POP): Likewise.
5566 2002-07-18 Alan Modra <amodra@bigpond.net.au>
5568 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
5569 adjustments to first_reg for profiling case.
5570 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
5571 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
5572 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
5573 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
5574 (ASM_OUTPUT_REG_POP): Define.
5575 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
5576 (ASM_OUTPUT_REG_POP): Undef.
5578 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
5580 * cpplib.c (do_sccs): Handle #sccs on all systems.
5581 * system.h (SCCS_DIRECTIVE): Poison.
5582 * config/darwin.h, config/freebsd.h, config/netbsd.h,
5583 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
5584 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
5585 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
5586 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
5587 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
5588 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
5589 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
5590 Remove all references to SCCS_DIRECTIVE.
5591 * doc/cpp.texi, doc/tm.texi: Update.
5593 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
5595 * regrename.c (maybe_mode_change): New function.
5596 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
5598 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
5600 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
5601 suppress addition when either ct or cf are zero.
5603 2002-06-17 Eric Botcazou <ebotcazou@multimania.com>
5604 Glen Nakamura <glen@imodulo.com>
5606 PR optimization/6713
5607 * loop.c (loop_givs_rescan): Explicitly delete the insn that
5608 sets a non-replaceable giv after issuing the new one.
5610 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
5612 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
5613 eval_token): Clarify and correct use of "bool" variables.
5614 * cpplib.h (struct cpp_options): Similarly.
5615 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
5616 * cpptrad.c (recursive_macro): Similarly.
5618 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
5620 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
5623 * sh.md (cmpgtudi_media): Remove spurious @.
5625 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
5626 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
5628 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
5629 * sh-protos.h (sh_initialize_trampoline): Declare.
5630 * sh.c (sh_initialize_trampoline): New function.
5631 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
5632 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
5633 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
5634 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
5635 * sh.md (initialize_trampoline, double_shori): New patterns.
5636 (initialize_trampoline_compact): Likewise.
5637 (shmedia32_initialize_trampoline_big): Remove.
5638 (shmedia32_initialize_trampoline_little): Likewise.
5640 * sh-protos.h (binary_float_operator): Remove declaration.
5641 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
5642 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
5643 (unary_float_operator, sh_expand_unop_v2sf): New functions.
5644 (sh_expand_binop_v2sf): Likewise.
5645 (zero_vec_operand): Delete.
5646 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
5647 all non-shared ones.
5648 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
5649 Enable nsb and byterev.
5650 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
5651 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
5653 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
5654 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
5656 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
5658 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
5659 lowpart fp regs - only for big endian for now.
5660 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
5662 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
5663 (LOAD_EXTEND_OP): NIL for SImode.
5664 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
5665 general and fp registers is 4.
5666 PREDICATE_CODES: Amend binary_float_operator entry.
5667 Remove zero_vec_operand. Add unary_float_operator.
5668 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
5670 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
5671 (truncdiqi2): Do sign extension.
5672 (movsi_media, movdi_media): Allow to use r63 to an fp register.
5673 (movdf_media, movsf_media): Likewise.
5674 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
5675 Collapse to one define_insn_and_split. Allow immediate sources.
5676 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
5677 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
5678 (movv4sf): Allow immediate sources.
5679 (movsf_media_nofpu+1): Don't split moves to FP registers.
5680 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
5681 (movv8qi_i+3): Check against CONST0_RTX.
5682 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
5683 for input and output operands. Fix argument 3 to gen_mextr_rl.
5684 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
5685 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
5686 (mshf0_w, fipr, ftrv): Likewise.
5687 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
5689 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5691 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
5692 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
5695 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
5697 * config/mips/mips-protos.h (mips_sign_extend): Declare.
5698 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
5699 (TARGET_SWITCHES): Remove debugh.
5700 (ISA_HAS_TRUNC_W): New macro.
5701 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
5702 (PREDICATE_CODES): Remove se_nonimmediate_operand.
5703 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
5704 any SImode move_operand.
5705 (se_nonimmediate_operand): Remove.
5706 (mips_sign_extend): New.
5707 (mips_move_2words): Use it for sign-extended source operands.
5708 (override_options): Allow integers to be put into single FPRs.
5709 (mips_secondary_reload_class): Handle integers in float registers.
5710 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
5711 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
5712 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
5713 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
5714 (fix_truncdfdi2): Provide only a single alternative, in which the
5715 integer is in a float register. Depend on TARGET_FLOAT64 rather
5717 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
5718 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
5719 (movdi_internal2): Don't allow the source operand to be sign-extended.
5720 Add alternatives for float registers.
5721 (*movdi_internal2_extend): New. Version of movdi_internal2 that
5722 allows sign-extension.
5723 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
5724 (movsi_internal2): Rename to movsi_internal. Add alternatives for
5725 float registers. Remove TARGET_DEBUG_H_MODE test.
5726 (movhi_internal1): Rename to movhi_internal. Don't check
5727 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
5728 (movqi_internal1): Rename to movqi_internal and remove
5729 TARGET_DEBUG_H_MODE dependency.
5730 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
5732 2002-07-16 Jim Wilson <wilson@redhat.com>
5734 * toplev.c (lang_dependent_init): Create function context for
5737 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
5739 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
5740 --gc-sections if -r.
5741 * config/cris/cris.h: Ditto.
5743 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
5745 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
5746 the comparison directly gives a mask suppress addition when cf is
5747 zero by complementing the mask.
5749 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
5751 * Makefile.in: Delete references to enquire.
5752 * enquire.c: Move to contrib.
5754 2002-07-16 Stan Shebs <shebs@apple.com>
5756 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
5757 config/rs6000/darwin.h.
5758 (ASM_OUTPUT_SKIP): Ditto.
5759 (TEXT_SECTION_ASM_OP): Ditto.
5760 (DATA_SECTION_ASM_OP): Ditto.
5761 (ASM_APP_ON): Define.
5762 (ASM_APP_OFF): Define.
5763 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
5764 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
5766 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
5767 (machopic_function_base_name): Declare result to be const.
5768 (machopic_non_lazy_ptr_name): Ditto.
5769 (machopic_stub_name): Ditto.
5770 * config/darwin-protos.h: Ditto for the prototypes.
5772 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
5774 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
5776 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
5778 * i386.md (prefetch): Fix for 64bit mode.
5779 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
5781 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
5783 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
5784 * i386.c (x86_machine_dependent_reorg): New function.
5785 * i386-protos.h (x86_machine_dependent_reorg): Declare.
5787 2002-07-16 Zack Weinberg <zack@codesourcery.com>
5789 * builtins.c (std_expand_builtin_va_start): Remove unused
5791 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
5792 std_expand_builtin_va_start with just two arguments.
5793 * expr.h: Update prototypes.
5795 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
5796 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
5797 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
5798 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
5799 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
5800 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
5801 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
5802 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
5803 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
5804 argument from all implementations of EXPAND_BUILTIN_VA_START
5805 and all uses of std_expand_builtin_va_start.
5807 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
5809 * regrename.c (copy_value): Don't record high part copies.
5811 2002-07-16 Steve Ellcey <sje@cup.hp.com>
5813 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
5814 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
5815 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
5817 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
5819 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
5821 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
5822 into addsi3 using register class "x" and "y".
5824 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
5825 "earlyclobber" constraint modifier for some alternative.
5827 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
5828 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
5830 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
5832 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
5833 (TARGET_SWITCHES): Add -mieee-compare option.
5834 (OVERRIDE_OPTIONS): 32332 is a subset of
5835 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
5836 (TARGET_SWITCHES): Fix description of bitfield option.
5837 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
5838 -mieee-compare option. Remove 32332 flag.
5840 2002-07-16 Steve Ellcey <sje@cup.hp.com>
5842 * explow.c (convert_memory_address): Remove special handling
5843 when POINTERS_EXTEND_UNSIGNED < 0.
5844 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
5845 (movedi_symbolic): Fix typo.
5846 (load_fptr): Remove mode restriction so it works for SI and DI.
5847 (load_fptr_internal1): Ditto.
5848 (load_gprel): Ditto.
5849 (load_symptr_internal1): Ditto.
5851 * config/ia64.c (call_operand): Modify mode check.
5852 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
5853 (ia64_expand_move): Ditto.
5854 (ia64_assemble_integer): Handle SImode function pointers.
5855 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
5856 (ia64_expand_op_and_fetch): Ditto.
5857 (ia64_expand_compare_and_swap): Ditto.
5858 (ia64_expand_lock_test_and_set): Ditto.
5859 (ia64_expand_lock_release): Ditto.
5861 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5863 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
5865 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5866 Richard Earnshaw <rearnsha@arm.com>
5868 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
5869 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
5871 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
5873 * arm.md (stack_tie): New insn. Use an idiom that the alias code
5874 understands to be a memory clobber.
5875 * arm.c (arm_expand_prologue): Use it.
5877 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
5879 * ra-rewrite.c: #include reload.h, insn-config.h
5880 * ra-build.c: #include reload.h
5881 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
5882 depend on reload.h, insn-config.h.
5884 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
5886 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
5887 the same size as a word.
5889 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
5890 BYTES_BIG_ENDIAN into account.
5892 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
5894 * i386.md (prefetch): Fix for 64bit mode.
5895 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
5897 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
5899 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
5901 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
5903 2002-07-15 Zack Weinberg <zack@codesourcery.com>
5905 * ginclude/varargs.h: Replace with stub which issues #error.
5906 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
5909 * builtins.def (BUILT_IN_VARARGS_START): Delete.
5910 (BUILT_IN_VA_START): New.
5911 * builtins.c (expand_builtin_va_start): Eliminate first
5912 argument and code to implement pre-ISO varargs.
5913 (std_expand_builtin_va_start): Ignore first argument; it is
5915 (expand_builtin): Handle BUILT_IN_VA_START and
5916 BUILT_IN_STDARG_START identically. Delete
5917 BUILT_IN_VARARGS_START case.
5919 * function.c (assign_parms): Delete hide_last_arg and all
5921 (mark_varargs): Delete function.
5922 * function.h (struct function): Delete 'varargs' bit.
5923 (current_function_varargs): Delete macro.
5924 * tree.h: Don't declare mark_varargs.
5926 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
5927 (c_expand_body): Don't call mark_varargs.
5928 * c-objc-common.c: Handle BUILT_IN_VA_START and
5929 BUILT_IN_STDARG_START identically. Delete
5930 BUILT_IN_VARARGS_START case.
5931 * c-tree.h: Don't declare c_mark_varargs.
5932 * c-parse.in: Remove grammar rules for '&...' (which has been
5933 commented out since before 2.7.2) and for '...' in K+R
5934 argument declarations.
5936 * builtins.c, function.c, integrate.c, sibcall.c,
5937 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
5938 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
5939 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
5940 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
5941 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
5942 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
5943 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
5944 config/stormy16/stormy16.c: Delete all references to
5945 current_function_varargs, and code predicated on that flag.
5947 * config/alpha/alpha.c (alpha_va_start),
5948 config/arc/arc.c (arc_va_start),
5949 config/i386/i386.c (ix86_va_start),
5950 config/mips/mips.c (mips_va_start),
5951 config/mn10300/mn10300.c (mn10300_va_start),
5952 config/rs6000/rs6000.c (rs6000_va_start),
5953 config/s390/s390.c (s390_va_start),
5954 config/sh/sh.c (sh_va_start),
5955 Ignore first argument; it is always 1.
5957 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
5958 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
5959 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
5960 Delete m68hc11_va_start.
5961 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
5962 No need to define EXPAND_BUILTIN_VA_START.
5964 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
5965 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
5967 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
5969 PR optimization/7153
5970 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
5971 dies in more than one insn.
5973 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
5975 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
5977 2002-07-15 Michael Matz <matz@suse.de>,
5978 Daniel Berlin <dberlin@dberlin.org>,
5979 Denis Chertykov <denisc@overta.ru>
5981 Add a new register allocator.
5985 * ra-build.c: New file.
5986 * ra-colorize.c: New file.
5987 * ra-debug.c: New file.
5988 * ra-rewrite.c: New file.
5990 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
5991 (ra-rewrite.o): New .o files for libbackend.a.
5992 (GTFILES): Add basic-block.h.
5994 * toplev.c (flag_new_regalloc): New.
5995 (f_options): New option "new-ra".
5996 (rest_of_compilation): Call initialize_uninitialized_subregs()
5997 only for the old allocator. If flag_new_regalloc is set, call
5998 new allocator, instead of local_alloc(), global_alloc() and
6001 * doc/invoke.texi: Document -fnew-ra.
6002 * basic-block.h (FOR_ALL_BB): New.
6003 * config/rs6000/rs6000.c (print_operand): Write small constants
6006 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
6007 (df_reg_table_realloc): Make size at least as large as max_reg_num().
6008 (df_insn_table_realloc): Size argument now is absolute, not relative.
6009 Changed all callers.
6011 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
6012 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
6014 2002-06-20 Michael Matz <matz@suse.de>
6016 * df.h (struct ref.id): Make unsigned.
6017 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
6019 2002-06-13 Michael Matz <matz@suse.de>
6021 * df.h (DF_REF_MODE_CHANGE): New flag.
6022 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
6023 involving subregs with invalid mode changes, when
6024 CLASS_CANNOT_CHANGE_MODE is defined.
6026 2002-05-07 Michael Matz <matz@suse.de>
6028 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
6030 2002-05-03 Michael Matz <matz@suse.de>
6032 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
6034 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
6036 * regclass.c (regclass): Work with all regs which have sets or
6038 (reg_scan_mark_refs): Count regs inside (clobber ...).
6040 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
6042 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
6043 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
6045 (df_bb_refs_update): Don't clear insns_modified here, ...
6046 (df_analyse): ... but here.
6048 * sbitmap.c (dump_sbitmap_file): New.
6049 (debug_sbitmap): Use it.
6051 * sbitmap.h (dump_sbitmap_file): Add prototype.
6053 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
6055 * df.c (df_insn_modify): Grow the UID table if necessary, rather
6056 than assume all emits go through df_insns_modify.
6058 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
6060 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
6061 increase REG_N_REFS (like flow does), so that regclass doesn't
6062 think a reg is useless, and thus, not calculate a class, when it
6065 2001-01-28 Daniel Berlin <dberlin@redhat.com>
6067 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
6070 2002-07-15 Jakub Jelinek <jakub@redhat.com>
6073 * config/i386/i386.c (const_int_1_31_operand): New.
6074 * config/i386/i386.h (PREDICATE_CODES): Add it.
6075 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
6076 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
6077 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
6079 2002-07-14 Alan Modra <amodra@bigpond.net.au>
6082 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
6083 (floatunssidf2): Likewise.
6084 (floatsidf_ppc64): New insn_and_split.
6085 (floatunssidf_ppc64): Likewise.
6087 2002-07-14 Andreas Jaeger <aj@suse.de>
6089 * config.gcc (sh64): Remove unused
6090 target_requires_64bit_host_wide_int.
6092 2002-07-12 Roger Sayle <roger@eyesopen.com>
6094 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
6095 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
6096 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
6097 whether clear_by_pieces should be used to clear storage.
6098 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
6100 * doc/tm.texi: Document these two new target macros.
6102 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
6104 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
6105 the scratch register.
6106 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
6107 of it, forbid reload to use it.
6109 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
6111 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
6112 usage on 64-bit hosts, return value was truncated to 32 bits.
6114 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
6116 * simplify-rtx.c (simplify_subreg): Handle floating point
6117 CONST_DOUBLEs. When an integer subreg of a smaller mode than
6118 the element mode is requested, compute a subreg with an
6119 integer mode of the same size as the element mode first.
6121 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
6123 * combine.c (try_combine): When converting a paradoxical subreg
6124 to an extension, take LOAD_EXTEND_OP into account.
6126 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6128 * config.gcc (mips-sgi-irix6*o32): New configuration.
6130 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
6132 * configure: Regenerate.
6134 * config/mips/iris6-o32-as.h: New file.
6135 * config/mips/iris6-o32.h: New file.
6137 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
6139 (HAVE_AS_SHF_MERGE): Undefine.
6141 * config/mips/t-iris5-as: New file.
6142 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
6144 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
6145 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
6146 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
6147 dp-bit.c, fp-bit.c): Move ...
6148 * config/mips/t-iris5-6: ... here.
6149 New file, shared by IRIX 5 and IRIX 6.
6150 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
6151 mips-sgi-irix5*): Use it.
6153 * config/mips/iris6.h: Remove duplicate comment.
6155 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
6156 !TARGET_IRIX6]: Define.
6157 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
6159 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
6161 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6163 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
6164 and delete code to force constant to register.
6165 * pa-protos.h (adddi3_operand): Add prototype.
6166 * pa.c (adddi3_operand): New function.
6168 2002-07-11 Roger Sayle <roger@eyesopen.com>
6170 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
6171 non-ANSI builtin functions.
6173 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
6175 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
6176 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
6177 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
6178 (gen_const_vector_0): Use it.
6180 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6182 * pa.md (adddi3): For 32-bit targets, force constants to a register
6183 if they don't fit in an 11-bit immediate. Change insn predicate to
6184 arith11_operand. Remove comment.
6185 * pa.c (cint_ok_for_move): Fix comment.
6186 (emit_move_sequence): Don't directly split DImode constants on 32-bit
6189 2002-07-11 Tim Josling <tej@melbpc.org.au>
6191 Remove front end hard coding from gengtype.c.
6194 (STAGESTUFF): add gtyp-gen.h
6195 (GTFILES): Remove front end specific files.
6196 (GTFILES_FILES_LANGS): New, from configure..
6197 (GTFILES_FILES_FILES): Likewise.
6198 (GTFILES_LANG_DIR_NAMES): Likewise.
6199 (GTFILES_SRCDIR): Likewise.
6200 (gtyp-gen.h): Build from configure information.
6201 (s-gtype): Remove command line parameters from gengtype.
6202 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
6203 (mostlyclean): Delete files generated by and for gengtype.
6205 * c-config-lang.in: New file.
6207 * configure.in (all_gtfiles_files_langs): New. Accumulate files
6209 (all_gtfiles_files_files): New. Accumulate language for each file
6211 (gtfiles): Pick up value for C.
6212 (srcdir): AC-SUBST this variable.
6213 (all_gtfiles_files_langs): AC-SUBST this variable.
6214 (all_gtfiles_files_files): AC-SUBST this variable.
6216 * configure: Regenerate.
6218 * gengtype-lex.l (parse_file): Make parameter const.
6220 * gengtype.c (toplevel): include gtyp-gen.h.
6221 (BASE_FILE_<language> unnamed enum): Delete.
6222 (lang_names): Delete (replaced by gtyp-gen.h)
6223 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
6225 (NUM_GT_FILES): New.
6226 (NUM_LANG_FILES): New.
6228 (NUM_BASE_FILES): Change calculation.
6229 (open_base_files): Change prototype to avoid warning.
6230 (startswith): Delete.
6231 (get_file_basename): Iterate through generated language list not
6233 (get_base_file_bitmap): Use generated list of files and languages.
6234 (close_output_files): Add prototype to rmove warning.
6235 (main): Iterate through list of generated files from gtyp-gen.h
6236 rather than command line paramaters. Ignore duplicated file
6239 * gengtype.h (parse_file): Amend prototype for const parameter.
6241 * doc/sourcebuild.texi: Document gtfiles variable.
6243 * doc/gty.texi: Document changes to gtfiles variable for front
6246 * objc/config-lang.in (gtfiles): Add files needed for objc front
6249 2002-07-10 Roger Sayle <roger@eyesopen.com>
6252 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
6253 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
6255 2002-07-10 Roger Sayle <roger@eyesopen.com>
6256 Zack Weinberg <zack@codesourcery.com>
6258 * builtins.def: Make the argument types of abort and exit
6259 independent of the front-end.
6261 2002-07-11 Alan Modra <amodra@bigpond.net.au>
6263 * config/rs6000/linux64.h (ASM_SPEC): Define.
6265 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
6267 * config/rs6000/rs6000.c (emit_frame_save): New.
6268 (rs6000_frame_related): Replace reg2 before reg.
6269 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
6270 and eh_return registers.
6272 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
6274 Revert all patches for optimization of Complex .op. Real.
6275 * complex_part_zero_p: Remove
6276 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
6278 * expand_cmplxdiv_wide: Ditto.
6279 * expand_binop: Ditto.
6281 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
6283 * config/avr/avr.md: Fix two 0x80000000 constants to make them
6284 negative also on 64-bit hosts.
6286 Default to -fno-reorder-blocks when optimizing for size.
6287 * config/avr/avr-protos.h (avr_optimization_options): Declare.
6288 * config/avr/avr.c (avr_optimization_options): New function.
6289 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
6291 Optimize returning from simple functions.
6292 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
6293 * config/avr/avr.c (avr_simple_epilogue): New function.
6294 * config/avr/avr.md (return): New insn.
6296 2002-07-10 Douglas B Rupp <rupp@gnat.com>
6298 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
6299 HAS_INIT_SECTION to protection.
6301 2002-07-10 Mark Mitchell <mark@codesourcery.com>
6303 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
6306 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
6308 * combine.c (gen_lowpart_for_combine): Handle vector modes.
6309 Supply non-VOID mode to simplify_gen_subreg.
6311 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
6313 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
6315 2002-07-10 Jeffrey A Law <law@redhat.com>
6317 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
6320 * mn10200.c (expand_epilogue): Fix test to determine which scratch
6323 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
6325 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
6327 If simplify_gen_subreg fails, try next equivalent.
6329 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
6331 * diagnostic.h: #include location.h
6332 (location_t): Move definition to..
6333 * location.h: ... here. New file.
6334 * tree.h: #include location.h
6335 (DECL_SOURCE_LOCATION): New macro.
6336 (DECL_SOURCE_FILE): Use.
6337 (DECL_SOURCE_LINE): Likewise.
6338 (struct tree_decl): REplace filename and linenum with locus.
6339 * Makefile.in (TREE_H): add location.h
6340 (diagnostic.o): Depends on gt-location.h
6341 (gt-location.h): Depends on s-gtype
6343 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
6345 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
6346 TARGET_OS_CPP_BUILTINS.
6347 * config/rs6000/aix31.h: Likewise.
6348 * config/rs6000/aix41.h: Likewise.
6349 * config/rs6000/aix43.h: Likewise.
6350 * config/rs6000/aix51.h: Likewise.
6351 * config/rs6000/beos.h: Likewise.
6352 * config/rs6000/darwin.h: Likewise.
6353 * config/rs6000/eabi.h: Likewise.
6354 * config/rs6000/eabisim.h: Likewise.
6355 * config/rs6000/linux.h: Likewise.
6356 * config/rs6000/linux64.h: Likewise.
6357 * config/rs6000/lynx.h: Likewise.
6358 * config/rs6000/mach.h: Likewise.
6359 * config/rs6000/rtems.h: Likewise.
6360 * config/rs6000/sysv4.h: Likewise.
6361 * config/rs6000/vxppc.h: Likewise.
6363 2002-07-09 Devang Patel <dpatel@apple.com>
6364 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
6365 Do not allow ObjC objects as a parameter type for Objective-C methods.
6366 My previous patch restricted 'struct' also.
6368 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
6370 * cpperror.c (cpp_error): Default to directive_line within
6372 * cppexp.c (cpp_interpret_integer): Only use traditional
6373 number semantics in directives.
6374 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
6375 (do_include_common): Similarly.
6376 * cpptrad.c (scan_out_logical_line): Implement accurate
6377 quoting of <> in #include.
6378 * doc/cpp.texi: Update.
6380 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
6381 J"orn Rennecke <joern.rennecke@superh.com>
6383 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
6384 * sh.md (attribute issues): Replace with:
6385 (attribute pipe_model). All users changed.
6386 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
6388 (function units sh5issue, sh5fds): New.
6389 (attribute is_mac_media): New.
6390 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
6391 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
6392 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
6393 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
6394 (call_media, call_value_media, sibcall_media): Likewise.
6395 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
6396 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
6397 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
6398 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
6399 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
6400 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
6401 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
6402 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
6403 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
6404 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
6405 (truncdfsf2_media): Likewise.
6406 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
6407 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
6409 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
6411 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
6412 * sh.c (general_extend_operand, inqhi_operand): New functions.
6413 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
6414 alternatives using 'N' modifier. Add type.
6415 (adddi3z_media): Likewise. Enable generator function generation.
6416 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
6417 exact predicates / constraints. Add type.
6418 (subsi3): Allow 0 for SHMEDIA.
6419 (udivsi3_i4_media): Use match_operand for input values
6420 rather than hard registers.
6421 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
6422 unnecessarily through hard registers. Keep copies of pseudo
6423 registers outside of the libcall sequence.
6424 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
6425 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
6426 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
6427 (extendhidi2, extendqidi2): Likewise.
6428 (andsi3_compact): Name.
6429 (andcdi3): Enable generator function generation.
6430 (zero_extendhisi2, zero_extendqisi2): Rename to
6431 (zero_extendhisi2_compact, zero_extendqisi2_compact).
6432 (extendhisi2, extendqisi2): Rename to
6433 (extendhisi2_compact, extendqisi2_compact).
6434 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
6435 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
6436 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
6437 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
6438 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
6439 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
6440 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
6441 (shmedia32_initialize_trampoline_big): Likewise.
6442 (shmedia32_initialize_trampoline_little): Likewise.
6443 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
6444 (negdi2): Remove spurious T clobber.
6445 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
6446 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
6447 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
6448 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
6449 (ic_invalidate_line_media): Write back data cache before invalidating
6450 instruction cache. Add type.
6451 (movsf_media): Sign-extend when the destination is a general
6452 purpose register. Add type.
6453 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
6454 (casesi_worker_0+1): Only increment ref count for proper label.
6455 (casesi_worker_0+2): Likewise.
6457 2002-07-09 Mark Mitchell <mark@codesourcery.com>
6459 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
6461 2002-07-09 Steve Ellcey <sje@cup.hp.com>
6463 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
6464 from Pmode to ptr_mode.
6465 (get_exception_pointer): Ditto.
6466 (connect_post_landing_pads): Ditto.
6467 (dw2_build_landing_pads): Ditto.
6469 2002-07-08 Steve Ellcey <sje@cup.hp.com>
6470 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
6471 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
6472 (handle_pragma_redefine_extname): Change to use new function.
6474 2002-07-08 Roger Sayle <roger@eyesopen.com>
6476 * combine.c (combine_simplify_rtx): Add an explicit cast
6477 to avoid signed/unsigned comparison warning.
6478 (simplify_if_then_else): Likewise.
6479 (extended_count): Likewise.
6480 (simplify_shift_const): Likewise.
6481 (simplify_comparison): Likewise.
6483 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
6485 * config/mips/mips.md: Add imadd type. Update scheduler description
6486 to use imadd as well as imul.
6487 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
6488 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
6489 (*mul_sub_si): Likewise for first alternative. Change second
6490 alternative from imul to multi.
6492 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
6494 * c-common.c (c_common_post_options): Update prototype;
6495 don't init backends if preprocessing only.
6496 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
6497 * langhooks.h (struct lang_hooks): Update post_options to
6499 * toplev.c (parse_options_and_default_flags, do_compile,
6500 lang_independent_init): Update prototypes. Allow the
6501 front end to specify that there is no need to initialize
6503 (general_init): Move call to hex_init here...
6504 (toplev_main): ...from here. Pass flag for back end init
6507 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
6509 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
6510 (PREDICATE_CODES): Add entries for equality_comparison_operator,
6511 greater_comparison_operator and less_comparison_operator.
6512 * sh.c (print_operand): Add '\'' code. Make 'o' handle
6514 (equality_comparison_operator): New function.
6515 (greater_comparison_operator, less_comparison_operator): Likewise.
6516 * sh.md (beq_media_i): Disable generator function generation.
6517 Use match_operator to handle a whole class of comparisons. Add
6518 modifier in output template to provide branch prediction. Add type.
6519 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
6520 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
6521 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
6522 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
6524 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
6526 Emit MMIX function prologue and epilogue as rtl.
6527 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
6528 not unprototyped get_hard_reg_initial_val.
6529 ("call_value", "nonlocal_goto_receiver"): Ditto.
6530 ("return"): Make define_expand. Move real insn to...
6531 ("*expanded_return"): New pattern.
6532 ("prologue", "epilogue"): New define_expands.
6533 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
6534 (struct machine_function): New member in_prologue.
6535 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
6536 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
6537 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
6538 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
6539 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
6540 (LOCAL_REGNO): Define. Adjust comment.
6541 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
6542 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
6544 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
6546 (mmix_target_asm_function_prologue): Make static. Just mark that
6547 the prologue is being emitted. Move guts to...
6548 (mmix_expand_prologue): New function. Adjust for emitting
6549 prologue as rtl. For sizes, use HOST_WIDE_INT only.
6550 (mmix_target_asm_function_epilogue): Make static. Simply emit a
6552 (mmix_expand_epilogue): New function. Adjust for emitting
6553 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
6554 (mmix_target_asm_function_end_prologue): Mark that the prologue
6556 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
6557 (mmix_conditional_register_usage): Improve comments.
6558 (mmix_local_regno): New function.
6559 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
6560 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
6561 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
6562 (mmix_get_hard_reg_initial_val): Ditto.
6564 2002-07-06 Andreas Jaeger <aj@suse.de>
6566 * toplev.c (set_fast_math_flags): Don't use ISO C style function
6568 * gengtype.c (open_base_files): Likewise.
6569 (close_output_files): Likewise.
6570 * tracer.c (find_best_predecessor): Likewise.
6571 (find_best_successor): Likewise.
6572 (ignore_bb_p): Likewise.
6574 2002-07-05 Roger Sayle <roger@eyesopen.com>
6577 * builtin-attrs.def: Define new attribute lists for use in
6579 * builtins.def [DEF_BUILTIN]: Modify to take an additional
6580 ATTRS argument, an enumerated value defined in builtin-attrs.def
6581 that represents the attribute list for the builtins. Modify
6582 all builtin functions to pass an appropriate attribute list.
6583 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
6584 their required noreturn attributes.
6585 * tree.h (enum_builtin_function): Ignore the additional parameter
6587 * builtins.c (built_in_names): Likewise.
6588 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
6589 argument with a tree representing the functions attribute list.
6590 Pass this "attrs" argument to builtin_function. No longer handle
6591 the noreturn_p processing manually.
6592 (built_in_attributes): Move the definitions from builtin-attrs.def
6593 before c_common_nodes_and_builtins.
6594 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
6595 DEF_BUILTIN, passing it to both builtin_function and the changed
6598 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
6599 __builtin__exit and __builtin__Exit.
6601 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
6603 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
6604 QI mode registers in soft registers.
6605 ("zero_extendqihi2"): Do not take into account soft registers
6606 for register allocation (use '*' constraint).
6608 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
6610 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
6612 ("*ashrsi3"): Likewise.
6613 ("*lshrsi3"): Likewise.
6615 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
6617 * genautomata.c (output_max_insn_queue_index_def): Take latencies
6620 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
6622 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
6623 address computation and memory moves.
6625 2002-07-03 Mark Mitchell <mark@codesourcery.com>
6628 * dwarfout.c (output_reg_number): Fix warning message.
6629 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
6632 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6634 * gcc/gcc.c (asm_debug): Move initialization ...
6635 (init_spec): ... here.
6637 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
6639 * c-parse.in (extdef): Append ';'.
6640 (old_style_parm_decls): Append ';'.
6642 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6644 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
6645 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
6646 to gcc_cv_as_gstabs_flag.
6647 * configure: Rebuilt.
6649 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
6651 * ggc.h (ggc_add_root): Document as obsolete.
6653 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
6655 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
6656 (mshflo_w): Likewise.
6658 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
6660 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
6661 vector mode subregs of constants to finding integer mode
6662 subregs of constants.
6663 * cse.c (cse_insn): Use simplify_gen_subreg.
6664 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
6665 From a vector mode expression of different size than the
6668 2002-07-03 Eric Christopher <echristo@redhat.com>
6670 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
6671 * config/mips/mips.h: Remove deprecated -m<processor> options
6672 and cc1_cpu_spec associated.
6673 (CONSTANT_ADDRESS_P): Fix last patch.
6674 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
6675 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
6678 2002-07-03 Stan Shebs <shebs@apple.com>
6680 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
6681 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
6682 (CPP_SPEC): Remove insertion of APPLE_CC definition.
6684 2002-07-03 Roger Sayle <roger@eyesopen.com>
6686 * combine.c (struct_undo): Change types of recorded substitutions
6687 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
6688 (do_SUBST_INT): Change types of the substitution from unsigned int
6689 to int, to avoid compilation warning from SUBST_INT's only caller.
6691 (make_extraction): Add cast to avoid compilation warning.
6692 (force_to_mode): Remove cast to avoid compilation warning.
6694 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
6695 Jeff Law <law@redhat.com>
6697 * i386.md (length_immediate attribute): Fix typo.
6698 (length_address attribute): Likewise.
6699 (modrm attribute): Set it to 0 for immediate call instructions.
6700 (jcc_1 pattern): Set modrm attribute to 0.
6701 (jcc_2 pattern ): Likewise.
6702 (jump pattern): Likewise.
6703 (doloop_end_internal pattern): Explicitly set length.
6704 (leave pattern): Fix typo.
6705 (leave_rex64 pattern): Likewise.
6707 2002-07-03 David Edelsohn <edelsohn@gnu.org>
6709 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
6710 in FPR as preference.
6712 (floatdidf2, fix_truncdfdi2): Same.
6713 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
6715 (floatsitf2, fix_trunctfsi2): SImode in GPR.
6716 (ctrdi): Remove FPR alternative and splitter.
6718 2002-07-03 Will Cohen <wcohen@redhat.com>
6720 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
6722 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
6724 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
6725 than UNITS_PER_WORD, unless this is little endian and the first unit
6726 in this word. Let extract_bit_field decide how to load an element.
6727 Force arguments to matching mode.
6728 (expand_vector_unop): Likewise.
6730 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
6731 consist of word_mode elements.
6732 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
6733 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
6734 (build_unary_op): Allow vector types for BIT_NOT_EPR.
6735 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
6737 * optabs.c (expand_vector_binop): Try to perform operation in
6738 smaller vector modes with same inner size. Add handling of AND, IOR
6739 and XOR. Reject expansion to inner-mode sized scalars when using
6740 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
6741 (expand_vector_unop): Try to perform operation in smaller vector
6742 modes with same inner size. Add handling of one's complement.
6743 When there is no vector negate operation, try a vector subtract
6744 operation. Use simplify_gen_subreg on constants.
6745 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
6746 constants into smaller vectors with same inner mode, and to
6747 integer CONST_DOUBLEs.
6749 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6751 * c-parse.in (parsing_iso_function_signature): New variable.
6752 (extdef_1): New, copied from...
6753 (extdef): ... here. Reset parsing_iso_function_signature.
6754 (old_style_parm_decls): Reset parsing_iso_function_signature.
6755 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
6756 Warn about ISO C style function definitions.
6757 (nested_function, notype_nested_function): Reset
6758 parsing_iso_function_signature.
6759 (parmlist_2): Set parsing_iso_function_signature.
6761 * doc/invoke.texi (-Wtraditional): Document new behavior.
6763 2002-07-02 Chris Demetriou <cgd@broadcom.com>
6765 * config.gcc (mips*el-*-*): Use tm_defines to set
6766 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
6767 * config/mips/little.h: Remove.
6769 2002-07-02 Devang Patel <dpatel@apple.com>
6771 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
6772 object as parameter. Prevent something like 'NSObject' to be
6773 used as the type for a method argument.
6775 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
6777 * cpptrad.c: Update comment.
6779 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
6781 * doc/cpp.texi: Update for traditional preprocessing changes.
6782 * goc/cppopts.texi: Similarly.
6784 2002-07-02 Ziemowit Laski <zlaski@apple.com>
6786 * c-parse.in (designator): Enable designated initializers if ObjC.
6787 (objcmessageexpr): Remove references to objc_receiver_context.
6788 * objc/objc-act.h (objc_receiver_context): Remove decl.
6789 * objc/objc-act.c (objc_receiver_context): Remove.
6790 (lookup_objc_ivar): Test objc_method_context instead of
6791 objc_receiver_context.
6793 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
6795 * sh.c (print_operand, case 'N'): Allow zero vector.
6796 (arith_reg_or_0_operand): Likewise.
6797 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
6798 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
6799 IOR, XOR, PLUS and SET and take their respective constant
6800 ranges into account.
6801 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
6802 * sh.md (subdi3, subdi3_media): Allow zero operand.
6803 (movv8qi_i+3): Only vector that is not split is the zero vector.
6804 Fix operand 3 to simplify_subreg.
6805 (movv2si_i): Split alternative 1.
6806 (mshfhi_l_di_rev+1): New splitter.
6808 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
6810 PR preprocessor/7029
6811 * cppinit.c (cpp_handle_option): Suppress warnings with an
6812 implicit "-w" for "-M" and "-MM".
6813 * doc/cppopts.texi: Update.
6815 2002-07-01 Roger Sayle <roger@eyesopen.com>
6817 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
6818 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
6821 2002-07-02 Alan Modra <amodra@bigpond.net.au>
6823 * README.Portability: Fix typos.
6825 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
6828 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
6829 of indirections for register inside sign-extended mem part.
6831 2002-07-01 Roger Sayle <roger@eyesopen.com>
6833 * tree.h: Modify builtin_function interface to take an extra
6834 argument ATTRS, which is a tree representing an attribute list.
6836 * c-decl.c (builtin_function): Accept additional parameter.
6837 * objc/objc-act.c (builtin_function): Likewise.
6838 * f/com.c (builtin_function): Likewise.
6839 * java/decl.c (builtin_function): Likewise.
6840 * ada/utils.c (builtin_function): Likewise.
6841 * cp/decl.c (builtin_function): Likewise.
6842 (builtin_function_1): Likewise.
6844 * c-common.c (c_common_nodes_and_builtins): Pass an additional
6845 NULL_TREE argument to builtin_function. (builtin_function_2):
6847 * cp/call.c (build_java_interface_fn_ref): Likewise.
6848 * objc/objc-act.c (synth_module_prologue): Likewise.
6849 * java/decl.c (java_init_decl_processing): Likewise.
6850 * f/com.c (ffe_com_init_0): Likewise.
6852 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
6853 NULL_TREE argument to builtin_function.
6854 * config/arm/arm.c (def_builtin): Likewise.
6855 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
6856 * config/i386/i386.c (def_builtin): Likewise.
6857 * config/ia64/ia64.c (def_builtin): Likewise.
6858 * config/rs6000/rs6000.c (def_builtin): Likewise.
6860 2002-07-01 Zack Weinberg <zack@codesourcery.com>
6862 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
6863 * config/mips/t-isa3264: Likewise.
6864 * config/mmix/t-mmix: Likewise.
6866 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
6868 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
6870 2002-07-01 Roger Sayle <roger@eyesopen.com>
6873 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
6874 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
6877 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
6879 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
6881 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
6883 * README.Portability (Function prototypes): Give an example of
6884 declaring and defining a function with no arguments.
6886 * README.Portability (Function prototypes): Document new
6887 variable-argument function macros.
6889 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
6891 * sh.c (langhooks.h): Include.
6892 (sh_init_builtins, sh_media_init_builtins): New functions.
6893 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
6894 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
6895 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
6896 (builtin_description): New struct tag.
6897 (signature_args, bdesc): New arrays.
6898 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
6899 (print_operand): Add 'N' modifier.
6900 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
6901 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
6902 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
6903 (CONST_COSTS): Add special case for SHmedia AND.
6904 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
6905 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
6906 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
6907 target_operand can also be const or unspec.
6908 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
6909 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
6910 (attribute type): Add new types.
6911 (anddi3): Add splitter.
6912 (movdi_const_16bit+1): Add code to handle vector constants and
6913 bitmasks efficiently.
6914 (shori_media): Have generator function made.
6915 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
6916 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
6917 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
6918 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
6919 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
6920 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
6921 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
6922 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
6923 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
6924 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
6925 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
6926 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
6927 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
6928 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
6929 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
6930 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
6931 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
6932 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
6933 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
6936 (fpu_switch+1, fpu_switch+2): Remove constraint.
6938 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
6940 * tree.c (build_function_type_list): Update function comment.
6941 Rename first argument to return_type.
6943 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
6945 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
6946 tradcif.y and related files.
6948 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
6950 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
6952 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6954 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
6956 2002-06-30 Devang Patel <dpatel@apple.com>
6958 * objc/objc-act.c (finish_file): Avoid finish_objc() if
6961 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
6962 Frank Ch. Eigler <fche@redhat.com>
6963 Matthew Green <mrg@redhat.com>
6964 Richard Henderson <rtl@redhat.com>
6965 Dave Hudson <dave.hudson@ubicom.com>
6966 Jeff Johnston <jjohnstn@redhat.com>
6967 Alan Lehotsky <apl@alum.mit.edu>
6968 Bernd Schmidt <bernds@redhat.com>
6969 Graham Stott <grahams@redhat.com>
6971 * doc/extend.texi: Add ip2k port to description of attribute
6973 * doc/install.texi (Specific): Add ip2k description.
6974 * doc/install-old.texi (Configurations): Add ip2k to possible
6976 * doc/md.texi: Document ip2k constraints.
6977 * config/ip2k/crt0.S: New file.
6978 * config/ip2k/ip2k-protos.h: New file.
6979 * config/ip2k/ip2k.c: New file.
6980 * config/ip2k/ip2k.h: New file.
6981 * config/ip2k/ip2k.md: New file.
6982 * config/ip2k/libgcc.S: New file.
6983 * config/ip2k/t-ip2k: New file.
6985 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
6987 * config/mmix/mmix.md ("return"): New pattern.
6988 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
6989 (TARGET_USE_RETURN_INSN): New macros.
6990 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
6991 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
6992 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
6993 (MMIX_POP_ARGUMENT): New macro.
6994 (mmix_target_asm_function_prologue): When no epilogue is executed,
6995 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
6996 (mmix_print_operand) <case '.'>: New case.
6997 (mmix_print_operand_punct_valid_p): Match '.'.
6998 (mmix_use_simple_return): New function.
6999 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
7000 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
7001 -msingle-exit, -mno-single-exit.
7002 (MMIX Options): Ditto.
7004 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
7006 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
7008 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7010 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
7012 2002-06-30 Alan Modra <amodra@bigpond.net.au>
7014 * unroll.c (loop_iterations): Handle EQ loops.
7016 2002-06-29 David Edelsohn <edelsohn@gnu.org>
7018 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
7019 constraint in define_expand, not splitter.
7022 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
7024 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
7025 build_function_type_list instead of build_function_type.
7027 * config/ia64/ia64.c (ia64_init_builtins): Same.
7029 * config/alpha/alpha.c (alpha_init_builtins): Same.
7031 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
7033 * config/arm/arm.c (arm_init_builtins): Same.
7035 * tree.h: Add build_function_type_list prototype.
7037 * tree.c (build_function_type_list): New.
7039 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7041 * collect2.c (scan_prog_file): Fix typo in message.
7043 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
7045 * fold-cont.c: Remove unused CHARMASK.
7047 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
7049 PR preprocessor/7150
7050 * cppmain.c (scan_translation_unit_trad): Simplify.
7051 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
7053 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
7055 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
7056 Don't use CPP_PREDEFINES.
7057 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
7058 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
7059 * config/i386/djgpp.h, config/i386/i386-coff.h,
7060 config/i386/i386-interix.h, config/i386/i386-interix3.h,
7061 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
7062 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
7063 config/i386/uwin.h: Similarly.
7065 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7067 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
7068 flag_inline_trees to enable inlining.
7070 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
7072 * configure.in (gcc_gxx_include_dir): Change to match versioned
7073 C++ headers if --enable-version-specific-runtime-libs is used.
7074 * configure: Regenerate.
7076 2002-06-28 Jan Hubicka <jh@suse.cz>
7078 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
7080 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
7082 * combine.c (combine_simplify_rtx): Pass the mode of the
7083 shift count, not the shift operation when trying to simplify
7084 a shift on a SHIFT_COUNT_TRUNCATED target.
7086 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
7088 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
7089 avoid the auto increment addressing modes.
7090 ("*subsi3"): Likewise.
7091 (split for add/sub on address): For 68HC12 push the value on
7092 the stack and do the operation with a pop.
7094 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
7096 * cpplib.c (_cpp_handle_directive): Move #define-specific
7097 code to the #define handler...
7098 (do_define): ...here.
7099 (lex_macro_node): No longer a need to check for comments here.
7101 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
7103 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
7104 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
7106 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
7107 do not reorder basic blocks at the end when optimizing for size.
7109 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
7111 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
7112 (m68hc11_make_autoinc_notes): New function.
7113 (m68hc11_split_move): Be very cautious when spliting a move with
7114 auto increment/decrement modes because this may result in incompatible
7115 directions; add REG_INC notes to the resulting insn for CSE reg.
7117 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
7119 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
7120 can be a valid address.
7122 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
7124 * config/rs6000/rs6000.c: Remove unusued variables from last
7127 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
7130 * config/rs6000/rs6000.c (rs6000_override_options): Move
7131 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
7133 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
7135 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
7136 lvx/stv/dst builtins...
7137 (altivec_expand_ld_builtin): ...to here.
7138 (altivec_expand_st_builtin): ...here.
7139 (altivec_expand_dst_builtin): ...and here (respectively).
7141 2002-06-28 Bob Wilson <bob.wilson@acm.org>
7143 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
7145 2001-06-08 Bernd Schmidt <bernds@redhat.com>
7147 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
7149 * recog.c (general_operand, register_operand): Disallow them.
7151 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
7153 PR preprocessor/7138
7154 * cpplib.c (_cpp_handle_directive): Do traditional
7155 preparation after setting state.angled_headers.
7156 * cpptrad.c (scan_out_logical_line): Fix potential
7159 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
7161 * config/rs6000/rs6000.c (rs6000_override_options): Move
7162 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
7164 2002-06-27 Bob Wilson <bob.wilson@acm.org>
7166 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
7167 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
7168 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
7170 2002-06-27 Roger Sayle <roger@eyesopen.com>
7172 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
7173 * config/stormy16/stormy16.h: Likewise.
7175 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
7178 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7180 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
7181 Hitachi entry. Make punctuation more consistent.
7183 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
7185 * doc/install.texi: Change ` bit' to `-bit'.
7186 * doc/md.texi: Change `-bits' to `-bit'.
7187 * doc/tm.texi: Change `-bits' to ` bits'.
7189 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
7191 * gcse.c (hoist_code): Rewrite to only get list of dominated
7192 blocks once per BB. Also fix reversed test (by removing need for
7195 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
7197 * cpphash.h (_cpp_set_trad_context): Remove.
7198 * cpplib.c (prepare_directive_trad): Do nothing for #define.
7199 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
7200 * cpptrad.c: Update comments.
7201 (_cpp_read_logical_line_trad): Let scan_logical_line handle
7202 updating the current context.
7203 (scan_logical_line): Update the current context.
7204 (_cpp_create_trad_definition): Similarly.
7205 (_cpp_set_trad_context): Remove.
7207 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
7209 PR preprocessor/7070
7210 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
7212 2002-06-26 Bob Wilson <bob.wilson@acm.org>
7214 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
7215 config/xtensa/xtensa.c (xtensa_return_addr): New function.
7216 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
7217 config/xtensa/xtensa.md (fix_return_addr): New pattern.
7219 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7221 * mips.c (coprocessor_operand, coprocessor2_operand,
7222 symbolic_operand): Move prototypes from here...
7223 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
7224 symbolic_operand): ...to here.
7226 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7228 * config/sh/crt1.asm: remove _stack label definition
7231 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7233 * varasm.c: Include real.h before output.h.
7235 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
7237 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
7238 check for TARGET_ALTIVEC.
7240 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
7242 * config.gcc (vax-*-vms*): Make obselete.
7244 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7246 * gcc.c (warn_std): Delete.
7248 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
7250 * doc/extend.texi: Fix formatting of last checkin.
7252 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7254 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
7255 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
7257 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
7259 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7260 discrepancies from motorola's documentation.
7262 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
7264 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
7265 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
7267 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
7268 produce a 32 bit result before normalization, then normalize with a
7269 left shift. Compute approximative error of 2nd reciprocal
7270 approximation in 2's complement. Fix mask generation from upper
7271 longword of second divide stage result.
7272 For large divisor, fix shift count used to truncate first stage
7273 divide result; make decision if to adjust upwards based on comparison
7274 of higher parts of normalized values.
7275 (udivdi): Likewise. Undo normalization of result for large divisor
7278 2002-06-25 David S. Miller <davem@redhat.com>
7280 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
7282 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
7284 * cpplib.c (do_include_common): Revert to correct line number
7286 * cpptrad.c (scan_out_logical_line): Treat null directive as
7287 white space. Invlidate MI optimization for non-whitespace
7288 text outside a directive.
7290 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7292 * Makefile.in (SHELL): Set to @SHELL@.
7293 * fixinc/Makefile.in (SHELL): Likewise.
7295 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
7296 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
7299 2002-06-24 Jeff Law <law@redhat.com>
7301 * flow.c (propagate_one_insn): When removing an insn
7302 with a REG_LIBCALL note but not the entire libcall sequence,
7303 delete the associated REG_RETVAL note.
7305 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
7307 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
7308 (udivsi3): Likewise. Rewrite SH1 implementation.
7309 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
7310 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
7311 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
7312 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
7313 (_moddi3): Likewise.
7315 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
7317 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
7318 arguments into account for stack_regs.
7320 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
7322 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
7325 2002-06-24 Art Haas <ahaas@neosoft.com>
7327 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
7328 * doc/tm.texi (Frame Layout): Likewise.
7330 2002-06-20 Steve Ellcey <sje@cup.hp.com>
7332 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
7333 Set float_format to i128.
7335 2002-06-24 David S. Miller <davem@redhat.com>
7337 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
7338 32-bit ABI libfuncs to NULL.
7340 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
7341 strings instead of quoted strings for code blocks.
7343 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
7344 optabs if op1 is const0_rtx.
7346 * Makefile.in (GTFILES): Add basic-block.h
7347 * basic-block.h (label_value_list, tail_recursion_label_list):
7350 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
7352 * cpptrad.c (scan_out_logical_line): Check recursing only when
7353 we know we have a macro invocation in the function-like case.
7354 Only call _cpp_handle_directive if we know we have a good
7355 directive, or we want to reject a bad directive.
7357 2002-06-24 Alan Modra <amodra@bigpond.net.au>
7359 * doloop.c (doloop_valid_p): Correct comment.
7360 (doloop_modify_runtime <abs_inc != 1>): Simplify.
7361 (doloop_modify_runtime <do-while>): Don't emit code when NE.
7363 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
7365 * config.gcc: Add support for ip2k.
7367 2002-06-23 Jan Hubicka <jh@suse.cz>
7368 Jeff Law <law@redhat.com>
7370 * function.h (struct emit_status): Clarify potential contents
7371 of regno_reg_rtx array.
7372 * integrate.c (copy_rtx_and_substitute): Update comments. Make
7373 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
7375 * reg-stack.c (convert_regs_exit): Push the registers to stack in
7378 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
7381 * function.c (assign_stack_temp_for_type): Do not return
7382 the same MEM rtx for multiple uses of a stack slot.
7384 2002-06-22 David S. Miller <davem@redhat.com>
7386 PR target/6841 target/6770 target/6719
7387 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
7388 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
7389 GENERAL_OR_EXTRA_FP_REGS.
7391 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
7393 * cpptrad.c (struct fun_macro): Add line number.
7394 (scan_out_logical_line): Set it, and use it to report unterminated
7397 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7399 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
7400 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
7401 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
7402 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
7403 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
7404 REGEXP_ONEOF, check_name): Const-ify.
7406 2002-06-21 Matt Thomas <matt@3am-software.com>
7408 * config/vax/vax.c (vax_output_function_prologue): Use
7409 REGISTER_PREFIX. Fix some indentation.
7410 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
7411 (VAX_ISTREAM_SYNC): Define.
7412 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
7413 i-stream sync to the end.
7414 (REGISTER_PREFIX): Define as "".
7415 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
7417 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
7419 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
7422 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7424 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
7425 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
7427 2002-06-21 Matt Thomas <matt@3am-software.com>
7429 * config/vax/netbsd.h: Adjust a comment.
7430 (TARGET_DEFAULT): Redefine as 0.
7432 2002-06-21 Richard Henderson <rth@redhat.com>
7434 * bb-reorder.c (make_reorder_chain_1): Search harder for the
7435 vax casesi fallthru edge.
7436 * cfglayout.c (cleanup_unconditional_jumps): Use
7437 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
7438 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
7439 block after ADDR_VEC.
7441 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7443 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
7445 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
7447 * cpperror.c (cpp_error): For traditional CPP, default to
7448 diagnostics on pfile->line.
7449 * cpplib.c (prepare_directive_trad): Set line number for
7450 diagnostics for #define too.
7451 * cpptrad.c (skip_whitespace): Skip comments properly.
7452 (_cpp_expansions_different_trad): Initialize quote2.
7454 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
7456 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
7457 * config/mmix/mmix.h: Ditto.
7458 * config/mmix/mmix-protos.h: Ditto.
7459 * config/mmix/mmix.c: Ditto. Fix typo in comment.
7460 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
7461 comment. Comment extra CC modes.
7463 2002-06-20 Jan Hubicka <jh@suse.cz>
7465 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
7466 (scope_to_insns_finalize): Do not call set_block_levels; handle
7468 (choose_inner_scope): New.
7469 * rtl.h (choose_inner_scope): Declare.
7471 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
7473 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
7475 * pa.c (pa_asm_output_mi_thunk): Likewise.
7476 (n_deferred_plabels): Change type to size_t.
7477 (output_deferred_plabels, output_call): Use size_t instead of int.
7479 2002-06-20 Richard Henderson <rth@redhat.com>
7482 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
7483 pattern and adjust constraints for coldfire.
7485 2002-06-20 Richard Henderson <rth@redhat.com>
7487 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
7489 2002-06-20 Chris Demetriou <cgd@broadcom.com>
7491 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
7493 2002-06-20 Chris Demetriou <cgd@broadcom.com>
7495 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
7497 2002-06-20 Stan Shebs <shebs@apple.com>
7499 * dominance.c: Include errors.h instead of error.h.
7501 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
7503 * cppexp.c (cpp_interpret_integer): Don't force traditional
7504 numbers to be unsigned.
7505 * cpplib.c (prepare_directive_trad): Set line number for
7507 * cpptrad.c (scan_out_logical_line): Continue scanning out
7509 * gcc.c (trad_capable_cpp): Use cc1 always.
7511 2002-06-20 Jeffrey Law <law@redhat.com>
7513 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
7514 elimination in leaf functions by default yet.
7516 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
7518 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
7520 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7522 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
7524 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
7525 Fixes PR other/6836.
7527 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
7528 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
7530 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
7532 * basic-block.h: Do not include et-forest.h
7533 (dominance_info): Declare as struct dominance-info.
7534 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
7536 * dominance.c (struct dominance_info): Define.
7537 (BB_NODE, SET_BB_NODE): New macros.
7538 (bb_hash_func, bb_eq_func): Kill.
7539 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
7540 nearest_common_dominator, dominated_by_p, recount_dominator,
7541 add_to_dominance_info, delete_from_dominance_info): update for new
7543 (get_dominated_by, redirect_immediate_dominators): Rewrite using
7545 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
7546 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
7549 * et-forest.h: Update copyright; revamp all function to operate on
7551 (et_forest_value): Kill.
7552 (et_forest_enumerate_sons, et_forest_node_value): New.
7553 * et-forest.c: Update copyright.
7554 * et-forest.h: Update copyright; revamp all function to operate on
7556 (et_forest_value): Kill.
7557 (et_forest_enumerate_sons, et_forest_node_value): New.
7559 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
7561 * basic-block.h: Inlude et-forest.h
7562 (basic_block_def): Kill dominator.
7563 (dominance_info): New type.
7564 (loops): Use dominace_info.
7565 (dominace handling functions): Take dominace_info as argument
7567 (create_preheader): Likewise.
7568 * cfg.c (entry_exit_blocks): Kill dominator.
7569 (dump_flow_info): Do not dump dominators.
7570 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
7572 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
7573 (flow_loops_pre_header_scan, make_forwarder_block,
7574 canonicale_loop_headers, flow_loops_find): Likewise.
7575 * dominance.c: Include error.h
7576 (idoms_to_doms): Kill.
7577 (bb_hash_func, bb_eq_func): New static functions.
7578 (debug_dominace_info): New global function.
7579 (calculate_dominance_info): Use new et forest structure.
7580 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
7581 get_dominated_by, redirect_immediate_dominators,
7582 nearest_common_dominator, dominated_by_p, verify_dominators,
7583 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
7584 delete_from_dominance_info): New global functions.
7585 * gcse.c (domnators): CHange to dominance_info.
7586 (alloc_hoist_mem): Do not alloc dominators
7587 (free_code_hoist_mem): Use free_dominance_info.
7588 (compute_code_hoist_data): Use dominance_info.
7589 (hoist_code): Likewise.
7590 * ifcvt.c (post_dominators): Likewise.
7591 (find_if_case_2, if_convert): Likewise.
7592 * predict.c (process_note_predictions, process_note_prediction,
7593 estimate-probability): Likewise.
7594 * sched-rgn.c (find_rgns, init_regions): Likewise.
7595 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
7596 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
7597 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
7598 find_evaluations, convert_to_ssa): Likewise.
7599 * ssa.h (compute_dominance_frontiers): Likewise.
7601 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
7603 * Makefile.in (et-forest.c): Add.
7604 * et-forest.c: New file.
7605 * at-forest.h: New file.
7607 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7609 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
7610 array size calculation.
7611 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
7614 * diagnostic.c (diagnostic_kind_text): Const-ify.
7615 * gengtype.c (lang_names): Likewise.
7617 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
7619 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
7621 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7623 * config/sol2.h: New file.
7624 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
7625 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
7626 (sparc-*-chorusos*): Likewise.
7627 (sparc-*-elf*): Likewise.
7628 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
7629 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
7630 (sparc-hal-solaris2*): Likewise.
7631 (sparc-*-solaris2*): Likewise.
7632 (sparclite-*-elf*): Likewise.
7633 (sparc86x-*-elf*): Likewise.
7634 (sparc64-*-elf*): Likewise.
7636 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
7638 (ASM_SPEC): Override config/sol2.h version for now.
7639 Removed obsolete GAS_REJECTS_MINUS_S variant.
7640 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
7641 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
7642 (TARGET_OS_CPP_BUILTINS): Likewise.
7644 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
7645 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
7647 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
7648 (ASM_CPU_SPEC): Define.
7649 (SUBTARGET_EXTRA_SPECS): Define.
7651 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
7652 in config/sparc/sol2.h.
7653 (ASM_SPEC): Moved to config/sol2.h.
7654 (CPP_CPU_SPEC): Simplified.
7655 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
7657 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
7658 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
7659 STARTFILE_ARCH64_SPEC.
7660 (STARTFILE_SPEC): Moved to config/sol2.h
7661 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
7662 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
7663 (LINK_ARCH64_SPEC): Simplified.
7664 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
7665 (LINK_SPEC): Moved to config/sol2.h
7667 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
7669 Use BITS_PER_WORD for size.
7670 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
7671 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
7672 (CPP_PREDEFINES): Removed OS-specific part handled by
7673 TARGET_OS_CPP_BUILTINS.
7674 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
7675 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
7676 (ASM_SPEC): Moved to config/sol2.h.
7677 (PREFERRED_DEBUGGING_TYPE): Likewise.
7678 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
7679 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
7680 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
7681 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
7683 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
7684 * config/i386/sol2gas.h: Removed.
7686 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
7688 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
7690 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
7692 * gcc.c-torture/execute/simd-1.c: New.
7694 * gcc.dg/simd-1.c: New.
7696 * doc/extend.texi (Vector Extensions): Document that we can
7697 specify simd types not specifically supported by the hardware.
7698 Document that simd types can be used as function arguments.
7699 Document that signness does make a difference in SIMD types.
7700 Misc cleanups and revisions to the vector extensions section.
7702 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
7705 * expr.c (vector_mode_valid_p): New.
7707 * expr.h: Add vector_mode_valid_p.
7709 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
7711 * c-common.c (type_for_mode): Always build vector nodes regardless
7712 of VECTOR_MODE_SUPPORTED_P.
7713 (handle_mode_attribute): Error if we can't emulate a nonexisting
7715 (handle_vector_size_attribute): Same.
7717 * optabs.c (expand_binop): Open-code vector operations.
7718 (expand_unop): Open-code vector unops.
7719 (expand_vector_binop): New.
7720 (expand_vector_unop): New.
7722 * c-typeck.c (build_binary_op): Allow vectors in binops.
7723 Allow vectors in conditional operatiors.
7724 (build_unary_op): Allow vectors in unary minus.
7726 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
7729 2002-05-20 Richard Henderson <rth@redhat.com>
7731 * c-common.c (c_common_get_alias_set): Correctly handle characters.
7732 Rearrange order of expressions; don't handle vectors here.
7733 * alias.c (get_alias_set): Let vectors match their components.
7735 2002-06-19 Chris Demetriou <cgd@broadcom.com>
7737 * config/mips/mips.c (mips_emit_prefetch): Use hints which
7738 match desired locality.
7740 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
7742 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
7743 (h8300_insert_attributes): New.
7745 2002-06-19 Akim Demaille <akim@epita.fr>
7747 * c-parse.in (initelt: identifier ':' initval): Add an empty
7748 action to fix a type clash.
7749 (aliasdecl, classdef): Add the missing closing `;'.
7751 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
7752 $$ = $1 type clashes.
7754 2002-06-19 Eric Christopher <echristo@redhat.com>
7756 * config/mips/mips.c (symbol_operand): New function.
7757 (mips_emit_prefetch): Ditto.
7758 * config/mips/mips-protos.h: Define.
7759 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
7760 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
7761 (LEGITIMIZE_ADDRESS): Ditto.
7762 * config/mips/mips.md (prefetch, prefetch_si_address,
7763 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
7765 2002-06-19 Eric Christopher <echristo@redhat.com>
7767 * config/fp-bit.h: Add unordered defines for gofast.
7769 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
7771 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
7772 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
7773 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
7774 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
7775 checking and without it.
7776 (decl_name, decl_mode_check_failed, regexp_name,
7777 regexp_mode_check_failed): New functions.
7778 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
7779 gen_presence_set, gen_absence_set, gen_automaton,
7780 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
7781 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
7782 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
7783 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
7784 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
7785 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
7786 (decl_hash, decl_eq_p): Use the macros.
7787 (find_decl): Ditto. Set up mode of work_decl.
7788 (process_excls, process_presence_absence, process_decls,
7789 check_automaton_usage, process_regexp, process_regexp_decls,
7790 check_usage, loop_in_regexp, check_loops_in_regexps,
7791 process_regexp_cycles, add_advance_cycle_insn_decl,
7792 initiate_states, initiate_excl_sets,
7793 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
7794 transform_2): Use the macros.
7795 (transform_3): Ditto. Check mode before making transformations of
7797 (regexp_transform_func, transform_insn_regexps,
7798 process_unit_to_form_the_same_automaton_unit_lists,
7799 form_the_same_automaton_unit_lists_from_regexp,
7800 form_the_same_automaton_unit_lists,
7801 process_seq_for_forming_states, process_alts_for_forming_states,
7802 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
7803 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
7804 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
7805 units_to_automata_heuristic_distr, create_ainsns,
7806 units_to_automata_distr, create_automata): Use the macros.
7807 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
7808 (longest_path_length, min_issue_delay_pass_states,
7809 output_dead_lock_vect, output_tables, output_insn_code_cases,
7810 output_internal_insn_latency_func, output_print_reservation_func,
7811 output_description, output_automaton_units, generate): Use the
7813 (make_insn_alts_attr): Ditto. Check case when there are not
7814 alternatives in the reservation.
7815 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
7816 make_bypass_attr, form_important_insn_automata_lists,
7817 expand_automata): Use the macros.
7819 2002-06-20 Tim Josling <tej@melbpc.org.au>
7821 * Makefile.in: Clean up code to check for misspecified languages
7822 in enable-languages.
7824 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
7826 * cpptrad.c (_cpp_replacement_text_len): initialize len.
7828 2002-06-19 Jason Merrill <jason@redhat.com>
7830 * Makefile.in (unstrap, restrap): New targets.
7831 (bootstrap): Mention restrap.
7833 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
7835 * except.c (ehl_free): Remove.
7837 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
7838 builtin_define and builtin_define_std.
7840 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
7842 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
7843 (sCOND): Restrict operand class so that gcc knows how to reload them.
7844 (bitfield_set): Merge two unnamed insn's using alternatives.
7845 (call_value): Remove constraint on unused uperand.
7846 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
7847 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
7849 * longlong.h (count_trailing_zeros): Escape newline and beautify.
7851 2002-06-19 Mark Mitchell <mark@codesourcery.com>
7853 * Makefile.in (QMTEST_DIR): Simplify definition.
7855 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
7857 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
7860 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
7862 * cpphash.h (struct cpp_reader): Make date and time strings.
7863 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
7864 _cpp_replacement_text_len): New.
7865 * cppinit.c (cpp_create_reader): Update.
7866 (init_builtins): Register appropriate builtins for -traditional-cpp.
7867 * cppmacro.c (new_number_token): Remove.
7868 (_cpp_builtin_macro_text): New.
7869 (builtin_macro): Use it.
7870 (cpp_macro_definition): Update to handle traditional macros.
7871 * cppmain.c (cb_line_change): Don't do column positioning for
7873 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
7875 (skip_whitespace): Fix.
7876 (maybe_start_funlike): Don't set state.parsing_args.
7877 (scan_out_logical_line): Remove duplicate error. Use lex_state
7878 rather than state.parsing_args.
7879 (push_replacement_text): Handle builtins.
7880 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
7882 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
7883 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7885 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
7886 attribute __always_inline__.
7888 2002-06-18 Bob Wilson <bob.wilson@acm.org>
7890 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
7891 when generating the call to _mcount.
7892 (NO_PROFILE_COUNTERS): Define.
7894 2002-06-18 Richard Henderson <rth@redhat.com>
7896 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
7899 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
7901 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
7902 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
7903 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
7904 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
7906 * sh-protos.h (sh_pr_interrupt): Declare.
7907 * sh.c (sh_pr_interrupt): New function.
7908 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
7909 (sh_hard_regno_rename_ok): Likewise.
7910 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
7912 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
7914 * rtl.def (DEFINE_AUTOMATON): Add description of new options
7915 `time' and `v'. Fix incorrect description of option `w'.
7917 * doc/md.texi: Ditto.
7919 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
7920 (gen_automata_option): Process the new options.
7921 (transform_2, transform_3): Initialize some variables.
7922 (initiate_automaton_gen): Use the new macros.
7924 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
7926 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
7927 (mips_set_return_address, mips_restore_gp): Declare.
7928 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
7929 (current_frame_info): Remove.
7930 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
7931 * config/mips/mips.c: Remove uses of current_frame_info.
7932 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
7933 (struct machine_function): Add 'frame' and 'insns_len'.
7934 (current_frame_info, zero_frame_info): Remove.
7935 (mips_restore_gp, mips_set_return_address): New.
7936 (mips_initial_elimination_offset): New.
7937 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
7938 (eh_return define_split): Use mips_set_return_address.
7940 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
7942 * cpplib.c (dtable): Update.
7943 (end_directive): Decrement expansion prevention count.
7944 Clear state.in_expression.
7945 (prepare_directive_trad): Set state.in_expression.
7946 Increment expansion prevention count.
7947 * cpptrad.c (enum ls): New.
7948 (_cpp_overlay_buffer): Set overlaid_buffer.
7949 (_cpp_remove_overlay): Use overlaid_buffer.
7950 (_cpp_read_logcial_line_trad): Update buffer when it might
7952 (scan_out_logical_line): Handle state transitions for assertions
7953 and defined() in #if, and for funlike invocations including the
7954 directive case. Handle '<' and '>' as a quote mechanism in
7955 #include. Warn about unterminated macro invocations.
7956 * cpphash.h (struct lexer_state): New member in_expression.
7957 (struct cpp_reader): New member overlaid buffer.
7959 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
7961 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
7964 2002-06-18 Alan Modra <amodra@bigpond.net.au>
7966 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
7968 * doloop.c (doloop_optimize): Extract pattern from insn.
7970 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
7972 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
7974 2002-06-17 Jeff Law <law@redhat.com>
7976 * libgcc2.c: Do not include symcat.h or machmode.h.
7978 2002-06-17 Richard Henderson <rth@redhat.com>
7981 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
7983 2002-06-17 Tom Tromey <tromey@redhat.com>
7985 * dwarfout.c: Include function.h.
7987 2002-06-17 Andreas Schwab <schwab@suse.de>
7989 * print-rtl.c (print_rtx): Print space before vector, not after.
7990 (debug_rtx): Clear sawclose before printing.
7991 (debug_rtx_list): Print newline after each list element.
7992 (debug_rtx_range): Likewise.
7994 2002-06-17 Richard Henderson <rth@redhat.com>
7996 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
7997 (current_function_funcdef_no): Similarly.
7998 * function.c (funcdef_no): Similarly.
7999 (prepare_function_start): Set current_function_funcdef_no.
8000 (expand_function_start): Don't set current_function_profile_label_no.
8001 * dwarf2out.h (current_funcdef_number): Remove.
8002 * dwarf2out.c (current_funcdef_number): Remove. Replace with
8003 current_function_funcdef_no throughout.
8004 * dwarfout.c, vmsdbgout.c: Similarly.
8005 * except.c (sjlj_funcdef_number): Remove.
8006 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
8007 (output_function_exception_table): Likewise.
8008 * final.c (profile_function): Use current_function_funcdef_no
8009 instead of current_function_profile_label_no.
8011 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
8013 * sched-ebb.c (init_ready_list): Check INSN_P first.
8015 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
8017 * sh.md (divsi3): Update way how to find insns in a sequence.
8019 * reload1.c (merge_assigned_reloads): Don't change reloads
8020 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
8021 to RELOAD_OTHER when there are conflicting input reloads.
8023 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
8025 * function.c (epilogue_done): Correctly build a sequence of insns for
8028 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
8030 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
8033 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
8035 2002-06-16 Richard Henderson <rth@redhat.com>
8037 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
8038 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
8040 2002-06-16 Richard Henderson <rth@redhat.com>
8043 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
8045 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
8047 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
8048 * config/i386/i386-aout.h, config/i386/i386elf.h,
8049 config/i386/sysv4.h: Remove CPP_PREDEFINES.
8050 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
8051 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
8052 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
8053 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
8054 CPP_PREDEFINES and part of CPP_SPEC.
8055 * config/i386/sysv4-cpp.h: New.
8057 2002-06-16 Richard Henderson <rth@redhat.com>
8060 * dwarf2out.c (modified_type_die): Don't assign the qualified die
8061 to the unqualified type.
8063 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
8065 * i386-protos.h (x86_field_alignment): Declare.
8066 * i386.c (x86_field_alignment): Define.
8067 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
8068 (BIGGEST_FIELD_ALIGNMENT): Kill.
8070 2002-06-16 Richard Henderson <rth@redhat.com>
8072 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
8074 2002-06-16 Richard Henderson <rth@redhat.com>
8076 * c-common.c (flag_ms_extensions): Move from c++ front end.
8077 * c-common.h (flag_ms_extensions): Declare.
8078 * c-decl.c (c_decode_option): Add -fms-extensions.
8079 (grokfield): Don't accept anonymous structures in ISO C mode;
8080 accept only unnamed anonymous structures in GNU C mode; accept
8081 Plan 9 extensions in MS mode.
8082 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
8083 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
8084 (extension): Clear flag_iso.
8085 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
8087 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
8090 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
8091 early if current_function_epilogue_delay_list is non-empty.
8092 * config/cris/cris.md ("return"): Add sanity check asserting that
8093 current_function_epilogue_delay_list is empty.
8095 2002-06-16 Jeff Law <law@redhat.com>
8097 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
8098 sharing of hard registers.
8100 * toplev.c (rest_of_compilation): Remove redundant conditional.
8102 * toplev.c (rest_of_compilation): Perform a simpler, less costly
8103 cleanup of the CFG when not optimizing.
8105 2002-06-16 Alan Modra <amodra@bigpond.net.au>
8107 * gcc.c (main): Correct startfile_prefix_spec check.
8109 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
8111 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
8112 include both darwin.o and rs6000-c.o.
8114 2002-06-15 Roger Sayle <roger@eyesopen.com>
8116 * expr.c (compare_from_rtx): Call simplify_relational_operation
8117 on all comparisons, not just those between integer constants,
8118 with the correct (possibly unsigned) comparison code.
8119 (do_compare_rtx_and_jump): Likewise.
8121 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8123 * Makefile.in (tm_defines): New configuration variable.
8124 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
8125 Pass tm_defines in TM_DEFINES.
8126 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
8127 * config.gcc (tm_defines): New configuration variable.
8128 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
8129 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
8130 * configure.in: Substitute tm_defines.
8131 * configure: Rebuilt.
8132 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
8133 * doc/install.texi: Update.
8134 * pa/pa-700.h: Delete file.
8135 * pa/pa-7100.h: Delete file.
8137 2002-06-15 Roger Sayle <roger@eyesopen.com>
8139 * fold-const.c (comparison_to_compcode): New function to convert
8140 an comparison TREE CODE into a bit-based representation.
8141 (compcode_to_comparison): New function to convert from this bit
8142 based representation back to a comparison TREE CODE.
8143 (fold_truthop): Simplify (x<y) && (x==y) and related composite
8146 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
8148 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
8150 * stor-layout.c (compute_record_mode): Remove check for
8151 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
8152 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
8153 MEMBER_TYPE_FORCES_BLK.
8155 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
8157 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
8159 2002-06-14 Jeff Sturm <jsturm@one-point.com>
8161 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
8163 2002-06-14 Steve Ellcey <sje@cup.hp.com>
8165 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
8166 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
8167 * configure, config.in: Regenerate.
8169 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
8171 * loop.c (check_final_value): Use v->always_executed
8172 instead of v->always_computable.
8173 * unroll.c (final_giv_value): Don't calculate the final
8174 value as a function of the biv if the giv is not computed
8175 for every loop iteration.
8177 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
8179 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
8181 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
8184 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
8185 the truncation down when the target type is signed.
8186 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
8187 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
8188 the conversion if the target type is a smaller type.
8190 2002-06-14 Richard Henderson <rth@redhat.com>
8192 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
8193 earlier. Re-factor comparisons vs extrema.
8195 2002-06-14 Richard Henderson <rth@redhat.com>
8197 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
8199 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8201 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
8202 * sched-deps.c (add_dependence): Likewise.
8203 (group_leader): Likewise.
8204 * sched-rgn.c (init_ready_list): Likewise.
8205 * doc/rtl.texi: Adjust accordingly.
8207 2002-06-13 Jeffrey Law <law@redhat.com>
8209 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
8210 null pointer checks were eliminated. Update prototype.
8211 (delete_null_pointer_checks): Similarly.
8212 * rtl.h (delete_null_pointer_checks): Update prototype.
8213 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
8214 delete_null_pointer_checks deletes one or more null
8215 pointer checks. Do not run cleanup_cfg before gcse, the
8216 CFG is accurate and optimized at that point..
8218 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
8221 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
8223 * Makefile.in (libgcc.mk): Depend on specs.
8225 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
8227 * sh.md (mulsi3): Update way how to find insns in a sequence.
8229 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
8231 * sh.h: Define HARD_REGNO_RENAME_OK
8232 * sh.c: sh_hard_regno_rename_ok: New. If current function has
8233 interrupt_handler attribute, only registers saved on stack are OK.
8234 * sh-protos.h: Declare sh_hard_regno_rename_ok.
8236 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
8238 * config/sh/sh.md (jump): Emit jump insn.
8239 (call_pcrel): Get pattern of the result of gen_call_site.
8240 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
8242 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
8244 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
8245 * cpptrad.c: Update comments.
8246 (skip_whitespace, copy_comment): Take a new parameter.
8247 (skip_escaped_newlines): Don't duplicate escaped newline test.
8248 (copy_comment): Different location for CUR, decide here how
8249 to copy / replace the comment.
8250 (skip_whitespace): Copy whitespace.
8251 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
8252 (scan_out_logical_line): Let copy comment handle keeping or
8254 (scan_parameters, _cpp_create_trad_definition): Update.
8256 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
8258 * reload.c (get_secondary_mem,find_reloads_address,
8259 find_reloads_address_1): Pass reference to MEM to find_reloads_address
8260 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
8262 2002-06-13 Jessica Han <jessica@cup.hp.com>
8264 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
8265 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
8266 * doc/tm.texi: Document them.
8267 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
8268 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
8269 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
8270 (ASM_OUTPUT_FDESC): Likewise.
8272 2002-06-13 Eric Christopher <echristo@redhat.com>
8274 * diagnostic.c (output_format): Fix thinko.
8276 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
8278 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
8279 (DWARF2_UNWIND_INFO): Define to 0.
8281 * config/sh/sh.c (calc_live_regs): Don't use initial_value
8282 optimization for PR_MEDIA_REG.
8284 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
8286 * cpphash.h (_cpp_lex_identifier_trad): Remove.
8287 * cpplib.c (end_directive): Don't skip, always remove overlay
8289 (prepare_directive_trad): Handle NULL pfile->directive.
8290 (_cpp_handle_directive): Always call prepare_directive_trad
8292 * cppmain.c (check_multiline_token): Rename account_for_newlines,
8294 (scan_translation_unit_trad): Use it.
8295 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
8296 output, get escaped newline in comment close correct.
8297 (check_output_buffer, skip_whitespace): Update.
8298 (_cpp_lex_identifier_trad): Remove.
8299 (scan_out_logical_line): Handle -C and comments in directives
8302 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
8304 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
8305 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
8306 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
8307 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
8308 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
8309 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
8310 (SELECT_SH5_COMPACT_NOFPU): Likewise.
8311 (TARGET_SWITCHES): Use them.
8312 (TARGET_CPU_DEFAULT): Define if not already defined.
8313 (TARGET_DEFAULT): Use it.
8314 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
8315 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
8316 * config/sh/t-monolib: New file.
8318 2002-06-13 Roger Sayle <roger@eyesopen.com>
8320 * toplev.c (rest_of_compilation): Simplify (and correct) the
8321 logic of the first delete-null-pointer-checks pass.
8323 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
8325 * i386.c (ix86_expand_movstr): Fix pasto.
8327 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
8329 * reload.c (find_valid_class): Fix thinko in my previous patch.
8331 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
8333 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
8334 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
8335 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
8336 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
8338 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
8340 * tree-inline.c (expand_call_inline): Don' mess with _DECL
8343 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
8345 * diagnostic.c (output_format): Recognize "%H" as a format
8346 specifier for a location_t.
8347 (text_specifies_location): New function.
8348 (diagnostic_set_info): Use it.
8350 2002-06-13 Jeffrey Law <law@redhat.com>
8352 * emit-rtl.c (static_regno_reg_rtx): Define.
8353 (init_emit_once): Initialize static_regno_reg_rtx.
8354 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
8355 of building new hard reg objects once per function.
8356 (gen_rtx_REG): Try to share hard regs.
8357 * regclass.c (init_fake_stack_mems): New function broken out from
8359 * rtl.h (init_fake_stack_mems): Declare.
8360 * toplev.c (lang_independent_init): Call init_regs before
8361 init_emit_once. Call init_fake_stack_mems after init_emit_once.
8363 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
8365 * alias.c (argument_registers): Remove.
8366 (init_alias_once): Initialize static_reg_base_value here. Remove
8367 initialization of argument_registers.
8368 (init_alias_once_per_function): Remove.
8369 (init_alias_analysis): Copy all the entries from static_reg_base_value
8370 into new_reg_base_value all at once.
8371 * rtl.h (init_alias_once_per_function): Remove declaration.
8372 * function.c (prepare_function_start): Do not call
8373 init_alias_once_per_function.
8375 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
8376 starting a sequence and emitting an INSN.
8378 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
8380 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
8382 2002-06-13 David S. Miller <davem@redhat.com>
8384 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
8386 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
8388 * cpplib.c (end_directive): Handle line skipping. Only remove
8389 the rest of the line if the directive was valid.
8390 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
8391 expanding a traditional macro.
8392 * cpptrad.c (recursive_macro): New.
8393 (read_logical_line_trad): Handle skipping.
8394 (scan_out_logical_line): Continue after a successful directive.
8395 Don't expand macros whilst skipping, or if recursing.
8396 (_cpp_create_trad_definition): scan_out_logical_line now sets
8397 the output current position.
8399 2002-06-12 Eric Christopher <echristo@redhat.com>
8401 From Chris Demetriou <cgd@broadcom.com>
8402 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
8404 (ISA_HAS_MADD_MSUB): Ditto.
8405 (ISA_HAS_NMADD_NMSUB): Ditto.
8407 2002-06-12 Eric Christopher <echristo@redhat.com>
8409 * config.gcc: Consolidate little endian handling and
8410 little/big endian targets.
8411 * config/mips/elfl.h: Remove file.
8412 * config/mips/elfl64.h: Ditto.
8413 * config/mips/ecoffl.h: Ditto.
8414 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
8416 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
8418 * gengtype.h (xvasprintf): New prototype.
8419 (xasprintf): New prototype.
8421 (get_output_file): Return an outf_p.
8422 (header_file): Is now an outf_p.
8423 (base_files): Now are outf_p.
8425 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
8426 rather than stdio operations. Use xasprintf in a few places,
8430 (struct filemap): Delete.
8432 (output_files): New.
8434 (create_file): Create an outf_p. Add parameter to indicate output
8435 file name, change all callers.
8436 (open_base_files): Create gtype-desc.c here.
8437 (get_output_file_with_visibility): Rewrite.
8438 (get_output_file_name): Just look at 'name' field in struct outf.
8439 (close_output_files): Rewrite.
8441 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
8443 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
8444 (MASK_G_FLOAT): Define.
8445 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
8446 (TARGET_SWITCHES): Likewise.
8447 (TARGET_DEFAULT): Likewise.
8449 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
8451 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
8452 * config/mips/mips.c (mips_output_filename): Don't print a
8453 ".file" directive if we are using DWARF-2.
8454 (mips_output_function_prologue): Do not emit source file
8455 name for TARGET_GAS.
8457 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
8459 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
8460 decide whether emit the short opcode.
8461 * i386.h (x86_shift1): Declare.
8462 (TARGET_SHIFT1): New macro.
8463 * i386.c (x86_shift1): New global variable.
8465 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
8466 unconditionally; make loop to rebuild CFG; kill unnecesary
8467 find_basic_block calls; kill compute_bb_for_insn call.
8468 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
8469 * haifa-sched.c (sched_init): Likewise.
8470 * ssa-ccp.c (ssa_const_prop): Likewise.
8471 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8473 2002-06-11 David S. Miller <davem@redhat.com>
8475 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
8478 2002-06-11 Richard Henderson <rth@redhat.com>
8480 * c-common.c (builtin_define_type_max): New.
8481 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
8482 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
8484 From Joseph S. Myers:
8485 * glimits.h: Rewrite to expect the double underscore definitions
8488 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
8489 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
8490 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
8491 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8492 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
8493 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
8494 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
8495 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
8497 2002-06-11 Richard Henderson <rth@redhat.com>
8499 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
8500 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
8501 (code_for_builtns): Update.
8502 (alpha_init_builtins): Add __builtin_thread_pointer and
8503 __builtin_set_thread_pointer.
8504 (alpha_expand_builtin): Handle void builtins.
8505 * doc/extend.texi (Alpha Built-in Functions): Update.
8507 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
8510 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
8512 2002-06-11 Zack Weinberg <zack@codesourcery.com>
8514 * config.gcc: Make the name of the extra-modes file adjustable
8516 (s390x, strongarm, xscale stanzas): Use this facility.
8517 * configure.in: Update to match.
8518 * configure: Regenerate.
8520 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
8522 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
8523 max/mins as unsigned GE compares.
8525 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
8527 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
8528 * config/vax/bsd.h: New file.
8529 * config/vax/netbsd.h: Add missing notice.
8530 (CPP_PREDEFINES): Remove.
8531 (TARGET_OS_CPP_BUILTINS): Define.
8532 (CPP_SPEC): Use NETBSD_CPP_SPEC.
8533 * config/vax/openbsd.h: Update copyright years.
8534 (CPP_PREDEFINES): Remove.
8535 (TARGET_OS_CPP_BUILTINS): Define.
8536 * config/vax/ultrix.h: Likewise.
8537 * config/vax/vaxv.h: Likewise.
8538 * config/vax/vms.h: Likewise.
8539 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
8540 (CPP_PREDEFINES, CPP_SPEC): Remove.
8542 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
8544 * i386.md (addqi_1_slp, subqi_1_slp
8545 (andqi_ext0, testqi_ext0): Remove unnecesary check.
8546 (addhi*, addqi*): Simplify "dec" condition.
8547 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
8548 (and, or, xor to QImode splitters): New.
8551 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
8552 (andqi_ext_1_rex64): New.
8556 (rotrqi3*_slp): New.
8557 (rotlqi3*_slp): New.
8559 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
8561 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
8563 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
8564 (CPP_ENDIAN_LITTLE_SPEC): Delete.
8565 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
8566 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
8567 __LONG_DOUBLE_128__ setting, _CALL_* setting.
8568 (CPP_DEFAULT_SPEC): Delete.
8569 (CPP_FLOAT_DEFAULT_SPEC): Delete.
8570 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
8571 (CPP_SYSV_DEFAULT_SPEC): Delete.
8572 (CPP_ENDIAN_BIG_SPEC): Delete.
8573 (CPP_ENDIAN_LITTLE_SPEC): Delete.
8574 (CPP_ENDIAN_SPEC): Delete.
8575 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
8576 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
8577 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
8578 cpp_longdouble_default.
8579 * config/rs6000/softfloat.h: Delete.
8580 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
8581 (EXTRA_SPECS): Delete cpp_cpu.
8582 (TARGET_CPU_CPP_BUILTINS): New.
8583 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
8585 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
8586 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
8587 (CPP_DEFAULT_SPEC): Delete.
8588 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
8589 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
8590 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
8591 (CPP_DEFAULT_SPEC): Delete.
8592 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
8593 (CPLUSPLUS_CPP_SPEC): Likewise.
8594 (CPP_CPU_SPEC): Delete.
8595 (CPP_DEFAULT_SPEC): Delete.
8596 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
8597 (CPLUSPLUS_CPP_SPEC): Likewise.
8598 (CPP_CPU_SPEC): Delete.
8599 (CPP_DEFAULT_SPEC): Delete.
8600 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
8601 (CPP_DEFAULT_SPEC): Delete.
8602 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
8603 (CPP_DEFAULT_SPEC): Delete.
8605 * doc/gty.texi: Small updates.
8607 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
8609 * objc/objc-act.c (warn_with_ivar): Adjust calls to
8610 diagnostic_count_error.
8611 (warn_with_method): Likewise.
8613 * diagnostic.h (warnings_are_errors_message): New field of
8615 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
8617 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
8618 (diagnostic_count_diagnostic): Make aware of other kinds of
8620 (diagnostic_initialize): Initialize warnings_are_errors_message field.
8622 2002-06-11 Tom Tromey <tromey@redhat.com>
8625 * fold-const.c (fold_convert): Don't modify existing tree's type.
8627 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
8629 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
8631 2002-06-11 Richard Henderson <rth@redhat.com>
8633 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
8635 2002-06-11 Richard Henderson <rth@redhat.com>
8637 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
8638 DWARF2_UNWIND_INFO is false.
8640 2002-06-11 Bob Wilson <bob.wilson@acm.org>
8642 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
8644 * config/s390/s390.c (emit_prologue): gen_store_multiple
8645 returns an insn now, not a pattern.
8647 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8649 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
8652 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
8654 * i386.c (x86_promote_QImode): Set for Athlon
8655 (x86_fast_prefix): New global variable.
8656 (x86_arch_always_fancy_math_387): Fix formating.
8657 * i386.h (x86_fast_prefix): Declare
8658 (TARGET_FAST_PREFIX): define.
8659 * i386.md (and to strict_low_part, HI to SI
8660 promoting splitter): Use new macro.
8662 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
8664 2002-06-11 Zack Weinberg <zack@codesourcery.com>
8666 * Makefile.in (distclean): Delete junk left in testsuite
8669 2002-06-11 Jeffrey Law <law@redhat.com>
8671 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
8672 last insn created by the splitter.
8674 * caller-save.c (init_caller_save): Move creation of SAVEINSN
8675 and RESTINSN into into the scope of the sequence.
8677 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
8680 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
8682 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
8683 not the pattern. So extract the pattern from the insn.
8685 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
8687 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
8689 * config/s390/s390.md (movsi): Only use floating point
8690 register alternatives when operands are already fprs.
8691 (movdi_31, movdi_64): Likewise.
8693 2002-06-11 David S. Miller <davem@redhat.com>
8695 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
8696 Only run RTX equality checks on INSN_P rtl.
8698 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
8700 * config/s390/s390.md (reload_base, ltorg): Remove.
8701 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
8702 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
8703 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
8704 s390_asm_output_pool_prologue): Likewise.
8705 * s390.h (s390_pool_start_insn): Likewise.
8707 * s390.c (s390_output_symbolic_const): Remove support for
8708 old-style pool chunks.
8709 (s390_function_epilogue): Likewise.
8710 (s390_output_constant_pool): Likewise. Also, fix incorrect
8711 alignment for 64-bit literal pools.
8712 (print_operand_address): Remove 'y' and 'Y' format flags.
8713 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
8714 old-style pool chunks.
8715 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
8716 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
8717 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
8719 * s390.c (consttable_operand): New function.
8720 * s390-protos.h (consttable_operand): Declare it.
8721 * s390.h (PREDICATE_CODES): Add consttable_operand.
8722 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
8723 consttable_sf, consttable_df, pool_start_31, pool_end_31,
8724 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
8725 * s390.c (struct constant, struct constant_pool): New data types.
8726 (constant_modes, gen_consttable): New variables.
8727 (s390_start_pool, s390_end_pool, s390_add_pool,
8728 s390_dump_pool, s390_free_pool): New functions.
8729 (s390_chunkify_pool): Completely reimplement literal pool
8732 * s390.c (s390_pool_overflow): New variable.
8733 * s390.h (s390_pool_overflow): Declare it.
8734 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
8735 jumps in literal pool overflow situations.
8737 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
8738 (s390_frame_info): Account for possible use of RETURN_REGNUM
8739 by new literal pool overflow code.
8740 (s390_emit_prologue): Likewise.
8742 2002-06-05 David S. Miller <davem@redhat.com>
8744 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
8745 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
8746 emit_insns_before_scope, emit_insns_after,
8747 emit_insns_after_scope): Delete declaration.
8748 * ada/misc.c (insert_code_for): Use emit_insn* instead of
8750 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
8751 (alpha_set_memflags): Fix comment.
8752 (set_frame_related_p): Use get_insns instead of gen_sequence.
8753 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
8755 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
8757 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
8758 * config/fr30/fr30.c (fr30_move_double): Likewise.
8759 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
8761 * config/ia64/ia64.c (spill_restore_mem): Likewise.
8762 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
8764 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
8765 instead of gen_sequence.
8766 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
8767 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
8768 * config/sh/sh.c (sh_need_epilogue): Likewise.
8769 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
8771 (setjmp pattern and split): Use them to avoid splitter which emits
8773 * genattrtab.c (main): Emit include of function.h
8774 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
8775 get_insns instead of gen_sequence.
8776 * config/cris/cris.c (cris_split_movdx): Likewise.
8777 * emit-rtl.c (emit_insns*): Kill.
8778 (try_split): Expect insn list instead of SEQUENCE.
8779 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
8780 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
8781 Make them abort if a SEQUENCE is given and RTL checking is
8783 (emit_*_scope): Don't forget to set scope on final insn.
8784 (gen_sequence): Move from here...
8785 * ssa.c (gen_sequence): To here as private function.
8786 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
8788 (expand_builtin_return, expand_builtin_mathfn): Likewise.
8789 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
8790 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
8791 (expand_builtin_expect_jump): Use get_insns and fix comments.
8792 * calls.c (try_to_integrate): Use emit_insn_foo.
8793 (expand_call, emit_library_call_value_1): Likewise.
8794 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
8795 (emit_move_insn_1): Use get_insns instead of gen_sequence.
8796 (expand_expr): Use emit_insn_foo.
8797 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
8798 * except.c (build_post_landing_pads): Likewise.
8799 * flow.c (attempt_auto_inc): Likewise.
8800 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
8801 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
8802 * function.c (fixup_var_refs_insn): Use get_insns instead of
8804 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
8805 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
8806 (fixup_stack_1, purge_addressof_1, expand_main_function,
8807 get_arg_pointer_save_area): Likewise.
8808 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
8809 expand_function_end): Use emit_insn_foo.
8810 (record_insns, keep_stack_depressed): Work with insn list instead
8811 of SEQUENCE, fix comments.
8812 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
8813 noce_try_store_flag_constants, noce_try_store_flag_inc,
8814 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
8815 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
8816 (noce_process_if_block): Use get_insns instead of gen_sequence.
8817 * optabs.c (add_equal_note): Work with insn list, fix comments.
8818 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
8819 (expand_unop, expand_complex_abs, expand_unop_insn,
8820 expand_no_conflict_block): Likewise.
8821 (gen_move_insn): Use get_insns instead of gen_sequence.
8822 (gen_cond_trap): Likewise.
8823 * integrate.c (copy_rtx_and_substitute): Likewise.
8824 (emit_initial_value_sets): Use emit_insn_foo.
8825 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
8826 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
8827 now that RTL generators give insn lists.
8828 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
8829 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
8830 instead of gen_sequence.
8831 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
8832 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
8833 instead of gen_sequence.
8834 * loop.c (move_movables, emit_prefetch_instructions,
8835 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
8837 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
8838 (product_cheap_p): Likewise, and add commentary about RTL wastage
8840 * lcm.c (optimize_mode_switching): Use get_insns instead of
8842 * profile.c (gen_edge_profiler): Likewise.
8843 * regmove.c (copy_src_to_dest): Likewise.
8844 * reg-stack.c (compensate_edge): Likewise and fix comment.
8845 * gcse.c (process_insert_insn): Likewise.
8846 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
8847 * jump.c (delete_prior_computation): Update comment.
8848 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
8849 of gen_sequence, update comments to match.
8850 * recog.c (peephole2_optimize): Work with insn lists instead of
8852 * sched-vis.c (print_pattern): Abort on SEQUENCE.
8853 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
8854 Use get_insns instead of gen_sequence.
8855 (copy_loop_body): Likewise and don't emit dummy NOTE.
8856 * genrecog.c: Don't mention SEQUENCE rtl in comments.
8857 * combine.c (try_combine): Expect insn lists from split generator.
8858 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
8861 2002-06-11 Roger Sayle <roger@eyesopen.com>
8862 Andreas Jaeger <aj@suse.de>
8864 * cfgbuild.c: Update copyright years.
8866 2002-06-11 Andreas Schwab <schwab@suse.de>
8868 * config/m68k/m68k.h (PREDICATE_CODES): Define.
8870 2002-06-11 Eric Christopher <echristo@redhat.com>
8872 * doc/tm.texi (Run-time Target): Add comment about flag_iso
8874 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
8875 * config/mips/ecoffl.h: Ditto.
8876 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
8877 (CPP_PREDEFINES): Ditto.
8878 * config/mips/elfl64.h: Ditto.
8879 * config/mips/elfl.h: Ditto.
8880 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
8881 out until irix header consolidation.
8882 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
8883 with SUBTARGET_OS_CPP_BUILTINS.
8884 * config/mips/iris6.h: Ditto.
8885 (CPLUSPLUS_CPP_SPEC): Remove.
8886 * config/mips/linux.h: Ditto.
8887 * config/mips/netbsd.h: Ditto.
8888 * config/mips/openbsd.h: Ditto.
8889 * config/mips/rtems.h: Ditto.
8890 * config/mips/rtems64.h: Ditto.
8891 * config/mips/sni-svr4.h: Ditto.
8892 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
8893 ISA_MIPS32, ISA_MIPS64): New defines.
8894 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
8895 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
8896 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
8897 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
8898 (TARGET_CPU_CPP_BUILTINS): Define.
8899 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
8900 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
8901 (movdicc): Remove check for ISA_MIPS32.
8902 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
8903 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
8904 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
8905 sunge_sf, sunle_df, sunle_sf): New patterns.
8907 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
8909 * Makefile.in: Update cppmain.o.
8910 * cpphash.h (struct cpp_reader): Move some members to a
8912 (trad_line): Rename saved_line.
8913 (_cpp_read_logical_line_trad): Update.
8914 (_cpp_remove_overlay): New.
8915 * cppinit.c (cpp_create_reader): No need to set saved_line.
8916 (cpp_destroy): Update.
8917 (cpp_read_main_file): Only overlay if compiling.
8918 * cpplex.c (continue_after_nul): Return false if in directive.
8919 * cpplib.c (EXPAND): New.
8920 (directive_table, SEEN_EOL): Update.
8921 (end_directive): Remove overlay if traditional; don't skip
8922 line in traditional #define.
8923 (prepare_directive_trad): New.
8924 (_cpp_handle_directive, run_directive): Update for traditional
8926 (lex_macro_node): Simplify, don't use lex_identifier_trad.
8927 * cpplib.h (struct options): Add preprocess_only.
8928 * cppmain.c: Don't include intl.h.
8929 (cpp_preprocess_file): Set options->preprocess_only.
8930 (scan_translation_unit_trad): Fix, and print line numbers.
8931 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
8932 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
8933 save_replacement_text, _cpp_create_trad_definition): Update for
8935 (_cpp_overlay_buffer): Save line number.
8936 (_cpp_remove_overlay): Rename from restore_buff, restore line.
8937 (_cpp_read_logical_line_trad): Don't handle overlays here.
8938 (scan_out_logical_line): Process directives.
8940 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
8942 * gthr-win32.h: Wrap functions in extern "C".
8943 (__gthread_key_t): Typedef as unsigned long,
8945 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
8946 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
8947 (__gthr_win32_once, __gthr_win32_key_create,
8948 __gthr_win32_key_delete, __gthr_win32_getspecific,
8949 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
8950 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
8951 __gthr_win32_mutex_unlock): Declare.
8952 (__gthread_once,__gthread_key_create,
8953 __gthread_key_delete, __gthread_getspecific,
8954 __gthread_setspecific, __gthread_mutex_init_function,
8955 __gthread_mutex_lock,__gthread_mutex_trylock,
8956 __gthread_mutex_unlock): Call corresponding
8957 __gthr_win32_* extern implementations if #defined
8958 __GTHREAD_HIDE_WIN32API.
8959 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
8960 $(srcdir)/config/i386/gthr-win32.c
8961 * config/i386/gthr-win32.c: New implementation file.
8962 (__gthr_win32_once, __gthr_win32_key_create,
8963 __gthr_win32_key_delete, __gthr_win32_getspecific,
8964 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
8965 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
8966 __gthr_win32_mutex_unlock): New functions, based on
8967 static inlines in gthr-win32.h.
8969 2002-06-10 Bob Wilson <bob.wilson@acm.org>
8971 * config/xtensa/xtensa.c (override_options): Don't warn about
8972 using -fpic or -fPIC when PIC is enabled by default.
8974 2002-06-10 Roger Sayle <roger@eyesopen.com>
8976 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
8978 2002-06-10 Zack Weinberg <zack@codesourcery.com>
8980 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
8981 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
8982 exists, substitute its pathname as @extra_modes_file@, define
8983 EXTRA_MODES_FILE to be an appropriate string to #include it
8984 with, and define EXTRA_CC_MODES to 1.
8986 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
8987 it's defined. Get rid of redundancy in calling sequence for
8988 CC; don't use it to define CCmode, to avoid a warning.
8989 * libgcc2.c: Include symcat.h for the sake of machmode.def.
8991 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
8992 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
8993 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
8995 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
8996 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
8998 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
8999 defining extra CC modes.
9001 2002-06-10 Roger Sayle <roger@eyesopen.com>
9002 Andreas Jaeger <aj@suse.de>
9004 * cfgrtl.c (create_basic_block_structure): Remove index argument
9005 and use last_basic_block++ instead. (create_basic_block): Update.
9006 * cfgbuild.c (find_basic_blocks_1): Likewise.
9008 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
9009 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
9010 * sched-ebb.c (schedule_ebbs): Likewise.
9011 * sched-rgn.c (schedule_insns): Likewise.
9012 * ssa-ccp.c (ssa_const_prop): Likewise.
9013 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
9014 * toplev.c (rest_of_compilation): Likewise.
9015 * config/ia64/ia64.c (ia64_reorg): Likewise.
9017 2002-06-10 Roger Sayle <roger@eyesopen.com>
9019 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
9020 of matching registers.
9022 2002-06-10 Roger Sayle <roger@eyesopen.com>
9024 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
9025 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
9027 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
9029 * config/mmix/mmix.h: Improve comments.
9030 (CPP_SPEC, CPP_PREDEFINES): Don't define.
9031 (TARGET_CPU_CPP_BUILTINS): Define.
9032 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
9033 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
9035 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
9037 (mmix_constant_address_p): Remove another
9038 redundant test before case.
9039 (mmix_canonicalize_comparison): Remove unused function.
9040 (mmix_print_operand_address): Don't test and adjust for operand in
9041 non-canonical format.
9042 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
9043 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
9045 2002-06-10 Zack Weinberg <zack@codesourcery.com>
9047 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
9048 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
9049 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
9050 (gen_compare): Use CCmode unconditionally.
9052 2002-06-10 Jakub Jelinek <jakub@redhat.com>
9054 PR optimization/6759
9055 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
9058 2002-06-10 Jakub Jelinek <jakub@redhat.com>
9061 * c-decl.c (grokfield): Allow user defined types if they declare
9062 structs or unions for unnamed fields.
9064 2002-06-10 Jakub Jelinek <jakub@redhat.com>
9067 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
9069 2002-06-10 Jakub Jelinek <jakub@redhat.com>
9071 PR optimization/6842
9072 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
9073 operand subreg cannot be simplified.
9075 2002-06-10 Jakub Jelinek <jakub@redhat.com>
9077 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
9078 (compare_constant): Likewise.
9079 (output_addressed_constants): Likewise.
9081 2002-06-10 Jakub Jelinek <jakub@redhat.com>
9083 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
9084 merge bb with itself.
9086 2002-06-10 Richard Henderson <rth@redhat.com>
9088 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
9089 (builtin_zapnot): Likewise.
9091 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
9094 2002-06-10 Eric Christopher <echristo@redhat.com>
9096 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
9097 prototype and function.
9098 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
9099 (call_insn_operand): Remove half pic references.
9100 (legitimate_address_p): Ditto.
9101 * config/i386/i386.h: Remove half pic defines.
9103 2002-06-10 Eric Christopher <echristo@redhat.com>
9105 * doc/extend.texi (Return Address): Add note explaining the side-
9106 effects of inlining on __builtin_return_address.
9108 2002-06-10 Tom Tromey <tromey@redhat.com>
9110 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
9111 (c-common.o): Depend on langhooks.h.
9113 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
9115 * cpphash.h (_cpp_read_logical_line_trad,
9116 _cpp_expansions_different_trad): Update prototypes.
9117 * cpplex.c (continue_after_nul): New.
9118 * cppmain.c: Include cpphash.h.
9119 (scan_translation_unit_trad): New.
9120 (cpp_preprocess_file): Call it.
9121 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
9123 (_cpp_expansions_different_trad): Update prototype.
9125 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
9127 Fix cfi generation for SH[1-4]:
9129 * sh.c (frame_insn): New function.
9130 (output_stack_adjust): Add parameter emit_fn. All callers changed.
9131 (push): Now returns rtx. Use frame_insn.
9132 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
9134 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
9136 2002-06-10 Zack Weinberg <zack@codesourcery.com>
9138 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
9140 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
9141 (distclean): ... not here. But do delete all testsuite/*.log,
9142 testsuite/*.sum files here. Delete mkheaders. Delete
9143 po/*.gmo and the testsuite directory in a split tree build.
9145 2002-06-10 Jeffrey Law <law@redhat.com>
9147 * alias.c (static_reg_base_value): New to hold RTL for
9148 items allocated once per function for the aliasing code.
9149 (init_alias_once_per_function): Initialize static_reg_base_value.
9150 (init_alias_analysis): Avoid throw-away allocations of RTL by
9151 using pre-computed values in static_reg_base_value.
9152 * function.c (prepare_function_start): Call
9153 init_alias_once_per_function appropriately.
9154 * rtl.h (init_alias_once_per_function): Declare.
9155 * caller-save (init_caller_save): Restructure slightly to
9156 avoid lots of silly RTL generation.
9157 * expr.c (init_expr_once): Likewise.
9158 * reload1.c (reload_cse_regs_1): Allocate throw-away register
9159 RTL object here. Pass it into children.
9160 (reload_cse_simplify_operands): Use passed-in register RTL
9162 (reload_cse_simplify): Pass through throw-away register
9165 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
9167 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
9169 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
9171 * gcc.c (process_command): Avoid assignment to read-only location.
9172 Fix sizeof calculation.
9174 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
9176 * cpphash.h (struct cpp_macro): Put comments on their own lines.
9177 (_cpp_expansions_different_trad): New.
9178 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
9179 * cpptrad.c (canonicalize_text): New.
9180 (scan_out_logical_line): Handle no arguments correctly.
9181 (save_replacement_text): Commit memory when finished.
9182 (_cpp_expansions_different_trad): New.
9184 2002-06-10 Tim Josling <tej@melbpc.org.au>
9186 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
9188 (lang_names): Add treelang and cobol.
9189 (get_file_basename): Add code to support treelang and cobol as
9190 4th and 5th users of c-common.c.
9192 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
9194 * Makefile.in (install-driver): Install driver as
9195 $(target_alias)-gcc-$(version).
9196 * gcc.c (spec_version): Make const.
9197 (process_command): Handle -V and -b by using exec.
9198 * doc/invoke.texi (Target Options): Restore -V option,
9199 update docs for -b option.
9201 2002-06-10 Tim Josling <tej@melbpc.org.au>
9203 * configure.in (remaining_languages_check):
9204 Added check that all languages specified were found.
9205 Exit if not found. Previous behavior was silent failure.
9206 * configure: Regenerated.
9208 2002-06-10 Tim Josling <tej@melbpc.org.au>
9210 First steps to making treelang documentation compliant, based on
9211 instructions in sourcebuild.texi. Also add to gcc.c list of
9214 * doc/contrib.texi: Add self as contributor of treelang.
9216 * doc/frontends.texi: Add mention of treelang.
9218 * doc/invoke.texi (Overall Options): Add mention of treelang.
9220 * doc/standards.texi: Add mention of treelang.
9222 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
9224 * config/cris/cris.c: Include ggc.h
9226 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
9228 * cpphash.h (_cpp_push_text_context): Update.
9229 (_cpp_arguments_ok): New.
9230 * cppmacro.c (_cpp_arguments_ok): New, split out from...
9231 (collect_args): ...here.
9232 (_cpp_push_text_context): Change inputs.
9233 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
9234 replace_args_and_push): New.
9235 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
9236 Don't use IS macros directly.
9237 (scan_out_logical_line): Handle function-like macro argument
9239 (push_replacement_text): Update.
9240 (replacement_length): Remove.
9241 (_cpp_create_trad_definition): Don't skip whitespace before
9244 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
9246 * config/avr/avr.c (avr_mcu_types): Update for new devices.
9247 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
9248 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
9249 * config/avr/avr.md ("type" and "length" attributes): New type
9250 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
9251 output a single "call" or "rcall" insn depending on device size.
9252 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
9254 2002-06-09 David Edelsohn <edelsohn@gnu.org>
9256 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
9257 synonym for 630. Add power4. Remove embedded processors. Use -m604
9259 (CPP_CPU_SPEC): Add power3 and power4.
9260 (PROCESSOR_DEFAULT): Change to 604e.
9261 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
9262 (CPP_CPU_SPEC): Similar additions.
9263 (enum process_type): Add POWER4.
9264 (RTX_COSTS): Add POWER4.
9265 (CPP_CPU_SPEC): Similar additions.
9266 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
9267 (PROCESSOR_DEFAULT64): Define.
9268 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
9269 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
9271 (rs6000_issue_rate): Add Power4.
9272 * config/rs6000/rs6000.md (cpu attr): Add power4.
9273 (iu compare): Remove 604, 604e, 620, 630.
9274 Add basic Power4 scheduling information.
9275 (mfcr/mtcrf): Change type attribute to cr_logical.
9277 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9279 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
9281 * gengtype-lex.l: Fix format specifier warning.
9283 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
9285 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
9286 lieu of isspace/IDchar.
9287 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
9288 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
9291 2002-06-08 Zack Weinberg <zack@codesourcery.com>
9293 * Makefile.in (LIBCPP_OBJS): Take out version.o.
9294 * cpphash.h (cpp_reader): Take out print_version member.
9295 * cppinit.c: (cpp_handle_option): Don't do anything with
9296 -version. Just set help_only for --version, --target-help.
9297 Just set verbose option for -v.
9298 (cpp_post_options): Don't print a version string.
9300 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
9302 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
9303 (avr_section_type_flags): New, handle .noinit* sections.
9305 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9307 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
9308 and include netbsd_entry_point.
9309 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
9310 (NETBSD_ENTRY_POINT): Define.
9312 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9314 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
9315 if not already defined.
9316 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
9318 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
9320 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
9321 in a noreturn function.
9322 (avr_output_function_prologue, avr_output_function_epilogue):
9323 Correct function size calculation. Do not crash on empty function.
9324 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
9326 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9328 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
9329 netbsd_link_spec and netbsd_entry_point.
9330 (LINK_SPEC): Use %(netbsd_link_spec).
9331 (NETBSD_ENTRY_POINT): Define.
9333 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9335 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
9337 (LINK_ARCH64_SPEC): Likewise.
9338 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
9339 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
9341 2002-06-08 Marc Espie <espie@openbsd.org>
9343 * lists.c (free_list): Fix typo in comment.
9345 2002-06-08 Andreas Jaeger <aj@suse.de>
9347 * lcm.c (optimize_mode_switching): Add unused attribute for
9350 * sched-deps.c (sched_analyze): Remove unused variable.
9352 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
9354 * diagnostic.def: Don't capitalize diagnostict descriptors.
9356 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9358 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
9359 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
9360 (NETBSD_ENTRY_POINT): Define.
9362 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9364 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
9365 NETBSD_LINK_SPEC_ELF.
9366 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
9367 (NETBSD_ENTRY_POINT): Define.
9368 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
9369 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
9371 (NETBSD_ENTRY_POINT): Define.
9373 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9375 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
9376 netbsd_link_spec and netbsd_entry_point.
9377 (LINK_SPEC): Use %(netbsd_link_spec).
9378 (NETBSD_ENTRY_POINT): Define.
9380 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9382 * config/netbsd-elf.h (LINK_SPEC): Rename to...
9383 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
9384 to specify program entry point.
9386 2002-06-07 Jeff Law <law@redhat.com
9388 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
9389 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
9390 than creating a new register.
9391 (distribute_notes): Likewise.
9392 * df.c (df_reg_use_gen): Likewise.
9393 (df_reg_clobber_gen): Likewise.
9394 (df_ref_record): Likewise.
9395 * expr.c (use_regs): Likewise.
9396 * flow.c (propagate_one_insn): Likewise.
9397 (mark_set_1): Likewise.
9398 (mark_used_reg): Likewise.
9399 * reload.c (emit_reload_insns): Likewise.
9401 2002-06-07 Roger Sayle <roger@eyesopen.com>
9403 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
9404 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
9405 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
9406 comparison code comp can be reversed.
9408 2002-06-07 Roger Sayle <roger@eyesopen.com>
9410 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
9411 constants last in comparisons. Optimize (x+1.0)>0.0 into the
9412 equivalent x > -1.0 when -ffast-math.
9414 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
9416 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
9417 * config/mips/t-netbsd: New file.
9419 2002-06-07 Zack Weinberg <zack@codesourcery.com>
9421 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
9422 options their own entries.
9423 (parse_option): Clarify comment.
9424 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
9425 special case. Replace if/strcmp chain for -W options with
9426 use of new OPT_* entries for them.
9427 (cpp_handle_options): Update to match.
9428 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
9429 * c-decl.c: Update call to cpp_handle_option.
9431 2002-06-07 Akim Demaille <akim@epita.fr>
9433 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
9436 2002-06-07 Jeffrey Law <law@redhat.com>
9438 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
9441 2002-06-07 H.J. Lu (hjl@gnu.org)
9443 * configure.in: Add --enable-__cxa_atexit.
9444 * configure: Regenerated.
9445 * config.in: Likewise.
9447 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
9450 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
9452 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
9454 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
9456 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
9458 2002-06-07 Jason Merrill <jason@redhat.com>
9460 * cppexp.c (num_equality_op): Use a temporary variable to work
9461 around gcc 3.0.4 bug.
9463 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
9465 * diagnostic.c (diagnostic_build_prefix): Tidy.
9467 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
9469 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
9470 scan_parameters, save_replacement_text, replacement_length): New.
9471 (scan_out_logical_line): Take a macro and save parameters if
9473 (_cpp_logical_line_trad): Update.
9474 (_cpp_create_trad_definition): Update to handle function-like
9476 * cpplex.c (new_buff): Update.
9477 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
9478 * cpphash.h: ...here.
9479 (CPP_ALIGN2, _cpp_save_parameter): New.
9480 * cppmacro.c (save_parameter): Rename, export.
9481 (parse_params): Update.
9483 2002-06-07 Andreas Jaeger <aj@suse.de>
9485 * config/mmix/mmix.c: Remove extra broken prototype for
9486 mmix_init_machine_status.
9488 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
9490 * gengtype.c: Add comments before all the routines.
9492 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
9494 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
9495 from and add t-sh64 to ${tmake_file}.
9496 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
9497 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
9498 * config/sh/t-netbsd-sh5-32: Remove.
9499 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
9501 (MULTILIB_DIRNAMES): Define.
9503 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
9505 * i386.md (and promoting splitters): Disable QI to SImode promoting
9506 when doing so changes immediate to be 32bit.
9508 * rtl.h (emit_*_scope): Declare.
9509 * emit-rtl.c (emit_*_scope): New global functions.
9510 (try_split): Copy scope.
9511 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
9512 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
9513 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
9514 noce_process_if_block, find_cond_trap): Copy scopes.
9515 * recog.c (peephole2_optimize): likewise.
9517 2002-06-06 Jeffrey Law <law@redhat.com>
9519 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
9521 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
9523 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
9525 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9527 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
9528 ($(docdir)/gccinstall.info): New target.
9529 (info): Depend on it.
9530 (gccinstall.dvi): New target.
9531 (dvi): Depend on it.
9532 * doc/.cvsignore: Ignore new info files.
9533 * doc/install.texi (@setfilename): Reflect new info filename.
9535 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
9537 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
9540 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
9543 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
9544 c_common_get_alias_set.
9545 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
9547 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
9549 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
9551 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
9552 * avr/avr.c (avr_output_function_epilogue): Use above to determine
9554 * pa/pa.c (pa_output_function_prologue): Likewise.
9556 2002-06-05 David S. Miller <davem@redhat.com>
9558 * integrate.c (subst_constants): Handle 'B' RTL format.
9560 2002-06-05 Eric Christopher <echristo@redhat.com>
9562 * varasm.c (make_decl_rtl): Fix comment for removed
9565 2002-06-05 Eric Christopher <echristo@redhat.com>
9567 * Makefile.in: Remove missed halfpic bits.
9569 2002-06-05 Eric Christopher <echristo@redhat.com>
9571 * toplev.c: Remove half-pic.
9572 * config/mips/mips.c: Ditto.
9573 * config/mips/mips.h: Ditto. Remove unused defines.
9574 * config/mips/openbsd.h: Update comment to reflect above.
9575 * config/mips/mips.md: Remove half-pic constraints.
9576 * halfpic.h: Delete.
9579 2002-06-05 Jeffrey Law <law@redhat.com>
9581 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
9582 rejects (mem (lo_sum (reg) (unspec))), but will allow
9583 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
9585 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
9587 * cpphash.h (_cpp_create_definition): Update prototype.
9588 (_cpp_push_text_context, _cpp_create_trad_definition): New.
9589 ( cpp_lex_identifier_trad): New.
9590 (_cpp_set_trad_context): New.
9591 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
9592 * cpplib.c (SEEN_EOL): Update.
9593 (lex_macro_node): Update for -traditional.
9594 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
9595 * cppmacro.c (_cpp_create_definition): Split into
9596 create_iso_definition() and _cpp_create_trad_definition().
9597 (warn_of_redefinition): Update prototype; handle traditional
9599 (_cpp_push_text_context): New.
9600 * cpptrad.c (skip_whitespace, push_replacement_text): New.
9601 (lex_identifier): Call ht_lookup with correct start.
9602 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
9603 _cpp_set_trad_context): New.
9604 (scan_out_logical_line): Update to handle changing contexts.
9606 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
9608 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
9610 * config/sh/t-be (MULTILIB_ENDIAN): Set.
9611 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
9612 * t-sh (MULTILIB_ENDIAN): Set.
9613 (MULTILIB_OPTIONS): Use it.
9614 * t-sh64 (MULTILIB_OPTIONS): Likewise.
9615 (MULTILIB_DIRNAMES): Likewise.
9617 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
9619 * toplev.h (report_error_function): Remove.
9621 * diagnostic.h (location_t): New datatype.
9622 (text_info): Likewise.
9623 (diagnostic_info): Likewise.
9624 (output_prefix): New macro.
9625 (diagnostic_last_function_changed): Likewise.
9626 (diagnostic_set_last_function): Likewise.
9627 (diagnostic_last_module_changed): Likewise.
9628 (diagnostic_set_last_module): Likewise.
9629 (report_diagnostic): Now macro.
9630 (diagnostic_set_info): Declare.
9632 * diagnostic.c (report_problematic_module): Rename to
9633 diagnostic_repor_current_module.
9634 (set_diagnostic_context): Remove.
9635 (count_error): Rename to diagnostic_error_count.
9636 (error_function_changed): Remove.
9637 (record_last_error_function): Likewise.
9638 (error_module_changed): Likewise.
9639 (record_last_error_module): Likewise.
9640 (context_as_prefix): Rename to diagnostic_build_prefix.
9641 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
9642 (diagnostic_set_info): New function.
9644 * objc/objc-act.c: #include diagnostic.h
9645 (error_with_ivar): Adjust call to count_error.
9646 (warn_with_method): Likewise.
9647 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
9649 2002-06-05 Bob Wilson <bob.wilson@acm.org>
9651 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
9652 lang_hooks.types.make_type instead of make_node; set up
9653 __va_list_tag type decl.
9654 (xtensa_builtin_saveregs): Remove broken use of
9655 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
9656 for saved registers; add varargs alias set.
9658 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
9661 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
9662 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
9663 CPP_PREDEFINES and part of CPP_SPEC.
9664 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
9665 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
9667 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
9669 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
9671 2002-06-05 Alan Modra <amodra@bigpond.net.au>
9673 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
9675 2002-06-04 Zack Weinberg <zack@codesourcery.com>
9677 * gengtype-yacc.y: Make sure all rules end with a semicolon.
9679 2002-06-04 Bob Wilson <bob.wilson@acm.org>
9681 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
9682 typo in function prototype and include "ggc.h" header.
9684 2002-06-04 Richard Henderson <rth@redhat.com>
9686 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
9687 (print_operand) ['U']: Likewise.
9688 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
9689 (alpha_expand_unaligned_store_words): Likewise.
9690 (alpha_expand_builtin_vector_binop): Fix typo.
9691 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
9692 umulh, and cix insns.
9693 (one_arg_builtins): Add cix builtins.
9694 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
9695 (alpha_expand_builtin): Fix typo in arity.
9696 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
9697 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
9698 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
9699 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
9700 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
9701 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
9702 builtin_ctlz, builtin_ctpop): New.
9703 * doc/extend.texi (Alpha Built-in Functions): Update.
9705 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
9707 * gengtype.c (write_gc_root): Don't unnecessarily prevent
9708 global variable-length arrays being roots.
9710 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
9711 * configure.in (config_gtfiles): New variable.
9712 (all_gtfiles): Initialize from config_gtfiles.
9713 * configure: Regenerate.
9715 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
9718 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
9719 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
9720 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
9721 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
9722 win32.h (CPP_SPEC): Remove cpp_cpu.
9723 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
9724 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
9726 2002-06-04 Janis Johnson <janis187@us.ibm.com>
9728 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
9730 2002-06-04 Jeff Law <law@redhat.com.
9731 David Edelsohn <edelsohn@gnu.org>
9732 Michael Matz <matz@kde.org>
9734 * sched-int.h (struct deps): New field libcall_block_tail_insn.
9735 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
9736 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
9737 is set, then mark the current insn as being part of a libcall
9739 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
9741 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
9742 insns against the issue rate.
9744 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
9746 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
9747 * final.c (final_scan_insn): Likewise.
9748 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
9749 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
9750 * haifa-sched.c (unlink_other_notes): Likeewise.
9751 (reemit_notes): Likewise.
9752 * print-rtl.c (print_rtx): Likewise.
9753 * sched-deps (sched-analyze): Likewise.
9754 * rtl.c (note_insn_name): Likewise.
9755 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
9756 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
9759 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
9761 * varasm.c (mark_constants): Handle RTX format 'B'.
9763 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
9765 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
9766 (struct cpp_context): Add traditional fields.
9767 * cppmacro.c (paste_all_tokens, push_ptoken_context,
9768 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
9769 * cpptrad.c (skip_comment, lex_identifier,
9770 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
9772 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
9774 * gbl-ctors.h: Fix formatting.
9776 * gccspec.c: Likewise.
9778 * gcov-io.h: Likewise.
9780 * ggc-common.c: Likewise.
9782 * ggc-page.c: Likewise.
9783 * ggc-simple.c: Likewise.
9784 * global.c: Likewise.
9785 * graph.h: Likewise.
9786 * gthr-dce.h: Likewise.
9788 * gthr-posix.h: Likewise.
9789 * gthr-rtems.h: Likewise.
9790 * gthr-solaris.h: Likewise.
9791 * gthr-win32.h: Likewise.
9793 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
9795 Merge from pch-branch:
9797 * gengtype.h (UNION_OR_STRUCT_P): New macro.
9798 * gengtype.c (write_gc_structure_fields): Use it.
9799 (write_gc_root): Use it here too.
9801 * gengtype.c (write_gc_structure_fields): Assume that lengths
9802 of typenames fit into an 'int'; don't pass a size_t to "%d" in
9804 (write_gc_marker_routine_for_structure): Likewise.
9805 (write_gc_types): Likewise.
9806 (write_gc_root): Likewise.
9808 * varray.h (VARRAY_CLEAR): New.
9809 (varray_clear): Prototype.
9810 * varray.c (varray_clear): New.
9811 * cselib.c (reg_values_old): New.
9812 (used_regs_old): New.
9813 (cselib_init): Use cached varrays if available to avoid
9814 generating large amounts of garbage.
9815 (cselib_finish): Don't throw away old varrays.
9817 * final.c (insn_addresses_): Move out of ifdef.
9819 * varray.c (uses_ggc): Make more varray kinds GCable.
9820 * varray.h (union varray_data_tag): Let gengtype see
9821 fields 'generic' and 'te'.
9822 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
9823 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
9824 (reg_to_stack): Don't call VARRAY_FREE.
9825 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
9826 (insn_addresses_): Use gengtype to mark.
9827 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
9828 pointers; handle generic pointers in unused union fields.
9829 (get_output_file_with_visibility): Include cselib.h,
9830 insn-addr.h in gtype-desc.c.
9831 * function.c (prologue): Use gengtype to mark.
9832 (epilogue): Likewise.
9833 (sibcall_epilogue): Likewise.
9834 * dependence.c: Include gt-dependence.h, ggc.h.
9835 (struct def_use): Use gengtype to mark.
9836 (struct loop): Likewise.
9837 (struct induction): Likewise.
9838 (struct dependence): Likewise.
9839 (def_use_chain): Likewise.
9840 (dep_chain): Likewise.
9841 (loop_chain): Likewise.
9842 (induction_chain): Likewise.
9843 (init_dependence_analysis): Don't free anything, just clear pointers.
9844 (build_def_use): Use GGC to allocate def_use.
9845 (add_loop): Use GGC to allocate loop.
9846 (find_induction_variable): Use GGC to allocate induction.
9847 (check_node_dependence): Use GGC to allocate induction, dependence.
9848 (dump_node_dependence): Don't free varrays.
9849 (end_dependence_analysis): Likewise.
9850 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
9851 (struct elt_loc_list): Likewise.
9852 (struct elt_list): Likewise.
9853 * cselib.c: Don't include obstack.h.
9854 (hash_table): Use gengtype to mark.
9855 (reg_values): Use gengtype to mark.
9856 (used_regs): Use gengtype to mark.
9857 (cselib_obstack): Delete.
9858 (cselib_startobj): Delete.
9859 (empty_vals): Mark as deletable.
9860 (empty_elt_lists): Mark as deletable.
9861 (empty_elt_loc_lists): Mark as deletable.
9862 (new_elt_list): Use GGC to allocate struct elt_list.
9863 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
9864 (clear_table): Don't delete obstack; don't unnecessarily clear
9865 deletable variables.
9866 (new_cselib_val): Use GGC to allocate struct cselib_val.
9867 (cselib_init): Don't set up obstacks. Use GGC to allocate
9869 (cselib_finish): Just clear variables, don't free anything.
9870 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
9871 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
9872 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
9873 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
9874 (gt-reg-stack.h): New rule.
9875 (gt-dependence.h): New rule.
9876 (gtype-desc.o): Add cselib.h, insn-addr.h.
9878 * varray.c: Use only necessary headers.
9879 (element_size): New.
9881 (varray_init): Take type, not size. Use GGC if appropriate.
9882 (varray_grow): Update for change to struct varray_head_tag.
9883 Use GGC if appropriate.
9884 * varray.h (struct const_equiv_data): Use gengtype.
9885 (enum varray_data_enum): New.
9886 (union varray_data_tag): Use gengtype.
9887 (struct varray_head_tag): Use gengtype. Replace size field with
9888 enum varray_data_enum.
9889 (varray_init): Update prototype.
9890 (VARRAY_SCHED_INIT): Delete.
9891 (VARRAY_*_INIT): Update for change to varray_init.
9892 (VARRAY_SCHED): Delete.
9893 (VARRAY_PUSH_SCHED): Delete.
9894 (VARRAY_TOP_SCHED): Delete.
9895 * tree.h: Update for change to length specifier.
9896 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
9897 (clone_body): Likewise.
9898 * ssa.h (ssa_definition): Use gengtype to mark.
9899 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
9900 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
9901 * rtl.h (struct rtvec_def): Update for change to length specifier.
9902 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
9903 (struct initial_value_struct): Update for change to length specifier.
9904 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
9905 (ggc_add_tree_varray_root): Delete prototype.
9906 (ggc_mark_rtx_varray): Delete prototype.
9907 (ggc_mark_tree_varray): Delete prototype.
9908 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
9909 (ggc_add_tree_varray_root): Delete.
9910 (ggc_mark_rtx_varray): Delete.
9911 (ggc_mark_tree_varray): Delete.
9912 (ggc_mark_rtx_varray_ptr): Delete.
9913 (ggc_mark_tree_varray_ptr): Delete.
9914 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
9915 (create_varray): Delete prototype.
9916 * gengtype.c (varrays): Delete.
9917 (create_varray): Delete.
9918 (adjust_field_type): Detect array of string pointers.
9919 (process_gc_options): Remove code to handle varray_type option.
9920 (set_gc_used_type): Remove TYPE_VARRAY case.
9921 (output_escaped_param): New.
9922 (write_gc_structure_fields): Use output_escaped_param on all
9923 parameters. Handle 'skip' with 'use_param' option. Handle
9924 arrays of strings. Remove TYPE_VARRAY handling.
9925 (write_gc_roots): Use boolean to detect 'length' option.
9926 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
9927 (struct_fields): Call adjust_field_type on array fields.
9928 (type): Remove VARRAY_TYPE case.
9929 (type_option): Likewise.
9930 * gengtype-lex.l: Don't consider varray_type a keyword.
9931 * function.h: Update for change to length specifier.
9932 (free_eh_status): Delete prototype.
9933 * function.c (free_after_compilation): Don't call free_eh_status.
9934 (reorder_blocks): Don't use VARRAY_FREE.
9935 * except.c (struct eh_status): Update for change to length specifier.
9936 remove varray_type specifier.
9937 (free_eh_status): Delete.
9938 * dwarf2out.c: Include gt-dwarf2out.h.
9939 (used_rtx_varray): Use gengtype to mark, move
9941 (incomplete_types): Likewise.
9942 (decl_scope_table): Likewise.
9943 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
9944 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
9945 * c-tree.h (struct lang_type): Update for change to length specifier.
9946 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
9947 * c-objc-common.c: Include gt-c-objc-common.h.
9948 (deferred_fns): Mark for gengtype.
9949 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
9950 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
9951 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
9952 (gtype-desc.o): Update dependencies.
9953 (dwarf2out.o): Add gt-dwarf2out.h.
9954 (varray.o): Update dependencies.
9955 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
9956 (gt-c-objc-common.h): New rule.
9957 (gt-dwarf2out.h): New rule.
9958 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
9960 * doc/gty.texi (GTY Options): Correct spelling.
9961 (GGC Roots): Likewise.
9962 * Makefile.in (TEXI_CPP_FILES): New.
9963 (TEXI_GCC_FILES): New.
9964 (TEXI_GCCINT_FILES): New.
9965 (TEXI_CPPINT_FILES): New.
9966 ($(docdir)/cpp.info): Use new macros.
9967 ($(docdir)/gcc.info): Likewise.
9968 ($(docdir)/gccint.info): Likewise.
9969 ($(docdir)/cppinternals.info): Likewise.
9970 (cpp.dvi): Likewise.
9971 (gcc.dvi): Likewise.
9972 (gccint.dvi): Likewise.
9973 (cppinternals.dvi): Likewise.
9975 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
9976 * doc/gccint.texi (Top): Include gty.texi.
9977 * doc/gty.texi: New file.
9979 * bitmap.c: Include ggc.h, gt-bitmap.h.
9980 (bitmap_ggc_free): New.
9981 (bitmap_elem_to_freelist): New.
9982 (bitmap_element_free): Use bitmap_elem_to_freelist.
9983 (bitmap_element_allocate): Allow use of GGC.
9984 (bitmap_clear): Use bitmap_elem_to_freelist.
9985 (bitmap_copy): Update for change to bitmap_element_allocate.
9986 (bitmap_set_bit): Likewise.
9987 (bitmap_operation): Update for changes elsewhere.
9988 (bitmap_initialize): Allow to create bitmaps that will use GGC.
9989 * bitmap.h (struct bitmap_element_def): Use gengtype.
9990 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
9991 (bitmap_initialize): Add extra parameter.
9992 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
9993 (BITMAP_ALLOCA): Delete.
9994 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
9995 (BITMAP_GGC_ALLOC): New.
9996 * Makefile.in (gtype-desc.o): Add bitmap.h.
9997 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
9998 (GTFILES): Add bitmap.c.
9999 (gt-bitmap.h): New rule.
10000 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
10001 * basic-block.h: Update for changes to bitmap_initialize.
10002 * except.c (exception_handler_label_map): Move into...
10003 (struct eh_status): Here.
10004 (struct eh_region): Make 'aka' GCable.
10005 (free_eh_status): Don't need to specially handle
10006 exception_handler_label_map.
10007 (add_ehl_entry): Update for changes to exception_handler_label_map.
10008 (find_exception_handler_labels): Likewise.
10009 (remove_exception_handler_label): Likewise.
10010 (maybe_remove_eh_handler): Likewise.
10011 (for_each_eh_label): Likewise.
10012 (remove_eh_handler): Allocate 'aka' using GGC.
10013 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
10014 to list of includes.
10016 * gengtype.c (write_gc_marker_routine_for_structure): Name
10017 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
10018 (write_gc_types): Arrange for the tests with NULL to be inlined.
10019 (write_gc_roots): Update uses of procedure pointers.
10020 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
10022 * Makefile.in (explow.o): Add dependency on gt-explow.h.
10023 (sdbout.o): Add dependency on gt-sdbout.h.
10025 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
10026 (mem_attrs_htab): Likewise.
10027 (init_emit_once): Don't call ggc_add_deletable_htab.
10028 * fold-const.c (size_htab): Use gengtype to clear unused entries.
10029 (size_int_type_wide): Don't call ggc_add_deletable_htab.
10030 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
10031 parameters, use them, change callers.
10032 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
10033 (write_gc_roots): Handle 'if_marked' option.
10034 (main): Don't need to call set_gc_used_type any more.
10035 * ggc.h (ggc_htab_marked_p): Delete.
10036 (ggc_htab_mark): Delete.
10037 (struct ggc_cache_tab): New.
10038 (gt_ggc_cache_rtab): New declaration.
10039 * ggc-common.c (struct d_htab_root): Delete.
10040 (d_htab_roots): Delete.
10041 (ggc_add_deletable_htab): Delete.
10042 (ggc_htab_delete): Handle new htab-deleting mechanism.
10043 (ggc_mark_roots): Use new htab-deleting mechanism.
10044 * tree.c (type_hash_table): Use gengtype to clear unused entries.
10046 (init_obstacks): Don't call ggc_add_deletable_htab.
10048 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
10049 (struct hashed_entry): Likewise.
10050 (nst_method_hash_list): Likewise.
10051 (cls_method_hash_list): Likewise.
10052 (HASH_ALLOC_LIST_SIZE): Delete.
10053 (ATTR_ALLOC_LIST_SIZE): Delete.
10054 * objc/objc-act.c (hash_init): Use ggc to allocate
10055 nst_method_hash_list, cls_method_hash_list.
10056 (hash_enter): Use ggc to allocate; allocate one entry at a time.
10057 (hash_add_attr): Likewise.
10058 (ggc_mark_hash_table): Delete.
10059 (objc_act_parse_init): Delete.
10060 (objc_init): Delete reference to objc_act_parse_init.
10061 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
10062 obstack.h. Replace references to 'struct hash_table' with htab_t.
10063 (struct symbol_hash_entry): Replace hash header with key field.
10064 (struct file_hash_entry): Replace hash header with key field.
10065 (struct demangled_hash_entry): Replace hash header with key field.
10066 (hash_string_eq): New.
10067 (hash_string_hash): New.
10068 (symbol_hash_newfunc): Delete.
10069 (symbol_hash_lookup): Modify to use htab_t.
10070 (file_hash_newfunc): Delete.
10071 (file_hash_lookup): Modify to use htab_t.
10072 (demangled_hash_newfunc): Delete.
10073 (demangled_hash_lookup): Modify to use htab_t.
10074 (tlink_init): Modify to use htab_t.
10077 * ggc.h: Delete forward structure declarations.
10078 Delete prototypes for deleted functions.
10079 * ggc-common.c: Don't include hash.h.
10080 (ggc_add_tree_hash_table_root): Delete.
10081 (ggc_mark_tree_hash_table_entry): Delete.
10082 (ggc_mark_tree_hash_table): Delete.
10083 (ggc_mark_tree_hash_table_ptr): Delete.
10084 * gengtype.c (write_gc_structure_fields): Allow param_is option.
10085 (write_gc_marker_routine_for_structure): Use visibility of
10086 the parameter if there is one.
10087 * function.c: Replace hash.h with hashtab.h. Replace references
10088 to 'struct hash_table *' with htab_t.
10089 (struct insns_for_mem_entry): Include a plain key.
10090 (fixup_var_refs_insns_with_hash): Update to use htab_t.
10091 (insns_for_mem_newfunc): Delete.
10092 (insns_for_mem_hash): Update to use htab_t.
10093 (insns_for_mem_comp): Likewise.
10094 (insns_for_mem_walk): Likewise.
10095 * c-lang.c: Include ggc.h.
10096 * Makefile.in (OBJS): Remove hash.o.
10097 (c-lang.o): Add GGC_H.
10098 (COLLECT2_OBJS): Remove hash.o.
10099 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
10100 (ggc-common.o): Remove hash.h.
10101 (function.o): Remove hash.h, add HASHTAB_H.
10102 (genautomata.o): Remove hash.h, add HASHTAB_H.
10104 * varasm.c (mark_const_str_htab_1): Delete.
10105 (mark_const_str_htab): Delete.
10106 (const_str_htab_del): Delete.
10107 (const_str_htab): Use gengtype to mark.
10108 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
10110 * tree.c (mark_tree_hashtable_entry): Delete.
10111 (mark_tree_hashtable): Delete.
10112 * tree.h (mark_tree_hashtable): Delete prototype.
10113 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
10114 (ggc_mark): Likewise.
10116 (htab_create_ggc): New.
10117 * ggc-common.c (ggc_calloc): New.
10118 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
10119 (struct type): Add param_struct structure.
10120 * gengtype.c (param_structs): New.
10121 (adjust_field_type): Handle param_is option.
10122 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
10123 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
10124 (write_gc_structure_fields): Add new PARAM parameter. Update
10125 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
10126 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
10127 Use it to generate function name. Update callers.
10128 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
10130 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
10132 (main): Define PTR as pointer-to-scalar. Don't specially
10133 mark deferred_string or ehl_map_entry.
10134 * gengtype-yacc.y (PARAM_IS): Add new token.
10135 (externstatic): Use adjust_field_type.
10136 (type_option): Add PARAM_IS.
10137 * gengtype-lex.l: Add rule for typedef of function pointers.
10138 Add rule for PARAM_IS.
10139 (IWORD): Add size_t.
10140 * except.c (exception_handler_label_map): Use gengtype to mark.
10141 (type_to_runtime_map): Likewise.
10142 (mark_ehl_map_entry): Delete.
10143 (mark_ehl_map): Delete.
10144 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
10145 (t2r_mark_1): Delete.
10146 (t2r_mark): Delete.
10147 * Makefile.in (gtype-desc.o): Correct dependencies.
10148 (GTFILES): Add hashtab.h.
10149 (genautomata.o): Actually uses hashtab.h.
10151 * Makefile.in (stringpool.o): Add $(GGC_H).
10152 (dwarf2asm.o): Likewise.
10153 (GTFILES): Add hashtable.h.
10154 * c-common.h (struct c_common_identifier): Use gengtype.
10155 * c-decl.h (c_mark_tree): Delete.
10156 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
10157 * c-tree.h (struct lang_identifier): Use gengtype.
10158 (union lang_tree_node): New.
10159 (c_mark_tree): Delete prototype.
10160 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
10161 dwarf2_debug_hooks.
10162 * gengtype-lex.l (IWORD): Allow 'bool'.
10163 (ptr_alias): Match.
10164 * gengtype-yacc.y (ALIAS): New token.
10165 (type_option): New rule.
10166 (option): Use type_option.
10167 * gengtype.c (process_gc_options): New.
10168 (set_gc_used_type): Use it.
10169 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
10170 Add new variable 't' to hold the type of the field being processed.
10171 Add more error checking. Use UNION_P when looking at 'desc' option.
10172 Handle language-specific structures containing other
10173 language-specific structures.
10174 (write_gc_types): Handle 'ptr_alias' option.
10175 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
10176 * ggc-common.c (ggc_pending_trees): Delete.
10177 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
10178 (ggc_mark_trees): Delete.
10179 (gt_ggc_m_tree_node): Delete.
10180 * ggc.h (ggc_pending_trees): Delete.
10181 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
10182 * hashtable.h (ht_identifier): Use gengtype.
10183 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
10184 * langhooks.h (struct lang_hooks): Delete mark_tree.
10185 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
10187 * system.h: Poison LANG_HOOKS_MARK_TREE.
10188 * tree.c (tree_node_structure): New.
10189 * tree.h (struct tree_common): Use gengtype.
10190 (struct tree_int_cst): Likewise.
10191 (struct tree_real_cst): Likewise.
10192 (struct tree_string): Likewise.
10193 (struct tree_complex): Likewise.
10194 (struct tree_vector): Likewise.
10195 (struct tree_identifier): Likewise.
10196 (struct tree_list): Likewise.
10197 (struct tree_vec): Likewise.
10198 (struct tree_exp): Likewise.
10199 (struct tree_block): Likewise.
10200 (struct tree_type): Likewise.
10201 (struct tree_decl): Likewise.
10202 (enum tree_structure_enum): New.
10203 (union tree_node): Use gengtype, with an alias.
10204 (tree_node_structure): Prototype.
10205 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
10207 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
10208 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
10209 to LANG_HOOKS_FUNCTION_FINAL.
10210 * Makefile.in (GTFILES): Add bitmap.h.
10211 * except.c (struct eh_region): Mark field 'aka' to be skipped.
10213 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
10214 (alpha_init_machine_status): Give proper type.
10215 * Makefile.in (c-lang.o): Depend on gtype-c.h.
10216 (optabs.o): Depend on gt-optabs.h.
10217 (GTFILES): Add optabs.o.
10218 (gt-optabs.h): Add rule.
10219 * optabs.c: Include gt-optabs.h.
10221 * gengtype.c (set_gc_used_type): Correct some errors in last change.
10222 (write_gc_structure_fields): If a field which should be NULL is
10224 * c-pragma.c: Move struct align_stack and variable alignment_stack
10225 out from the ifdef.
10227 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
10228 * config/xtensa/xtensa.c: Include gt-cris.h.
10229 (struct machine_function): Use gengtype to mark.
10230 * config/mmix/mmix.h (struct machine_function): Use gengtype
10232 * config/cris/t-cris: Add dependencies for gt-cris.h.
10233 * config/cris/cris.c: Include gt-cris.h.
10234 (struct machine_function): Use gengtype to mark.
10235 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
10237 * doc/tm.texi (Per-Function Data): Delete references to
10238 mark_machine_status.
10239 * config/ia64/ia64.c (ia64_override_options): Don't set
10240 mark_machine_status.
10241 * config/i386/i386.c (override_options): Likewise.
10242 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
10243 * config/arm/arm.c (arm_init_expanders): Likewise.
10244 * config/alpha/alpha.c (override_options): Likewise.
10245 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
10246 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
10247 (write_gc_structure_fields): Don't handle 'really' option.
10248 Handle 'maybe_null' option.
10249 (write_gc_types): Handle 'maybe_null' option.
10250 * function.h (struct function): Don't use "really".
10251 (mark_machine_status): Delete declaration.
10252 (mark_lang_status): Delete declaration.
10253 (gt_ggc_mr_machine_function): Delete prototype.
10254 (gt_ggc_mr_language_function): Delete prototype.
10255 * function.c (mark_machine_status): Delete.
10256 (mark_lang_status): Delete.
10257 (gt_ggc_mr_machine_function): Delete.
10258 (gt_ggc_mr_language_function): Delete.
10259 * c-tree.h (mark_c_function_context): Delete prototype.
10260 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
10261 * c-decl.c (struct language_function): Rename from struct
10262 c_language_function. Update uses. Use gengtype to mark.
10263 (mark_c_function_context): Delete.
10264 * c-common.h (struct c_language_function): Rename from struct
10266 (mark_stmt_tree): Delete prototype.
10267 (c_mark_lang_decl): Delete prototype.
10268 (mark_c_language_function): Delete prototype.
10269 * c-common.c (mark_stmt_tree): Delete.
10270 (c_mark_lang_decl): Delete.
10271 (mark_c_language_function): Delete.
10273 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
10274 (lang_bitmap): New typedef. Use where appropriate.
10275 (struct type): Add gc_used field, lang_struct field.
10276 (UNION_P): New macro.
10277 (new_structure): New prototype.
10278 (find_structure): Remove 'pos' parameter. Change all callers.
10279 * gengtype-lex.l: Update for changes to find_structure.
10280 * gengtype-yacc.y (typedef_struct): Use new_structure.
10281 (yacc_ids): Suppress warning.
10282 (type): Use new_structure.
10283 * gengtype.c (string_type): Update for changes to struct type.
10284 (find_structure): Just find a structure, don't worry about
10286 (new_structure): New.
10287 (note_yacc_type): Use new_structure.
10288 (set_gc_used_type): New.
10289 (set_gc_used): New.
10290 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
10291 (write_gc_types): Handle TYPE_LANG_STRUCT.
10292 (write_gc_marker_routine_for_structure): New.
10293 (main): Call set_gc_used. Add some calls to set_gc_used_type
10294 for places where GCC doesn't use gengtype properly yet.
10295 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
10296 (gt_ggc_m_tree_node): Likewise.
10298 * varasm.c (copy_constant): Call expand_constant if we hit
10299 something we can't recognize.
10301 * ggc-common.c (ggc_mark_rtvec_children): Delete.
10302 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
10303 (lang_mark_false_label_stack): Delete.
10304 * rtl.h (struct rtvec_def): Use gengtype to mark.
10305 * ggc.h (ggc_mark_rtvec): Delete.
10306 (gt_ggc_m_rtvec_def): Delete.
10307 (ggc_mark_nonnull_tree): Delete.
10308 (ggc_mark_rtvec_children): Delete prototype.
10309 (lang_mark_false_label_stack): Delete declaration.
10311 * gengtype.h (note_yacc_type): Add prototype.
10312 * gengtype.c (note_yacc_type): New function.
10313 * gengtype-lex.l: Add lexer support for yacc files.
10314 * gengtype-yacc.y (start): Extract union from yacc files.
10315 (yacc_union): New rule.
10316 (yacc_typematch): New rule.
10317 (yacc_ids): New rule.
10318 (enum_items): Tweak for efficiency.
10319 (optionseq): Likewise.
10321 * c-common.h (struct language_function): Use gengtype.
10322 (struct c_lang_decl): Likewise.
10323 * c-tree.h (struct lang_decl): Likewise.
10324 (struct lang_type): Likewise.
10325 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
10326 tree language substructures.
10328 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
10330 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
10332 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
10334 * stmt.c (struct nesting): Add discriminator. Use gengtype to
10335 mark. Remove 'data.block.cleanup_ptr' field.
10336 (struct stmt_status): Use usual technique to mark struct nesting.
10337 (gt_ggc_mr_nesting_cond): Delete.
10338 (gt_ggc_mr_nesting_loop): Delete.
10339 (gt_ggc_mr_nesting_block): Delete.
10340 (gt_ggc_mr_nesting_case_stmt): Delete.
10341 (expand_start_cond): Set discriminator.
10342 (expand_start_loop): Likewise.
10343 (expand_start_null_loop): Likewise.
10344 (expand_start_bindings_and_block): Set discriminator. Don't set
10346 (expand_decl_cleanup): Replace 'cleanup_ptr' with
10347 &thisblock->data.block.cleanups.
10348 (expand_start_case): Set discriminator.
10349 (expand_start_case_dummy): Set discriminator.
10351 * ggc-callbacks.c: Remove.
10353 * gengtype.h (struct type): Add 'u.s.bitmap' field.
10354 (find_structure): Add 'pos' parameter.
10355 * gengtype-lex.l: Update callers to find_structure.
10356 * gengtype-yacc.y: Likewise.
10357 * gengtype.c (find_structure): Allow for structures to be defined
10358 in multiple language backends.
10359 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
10360 (counter): Rename to gc_counter.
10361 (write_gc_structure_fields): Fail when writing out fields for
10362 an incomplete structure. Ignore arrays of scalars. Handle
10363 'tree_vec' special.
10364 (write_gc_types): Reset counter for each procedure written.
10366 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
10367 (free_case_nodes): Delete.
10368 (expand_end_case_type): Delete call to free_case_nodes.
10370 * Makefile.in (cselib.o): Include gt-<filename>.h.
10371 (gcse.o): Likewise.
10372 (profile.o): Likewise.
10373 (alias.o): Likewise.
10374 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
10375 alphabetize backend files.
10376 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
10377 * alias.c: Use gengtype for roots.
10378 * c-common.h (struct stmt_tree_s): Use gengtype.
10379 * c-decl.c: Use gengtype for roots.
10380 * cselib.c: Use gengtype for roots.
10381 * expr.c: Use gengtype for roots.
10382 * fold-const.c: Use gengtype for roots.
10383 * gcse.c: Use gengtype for roots.
10384 * gengtype-lex.l: Handle typedefs of function types.
10385 Allow for empty array bounds.
10386 Allow processing to stop on initializers.
10387 * gengtype-yacc.y (externstatic): Stop processing on initializers.
10388 (semiequal): New rule.
10389 * gengtype.c (create_file): Tidy output files.
10390 (get_output_file_with_visibility): Fix paren warning. Fix bug
10391 involving multiple input files mapping to one output file.
10392 (write_gc_structure_fields): Skip arrays of scalars.
10393 (write_gc_types): Tidy output files.
10394 (write_gc_root): New function.
10395 (write_gc_roots): Fix bugs, add support for roots that are
10397 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
10398 (ggc_mark_tree_ptr): Delete.
10399 (ggc_add_rtx_root): Delete.
10400 (ggc_add_tree_root): Delete.
10401 (ggc_del_root): Delete.
10402 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
10403 allocate struct initial_value_struct.
10404 * profile.c: Use gengtype for roots.
10405 * sdbout.c: Use gengtype for roots.
10406 * varasm.c (mark_weak_decls): Delete unused prototype.
10407 (mark_const_hash_entry): Delete unused function.
10408 * config/darwin-protos.h: Use gengtype for roots.
10409 (machopic_add_gc_roots): Delete.
10410 * config/arm/arm.c: Use gengtype for roots.
10411 * config/arm/arm.h: Use gengtype for roots.
10412 * config/c4x/c4x-protos.h: Use gengtype for roots.
10413 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
10414 * config/d30v/d30v-protos.h: Use gengtype for roots.
10415 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
10416 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
10417 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
10418 * config/ia64/ia64-protos.h: Use gengtype for roots.
10419 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
10420 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
10421 * config/m68hc11/m68hc11.c (z_reg): Make global.
10422 (z_reg_qi): Make global.
10423 (m68hc11_add_gc_roots): Delete.
10424 * config/mcore/mcore-protos.h: Use gengtype for roots.
10425 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
10426 * config/mips/mips.c (mips_add_gc_roots): Delete.
10427 * config/mips/mips.h: Use gengtype for roots.
10428 * config/mmix/mmix.c (override_options): Use gengtype for roots.
10429 * config/mmix/mmix.h: Use gengtype for roots.
10430 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
10431 * config/mn10200/mn10200.h: Use gengtype for roots.
10432 * config/pa/pa.c: Use gengtype for roots, marking.
10433 (struct deferred_plabel): Use GGC, gengtype.
10434 (pa_add_gc_roots): Delete.
10435 (mark_deferred_plabels): Delete.
10436 * config/pj/pj-protos.h: Use gengtype for roots.
10437 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
10438 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
10439 machopic_add_gc_roots.
10440 * config/rs6000/rs6000.h: Use gengtype for roots.
10441 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
10442 (gt-darwin.h): Add rule.
10443 * config/sh/sh.c: Use gengtype for roots.
10444 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
10445 (gt-sh.h): Add rule.
10446 * config/sparc/sparc.c: Use gengtype for roots.
10447 (sparc_add_gc_roots): Delete.
10448 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
10449 (mark_ultrasparc_pipeline_state): Delete.
10450 * config/sparc/sparc.h: Use gengtype for roots.
10452 * Makefile.in (c-parse.o): Update dependencies.
10453 (c-common.o): Likewise.
10454 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
10455 Add dependencies for the files they generate.
10456 * c-common.c: Replace ggc_add_* uses with GTY annotations.
10457 * c-common.h: Likewise.
10458 * c-decl.c: Likewise.
10459 (gt_ggc_mp_binding_level): Delete.
10460 * c-lang.c: Include gtype-c.h.
10461 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
10463 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
10464 (gt_ggc_mp_align_stack): Delete.
10465 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
10466 * function.c: Replace ggc_add_* uses with GTY annotations.
10467 (gt_ggc_mp_function): Delete.
10468 * function.h: Replace ggc_add_* uses with GTY annotations.
10469 * gengtype.c (lang_names): New.
10470 (NUM_BASE_FILES): New.
10471 (open_base_files): Create language base files.
10473 (get_file_basename): New.
10474 (get_base_file_bitmap): New.
10475 (get_output_file_with_visibility): Rename from get_output_file.
10476 Add more mappings for various C/Objc filenames.
10477 (finish_root_table): New.
10478 (write_gc_roots): Handle dependencies and scoping properly.
10479 * gengtype.h: Add prototypes for new functions.
10480 * ggc-common.c (struct deletable_root): Delete.
10481 (deletables): Delete.
10482 (ggc_add_deletable_root): Delete.
10483 (ggc_mark_roots): No need to deal with deleted functionality.
10484 * ggc.h (ggc_add_deletable_root): Delete prototype.
10485 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
10486 (gtype-objc.h): Add rule to create.
10487 * objc/config-lang.in (gtfiles): New.
10488 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
10489 ggc_add_* with GTY markers. Include gtype-objc.h.
10490 (ggc_mark_imp_list): Delete.
10491 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
10492 * objc/objc-lang.c: Random Whitespace Change.
10494 * except.h (exception_handler_labels): Delete.
10495 (get_exception_handler_labels): New.
10496 * except.c (exception_handler_labels): Delete.
10497 (struct eh_status): Add exception_handler_labels field.
10498 (doing_eh): Don't add exception_handler_labels as root.
10499 (free_eh_status): Don't need to free exception_handler_labels.
10500 (get_exception_handler_labels): New.
10501 (find_exception_handler_labels): Update for move of
10502 exception_handler_labels.
10503 (remove_exception_handler_label): Likewise.
10504 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
10505 * jump.c (rebuild_jump_labels): Likewise.
10506 * loop.c (find_and_verify_loops): Likewise.
10507 * sched-rgn.c (is_cfg_nonregular): Likewise.
10509 * gengtype.c (write_gc_structure_fields): Handle variable-length
10512 * varasm.c (struct weak_syms): Use GGC, gengtype.
10513 (mark_weak_decls): Delete.
10514 (weak_decls): Likewise.
10515 (add_weak): Likewise.
10516 (remove_from_pending_weak_list): Likewise.
10517 (init_varasm_once): Likewise.
10519 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
10520 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
10521 stor-layout.c, regclass.c, and lists.c.
10522 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
10523 gt-regclass.h and gt-lists.h on s-gtype.
10524 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
10525 * except.c: Use gengtype for roots.
10526 * explow.c: Use gengtype for roots. Include gt-explow.h.
10527 * expr.h (init_stor_layout_once): Delete prototype.
10528 * function.c: Use gengtype for roots.
10529 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
10530 * gengtype-yacc.y (start): Can also be an externstatic.
10531 (externstatic): New production.
10532 (struct_fields): Correct array bounds inversion for 2-d arrays.
10533 * gengtype.c (variables): New variable.
10534 (note_variable): New function.
10535 (get_output_file): Include libfuncs.h into gtype-desc.c.
10536 (get_output_file_name): New function.
10537 (write_gc_structure_fields): Suppress warnings.
10538 (write_gc_types): Make static.
10539 (put_mangled_filename): New function.
10540 (write_gc_roots): New function.
10541 (main): Call write_gc_roots.
10542 * gengtype.h (note_variable): Prototype.
10543 (get_output_file_name): Prototype.
10544 (write_gc_types): Delete prototype.
10545 * ggc.h: Clean up unnecessary structure predefinitions.
10546 (struct ggc_root_tab): Define.
10547 (gt_ggc_m_rtx_def): Make function, not macro.
10548 (gt_ggc_m_tree_node): Likewise.
10549 * libfuncs.h: Use gengtype for roots.
10550 * lists.c: Use gengtype for roots. Include gt-lists.h.
10551 (init_EXPR_INSN_LIST_cache): Delete.
10552 * optabs.c: Use gengtype for roots.
10553 (gt_ggc_mp_optab): Delete.
10554 * optabs.h: Use gengtype for roots.
10555 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
10556 * rtl.h: Use gengtype for roots.
10557 (init_EXPR_INSN_LIST_cache): Delete prototype.
10558 * stor-layout.c: Use gengtype for roots.
10559 Include gt-stor-layout.h.
10560 (init_stor_layout_once): Delete.
10561 * toplev.c: Use gengtype for roots. Delete calls to deleted
10563 * tree.c: Use gengtype for roots.
10564 * tree.h: Use gengtype for roots.
10565 * varasm.c: Use gengtype for roots.
10567 * Makefile.in (GTFILES): Add @all_gtfiles@.
10568 * configure: Regenerate.
10569 * configure.in: Construct all_gtfiles from the gtfiles definitions
10571 * gengtype-yacc.y (type): Warn about duplicate structure names.
10572 * gengtype.c (get_output_file): Handle .c files in language
10575 * Makefile.in (GTFILES): Run gengtype on all the config files
10576 and on the target .c file.
10577 * except.c (mark_eh_region): Delete.
10578 (init_eh_for_function): Use GGC on struct eh_status.
10579 (mark_eh_status): Delete.
10580 (free_eh_status): Use GGC.
10581 (expand_eh_region_start): Use GGC to
10582 (collect_eh_region_array): Allocate last_region_number using GGC.
10583 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
10584 (remove_eh_handler): Let GGC free struct eh_region.
10585 (add_call_site): Use GGC to reallocate call_site_record array.
10586 * function.c (init_machine_status): Update calling sequence.
10587 (mark_machine_status): Likewise.
10588 (mark_lang_status): Likewise.
10589 (prepare_function_start): Update init_machine_status call.
10590 (mark_function_status): Delete.
10591 (maybe_mark_struct_function): Delete.
10592 (ggc_mark_struct_function): Delete.
10593 (gt_ggc_mp_function): New.
10594 (gt_ggc_mr_machine_function): New.
10595 (gt_ggc_mr_language_function): New.
10596 (init_function_once): Use canonical names.
10597 * function.h (struct function): Use gengtype.
10598 (init_machine_status): Return the structure.
10599 (mark_machine_status): Take a 'void *'.
10600 (mark_lang_status): Likewise.
10601 * ggc-common.c (ggc_mark_trees): Use canonical name for
10602 ggc_mark_struct_function.
10603 * tree.h (ggc_mark_struct_function): Delete prototype.
10604 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
10605 (alpha_init_machine_status): Likewise.
10606 (override_options): Use canonical name for alpha_mark_machine_status.
10607 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
10608 * config/arm/arm.h (struct machine_function): Use gengtype.
10609 * config/arm/arm.c (arm_mark_machine_status): Delete.
10610 (arm_init_machine_status): Update calling sequence.
10611 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
10612 * config/cris/cris.c (cris_init_machine_status): Update
10614 * config/d30v/d30v.h (struct machine_function): Use gengtype.
10615 * config/d30v/d30v.c (d30v_init_machine_status): Update
10617 (d30v_mark_machine_status): Delete.
10618 * config/i386/i386.c: Include gt-i386.h.
10619 (struct machine_function): Use gengtype.
10620 (ix86_init_machine_status): Update calling sequence.
10621 (ix86_mark_machine_status): Delete.
10622 (override_options): Use canonical namke for ix86_mark_machine_status.
10623 * config/ia64/ia64.h (struct machine_function): Use gengtype.
10624 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
10626 (ia64_mark_machine_status): Delete.
10627 (ia64_override_options): Use canonical name for
10628 ia64_mark_machine_status.
10629 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
10631 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
10632 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10633 * gengtype.c (get_output_file): Fix warning.
10634 (main): Add prototype to suppress warning.
10635 * tree.c: Remove tree_hash_mark prototype.
10637 * tree.h (init_stmt): Delete prototype.
10638 * toplev.c (lang_independent_init): Don't call init_stmt.
10639 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
10640 (stmt_obstack): Delete.
10641 (POPSTACK): No need to free 'struct nesting'.
10642 (gt_ggc_mr_nesting_cond): Use canonical names.
10643 (gt_ggc_mr_nesting_loop): Use canonical names.
10644 (gt_ggc_mr_nesting_block): Use canonical names.
10645 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
10646 (mark_stmt_status): Delete.
10647 (init_stmt): Delete.
10648 (clear_last_expr): Clear both last_expr_type and last_expr_value.
10649 Use it everywhere that last_expr_type was cleared.
10650 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
10651 (zap_lists): Delete.
10652 * ggc.h (ggc_add_deletable_root): Prototype.
10653 (mark_stmt_status): Remove prototype.
10654 * ggc-common.c (ggc_add_deletable_root): New.
10655 (ggc_mark_roots): Handle deletable roots.
10656 * function.c (ggc_mark_struct_function): Use canonical name
10657 for mark_stmt_status.
10658 * emit-rtl.c (free_sequence_stack): New.
10659 (start_sequence): Use a freelist for sequences.
10660 (end_sequence): Likewise.
10661 (init_emit_once): Add free_sequence_stack as a deleteable root.
10662 * c-pragma.c Include gt-c-pragma.h.
10663 (struct align_stack): Use gengtype.
10664 (push_alignment): Use GGC for struct align_stack.
10665 (mark_align_stack): Delete.
10666 (gt_ggc_mp_align_stack): New.
10667 (init_pragma): Use canonical name for mark_align_stack.
10668 * c-decl.c: Include gt-c-decl.h.
10669 (struct binding_level): Use gengtype.
10670 (make_binding_level): Use GGC; handle the freelist here.
10671 (pop_binding_level): New.
10672 (pushlevel): Move code into make_binding_level.
10673 (push_label_level): Likewise.
10674 (poplevel): Move code into pop_binding_level.
10675 (pop_label_level): Likewise.
10676 (mark_binding_level): Delete.
10677 (gt_ggc_mp_binding_level): New.
10678 (c_init_decl_processing): Use canonical name for mark_binding_level.
10679 Add free_binding_level as deletable root.
10680 (mark_c_function_context): Use canonical name for mark_binding_level.
10681 * Makefile.in (c-decl.o): Add gt-c-decl.h.
10682 (c-pragma.o): Add gt-c-pragma.h.
10683 (GTFILES): Add c-decl.c and c-pragma.c.
10684 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
10686 * tree.c (struct type_hash): Use gengtype.
10687 (init_obstacks): Use canonical name for type_hash_mark.
10688 (type_hash_mark): Delete.
10690 * rtl.h (struct mem_attrs): Use gengtype.
10691 * optabs.h (struct optab): Use gengtype.
10692 * optabs.c (expand_binop): Squish signed/unsigned warning.
10693 (mark_optab): Make local, use canonical name, use autogenerated
10695 (init_optabs): Use canonical name for mark_optab.
10696 (new_optab): Use GGC to allocate optabs.
10697 * ggc.h: Delete mark_optab prototype.
10698 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
10699 mem_attrs marker procedure.
10700 * gengtype.c (get_output_file): Include headers in gtype-desc.c
10701 explicitly rather than deducing them from file names.
10702 (write_gc_structure_fields): Handle arrays of structures.
10703 (main): Return non-zero exit code if errors occur during output.
10704 * emit-rtl.c (mem_attrs_mark): Delete.
10705 (init_emit_once): Use canonical name for mem_attrs marker procedure.
10706 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
10707 (tree.o): Depend on gt-tree.h.
10708 (GTFILES): Add rtl.h, optabs.h, tree.c.
10709 (gt-tree.h): Add it to s-gtype rule.
10711 * .cvsignore: Ignore gengtype flex/bison generated files.
10712 * Makefile.in (GGC_H): Add gtype-desc.h.
10713 (OBJS): Add gtype-desc.o.
10714 (GEN): Add gengtype.
10715 (STAGESTUFF): Add gengtype.
10716 (varasm.o): Add gt-varasm.h.
10717 (stmt.o): Add gt-stmt.h.
10718 (except.o): Add gt-except.h.
10719 (integrate.o): Add gt-integrate.h.
10721 Add new rules for new files.
10722 * configure: Regenerate.
10723 * configure.in: Correct defaults.h paths.
10724 * emit-rtl.c (mark_sequence_stack): Delete.
10725 (mark_emit_status): Delete.
10726 (start_sequence): Allocate sequence structures using GGC.
10727 (end_sequence): Allocate sequence structures using GGC.
10728 * except.c: Use gengtype for various structures. Include
10730 * expr.c (mark_expr_status): Delete.
10731 * function.c: Use gengtype for various structures. Include
10733 (mark_function_status): Use standard gt_ggc names for marker functions.
10734 (ggc_mark_struct_function): Likewise.
10735 * function.h: Use gengtype for various structures.
10736 * gengtype-lex.l: New file.
10737 * gengtype-yacc.y: New file.
10738 * gengtype.c: New file.
10739 * gengtype.h: New file.
10740 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
10741 the standard names. Remove some now-unnecessary prototypes.
10742 * integrate.c: Use gengtype for various structures. Include
10744 (mark_hard_reg_initial_vals): Delete.
10745 * integrate.h (mark_hard_reg_initial_vals): Delete.
10746 * stmt.c: Use gengtype for various structures. Include
10748 (mark_case_node): Delete.
10749 (mark_goto_fixup): Delete.
10750 (mark_stmt_status): Use standard gt_ggc names for marker functions.
10751 * system.h: Define GTY to empty. In flex/bison files,
10752 don't poison malloc or realloc, instead just define them to
10753 xmalloc and xrealloc.
10754 * varasm.c: Use gengtype for various structures. Include
10755 gt-varasm.h. Use standard gt_ggc names for marker functions.
10756 (mark_pool_constant): Delete.
10757 (mark_varasm_status): Delete.
10758 (decode_rtx_const): #if 0 out non-typesafe hack.
10760 * function.h (free_lang_status): Mark as obsolete.
10761 * function.c (free_lang_status): Mark as obsolete.
10762 * c-decl.c (push_c_function_context): Use GC to allocate and free
10763 struct language_function.
10764 (pop_c_function_context): Likewise.
10765 * c-common.c (mark_c_language_function): Mark struct
10768 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
10769 Document that the machine_function structures must be allocated
10770 using GC. Update mark_machine_status documentation.
10771 * function.h: Don't declare free_machine_status.
10772 * function.c (free_machine_status): Don't define.
10773 (free_after_compilation): Don't call free_machine_status.
10774 (ggc_mark_struct_function): Mark f->machine. Call
10775 mark_machine_status only on non-NULL pointers.
10776 * system.h: Poison free_machine_status.
10777 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
10778 struct machine_function.
10779 (xtensa_free_machine_status): Delete.
10780 (override_options): Don't set free_machine_status.
10781 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
10782 free_machine_status.
10783 (rs6000_init_machine_status): Use GC on struct machine_function.
10784 (rs6000_free_machine_status): Delete.
10785 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
10787 (ia64_mark_machine_status): Likewise.
10788 (ia64_free_machine_status): Delete.
10789 (ia64_override_options): Don't set free_machine_status.
10790 * config/i386/i386.c (override_options): Don't set
10791 free_machine_status.
10792 (ix86_init_machine_status): Use GC on struct machine_function.
10793 (ix86_mark_machine_status): Likewise.
10794 (ix86_free_machine_status): Delete.
10795 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
10797 (d30v_mark_machine_status): Likewise.
10798 (d30v_free_machine_status): Delete.
10799 (d30v_init_expanders): Don't set free_machine_status.
10800 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
10802 (arm_init_machine_status): Likewise.
10803 (arm_free_machine_status): Delete.
10804 (arm_init_expanders): Don't set free_machine_status.
10805 * config/alpha/alpha.c (override_options): Don't set
10806 free_machine_status.
10807 (alpha_init_machine_status): Use GC on struct machine_function.
10808 (alpha_mark_machine_status): Likewise.
10809 (alpha_free_machine_status): Delete.
10811 * varasm.c (compare_constant): Fix typo.
10813 * varasm.c: Don't include obstack.h.
10814 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
10815 (struct rtx_const): Give substructures names, improve formatting.
10816 (struct constant_descriptor): Delete.
10817 (struct constant_descriptor_tree): New, based on constant_descriptor.
10818 (const_hash_table): Is a hash table of trees.
10819 (mark_const_hash_entry): Is used for hashes of trees. Mark
10820 constant_descriptor_tree structure.
10821 (mark_const_str_htab_1): Mark deferred_string structure.
10822 (compare_constant): Rewrite to compare trees.
10823 (compare_constant_1): Delete.
10824 (record_constant): Delete.
10825 (record_constant_1): Delete.
10826 (output_constant_def): Use struct constant_descriptor_tree.
10827 Don't duplicate trees twice.
10828 (struct constant_descriptor_rtx): New.
10829 (struct pool_constant): Used for rtx constants.
10830 (init_varasm_status): Update for change to struct varasm_status.
10831 (mark_varasm_status): Likewise.
10832 (free_varasm_status): Delete.
10833 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
10834 (record_constant_rtx): Likewise.
10835 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
10836 (force_const_mem): Likewise.
10837 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
10838 * function.c (free_after_compilation): Don't use free_varasm_status.
10839 * function.h: Don't prototype free_varasm_status.
10841 * ggc-common.c (ggc_realloc): Handle X being NULL.
10843 * ggc-common.c (ggc_realloc): New function.
10844 * ggc.h: Prototype it.
10845 * emit-rtl.c (free_emit_status): Delete.
10846 (init_emit): Allocate emit subarrays using GC.
10847 (gen_reg_rtx): Reallocate subarrays using GC.
10848 (init_emit): Use GC to allocate 'struct emit_status' and its
10850 (mark_emit_status): Mark structure and its subarrays.
10851 * stmt.c (free_stmt_status): Delete.
10852 * expr.c (free_expr_status): Delete.
10853 * function.h: Remove prototypes for deleted functions.
10854 * function.c (free_after_compilation): Don't use deleted functions.
10855 Don't call free() on x_parm_reg_stack_loc.
10856 (free_after_parsing): Don't use free_stmt_status.
10857 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
10858 (mark_function_status): Mark x_parm_reg_stack_loc.
10860 * varasm.c (init_varasm_status): Use GC to allocate
10861 'struct varasm_status' and its fields x_const_rtx_hash_table
10862 and x_const_rtx_sym_hash_table.
10863 (mark_varasm_status): Mark them.
10864 (free_varasm_status): Use GC to free them.
10865 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
10866 (mark_expr_status): Mark the structure itself.
10867 (free_expr_status): Use GC to free the structure.
10868 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
10869 (mark_stmt_status): Mark the 'struct stmt_status' itself.
10870 (init_stmt_for_function): Allocate the structure for GC.
10872 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
10873 (equate_type_number_to_die): Likewise.
10874 * tree.h (TYPE_SYMTAB_DIE): New macro.
10875 (struct die_struct): Predeclare.
10876 (struct tree_type): Add field symtab.die. Add a tag
10877 to the union type of field symtab.
10879 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
10880 'struct rtvec_def *', not 'struct rtvec_def'.
10882 * function.h (original_arg_vector): Make a real rtvec.
10883 * function.c (ggc_mark_struct_function): Adjust.
10884 * integrate.c (expand_inline_function): Adjust.
10886 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
10888 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
10889 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
10890 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
10891 (TARGET_VERSION_CPU): Define according to the
10893 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
10894 TARGET_VERSION_CPU.
10895 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
10896 if TARGET_SHMEDIA64.
10897 (LINK_DEFAULT_CPU_EMUL): Define according to the
10899 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
10900 (SUBTARGET_LINK_SPEC): Define.
10901 (LINK_SPEC): Use SH_LINK_SPEC.
10902 (ASM_SPEC): Remove.
10903 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
10904 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
10905 and TARGET_SHMEDIA64 which abort, for now.
10906 * config/sh/t-netbsd-sh5: New file.
10907 * config/sh/t-netbsd-sh5-32: New file.
10908 * config/sh/t-netbsd-sh5-64: New file.
10910 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
10911 Richard Henderson <rth@redhat.com>
10913 * config/alpha/alpha.c (reg_or_const_int_operand): New.
10914 (some_operand, input_operand): Accept CONST_VECTOR.
10915 (alpha_extra_constraint): Add 'W'.
10916 (alpha_expand_zap_mask): New.
10917 (alpha_expand_builtin_vector_binop): New.
10918 (enum alpha_builtin): New.
10919 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
10920 (alpha_init_builtins, alpha_expand_builtin): New.
10921 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
10922 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
10923 (PREDICATE_CODES): Update.
10924 * config/alpha/alpha-protos.h: Update.
10925 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
10926 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
10927 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
10928 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
10929 (movv2si, movv2si_fix, movv2si_nofix): New.
10930 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
10931 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
10932 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
10933 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
10934 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
10935 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
10936 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
10937 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
10938 builtin_unpkbw, unpkbw): New.
10939 * doc/extend.texi (Alpha Built-in Functions): New.
10941 2002-06-03 Richard Henderson <rth@redhat.com>
10943 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
10944 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
10946 2002-06-03 Richard Henderson <rth@redhat.com>
10948 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
10950 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
10951 (const0_operand): New.
10952 (reg_or_fp0_operand, fp0_operand): Remove.
10953 * config/alpha/alpha.h (PREDICATE_CODES): Update.
10954 * config/alpha/alpha-protos.h: Update.
10955 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
10956 and fp0_operand with reg_or_0_operand and const0_operand.
10958 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
10960 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
10962 2002-06-03 Roger Sayle <roger@eyesopen.com>
10964 * gcse.c (cprop_jump): Use single_set to get the pattern
10965 from the setcc argument.
10967 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
10969 * diagnostic.h (diagnostic_count): Move from output_buffer to
10970 diagnostic_context.
10971 (diagnostic_kind_count): Adjust definition.
10973 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
10975 * except.c (except.c): Do not rebuild CFG.
10976 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
10979 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
10981 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
10982 * toplev.c: Include cfglahout.h
10983 * Makefile.in (toplev.c): Add dependnecy.
10985 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
10987 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
10988 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
10989 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
10991 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
10993 * config/ns32k/netbsd.h: Update copyright years.
10994 (TARGET_OS_CPP_BUILTINS): Define.
10995 (CPP_PREDEFINES): Remove.
10996 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
10997 (TARGET_CPU_CPP_BUILTINS): Define.
10999 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
11001 * emit-rtl.c: Fix formatting.
11002 * errors.h: Likewise.
11003 * except.c: Likewise.
11004 * explow.c: Likewise.
11005 * expmed.c: Likewise.
11006 * expr.c: Likewise.
11007 * expr.h: Likewise.
11009 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
11011 * config/h8300/elf.h: Fix formatting.
11012 * config/h8300/rtems.h: Likewise.
11014 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
11016 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
11018 2002-06-02 Tom Tromey <tromey@redhat.com>
11020 * fixinc/fixincl.x: Rebuilt.
11021 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
11023 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11026 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
11027 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
11028 * mvs.h: Similarly.
11031 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
11033 * final.c (final): Allow notes to not have computed addresses;
11034 kill no longer needed STACK_REGS ifdef.
11036 2002-06-02 Richard Henderson <rth@redhat.com>
11038 * gcse.c (bypass_conditional_jumps): Fix typo last change.
11040 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
11042 * loop.c (emit_prefetch_instructions): Properly place the address
11045 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
11047 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
11048 (set_block_for_insn): Turn into macro.
11049 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
11050 * cfglayout.c (insn_scopes): Kill.
11051 (scope_to_insns_initialize): Do not use insn_scopes.
11052 (scope_to_insns_finalize): Likewise.
11053 (duplicate_insn_chain): Likewise.
11054 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
11055 * cfgrtl.c (basic_block_for_insn): Kill.
11056 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
11057 (create_basic_block_structure): Use reorder_insns.
11058 (compute_bb_for_insn): Do not use basic_block_for_insn.
11059 (merge_blocks_nomove): Likewise.
11060 (update_bb_for_insn): Likewise.
11061 (verify_flow_info): Likewise.
11062 (set_block_for_insn): Kill.
11063 * combine.c (try_combine): Update gen_rtx_INSN call.
11064 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
11065 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
11067 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
11068 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
11070 (emit_insns_after): Simplify.
11071 (emit_copy_of_insn_after): Copy scope.
11072 * final.c (final_start_function): Lower scopes.
11073 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
11074 * integrate.c (copy_insn_list): Cope scopes.
11075 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
11076 * loop.c (loop_optimize): Do not care block notes.
11077 * print-rtl.c (print_rtx): Print BB.
11078 * recog.c (apply_change_group): Simplify.
11079 * rtl.c (copy_rtx): Handle 'B'.
11080 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
11081 * rtl.h (Field accessors): Update indexes.
11082 * sched-ebb.c (schedule_ebbs): Do not lower notes.
11083 * sched-rgn.c (schedule_insns): Likewise.
11084 * toplev.c (rest_of_compilation): Lower notes.
11085 * unroll.c (unroll_loop): Do not care scoping notes.
11086 (copy_loop_body): Copy scopes.
11088 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11091 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
11093 * rtems.h: Similarly.
11094 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
11095 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
11096 (TARGET_CPU_CPP_BUILTINS): Use.
11098 2002-06-02 Richard Henderson <rth@redhat.com>
11100 * alias.c: Include target.h.
11101 (mark_constant_function): Use targetm.binds_local_p instead
11102 of checking TREE_PUBLIC ourselves.
11103 * Makefile.in (alias.o): Add TARGET_H.
11105 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11107 * c-lex.c: Update copyright and file description.
11109 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11111 * config/fr30/fr30.h: Update to new CPP macros.
11113 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11115 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
11117 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11118 Zack Weinberg <zack@codesourcery.com>
11120 * c-common.c (c_common_init): Override cpplib's default
11121 warn_long_long setting.
11122 * c-lex.c (lex_number): Replace with interpret_integer,
11123 interpret_float, narrowest_unsigned_type and
11124 narrowest_signed_type, taking advantage of the new
11125 cpplib functionality.
11126 * cpperror.c (_cpp_begin_message): If a warning is turned
11127 into an error, avoid printing "warning:".
11128 * cppexp.c (cpp_num_sign_extend): New.
11129 * cppinit.c: Update comment.
11130 * cpplib.h (cpp_num_sign_extend): New.
11131 * tree.h: Update comment.
11133 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
11135 * diagnostic.h (struct diagnostic_context): Add new member
11137 (internal_error_function): Remove declaration.
11138 * diagnostic.c (internal_error_function): Remove definition..
11139 (internal_error): Adjust use.
11141 2002-06-02 Richard Henderson <rth@redhat.com>
11143 * rtl.h (CC0_P): New.
11144 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
11145 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
11146 (bypass_block): Save old dest block for dump text.
11147 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
11148 Allow only true SET insns, not single_set.
11150 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
11152 * diagnostic.c (diagnostic_finish): Rename to output_flush.
11153 (clear_disgnostic_info): Rename to output_clear_data. Use false
11154 instead of 0 for boolean value.
11155 Adjust function call throughout.
11157 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
11159 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
11160 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
11162 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11164 * d30v.h (CPP_PREDEFINES): Replace with
11165 (TARGET_CPU_CPP_BUILTINS): New.
11167 2002-06-02 Roger Sayle <roger@eyesopen.com>
11169 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
11171 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
11173 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
11175 2002-06-02 Richard Henderson <rth@redhat.com>
11177 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
11179 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
11181 Support for C++ constructors/destructors.
11182 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
11183 instead of looping if main() returns.
11184 (asm_file_start): Output global symbols that cause .data and .bss
11185 initialization code to be linked in, unconditionally for now.
11186 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
11187 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
11188 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11190 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
11191 (__tablejump__): New.
11192 (__do_copy_data, __do_clear_bss): New.
11193 (__do_global_ctors, __do_global_dtors): New.
11194 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
11197 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11199 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
11200 (CPP_SPEC, CPP_PREDEFINES): Kill.
11201 * c4x/rtems.h (CPP_PREDEFINES): Kill.
11202 (TARGET_OS_CPP_BUILTINS): New.
11204 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
11206 * Makefile.in (tracer.o): New.
11207 * params.def (TRACER_*): New options.
11208 * rtl.h (tracer): Declare.
11209 * timevar.def (TV_TRACER): New.
11210 * toplev.c (dump_file_index): Add DFI_tracer.
11211 (dump_file_info): Add tracer.
11212 (flag_tracer): New.
11213 (lang_indepdenent_options): Add tracer.
11214 (rest_of_compilation): Call tracer.
11215 * tracer.c: New file.
11216 * invoke.texi (-ftracer): Document.
11217 (--param tracer-*): Document.
11219 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
11221 * tree-inline.c (expand_call_inline): Make the statement
11222 expression we generate have a COMPOUND_STMT.
11224 2002-06-01 Roger Sayle <roger@eyesopen.com>
11226 * gcse.c (cprop_cc0_jump): Function deleted.
11227 (cprop_jump): Take an additional argument which is the possibly
11228 NULL cc setting insn immediately before the conditional jump.
11229 When a MODE_CC set is present, substitute it into the JUMP_INSN
11230 before attempting the constant propagation.
11231 (cprop_insn): Recognize cc setters followed by conditional jumps
11232 as a special case. Use cprop_jump instead of cprop_cc0_jump.
11233 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
11234 (find_bypass_set): New function based upon find_avail_set used by
11235 cprop, but finds constant expressions available at the end of
11237 (bypass_block): New function. Given a basic block that begins
11238 with a conditional jump and multiple incoming edges, perform
11239 the jump bypass optimization.
11240 (bypass_conditional_jumps): New function. Call bypass_block with
11241 each suitable basic block in the CFG using a simple single pass.
11243 2002-06-01 Roger Sayle <roger@eyesopen.com>
11245 * tree.c (real_minus_onep): New function to test for -1.0.
11246 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
11248 2002-06-01 Roger Sayle <roger@eyesopen.com>
11250 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
11251 and "!p && !q" into "(p|q) == 0" under suitable conditions.
11253 2002-06-01 Andreas Jaeger <aj@suse.de>
11255 * cppexp.c (cpp_classify_number): Cast precission to int for
11256 correct printf format.
11258 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
11260 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
11261 expected, but don't really exist: atmega83, atmega85, attiny10.
11262 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
11263 emulations for all devices.
11264 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
11265 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
11267 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
11269 * config/h8300/h8300-protos.h: Add a prototype for
11270 h8300_shift_needs_scratch_p.
11271 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
11272 * config/h8300/h8300.h (OK_FOR_R): New.
11273 (OK_FOR_S): Likewise.
11274 (OK_FOR_T): Likewise.
11275 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
11276 * config/h8300/h8300.md (anonymous shift patterns): Use
11277 constraints R, S, and T.
11279 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11281 * basic-block.h (struct basic_block_def): New field loop_father.
11282 (BB_VISITED): New flag.
11283 (struct loop): New field pred, removed field shared.
11284 (struct loops): New field parray.
11285 (LOOP_EXITS_DOMS): Removed.
11286 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
11287 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
11288 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
11289 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
11290 verify_loop_structure): Declare.
11291 * cfg.c (entry_exit_blocks): Initialize loop_father field.
11292 * cfganal.c (dfs_enumerate_from): New function.
11293 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
11294 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
11295 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
11296 flow_loop_dump, flow_loops_dump, flow_loops_free,
11297 flow_loop_tree_node_add, flow_loop_level_compute,
11298 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
11299 flow_loop_outside_edge_p): Modified for new infrastructure.
11300 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
11301 redirect_edge_with_latch_update, flow_loop_free): New static functions.
11302 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
11303 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
11304 find_common_loop, verify_loop_structure, loop_latch_edge,
11305 loop_preheader_edge): New functions.
11306 (flow_loops_cfg_dump): Do not show dominators, as this information
11307 does not remain up to date long.
11308 (flow_loops_find): Store results in new format.
11309 * predict.c (propagate_freq, estimate_probability,
11310 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
11313 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
11315 * except.c (nothrow_function_p): Walk epilogue delay list
11316 checking the insn, not the chain for potential throws.
11318 2002-05-31 Zack Weinberg <zack@codesourcery.com>
11320 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
11321 (install): Refer to install-cpp directly.
11322 (uninstall-cpp): Folded into uninstall rule.
11323 * configure.in: Delete all code relating to --disable-cpp.
11324 * configure: Regenerate.
11325 * config/t-install-cpp: Delete.
11327 2002-05-31 Richard Henderson <rth@redhat.com>
11329 * configure.in (HAVE_AS_TLS): Add alpha tests.
11330 * configure: Rebuild.
11331 * config/alpha/alpha.c (TARGET_AS_TLS): New.
11332 (alpha_tls_size, alpha_tls_size_string): New.
11333 (overide_options): Set it. Always install machine_status hooks.
11334 (input_operand): Accept got tls predicates.
11335 (local_symbol_p): Merge into ...
11336 (local_symbolic_operand): ... here. Reject tls symbols.
11337 (global_symbolic_operand): Likewise.
11338 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
11339 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
11340 (tp16_symbolic_operand, tp32_symbolic_operand): New.
11341 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
11342 (alpha_encode_section_info): Handle TLS symbols.
11343 (alpha_strip_name_encoding): Likewise.
11344 (alpha_legitimate_address_p): Likewise.
11345 (alpha_legitimize_address): Likewise.
11346 (alpha_expand_mov): Early exit to avoid nop moves.
11347 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
11348 (alpha_init_machine_status, alpha_mark_machine_status,
11349 alpha_free_machine_status): Always define.
11350 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
11351 (print_operand, print_operand_address): Add TLS relocs.
11352 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
11353 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
11354 (TARGET_SWITCHES): Add -mtls-kernel.
11355 (alpha_tls_size, alpha_tls_size_string): New.
11356 (TARGET_OPTIONS): Add -mtls-size=.
11357 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
11358 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
11359 (ASM_OUTPUT_LABELREF): Skip %.
11360 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
11361 (PREDICATE_CODES): Update.
11362 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
11363 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
11364 UNSPEC_TP, UNSPECV_SET_TP): New.
11365 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
11366 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
11367 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
11368 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
11369 (call_value_osf_2_er): Accept anything as op4.
11370 * config/alpha/alpha-protos.h: Update.
11371 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
11373 2002-05-31 Zack Weinberg <zack@codesourcery.com>
11375 * cppinit.c (append_include_chain): Always pay attention to
11376 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
11377 marker on argument.
11379 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
11381 * target.h: Fix formatting.
11382 * timevar.h: Likewise.
11383 * tlink.c: Likewise.
11384 * toplev.c: Likewise.
11385 * toplev.h: Likewise.
11386 * tree.c: Likewise.
11387 * tree-dump.h: Likewise.
11388 * tree.h: Likewise.
11389 * tree-inline.h: Likewise.
11390 * unroll.c: Likewise.
11391 * unwind-dw2.c: Likewise.
11392 * unwind-dw2-fde.c: Likewise.
11393 * unwind-dw2-fde-glibc.c: Likewise.
11394 * unwind-dw2-fde.h: Likewise.
11395 * unwind.h: Likewise.
11396 * unwind-sjlj.c: Likewise.
11397 * varasm.c: Likewise.
11398 * varray.h: Likewise.
11399 * vmsdbg.h: Likewise.
11400 * vmsdbgout.c: Likewise.
11401 * xcoffout.h: Likewise.
11403 2002-05-31 Igor Shevlyakov <igor@microunity.com>
11405 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
11406 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
11408 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
11410 * gcc.c (cpp_unique_options): Remove "-d" options.
11411 (cpp_debug_options): New spec string.
11412 (default_compilers): Use it.
11413 * objc/lang-specs.h: Likewise.
11415 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
11417 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
11418 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
11419 * gcc/mklibgcc.in: Likewise.
11420 * gcc/config/arc/t-arc: Likewise.
11421 * gcc/configure.in: Likewise.
11422 * gcc/configure: Regenerate.
11424 2002-05-31 Stan Shebs <shebs@apple.com>
11425 Turly O'Connor <turly@apple.com>
11427 * c-decl.c (struct binding_level): Change int field n_incomplete
11428 to tree list incomplete_list.
11429 (clear_binding_level): Init field with NULL.
11430 (pushdecl): Add incomplete type to list.
11431 (mark_binding_level): Mark the incomplete list.
11432 (finish_struct): Scan the incomplete list for types instead
11433 of all decls in the current binding level.
11435 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
11437 * pa.c (output_millicode_call): Add missing '%' characters.
11438 (output_call): Likewise.
11440 2002-05-31 David Edelsohn <edelsohn@gnu.org>
11442 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
11443 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
11445 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
11447 * varasm.c (mark_constant_pool): Walk epilogue delay list
11448 checking the insn, not the chain for potential constants.
11450 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
11452 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
11454 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
11456 * i386.c (classify_argument): Properly handle base types.
11458 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
11459 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
11462 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
11464 * gcse.c (gcse_emit_move_after): New.
11465 (pre_delete, hoist_store): Use it.
11467 * reload1.c (emit_input_reload_insns): Use constrain_operands
11468 instead of constraint_accepts_reg_p to verify optimization.
11469 (constraint_accepts_reg_p): Kill
11471 * reload1.c (reload_cse_delete_noop_set): Kill.
11472 (reload_cse_simplify): use delte_insn_and_edges.
11474 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11476 * cfgloop.c (flow_loops_find): Initialize first and last fields
11479 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
11481 * c-common.c (builtin_define_std): Correct logic.
11483 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
11485 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
11486 (output_call): Likewise.
11488 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
11490 * pa.c: Move output.h include after tree.h include.
11491 (pa_asm_output_mi_thunk): Constify identifier lab.
11493 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
11495 * config/ns32k/ns32k.h: Define named constants for the
11496 bits in target_flags and use them.
11497 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
11499 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
11501 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
11502 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
11503 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
11504 default scheduling model.
11505 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
11506 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
11507 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
11508 * doc/install.texi (hppa*-*-*): Document default scheduling.
11510 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
11512 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
11514 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
11516 * config.gcc (ns32k-*-netbsd*): Set tm_file to
11517 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
11518 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
11519 netbsd.h, or netbsd-aout.h.
11521 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
11523 * longlong.h (count_trailing_zeros): Add missing \, and clean up
11524 whitespace in __ns32000__ case.
11526 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
11528 * expr.c (expand_expr): Output partially zeroed out vectors with
11529 output_constant_def.
11531 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
11533 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
11535 (shl*-*-netbsdelf*): New targets.
11536 * config/sh/netbsd-elf.h: New file.
11537 * config/sh/t-netbsd: New file.
11539 2002-05-30 Richard Henderson <rth@redhat.com>
11540 Eric Botcazou <ebotcazou@multimania.com>
11542 PR optimization/6822
11543 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
11544 to unsigned int for op1 comparisons. Use gen_int_mode.
11546 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
11548 * expmed.c (const_mult_add_overflow_p): New.
11549 * expr.h: Declare it.
11550 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
11551 Don't eliminate the biv if the giv has a constant multiplier and
11552 the rhs argument of the comparison does satisfy the predicate.
11553 Use expand_mult_add to compute the replacement constant.
11555 2002-05-30 Osku Salerma <osku@iki.fi>
11557 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
11558 (c_common_get_alias_set): Handle it.
11559 * doc/extend.texi: Document it.
11561 2002-05-30 Richard Henderson <rth@redhat.com>
11563 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
11564 * toplev.c (process_options): Don't check it.
11565 * doc/tm.texi: Don't document it.
11566 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
11567 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
11568 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
11569 frame pointer optimization if current_function_profile.
11571 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
11573 * langhooks.c: Fix formatting.
11574 * langhooks.h: Likewise.
11576 * libgcc2.c: Likewise.
11577 * lists.c: Likewise.
11578 * local-alloc.c: Likewise.
11579 * loop.c: Likewise.
11580 * loop.h: Likewise.
11582 2002-05-30 Marc Espie <espie@openbsd.org>
11584 * config.gcc (sparc64-*-openbsd*): New.
11585 * config/sparc/openbsd1-64.h: New.
11586 * config/sparc/openbsd64.h: New.
11588 2002-05-30 Jeff Law <law@redhat.com>
11590 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
11591 a dead insn with a REG_RETVAL note when the entire libcall is not
11592 dead and remove the associated REG_LIBCALL note at the same time.
11594 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
11596 * lcm.c (output.h): #include.
11597 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
11598 as an ordinary block.
11599 (optimize_mode_switching): Don't pretend that the exit block is
11600 an ordinary block, or handle sucessors of entry block specially.
11601 Instead, split edges from entry block and to exit block, and
11602 put a computing definition on the thus gained post-entry-block,
11603 and a need on the pre-exit-block.
11605 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
11607 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
11608 * rtl.texi: Document 'B'
11610 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
11612 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
11614 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
11616 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
11618 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
11619 const0_rtx instead of NULL_RTX when in error.
11620 (altivec_expand_abs_builtin): Same.
11621 (rs6000_expand_binop_builtin): Same.
11622 (altivec_expand_predicate_builtin): Same.
11623 (altivec_expand_stv_builtin): Same.
11624 (rs6000_expand_ternop_builtin): Same.
11625 (altivec_expand_builtin): Same.
11627 2002-05-29 David S. Miller <davem@redhat.com>
11629 * rtl.h (clear_emit_caches): Delete.
11630 * integrate.c (output_inline_function): Don't call it.
11631 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
11632 (clear_emit_caches): Delete definition.
11633 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
11635 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
11637 * config/mmix/mmix.c: Include real.h.
11638 (mmix_constant_address_p): Remove redundant test before switch.
11640 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
11642 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
11643 only if not already defined.
11645 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
11647 * config/h8300/h8300-protos.h: Remove prototypes for
11648 ok_for_bclr and small_power_of_two.
11649 * config/h8300/h8300.c (small_power_of_two): Remove.
11650 (ok_for_blcr): Likewise.
11651 (fix_bit_operand): Make WHAT deal with an integer instead of a
11652 constraint character.
11653 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
11654 (CONST_OK_FOR_P): Likewise.
11655 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
11656 CONST_OK_FOR_P any more.
11657 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
11658 of fix_bit_operand.
11659 (iorqi3): Likewise.
11660 (xorqi3): Likewise.
11662 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
11664 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11665 (CPP_PREDEFINES): Make sure this is undefined.
11666 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
11667 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
11668 or -U__MIPSEB__ before defining one or the other. Instead,
11669 use %(subtarget_endian_default) if neither -EB nor -EL are
11671 (SUBTARGET_EXTRA_SPECS): Define.
11672 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
11673 %(netbsd_cpp_spec).
11675 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
11677 * doc/md.texi (Patterns): Note pattern condition pitfall
11680 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
11682 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
11683 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
11684 ternary operations from here...
11685 (rs6000_expand_builtin): ...to here.
11686 New argument expandedp.
11687 Change all instances of altivec_expand_binop_builtin to
11688 rs6000_expand_binop_builtin.
11689 (altivec_expand_unop_builtin): Rename to
11690 rs6000_expand_unop_builtin.
11691 (altivec_expand_binop_builtin): Rename to
11692 rs6000_expand_binop_builtin.
11693 (altivec_expand_ternop_builtin): Rename to
11694 rs6000_expand_ternop_builtin.
11696 2002-05-29 Richard Henderson <rth@redhat.com>
11698 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
11699 (TARGET_BI_ARCH): Likewise.
11700 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
11701 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
11702 (TARGET_64BIT_DEFAULT): Default to 0.
11703 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
11705 2002-05-29 Richard Henderson <rth@redhat.com>
11707 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
11708 (get_pc_thunk_name): New.
11709 (output_set_got): Use it.
11710 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
11711 into linkonce sections.
11713 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
11715 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
11716 (CPP_PREDEFINES): Make sure this is undefined.
11717 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
11718 (CPP_SUBTARGET_SPEC): Don't provide different versions for
11719 default-32 and default-64. Just always use %(netbsd_cpp_spec).
11720 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
11721 cpp_subtarget_spec64. Add netbsd_cpp_spec.
11722 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11723 (CPP_PREDEFINES): Make sure this is undefined.
11724 (SUBTARGET_EXTRA_SPECS): Define.
11725 (CPP_SPEC): Use %(netbsd_cpp_spec).
11727 2002-05-29 Jeff Law <law@redhat.com>
11729 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
11731 * flow.c (propagate_one_insn): Do not remove a dead insn if it
11732 contains a REG_RETVAL note.
11734 * haifa-sched (sched_analyze): Remove another useless clearing
11735 of SCHED_GROUP_P I missed yesterday.
11737 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
11738 * pa.c (pa_asm_output_mi_thunk): New function.
11739 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
11741 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
11742 Marek Michalkiewicz <marekm@amelek.gda.pl>
11744 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
11745 (avr_asm_only_p): Make non-static.
11746 (enum avr_arch): Remove.
11747 (avr_arch_types): New.
11748 (avr_mcu_types): Update.
11749 (avr_override_options): Use avr_arch_types table instead of switch.
11750 * avr.h (CPP_PREDEFINES): Die.
11751 (avr_base_arch_macro, avr_extra_arch_macro): New.
11752 (TARGET_CPU_CPP_BUILTINS): New.
11753 (CPP_SPEC, EXTRA_SPECS): Simplify.
11754 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
11755 CPP_AVR5_SPEC): Die.
11757 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
11759 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
11760 NETBSD_OS_CPP_BUILTINS_AOUT.
11761 (SUBTARGET_EXTRA_SPECS): Define.
11762 (CPP_SPEC): Use %(netbsd_cpp_spec).
11764 2002-05-29 Richard Henderson <rth@redhat.com>
11766 * config/i386/i386.c (ix86_output_function_epilogue): New.
11767 (TARGET_ASM_FUNCTION_EPILOGUE): New.
11768 (pic_label_name): Remove.
11769 (pic_labels_used): New.
11770 (ix86_asm_file_end): Emit one pc load stub for each register used.
11771 (output_set_got): Generate deep pc load to any register.
11772 (ix86_select_alt_pic_regnum): New.
11773 (ix86_save_reg): Don't save pic register if we can find a valid
11774 call-clobbered replacement.
11775 (ix86_expand_prologue): If we found a valid replacement, renumber
11776 pic_offset_table_rtx.
11777 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
11778 pic_offset_table_rtx after reload.
11779 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
11780 * config/i386/i386.md (set_got): Make insn, not expander.
11781 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
11783 2002-05-29 Richard Henderson <rth@redhat.com>
11785 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
11786 alignment for alloca.
11788 2002-05-29 Richard Henderson <rth@redhat.com>
11790 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
11791 (print_operand_address): Only add rip for symbolic addresses
11792 for which we do not have another relocation type.
11794 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
11796 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
11797 (EXTRA_SPECS): Add netbsd_cpp_spec.
11798 (CPP_SPEC): Use %(netbsd_cpp_spec).
11799 (CPP_PREDEFINES): Remove.
11800 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11801 (EXTRA_SPECS): Define.
11802 (CPP_SPEC): Use %(netbsd_cpp_spec).
11803 (CPP_PREDEFINES): Remove.
11805 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
11807 PR preprocessor/6844
11808 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
11811 2002-05-29 Eric Christopher <echristo@redhat.com>
11813 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
11814 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
11816 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
11818 * config/fr30/fr30.md: Remove previous restriction on splits.
11819 Enforce conformance through gen_lowpart and cont_int_operand.
11820 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
11821 as the assembler does not support ".bss".
11823 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
11825 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
11826 (CPP_PREDEFINES): Remove.
11827 (SUBTARGET_EXTRA_SPECS): Define.
11828 (CPP_SPEC): Use %(netbsd_cpp_spec).
11829 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11830 (CPP_PREDEFINES): Remove.
11831 (SUBTARGET_EXTRA_SPECS): Define.
11832 (CPP_SPEC): Use %(netbsd_cpp_spec).
11833 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
11834 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
11835 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
11836 Add netbsd_cpp_spec.
11837 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
11839 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
11840 Zack Weinberg <zack@codesourcery.com>
11842 * cppexp.c (cpp_num): Move to cpplib.h.
11843 (CPP_ERROR): Remove.
11844 (interpret_float_suffix, interpret_int_suffix): New.
11845 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
11846 (cpp_classify_number, cpp_interpret_integer): New.
11847 (interpret_number): Remove.
11848 (eval_token): Update to use new routines.
11849 * cpphash.h (cpp_num_part): Move to cpplib.h.
11850 * cppinit.c (cpp_post_options): Set warn_long_long.
11851 * cpplib.h (struct cpp_options): Add warn_long_long.
11852 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
11853 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
11854 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
11855 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
11856 cpp_interpret_integer): New.
11858 2002-05-29 Joel Sherrill <joel@OARcorp.com>
11860 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
11862 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
11864 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
11865 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
11866 (CPP_SUBTARGET_SPEC): Define.
11867 (SUBTARGET_EXTRA_SPECS): Define.
11868 (CPP_SPEC): Remove.
11870 2002-05-29 Chris Lattner <sabre@nondot.org>
11872 * ssa.c (rename_insn_1): Rename uses of undefined registers to
11873 prevent confusion if/when the register is defined.
11875 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
11878 * config/cris/cris.md: Fix typos and thinkos in comments.
11879 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
11880 second alternative.
11881 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
11882 ("*mov_sideqi_mem"): Similar, but for operand 3.
11883 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
11884 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
11885 Remove spurious mode specifier on operand 2.
11887 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
11889 * config/h8300/h8300-protos.h: Remove the prototype for
11891 Add prototypes for single_one_operand and single_zero_operand.
11892 * config/h8300/h8300.c (o_operand): Remove.
11893 (single_one_operand): New.
11894 (single_zero_operand): Likewise.
11895 (print_operand): For 'V' operand, and the operand with 0xff.
11896 For 'V' and 'W' operands, do not and the bit position with 7.
11897 * config/h8300/h8300.md (various anonymous patterns): Replace
11898 use of exact_log2 with single_one_operand/single_zero_operand.
11900 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
11902 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
11904 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
11906 * config/s390/s390.c (legitimate_pic_operand_p): Do not
11907 accept symbolic LARL operands.
11908 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
11911 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
11913 * config/s390/s390.md (cmpstr_64/31): Mark whole
11914 input registers as used.
11916 2002-05-28 Richard Henderson <rth@redhat.com>
11918 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
11919 not current_function_uses_pic_offset_table and
11920 current_function_uses_const_pool; examine current_function_profile.
11921 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
11922 input to blockage if needed.
11923 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
11924 (legitimize_pic_address): Likewise. Set regs_ever_live for
11925 pic_offset_table_rtx when invoked during reload.
11926 * config/i386/i386.h (FINALIZE_PIC): Remove.
11927 * config/i386/i386.md (tablejump): Reformat. Do not set
11928 current_function_uses_pic_offset_table.
11929 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
11930 (blockage): Accept anything as operand 0.
11932 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
11934 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
11935 common CPP built-ins for all NetBSD a.out targets.
11936 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
11937 common CPP built-ins for all NetBSD ELF targets.
11938 * config/netbsd.h: Add missing notice.
11939 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
11940 for all NetBSD targets.
11941 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
11942 for all NetBSD targets using an LP64 code model.
11943 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
11946 2002-05-28 Richard Henderson <rth@redhat.com>
11948 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
11949 update if UPDATE_LIFE_LOCAL.
11951 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
11953 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
11955 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
11956 Jason R. Thorpe <thorpej@wasabisystems.com>
11958 config/sh reorganization to factor out endianness and coff:
11960 * config/sh/little.h: New file.
11961 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
11962 defined, define to 0 to select big-endian.
11963 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
11964 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
11965 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
11966 * config/sh/t-be: New file.
11967 * config/sh/t-le: New file.
11969 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
11970 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
11971 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
11972 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
11973 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
11974 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
11975 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
11976 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
11977 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
11978 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
11979 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
11980 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
11981 (LINK_SPEC): Define to SH_LINK_SPEC.
11982 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
11983 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
11984 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
11985 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
11986 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
11987 * config/sh/coff.h: New file.
11988 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
11989 (TARGET_OBJFMT_CPP_BUILTINS): Define.
11990 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
11991 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
11992 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
11993 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
11994 (PTRDIFF_TYPE): Likewise.
11995 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
11996 (CPP_PREDEFINES): Don't define.
11997 (TARGET_OBJFMT_CPP_BUILTINS): Define.
11998 (LINK_SPEC): Define to SH_LINK_SPEC.
11999 (LINK_EMUL_PREFIX): Redefine.
12000 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
12001 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
12002 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
12003 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
12004 (TARGET_OS_CPP_BUILTINS): Define.
12005 (TARGET_DEFAULT): Redefine.
12006 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
12007 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
12008 (LINK_SPEC): Don't redefine.
12009 (LINK_DEFAULT_CPU_EMUL): Redefine.
12010 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
12011 * sh.c (sh_asm_named_section): Don't declare / define.
12012 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
12013 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
12014 (sh64-*-elf* tm_file): Likewise.
12015 (sh-*-rtemself* tm_file): Likewise.
12016 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
12017 (sh-*-linux* tmake_file): Add sh/t-le.
12018 (sh-*-rtems* tm_file): Add sh/coff.h
12019 (sh-*-* tm_file): Likewise.
12021 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
12023 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
12024 CONSTANT_POOL_ADDRESS_P.
12026 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
12028 2002-05-28 David Edelsohn <edelsohn@gnu.org>
12029 Jeff Law <law@redhat.com>
12031 * optabs.c (expand_binop): Fix nwords sign warnings.
12032 generate pseudo for add_optab.
12034 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
12035 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
12037 2002-05-28 Marc Espie <espie@openbsd.org>
12039 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
12040 inherited from gas.h.
12041 (ASM_QUAD): Undef. OpenBSD does not support it.
12043 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
12045 * doc/install.texi (binaries): Change mingw binaries
12046 link to www.mingw.org.
12048 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12050 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
12052 2002-05-28 Richard Henderson <rth@redhat.com>
12054 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
12055 bottom alignment for leaf functions.
12057 2002-05-28 Zack Weinberg <zack@codesourcery.com>
12059 * config/pa/milli32.S, config/pa/lib1funcs.asm,
12060 config/sparc/sol2-g1.asm: Delete unused files.
12062 2002-05-28 Richard Henderson <rth@redhat.com>
12064 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
12066 * flow.c (calculate_global_regs_live): Rename call_used to
12067 invalidated_by_call. Initialize from regs_invalidated_by_call
12068 instead of call_used_regs.
12070 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
12073 2002-05-28 Zack Weinberg <zack@codesourcery.com>
12075 * tree.h: Don't include real.h.
12076 Forward-declare struct realvaluetype.
12077 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
12079 (TREE_REAL_CST_PTR): New accessor.
12080 (TREE_REAL_CST): Update.
12081 * real.h: Include machmode.h.
12082 (realvaluetype): Make it struct realvaluetype, not a typedef.
12083 (build_real): Prototype here.
12085 * tree.c: Include real.h.
12086 (build_real): Allocate the REAL_VALUE_TYPE as a separate
12087 object in GC memory, set TREE_REAL_CST_PTR to point to it.
12088 (build_real_from_int_cst): Use build_real.
12089 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
12092 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
12093 fold-const.c, print-tree.c, real.c: Include real.h.
12094 * Makefile.in: Update dependency lists.
12096 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12098 * basic-block.h (last_basic_block): Declare.
12099 (expunge_block_nocompact): Declaration removed.
12100 (compact_blocks): Declare.
12101 * cfg.c (last_basic_block): New variable.
12102 (expunge_block_nocompact): Removed.
12103 (expunge_block): Do not compact basic blocks.
12104 (compact_blocks): New.
12105 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
12107 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
12109 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
12110 real positions of blocks.
12111 (delete_unreachable_blocks): Simplified -- quadratic behavior now
12113 (cleanup_cfg): Compact blocks.
12114 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
12115 basic_block_info varray.
12116 (flow_delete_block): Comment update.
12117 (back_edge_of_syntactic_loop_p): Modify position check code.
12118 (verify_flow_info): Update checking.
12119 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
12120 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
12121 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
12122 indices no longer change.
12123 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
12125 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
12126 * profile.c (branch_prob): Compact blocks.
12127 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
12130 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
12132 * config/h8300/h8300.md (two anonymous patterns): New.
12134 2002-05-28 David S. Miller <davem@redhat.com>
12136 * config/sparc/sparc.md (cpu): Tidy.
12137 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
12139 (in_call_delay): Delete reference to 'return' type.
12140 (eligible_for_return_delay, in_return_delay, define_delay
12141 referencing those): Delete.
12142 (rest of file): Use new type attributes as appropriate.
12143 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
12144 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
12145 * config/sparc/ultra1_2.md (us1_single): New reservation.
12146 (us1_ialuX): Likewise.
12147 * config/sparc/ultra3.md (us3_single): Likewise.
12148 (us3_ialuX): Likewise.
12149 (us3_imul, us3_idiv): Tweak.
12151 2002-05-28 Richard Henderson <rth@redhat.com>
12153 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
12156 2002-05-28 Richard Henderson <rth@redhat.com>
12158 * config.gcc: Obsolete mn10200.
12160 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
12162 * cppexp.c (interpret_number): Optimize for single-digit
12163 and less-than-half-precision cases.
12164 (num_trim, num_positive, num_div_op): Cast constants.
12166 2002-05-27 Bo Thorsen <bo@suse.de>
12168 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
12169 3.1 branch. The file was made by Jakub Jelinek.
12170 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
12171 support so multilib doesn't break. And don't define this at all
12172 when -Dinhibit_libc is used.
12173 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
12174 * config/i386/t-linux64: Implement full multilib support. Patch
12175 originally done by Andreas Jaeger and Jakub Jelinek.
12177 2002-05-27 Roger Sayle <roger@eyesopen.com>
12179 * c-common.c: Add support for __attribute__((nothrow)) to specify
12180 that a function cannot throw an exception (using TREE_NOTHROW).
12181 (handle_nothrow_attribute): New function to process this attribute.
12183 * doc/extend.texi: Document the new nothrow function attribute.
12185 2002-05-27 H.J. Lu (hjl@gnu.org)
12187 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
12188 (num_positive): Likewise.
12189 (num_div_op): Likewise.
12191 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
12193 * c-common.c (c_common_init): Always use intmax_t.
12195 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
12197 * c-common.c (c_common_init): Use intmax_t for now.
12199 2002-05-24 Andrew Haley <aph@redhat.com>
12201 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
12202 if T is a boolean type.
12204 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12206 * basic-block.h (last_basic_block): Defined as synonym for
12208 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
12209 flow_depth_first_order_compute, flow_preorder_transversal_compute,
12210 flow_dfs_compute_reverse_init): Replaced relevant occurences of
12211 n_basic_blocks with last_basic_block.
12212 * cfgbuild.c (make_edges): Likewise.
12213 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
12214 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
12215 * combine.c (combine_instructions): Likewise.
12216 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
12217 iterative_dataflow_bitmap): Likewise.
12218 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
12219 calc_idoms, idoms_to_doms): Likewise.
12220 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
12222 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
12223 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
12224 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
12225 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
12226 delete_null_pointer_checks, compute_code_hoist_vbeinout,
12227 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
12228 compute_store_table, build_store_vectors): Likewise.
12229 * haifa-sched.c (sched_init): Likewise.
12230 * ifcvt.c (if_convert): Likewise.
12231 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
12232 pre_edge_lcm, compute_available, compute_nearerout,
12233 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
12235 * predict.c (estimate_probability, process_note_prediction,
12236 note_prediction_to_br_prob): Likewise.
12237 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
12238 * recog.c (split_all_insns, peephole2_optimize): Likewise.
12239 * regrename.c (copyprop_hardreg_forward): Likewise.
12240 * resource.c (init_resource_info): Likewise.
12241 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
12242 init_regions, schedule_insns): Likewise.
12243 * ssa-ccp.c (ssa_const_prop): Likewise.
12244 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
12245 * ssa.c (compute_dominance_frontiers,
12246 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
12248 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
12249 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
12250 sizes consistently.
12252 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
12254 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
12256 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
12257 hoist_insn_after, hoist_insn_to_edge): New.
12259 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
12261 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
12262 (PROP_FINAL): Include.
12263 * flow.c (life_analysis, update_life_info,
12264 init_propagate_block_info, mark_set_1, mark_used_rgs):
12265 Support SCAN_DEAD_STORE.
12267 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
12269 * c-common.c (c_common_init): Set CPP arithmetic precision.
12270 * cppexp.c (cpp_num_part): Move typedef ...
12271 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
12272 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
12273 (sanity_checks): Update.
12275 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
12277 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
12278 (mkheaders): New rule.
12279 (install-mkheaders): New rule.
12280 * configure.in (all_outputs): Add mkheaders.
12281 * configure: Regenerate.
12282 * mkheaders.in: New file.
12284 2002-05-26 Jakub Jelinek <jakub@redhat.com>
12286 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
12288 2002-05-26 Andreas Jaeger <aj@suse.de>
12290 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
12292 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
12294 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
12295 right_shift): Remove.
12296 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
12298 (struct op): Use cpp_num.
12299 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
12300 num_part_mul, num_unary_op, num_binary_op, num_negate,
12301 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
12302 num_div_op, num_lshift, num_rshift, append_digit): New.
12303 (interpret_number, parse_defined, eval_token, reduce): Update
12304 for two-integer arithmetic.
12305 (binary_handler): New typedef.
12307 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
12308 (_cpp_parse_expr, reduce): Update to handle two-integers.
12309 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
12311 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
12313 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
12314 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
12315 branch insn into account, do not assume 1.
12316 (avr_out_sbxx_branch): New function. Optimize cases of skipping
12317 over single word insn. Handle upper half of I/O space too.
12318 * config/avr/avr.md (*sbrx_branch): Use it.
12319 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
12320 (*sbix_branch, *sbix_branch_bit7): Likewise.
12321 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
12322 Use RTL peepholes to optimize register operand sign tests.
12324 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
12326 * config/avr/avr.c (avr_asm_only_p): New variable.
12327 (avr_override_options): Set it here if AVR1.
12328 (asm_file_start): Test it here, report an error if set.
12330 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
12332 * alias.c: Fix formatting.
12333 * attribs.c: Likewise.
12334 * bb-reorder.c: Likewise.
12335 * bitmap.c: Likewise.
12336 * bitmap.h: Likewise.
12337 * builtins.c: Likewise.
12339 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
12341 * reload.c (find_valid_class): Accept new argument DEST,
12342 choose class accordingly.
12343 (push_reload): Update callers.
12345 2002-05-26 Andreas Jaeger <aj@suse.de>
12347 * combine.c (combine_instructions): Do not indent #if for
12350 2002-05-25 Richard Henderson <rth@redhat.com>
12352 * c-pragma.c (apply_pragma_weak): Convert value identifier to
12353 string for decl_attributes.
12354 (handle_pragma_weak): Call assemble_alias if we're modifying
12357 2002-05-25 Richard Henderson <rth@redhat.com>
12360 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
12361 using rtl instead of fprintf.
12362 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
12363 * config/sparc/sparc-protos.h: Update.
12365 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
12367 * Makefile.in (C_COMMON_H): Fix.
12368 Update other targets.
12369 * c-common.c: Don't include c-lex.h.
12370 (builtin_define_with_value): Make static and prototype.
12371 (builtin_define_std): Move from c-lex.h.
12372 * c-common.h (init_c_lex): Move from c-lex.h.
12373 * c-decl.c: Don't include c-lex.h.
12374 (make_pointer_declarator): Move from c-parse.in.
12375 * c-lex.c: Don't include c-lex.h.
12377 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
12378 (make_pointer_declarator): Move to c-decl.c.
12379 * c-pragma.c: Don't include c-lex.h.
12380 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
12381 * c-tree.h (make_pointer_declarator): New.
12383 * passes.texi, tm.texi: Update.
12385 * Make-lang.in: Update and correct.
12386 * objc-act.c: Don't include c-lex.h or cpplib.h.
12388 * treetree.c: Don't include c-lex.h.
12390 * darwin-c.c: Don't include c-lex.h.
12391 * c4x/c4x-c.c: Don't include c-lex.h.
12392 * c4x/t-c4x: Update.
12393 * i370/i370-c.c: Don't include c-lex.h.
12394 * i370/t-i370: Update.
12395 * i960/i960-c.c: Don't include c-lex.h.
12396 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
12397 * i960/t-960bare: Update.
12398 * i960/t-vxworks: Update.
12399 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
12400 * rs6000/t-darwin: Update.
12401 * rs6000/t-rs6000-c-rule: Update.
12402 * v850/v850-c.c: Don't include c-lex.h.
12403 * v850/v850.c: Don't include c-lex.h or cpplib.h.
12406 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
12408 * tree.def: Fix typos.
12409 * doc/install.texi: Likewise.
12411 2002-05-25 Richard Henderson <rth@redhat.com>
12413 * configure.in (HAVE_AS_TLS): Add ia64 test.
12414 * configure: Rebuild.
12415 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
12416 (override_options): Set it.
12417 (TARGET_HAVE_TLS): New.
12418 (sdata_symbolic_operand): Look for 's'.
12419 (tls_symbolic_operand): New.
12420 (ia64_expand_load_address): Abort for tls symbols.
12421 (gen_tls_get_addr): New.
12422 (gen_thread_pointer): New.
12423 (ia64_expand_move): Split out from movdi. Handle tls symbols.
12424 (rtx_needs_barrier): Add new unspecs.
12425 (ia64_encode_section_info): Handle tls symbols.
12426 (ia64_strip_name_encoding): Strip two encoding chars.
12427 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
12428 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
12429 (TARGET_OPTIONS): Add tls-size.
12430 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
12431 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
12432 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
12433 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
12434 (movsf, movdf): Likewise.
12435 (movdi_symbolic): Use match_scratch. Don't split if we won't
12436 have a scratch availiable.
12437 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
12438 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
12439 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
12440 * config/ia64/ia64-protos.h: Update.
12441 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
12442 sdata_symbolic_operand.
12443 (ASM_OUTPUT_LABELREF): Strip two characters.
12445 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
12447 * combine.c (simplify_set): Remove an unnecessary subreg.
12449 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
12451 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
12453 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
12455 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
12457 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
12459 2002-05-25 Roger Sayle <roger@eyesopen.com>
12461 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
12462 (cond (compare x y) 0) into the equivalent (cond x y).
12464 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
12466 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
12468 2002-05-24 Zack Weinberg <zack@codesourcery.com>
12470 * config.gcc: Remove all stanzas for previously obsoleted
12471 systems. Where necessary, add explicit error stanzas to
12472 prevent removed systems from being misidentified as something
12473 else. Begin a fresh obsoletions list, with the systems that
12474 were reprieved last round.
12475 * doc/install.texi: Remove all mention of dead targets.
12476 * fixinc/mkfixinc.sh: Likewise.
12478 * config/arm/arm.h: Bit 31 of target_flags is no longer
12481 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
12482 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
12483 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
12484 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
12485 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
12486 config/alpha/osf12.h, config/alpha/osf2or3.h,
12487 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
12488 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
12489 config/clipper/clipper-protos.h, config/clipper/clipper.c,
12490 config/clipper/clipper.h, config/clipper/clipper.md,
12491 config/clipper/clix.h, config/convex/convex-protos.h,
12492 config/convex/convex.c, config/convex/convex.h,
12493 config/convex/convex.md, config/convex/fixinc.convex,
12494 config/convex/proto.h, config/elxsi/elxsi-protos.h,
12495 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
12496 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
12497 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
12498 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
12499 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
12500 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
12501 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
12502 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
12503 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
12504 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
12505 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
12506 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
12507 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
12508 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
12509 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
12510 config/m68k/altos3068.h, config/m68k/apollo68.h,
12511 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
12512 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
12513 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
12514 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
12515 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
12516 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
12517 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
12518 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
12519 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
12520 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
12521 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
12522 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
12523 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
12524 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
12525 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
12526 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
12527 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
12528 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
12529 config/mips/dec-osf1.h, config/mips/elflorion.h,
12530 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
12531 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
12532 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
12533 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
12534 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
12535 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
12536 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
12537 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
12538 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
12539 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
12540 config/ns32k/sequent.h, config/ns32k/tek6000.h,
12541 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
12542 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
12543 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
12544 config/sparc/rtems.h, config/we32k/we32k-protos.h,
12545 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
12548 2002-05-24 Richard Henderson <rth@redhat.com>
12550 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
12551 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
12552 * config/i386/i386.c (tls_model_chars): Add leading space.
12553 (tls_symbolic_operand): Don't bias by 1.
12554 (legitimize_address): Don't unbias by 1.
12556 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12558 * lcm.c (optimize_mode_switching): Change bb used as indices
12561 2002-05-24 Richard Henderson <rth@redhat.com>
12563 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
12564 of update_life_info_in_dirty_blocks.
12566 2002-05-24 Jakub Jelinek <jakub@redhat.com>
12569 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
12571 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
12573 PR preprocessor/6780
12574 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
12576 2002-05-24 Jim Blandy <jimb@redhat.com>
12578 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
12579 entry with a type code of zero, marking the end of the compilation
12582 2002-05-24 Richard Henderson <rth@redhat.com>
12584 * varasm.c (asm_output_bss): Always output one byte.
12585 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
12587 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12589 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
12592 2002-05-24 Andreas Jaeger <aj@suse.de>
12594 * ggc-page.c (alloc_page): Cast variables of type size_t to
12595 unsigned long, adjust printf format string.
12596 (ggc_alloc): Likewise.
12597 (ggc_print_statistics): Likewise.
12598 (ggc_print_statistics): Correct printf format string for SCALE to
12601 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
12603 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
12605 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
12606 Zack Weinberg <zack@codesourcery.com>
12608 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
12610 * dwarf2out.c (lookup_filename): Properly quote filename in .file
12611 directive in assembly file.
12612 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
12613 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
12614 * config/pj/pj.h (ASM_FILE_START): Likewise.
12615 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12616 * config/avr/avr.c (asm_file_end): Likewise.
12617 * toplev.c (output_quoted_string): Handle possibly signed plain
12619 * toplev.h (output_clean_symbol_name): Declare
12620 * toplev.c (output_clean_symbol_name): Define.
12621 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
12622 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
12624 2002-05-24 Alan Modra <amodra@bigpond.net.au>
12626 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
12628 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
12630 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
12631 of size of unsigned.
12633 2002-05-23 Richard Henderson <rth@redhat.com>
12635 * configure.in (HAVE_AS_TLS): New test.
12636 * config.in, configure: Rebuild.
12637 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
12638 (ix86_tls_dialect_string, ix86_tls_dialect): New.
12639 (override_options): Set it.
12640 (tls_model_chars, tls_symbolic_operand): New.
12641 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
12642 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
12643 (local_exec_symbolic_operand): New.
12644 (get_pic_label_name): Merge into output_set_got.
12645 (ix86_asm_file_end): Emit pic_label_name if defined.
12646 (legitimate_constant_p, constant_address_p): New.
12647 (legitimate_pic_operand_p): New.
12648 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
12649 (legitimate_address_p): Likewise.
12650 (ix86_encode_section_info): Rename from i386_; handle tls decls.
12651 (ix86_strip_name_encoding): New.
12652 (get_thread_pointer): New.
12653 (legitimize_address): Handle tls symbols.
12654 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
12656 (struct machine_function): Add some_ld_name.
12657 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
12658 (print_operand) [&]: Use it. Handle UNSPEC_TP.
12659 (output_addr_const_extra): New.
12660 (maybe_get_pool_constant): New.
12661 (ix86_split_to_parts): Use it.
12662 (ix86_expand_move): Handle tls symbols.
12663 (ix86_tls_get_addr): New.
12664 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
12665 (TARGET_OPTIONS): Add tls-dialect.
12666 (CONSTANT_ADDRESS_P): Use new out-of-line function.
12667 (LEGITIMATE_CONSTANT_P): Likewise.
12668 (LEGITIMATE_PIC_OPERAND_P): Likewise.
12669 (TARGET_STRIP_NAME_ENCODING): New.
12670 (ASM_OUTPUT_LABELREF): New.
12671 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
12672 (OUTPUT_ADDR_CONST_EXTRA): New.
12673 (PREDICATE_CODES): Update.
12674 (ix86_tls_dialect, ix86_tls_dialect_string): New.
12675 * config/i386/i386.md: Regroup and renumber unspec constants.
12676 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
12677 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
12678 (tls_global_dynamic, tls_local_dynamic_base): New.
12679 (tls_local_dynamic_once): New.
12680 * config/i386/i386-protos.h: Update.
12682 2002-05-23 Richard Henderson <rth@redhat.com>
12684 * genemit.c (gen_insn): Print file:lineno comment before function.
12686 * gensupport.c (struct queue_elem): Add filename member.
12687 (queue_pattern): Initialize it; update all callers.
12688 (process_include): Don't free filename.
12689 (read_md_rtx): Set read_rtx_filename.
12691 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
12693 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
12695 2002-05-23 Richard Henderson <rth@redhat.com>
12697 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
12699 2002-05-23 Richard Henderson <rth@redhat.com>
12701 * doc/extend.texi (C++98 Thread-Local Edits): Update with
12702 commentary from Mark.
12704 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12706 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
12707 Use FOR_EACH_BB macros to iterate over basic block chain.
12708 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
12709 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
12711 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
12712 find_unreachable_blocks, create_edge_list, verify_edge_list,
12713 remove_fake_edges, add_noreturn_fake_exit_edges,
12714 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
12716 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
12717 find_sub_basic_blocks): Likewise.
12718 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
12720 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
12722 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
12724 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
12725 commit_edge_insertions, commit_edge_insertions_watch_calls,
12726 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
12727 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
12728 * conflict.c (conflict_graph_compute): Likewise.
12729 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
12730 df_modified_p, df_refs_unlink, df_dump): Likewise.
12731 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
12732 * final.c (compute_alignments): Likewise.
12733 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
12734 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
12735 count_or_remove_death_notes): Likewise.
12736 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
12737 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
12738 classic_gcse, compute_transp, cprop, compute_pre_data,
12739 compute_transpout, invalidate_nonnull_info,
12740 delete_null_pointer_checks_1, delete_null_pointer_checks,
12741 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
12742 compute_store_table, build_store_vectors, store_motion): Likewise.
12743 * global.c (global_conflicts, mark_elimination): Likewise.
12744 * graph.c (print_rtl_graph_with_bb): Likewise.
12745 * haifa-sched.c (sched_init): Likewise.
12746 * ifcvt.c (if_convert): Likewise.
12747 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
12748 compute_available, compute_nearerout, compute_rev_insert_delete,
12749 optimize_mode_switching): Likewise.
12750 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
12751 * predict.c (estimate_probability, note_prediction_to_br_prob,
12752 propagate_freq, counts_to_freqs, expensive_function_p,
12753 estimate_bb_frequencies): Likewise.
12754 * profile.c (instrument_edges, get_exec_counts,
12755 compute_branch_probabilities, compute_checksum, branch_prob,
12756 find_spanning_tree): Likewise.
12757 * recog.c (split_all_insns, peephole2_optimize): Likewise.
12758 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
12760 * regclass.c (scan_one_insn, regclass): Likewise.
12761 * regmove.c (mark_flags_life_zones, regmove_optimize,
12762 record_stack_memrefs): Likewise.
12763 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
12764 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
12765 * resource.c (find_basic_block): Likewise.
12766 * sched-ebb.c (schedule_ebbs): Likewise.
12767 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
12768 find_single_block_region, find_rgns, schedule_insns)
12769 * sibcall.c (optimize_sibling_and_tail_recursive_call)
12770 * ssa-ccp.c (optimize_unexecutable_edges,
12771 ssa_ccp_df_delete_unreachable_insns): Likewise.
12772 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
12773 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
12774 rename_block, convert_to_ssa, compute_conservative_reg_partition,
12775 compute_coalesced_reg_partition, rename_equivalent_regs,
12776 convert_from_ssa): Likewise.
12777 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
12778 process_for_unwind_directive): Likewise.
12780 * df.c (FOR_ALL_BBS): Removed.
12781 * gcse.c (struct null_pointer_info): Type of current_block field
12783 (struct reg_avail_info): Type of last_bb field changed.
12784 * config/ia64/ia64.c (block_num): Removed.
12785 (need_copy_state): Type changed.
12788 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
12790 * cppinit.c (mark_named_operators): Split out from init_builtins.
12791 (cpp_finish_options): Call it from here instead.
12793 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
12795 * builtin-attrs.def: Update copyright years.
12796 (ATTR_NONNULL): New attribute identifier.
12797 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
12798 attribute tree lists.
12799 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
12801 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
12802 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
12803 attribute lists. Chain the appropriate nonnull attribute.
12804 * c-format.c (check_format_arg): Remove null format string
12806 * testsuite/gcc.dg/format/null-1.c: New test.
12808 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12810 * Makefile.in (ADAC): Define.
12812 (.SUFFIXES): Move before language makefile fragments.
12813 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
12815 2002-05-23 Mark Mitchell <mark@codesourcery.com>
12817 * varasm.c (make_decl_rtl): Don't allow weak variables to be
12820 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
12822 * cfg.c (dump_flow_info): Print results of
12823 maybe_hot/probably_never_executed predicates.
12824 * toplev.c (open_dump_file): Print function frequency.
12826 2002-05-23 David S. Miller <davem@redhat.com>
12828 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
12831 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
12833 * c-common.c (warn_nonnull): Declare.
12834 (c_common_attribute_table): Add "nonnull" attribute.
12835 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
12836 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
12837 check_function_arguments_recurse): New functions.
12838 * c-common.h (warn_nonnull): Declare extern.
12839 (check_function_arguments, check_function_arguments_recurse): New
12841 * c-decl.c (c_decode_option): Add -Wnonnull option.
12842 * c-format.c (set_Wformat): Set warn_nonnull if enabling
12844 (format_check_context): New structure.
12845 (check_format_info_recurse): Remove recursion and rename to...
12846 (check_format_arg): ...this. Update comment.
12847 (check_format_info): Use check_function_arguments_recurse.
12848 * c-typeck.c (build_function_call): Call check_function_arguments
12849 instead of check_function_format.
12850 * doc/extend.texi: Document "nonnull" attribute.
12851 * doc/invoke.texi: Docuemnt -Wnonnull option.
12852 * testsuite/gcc.dg/nonnull-1.c: New test.
12853 * testsuite/gcc.dg/nonnull-2.c: New test.
12855 2002-05-23 David S. Miller <davem@redhat.com>
12857 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
12858 * cfgcleanup.c (cleanup_cfg): If it is set do not
12859 attempt to delete trivially dead insns.
12860 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
12861 * toplev.c (rest_of_compilation): Document non-trivial aspect
12862 the RTL before optimize_save_area_alloca is run.
12864 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
12866 * c-lex.c (indent_level): Remove.
12867 (cb_file_change, c_lex): Remove indent level handling.
12868 * c-lex.h (indent_level): Remove.
12869 * input.h (struct file_stack): Remove indent_level.
12870 * toplev.c (push_srcloc): Remove indent_level handling.
12872 2002-05-23 Jakub Jelinek <jakub@redhat.com>
12875 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
12876 of x in constraints for clarity.
12877 (sse_mov?fcc split): abort if op2 == op3.
12878 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
12879 sse_movsfcc_const0_4): Add earlyclobber.
12880 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
12881 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
12882 Use Y instead of x in constraints.
12884 2002-05-23 Richard Henderson <rth@redhat.com>
12886 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
12887 (C++98 Thread-Local Edits): New subsection.
12889 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
12890 (ix86_arch): Set type to enum processor_type.
12892 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
12893 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
12895 2002-05-23 Jakub Jelinek <jakub@redhat.com>
12897 * configure.in: Fix as version test for binutils 2.12.1 releases
12899 * configure: Rebuilt.
12901 2002-05-23 Richard Henderson <rth@redhat.com>
12903 * config/i386/i386.c (get_pic_label_name): New.
12904 (load_pic_register): Remove.
12905 (output_set_got): New.
12906 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
12907 * config/i386/i386.md (UNSPEC_SET_GOT): New.
12908 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
12909 (prologue_set_got, prologue_get_pc): Remove.
12910 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
12911 (builtin_setjmp_receiver): Use gen_set_got.
12912 * config/i386/i386-protos.h: Update.
12914 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
12916 * gcse.c (hash_expr): Do not use alias set for hashing.
12918 2002-05-22 Kevin Buettner <kevinb@redhat.com>
12920 * dbxout.c (dbxout_class_name_qualifiers): New function.
12921 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
12923 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
12925 * cpperror.c (_cpp_begin_message): No special casing
12926 of CPP_FATAL_LIMIT.
12927 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
12928 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
12929 * cpplib.c (do_include_common): Use DL_ERROR.
12930 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
12931 (DL_ICE): Renumber.
12932 * fix-header.c (read_scan_file): Update.
12934 2002-05-22 Richard Henderson <rth@redhat.com>
12936 * config/i386/i386.c (ix86_expand_call): New function, extracted
12937 from md call patterns. Add pic_offset_table_rtx to
12938 CALL_INSN_FUNCTION_USAGE when needed.
12939 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
12940 (call_value_pop, call_value, untyped_call): Likewise.
12941 (call_exp, call_value_exp): Remove.
12942 * config/i386/i386-protos.h: Update.
12944 2002-05-22 Richard Henderson <rth@redhat.com>
12946 * varasm.c (default_section_type_flags): Check for VAR_DECL
12947 before using DECL_THREAD_LOCAL.
12949 2002-05-22 David Edelsohn <edelsohn@gnu.org>
12951 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
12952 (STARTFILE_SPEC): Delete PE crt0.o.
12953 * config/rs6000/aix51.h: Same.
12954 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
12955 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
12956 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
12957 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
12958 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
12960 2002-05-22 Richard Henderson <rth@redhat.com>
12962 * varasm.c (default_section_type_flags): Handle tls data and
12964 (default_unique_section): Handle tls sections.
12966 2002-05-23 Alan Modra <amodra@bigpond.net.au>
12968 * configure.in (CROSS): Define NATIVE_CROSS.
12969 * configure: Regenerate.
12970 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
12971 (startfile_prefix_spec): New var.
12972 (static_specs): Add startfile_prefix_spec.
12973 (do_spec_2): Split out from..
12975 (main): Process startfile_prefix_spec.
12976 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
12978 (STARTFILE_PREFIX_SPEC): Define.
12979 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
12982 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
12984 * cpperror.c: Fix formatting.
12985 * cppexp.c: Likewise.
12986 * cppfiles.c: Likewise.
12987 * cpphash.c: Likewise.
12988 * cpphash.h: Likewise.
12989 * cppinit.c: Likewise.
12990 * cpplex.c: Likewise.
12991 * cpplib.c: Likewise.
12992 * cppmacro.c: Likewise.
12993 * cppmain.c: Likewise.
12994 * cppspec.c: Likewise.
12996 2002-05-22 Jakub Jelinek <jakub@redhat.com>
12998 * combine.c (force_to_mode): Use gen_int_mode.
12999 Don't clear CONST_INT bits outside of mode.
13001 2002-05-22 Richard Henderson <rth@redhat.com>
13003 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
13004 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
13006 2002-05-22 Jakub Jelinek <jakub@redhat.com>
13009 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
13010 if DECL_SIZE_UNIT is INTEGER_CST.
13012 2002-05-22 Richard Henderson <rth@redhat.com>
13014 * flow.c (life_analysis): Delete broken reg_label check.
13016 2002-05-22 Richard Henderson <rth@redhat.com>
13018 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
13019 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
13021 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
13023 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
13024 (embed-bb.c): New rule.
13025 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
13026 * config/sh/embed_bb.c: Delete.
13028 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
13030 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
13032 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
13034 * config/h8300/h8300.md (*andorqi3): New.
13036 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
13038 PR preprocessor/6517
13039 * Makefile.in: Update.
13040 * c-common.c (c_common_post_options): Add preprocessor
13041 errors to the error count.
13042 * c-lang.c (c_post_options): Kill.
13043 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
13044 * hooks.h: Add header guards.
13045 * langhooks-def.h: Include hooks.h.
13046 (LANG_HOOKS_POST_OPTIONS): Update.
13047 * langhooks.h (struct lang_hooks): Update post_options.
13048 * toplev.c (parse_options_and_default_flags): Update.
13050 * objc-lang.c (objc_post_options): Kill.
13051 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
13053 2002-05-21 Bruce Korb <bkorb@gnu.org>
13055 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
13056 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
13057 * fixinc/fixincl.x: regen.
13059 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
13061 * cfgbuild.c: Fix formatting.
13063 * cfgcleanup.c: Likewise.
13064 * cfglayout.c: Likewise.
13065 * cfgloop.c: Likewise.
13066 * cfgrtl.c: Likewise.
13068 2002-05-21 Richard Henderson <rth@redhat.com>
13070 * c-common.h (enum rid): Add RID_THREAD.
13071 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
13072 (grokdeclarator): Grok __thread.
13073 * c-parse.in (reswords): Add __thread.
13074 (rid_to_yy): Add RID_THREAD.
13076 * tree.h (DECL_THREAD_LOCAL): New.
13077 (struct tree_decl): Add thread_local_flag.
13078 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
13079 * tree.c (staticp): TLS variables are not static.
13081 * target-def.h (TARGET_HAVE_TLS): New.
13082 * target.h (have_tls): New.
13083 * output.h (SECTION_TLS): New.
13084 * varasm.c (assemble_variable): TLS variables can't be common for now.
13085 (default_section_type_flags): Handle .tdata and .tbss.
13086 (default_elf_asm_named_section): Handle SECTION_TLS.
13087 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
13089 * flags.h (flag_tls_default): Declare.
13090 * toplev.c (flag_tls_default): Define.
13091 (display_help): Display help for it.
13092 (decode_f_option): Set it.
13094 * doc/extend.texi (Thread-Local): New node describing language-level
13095 thread-local storage.
13096 * doc/invoke.texi (-ftls-model): Document.
13098 * fixinc/inclhack.def (thread_keyword): New.
13099 * fixinc/fixincl.x: Rebuild.
13101 2002-05-21 Jeffrey A Law <law@redhat.com>
13103 * optabs.c (expand_binop): For double-word integer multiplies,
13104 do not compute intermediate results into something that is
13105 not a register (such as a SUBREG or MEM).
13107 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
13108 (ix86_sched_reorder): Make sure to initialize scheduling
13109 data even when there's only one insn in the ready queue.
13111 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
13113 * genautomata.c (reserv_sets_hash_value): Fix a typo.
13115 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
13117 * genautomata.c (reserv_sets_hash_value): Define hash_value as
13118 set_el_t. Transform the hash value into unsigned.
13119 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
13120 (transform_3): Add code to process `(A,B)+(D,E)'.
13122 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
13124 * reload1.c (do_output_reload): Run delete_output_reload
13125 only if optimizing.
13127 2002-05-21 Roger Sayle <roger@eyesopen.com>
13130 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
13131 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
13132 (can_store_by_pieces): ... and here to limit the largest mode used.
13133 Add a comment to document this function.
13135 2002-05-21 Richard Henderson <rth@redhat.com>
13137 * flow.c (life_analysis): Fix test for deleted label.
13139 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
13141 * doc/tm.texi: Fix typo.
13143 2002-05-21 Zack Weinberg <zack@codesourcery.com>
13145 * c-common.c (c_common_init): Set options->unsigned_char from
13147 (cb_register_builtins): Define __STRICT_ANSI__ and
13148 __CHAR_UNSIGNED__ here...
13149 * cppinit.c (init_builtins): Not here.
13150 (cpp_create_reader): unsigned_char option defaults to 0, not
13151 !DEFAULT_SIGNED_CHAR.
13152 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
13153 and -funsigned-char.
13155 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
13156 * cpphash.c (_cpp_init_hashtable): Don't set it.
13157 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
13158 directly. Clarify comment.
13160 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13162 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
13163 neighboring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
13164 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
13165 BASIC_BLOCK (n_basic_blocks - 1).
13166 * cfganal.c (can_fallthru, flow_call_edges_add,
13167 flow_preorder_transversal_compute): Too.
13168 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
13169 find_sub_basic_blocks): Too.
13170 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
13171 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
13172 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
13173 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
13174 * combine.c (this_basic_block): Type changed to basic_block.
13175 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
13176 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
13177 get_last_value, distribute_notes, distribute_links): Too.
13178 * final.c (compute_alignments): Too.
13179 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
13180 * function.c (thread_prologue_and_epilogue_insns): Too.
13181 * gcse.c (compute_code_hoist_vbeinout): Too.
13182 * global.c (build_insn_chain): Too.
13183 * ifcvt.c (find_if_block, find_cond_trap): Too.
13184 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
13185 * regmove.c (regmove_optimize): Too.
13186 * resource.c (find_basic_block): Too.
13187 * sched-ebb.c (schedule_ebbs): Too.
13188 * ssa-dce.c (find_control_dependence, find_pdom): Too.
13190 2002-05-21 Andreas Jaeger <aj@suse.de>
13192 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
13194 2002-05-21 Richard Henderson <rth@redhat.com>
13196 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
13197 unspec names, not numbers.
13199 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
13201 * doc/sourcebuild.texi: Mention snapshot-README and
13202 snapshot-index.html as needing updating for new front ends.
13204 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13206 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
13207 disabling checking, and avoid multiple evaluation of RTX.
13209 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
13211 * bitmap.c (bitmap_find_bit): Return early if we have the correct
13214 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
13216 * profile.c (gen_edge_profiler): Set alias set before the memory is
13219 2002-05-20 David S. Miller <davem@redhat.com>
13221 * cselib.c (max_value_regs): New.
13222 (cselib_lookup, cselib_invalidate_regno): Initialize it when
13223 adding new entries to the REG_VALUES table and we are dealing with
13225 (clear_table): Initialize it.
13226 (cselib_invalidate_regno): Use it to determine which hard
13227 registers to scan when mode is not VOIDmode.
13229 2002-05-20 Duraid Madina <duraid@fl.net.au>
13231 * tradcpp.c (fixup_newlines): Use old-style function header.
13233 2002-05-20 Krister Walfridsson <cato@df.lth.se>
13235 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
13237 2002-05-20 H.J. Lu (hjl@gnu.org)
13239 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
13241 * config/mips/mips.h (DFMODE_NAN): Defined.
13242 (SFMODE_NAN): Likewise.
13244 2002-05-20 Dale Johannesen <dalej@apple.com>
13246 * combine.c (cant_combine_insn_p): Back out my
13249 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
13251 * params.c: Fix formatting.
13252 * params.h: Likewise.
13253 * predict.c: Likewise.
13254 * prefix.c: Likewise.
13255 * print-rtl.c: Likewise.
13256 * print-tree.c: Likewise.
13257 * profile.c: Likewise.
13259 2002-05-20 H.J. Lu (hjl@gnu.org)
13261 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
13263 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
13265 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
13266 switches straight on to the assembler, do not abbreviate them.
13267 * config/arm/elf.h (ASM_SPEC): As above.
13268 * config/arm/semi.h (ASM_SPEC): As above.
13269 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
13270 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
13271 -mcpu=xscale on to the assembler by default.
13272 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
13274 2002-05-20 Richard Henderson <rth@redhat.com>
13276 * cse.c (canon_hash): Reorder do_not_record test. Always
13277 allow pic_offset_table_rtx.
13279 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
13281 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
13282 (expand_binop): Ditto (3 times).
13284 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
13286 * Makefile.in (distclean): Remove QMTest stuff.
13287 (QMTEST_PATH): New variable.
13288 (QMTESTFLAGS): Likewise.
13289 (QMTESTRUNFLAGS): Likewise.
13290 (QMTEST): Likewise.
13291 (QMTEST_GPP_TESTS): Likewise.
13292 (QMTEST_DIR): Likewise.
13293 (QMTEST_DIR/context): New target.
13294 (qmtest-g++): Likeise.
13295 (qmtest-gui): Likewise.
13296 (QMTEST_DIR/gpp-expected.qmr): Likewise.
13298 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
13300 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
13301 an altivec register if TARGET_ALTIVEC.
13303 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
13304 to ALTIVEC_VECTOR_MODE.
13305 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
13306 (rs6000_va_arg): Vectors may go in registers if they are not
13309 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
13311 * protoize.c: Fix formatting.
13313 2002-05-19 Richard Henderson <rth@redhat.com>
13315 * gensupport.c (init_include_reader): Merge into ...
13316 (process_include): ... here. Simplify composite path creation.
13317 Plug memory leaks. Fix file/line number tracking. Do not
13318 process_define_cond_exec. Return void.
13319 (process_rtx): Don't check process_include return value.
13321 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13323 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
13325 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
13326 traversing basic block chain.
13327 (create_basic_block_structure, create_basic_block): Declaration changed.
13328 (link_block, unlink_block): Declare.
13329 * cfg.c (entry_exit_blocks): Initialize new fields.
13330 (link_block, unlink_block): New.
13331 (expunge_block_nocompact): Unlink basic block.
13332 (dump_flow_info): Print prev_bb/next_bb fields.
13333 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
13334 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
13335 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
13336 * cfgrtl.c (create_basic_block_structure, create_basic_block,
13337 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
13338 (verify_flow_info): Check that list agrees with numbering.
13340 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
13342 * c-common.c (preprocessing_asm): New macro.
13343 * c-lex.h (builtin_define, builtin_assert): Use pfile.
13347 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
13348 (CPP_SPEC): Simplify.
13349 (TARGET_CPU_CPP_BUILTINS): Update.
13350 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
13351 (CPP_SPEC): Simplify.
13352 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
13353 (TARGET_OS_CPP_BUILTINS): Update.
13354 * osf.h (CPP_XFLOAT_SPEC): Kill.
13355 (TARGET_OS_CPP_BUILTINS): Update.
13356 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
13357 * osf5.h (CPP_XFLOAT_SPEC): Kill.
13358 * vms.h (CPP_SUBTARGET_SPEC): Kill.
13359 (TARGET_OS_CPP_BUILTINS): Update.
13361 2002-05-19 Richard Henderson <rth@redhat.com>
13363 * varasm.c (default_binds_local_p): Fix typo.
13365 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
13367 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
13368 CONST_INT operand to the correct mode after adding 1 to it.
13370 2002-05-19 Mark Mitchell <mark@codesourcery.com>
13372 * config.gcc (powerpc-wrs-windiss*): New target.
13374 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13376 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
13379 2002-05-18 Mark Mitchell <mark@codesourcery.com>
13381 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
13383 * config.in: Regenerated.
13384 * configure: Regenerated.
13386 2002-05-19 Richard Henderson <rth@redhat.com>
13388 * target-def.h (TARGET_BINDS_LOCAL_P): New.
13389 * target.h (struct gcc_target): Move boolean fields to the end.
13391 * varasm.c (default_binds_local_p): New.
13392 * output.h: Declare it.
13394 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
13395 * config/cris/cris.c (cris_encode_section_info): Likewise.
13396 * config/i386/i386.c (i386_encode_section_info): Likewise.
13397 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
13398 * config/sh/sh.c (sh_encode_section_info): Likewise.
13400 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
13401 (TARGET_BINDS_LOCAL_P): New.
13403 2002-05-19 Richard Henderson <rth@redhat.com>
13405 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
13406 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
13407 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
13409 * toplev.c (display_help): Kill -a -ax help.
13411 * config/1750a/1750a.h, config/alpha/alpha.h,
13412 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
13413 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
13414 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
13415 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
13417 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
13418 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
13420 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
13421 (ix86_output_function_block_profiler): Kill.
13422 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
13423 (m68hc11_function_block_profiler): Kill.
13424 * config/m68hc11/m68hc11-protos.h: Update.
13425 * config/m88k/m88k.c (output_block_profiler): Kill.
13426 (output_function_block_profiler): Kill.
13427 * config/m88k/m88k-protos.h: Update.
13429 2002-05-19 Richard Henderson <rth@redhat.com>
13431 * system.h (STRIP_NAME_ENCODING): Poison it.
13432 * output.h (STRIP_NAME_ENCODING): Remove.
13433 (default_strip_name_encoding): Declare.
13434 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
13435 * target.h (strip_name_encoding): New.
13436 * varasm.c (default_strip_name_encoding): New.
13438 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
13439 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
13440 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
13441 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
13442 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
13443 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
13444 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
13445 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
13446 config/v850/v850.h: Use the hook, not the macro.
13448 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
13449 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
13450 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
13451 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
13452 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
13453 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
13454 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
13455 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
13456 config/v850/v850.c, config/v850/v850.h:
13457 Move STRIP_NAME_ENCODING to out-of-line function and add
13458 TARGET_STRIP_NAME_ENCODING.
13460 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
13461 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
13462 with TARGET_STRIP_NAME_ENCODING referencing existing function;
13463 make function static.
13465 * xcoffout.c: Include target.h
13466 * Makefile.in (xcoffout.o): Update.
13468 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
13469 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
13470 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
13471 reloc argument unused.
13472 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
13474 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
13475 STRIP_NAME_ENCODING docs.
13477 2002-05-19 Andreas Jaeger <aj@suse.de>
13479 * gengenrtl.c: Add prototype for excluded_rtx.
13481 * real.h: Add prototype for exact_real_truncate.
13483 2002-05-18 Richard Henderson <rth@redhat.com>
13485 * system.h (ENCODE_SECTION_INFO): Poison it.
13486 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
13487 * target.h (encode_section_info): New.
13488 * varasm.c (make_decl_rtl, output_constant_def): Use it.
13489 * hooks.c (hook_tree_int_void): New.
13490 * hooks.h: Declare it.
13492 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
13493 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
13494 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
13495 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
13496 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
13497 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
13498 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
13499 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
13500 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
13501 config/mcore/mcore-protos.h, config/mcore/mcore.c,
13502 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
13503 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
13504 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
13505 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
13506 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
13507 referencing existing function. Make function static.
13509 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
13510 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
13511 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
13512 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
13513 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
13514 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
13515 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
13516 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
13517 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
13518 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
13519 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
13520 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
13521 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
13522 Move ENCODE_SECTION_INFO to out-of-line function and add
13523 TARGET_ENCODE_SECTION_INFO.
13525 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
13526 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13528 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
13530 (switch_to_section): Replace in_rdata case with in_readonly_data.
13532 * config/h8300/h8300.c (h8300_encode_label): Make static.
13533 * config/h8300/h8300-protos.h: Update.
13535 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
13536 from rs6000_encode_section_info; make static.
13537 (rs6000_xcoff_encode_section_info): New.
13539 * config/v850/v850.c (v850_encode_data_area): Make static.
13540 * config/v850/v850-protos.h: Update.
13542 * config/vax/vax.c: Include flags.h.
13543 (vms_select_section): Fix typo.
13545 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
13546 ENCODE_SECTION_INFO docs.
13548 2002-05-18 Richard Henderson <rth@redhat.com>
13550 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
13551 REGISTER_TARGET_PRAGMAS.
13552 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
13554 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
13556 2002-05-18 Richard Henderson <rth@redhat.com>
13558 * system.h (SELECT_RTX_SECTION): Poison.
13559 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
13560 * target.h (select_rtx_section): New.
13561 * varasm.c (output_constant_pool): Use it.
13562 (default_select_rtx_section, default_elf_select_rtx_section): New.
13563 * output.h: Declare them.
13565 * config/darwin.h (SELECT_RTX_SECTION): Move ...
13566 * config/darwin.c (machopic_select_rtx_section): ... here.
13567 * config/darwin-protos.h: Update.
13569 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
13570 * config/nextstep.c (machopic_select_rtx_section): ... here.
13571 (nextstep_select_section): Rename variable to avoid macro clash.
13572 * config/nextstep-protos.h: Update.
13574 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
13575 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
13576 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
13577 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
13578 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
13579 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
13580 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
13581 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
13582 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
13583 (SELECT_RTX_SECTION): Remove.
13585 * config/darwin.h, config/elfos.h, config/nextstep.h,
13586 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
13587 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
13588 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
13589 config/sparc/lynx.h, config/xtensa/xtensa.c
13590 (TARGET_ASM_SELECT_RTX_SECTION): New.
13592 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
13593 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
13594 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
13595 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
13596 (ia64_aix_select_rtx_section): New.
13597 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
13599 * config/mips/mips.c (mips_select_rtx_section): Make static.
13600 Support ELF SHF_MERGE features.
13601 * config/mips/mips-protos.h: Update.
13602 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
13603 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
13604 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
13605 make static, fall back to default_elf_select_rtx_section.
13606 * config/rs6000/rs6000-protos.h: Update.
13607 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
13608 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
13609 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
13610 * config/romp/romp.c (romp_select_rtx_section): New.
13611 * config/s390/s390.c (s390_select_rtx_section): New.
13612 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
13613 declarations before target macro definition.
13614 (xtensa_emit_call): Use static buffer.
13615 (xtensa_select_rtx_section): New.
13616 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
13617 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
13618 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
13620 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
13621 SELECT_RTX_SECTION docs.
13623 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
13625 * i386.md (movsi/movdi): Fix template.
13626 (sse2 patterns): Set attributes consistently.
13628 * i386.md (pushqi2, ashrqi_*): Fix constraint.
13630 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
13632 * optabs.c (complex_part_zero_p): New.
13633 * (expand_cmplxdiv_straight): Use it.
13634 * (expand_cmplxdiv_wide): Ditto.
13635 * (expand_binop): Ditto.
13637 2002-05-18 Richard Henderson <rth@redhat.com>
13639 * final.c (HAVE_READONLY_DATA_SECTION): New.
13640 (shorten_branches): Use it instead of ifdefs.
13641 * varasm.c (enum in_section): Add in_readonly_data.
13642 (text_section, data_section): Tidy.
13643 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
13645 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
13646 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
13647 (READONLY_DATA_SECTION): Don't undef.
13649 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
13650 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
13651 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
13653 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
13654 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
13655 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
13656 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
13658 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
13659 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
13660 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
13661 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
13662 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
13663 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
13664 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
13665 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
13666 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
13668 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
13669 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
13670 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
13671 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
13672 config/pa/pa64-hpux.h, config/sparc/litecoff.h
13673 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
13675 * config/elfos.h, config/netware.h, config/svr3.h,
13676 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
13677 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
13678 config/h8300/h8300.h, config/i386/i386-interix.h,
13679 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
13680 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
13682 * config/elfos.h, config/netware.h, config/svr3.h,
13683 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
13684 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
13685 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
13686 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
13688 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
13689 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
13690 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
13691 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
13692 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
13693 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
13694 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
13695 config/rs6000/sysv4.h, config/v850/v850.h
13696 (EXTRA_SECTIONS): Remove in_const/in_rdata.
13697 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
13699 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
13700 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
13701 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
13702 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
13703 * config/alpha/alpha.c (alpha_start_function): Likewise.
13704 (alpha_write_linkage): Likewise.
13705 * config/m32r/m32r.c (m32r_select_section): Likewise.
13706 * config/m88k/m88k.c (m88k_select_section): Likewise.
13707 * config/mips/mips.c (mips_select_rtx_section): Likewise.
13708 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
13709 (rs6000_elf_select_section): Likewise.
13710 * config/v850/v850.c (v850_select_section): Likewise.
13712 * config/1750a/1750a.h, config/i860/sysv3.h
13713 (READONLY_DATA_SECTION_ASM_OP): New.
13714 READONLY_DATA_SECTION_ASM_OP.
13715 * config/i386/interix.c, config/i386/winnt.c
13716 (i386_pe_unique_section): Always use .rdata prefix.
13717 * config/pa/som.h (readonly_data): Always switch to read-only section.
13718 (READONLY_DATA_SECTION): Predicate on flag_pic.
13719 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
13720 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
13721 (READONLY_DATA_SECTION): Update.
13723 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
13725 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
13726 is used without -Wformat.
13727 * c-common.h (warn_format_zero_length): Declare extern.
13728 * c-decl.c (warn_options): Add "format-zero-length".
13729 * c-format.c (warn_format_zero_length): Declare.
13730 (set_Wformat): Set warn_format_zero_length for -Wformat.
13731 (check_format_info): Only warn about zero-length formats if
13732 warn_format_zero_length is true. Include the format type
13733 name in the warning message.
13734 * doc/invoke.texi: Document -Wformat-zero-length.
13735 * testsuite/gcc.dg/format/zero-length-1.c: New test.
13737 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
13739 * timevar.c: Fix formatting.
13740 * tlink.c: Likewise.
13741 * toplev.c: Likewise.
13742 * tree-dump.c: Likewise.
13743 * tree-inline.c: Likewise.
13745 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
13747 * cppinit.c (cpp_post_options): If preprocessed, turn off
13748 traditional. If traditional, turn off column numbers.
13749 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
13750 * cpptrad.c (handle_newline): Update line_base.
13751 (skip_comment): Handle -Wcomment.
13753 2002-05-17 Zack Weinberg <zack@codesourcery.com>
13755 * cppinit.c (struct builtin): Remove unused fields.
13756 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
13757 (operator_array): New - was second half of builtin_array.
13758 (init_builtins): Simplify loop over builtin_array/operator_array.
13760 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
13762 * defaults.h (UNIQUE_SECTION): Remove.
13763 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
13765 2002-05-17 Richard Henderson <rth@redhat.com>
13767 * expr.c (init_expr_once): Don't use start/end_sequence.
13768 Use rtx_alloc instead of emit_insn.
13769 * toplev.c (lang_dependent_init): Run init_expr_once here ...
13770 (lang_independent_init): ... not here.
13772 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
13774 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
13776 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
13778 * config/avr/avr.c (avr_regs_to_save): New function. Also check
13779 for fixed registers, possibly used for global register variables.
13780 (initial_elimination_offset, avr_output_function_prologue,
13781 avr_output_function_epilogue): Move common code to avr_regs_to_save.
13783 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
13785 * Makefile.in: Update for cpptrad.c.
13786 * cpphash.h (struct cpp_buffer): New members for buffer
13788 (struct cpp_reader): New members for traditional output.
13789 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
13790 * cppinit.c (cpp_create_reader): Set trad_line.
13791 (cpp_destroy): Free trad_out_base if used.
13792 (cpp_read_main_file): Overlay an empty buffer if traditional.
13793 (cpp_finish_options): Don't do builtins.
13794 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
13795 (cpp_handle_option): Handle it.
13796 * cpplex.c (continue_after_nul): New.
13797 (_cpp_lex_direct): Use handle_nul.
13798 * cpplib.h (struct cpp_options): New traditional option.
13799 * cpptrad.c: New file.
13801 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
13803 * c-common.c (c_common_init_options): Use C89 for Objective-C,
13804 and set the options flag.
13805 * cppinit.c (lang_flags): Remove objc.
13806 (lang_defaults): Remove OBJC and OBJCXX.
13807 (set_lang): Update.
13808 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
13809 (cpp_handle_option): Remove -+ and -lang-objc++.
13810 For ObjC, just set a flag.
13811 (print_help): Update.
13812 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
13814 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13816 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
13817 bootstrap with -mips3.
13819 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
13821 * final.c: Fix formatting.
13822 * fix-header.c: Likewise.
13823 * flow.c: Likewise.
13824 * fold-const.c: Likewise.
13825 * function.c: Likewise.
13827 2002-05-17 David S. Miller <davem@redhat.com>
13829 PR c/6689, PR optimization/6615
13830 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
13831 and make it a pointer to rtx. Update comments.
13832 (update_equiv_regs): When scanning for equivalences, record
13833 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
13834 it while making the equiv replacements.
13836 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13838 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
13840 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
13842 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
13843 when encoding visibility into SYMBOL_REF_FLAG.
13845 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
13847 * expr.c (force_operand): Fix reversed move.
13849 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
13851 * doc/install.texi (Testing): Mention two common DejaGnu warnings
13852 that can be ignored.
13854 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13856 * doc/install.texi (Final install): Recommend to install into a
13857 "clean" target directory.
13859 2002-05-17 Richard Henderson <rth@redhat.com>
13861 * config/ia64/ia64.md: Use braced strings instead of quoted strings
13862 for code blocks. Tidy whitespace.
13864 2002-05-17 Richard Henderson <rth@redhat.com>
13866 * hooks.c (hook_tree_bool_false): New.
13867 * hooks.h: Declare it.
13868 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
13869 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
13870 * target.h (select_section, unique_section): New.
13871 (in_small_data_p): New.
13872 * varasm.c (resolve_unique_section): Use hooks instead of macros.
13873 (variable_section, output_constant_def_contents): Likewise.
13874 (default_select_section, default_unique_section): New.
13875 (categorize_decl_for_section, default_elf_select_section): New.
13876 * output.h: Declare them.
13878 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
13879 (TARGET_ASM_SELECT_SECTION): New.
13880 (SELECT_SECTION): Move ...
13881 * config/darwin.c (machopic_select_section): ... here.
13882 * config/darwin-protos.h: Update.
13884 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
13885 (SELECT_SECTION): Move ...
13886 * config/nextstep.c (nextstep_select_section): ... here.
13887 * config/nextstep-protos.h: Update.
13889 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
13890 (TARGET_ASM_SELECT_SECTION): New.
13891 * config/svr3.h (SELECT_SECTION): Remove.
13893 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
13894 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
13895 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
13896 (alpha_encode_section_info): Use it.
13897 * config/alpha/alpha-protos.h: Update.
13898 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
13899 (SELECT_SECTION, UNIQUE_SECTION): Remove.
13900 (TARGET_ASM_SELECT_SECTION): New.
13901 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
13903 * config/arm/pe.h (UNIQUE_SECTION): Remove.
13904 (TARGET_ASM_UNIQUE_SECTION): New.
13906 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
13907 (avr_unique_section): Rename from unique_section; make static.
13908 * config/avr/avr-protos.h: Update.
13909 * config/avr/avr.h (UNIQUE_SECTION): Remove.
13911 * config/c4x/c4x.h (SELECT_SECTION): Remove.
13913 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
13914 (TARGET_ASM_UNIQUE_SECTION): New.
13915 * config/i386/i386-interix.h: Likewise.
13916 * config/i386/win32.h: Likewise.
13917 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
13918 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
13919 * config/i386/sco5.h (SELECT_SECTION): Remove.
13920 (TARGET_ASM_SELECT_SECTION): New.
13921 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
13923 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
13924 instead of SELECT_SECTION.
13925 * config/m68k/dpx2.h: Likewise.
13926 * config/rs6000/lynx.h: Likewise.
13928 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
13929 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
13930 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
13931 (ia64_in_small_data_p): New.
13932 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
13933 (ia64_aix_select_section, ia64_aix_unique_section): New.
13934 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
13935 (SELECT_SECTION, UNIQUE_SECTION): Remove.
13937 * config/m32r/m32r.h (SELECT_SECTION): Remove.
13938 (TARGET_ASM_SELECT_SECTION): New.
13939 * config/m32r/m32r.c (m32r_select_section): Take align argument.
13940 * config/m32r/m32r-protos.h: Update.
13942 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
13943 (SELECT_SECTION): Move ...
13944 * config/m88k/m88k.c (m88k_select_section): ... here.
13946 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
13947 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
13948 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
13949 (mcore_unique_section): Make static.
13950 * config/mcore/mcore-protos.h: Update.
13952 * config/mips/elf.h (UNIQUE_SECTION): Remove.
13953 (TARGET_ASM_UNIQUE_SECTION): New.
13954 * config/mips/elf64.h: Likewise.
13955 * config/mips/iris6gld.h: Likewise.
13956 * config/mips/linux.h: Likewise.
13957 * config/mips/mips-protos.h: Update.
13958 * config/mips/mips.c (mips_select_section): Add align argument.
13959 * config/mips/mips.h (SELECT_SECTION): Remove.
13960 (TARGET_ASM_SELECT_SECTION): New.
13962 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
13963 * config/mmix/mmix.c (mmix_select_section): Remove.
13964 (mmix_unique_section): Remove.
13965 * config/mmix/mmix-protos.h: Update.
13967 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
13968 (SELECT_SECTION): Move ...
13969 * config/pa/pa.c (pa_select_section): ... here.
13970 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
13972 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
13973 from rs6000_select_section and make static.
13974 (rs6000_elf_unique_section): Similarly.
13975 (rs6000_xcoff_select_section): From xcoff.h.
13976 (rs6000_xcoff_unique_section): Likewise.
13977 * config/rs6000/rs6000-protos.h: Update.
13978 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
13979 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
13980 * config/rs6000/xcoff.h: Likewise.
13982 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
13983 (SELECT_SECTION): Move ...
13984 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
13986 * config/v850/v850.h (SELECT_SECTION): Move ...
13987 * config/v850/v850.c (v850_select_section): ... here.
13988 (TARGET_ASM_SELECT_SECTION): New.
13990 * config/vax/vms.h (SELECT_SECTION): Move ...
13991 * config/vax/vax.c (vms_select_section): ... here.
13992 (TARGET_ASM_SELECT_SECTION): New.
13994 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
13995 for the target hooks.
13997 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
13999 * config/arm/arm.c (emit_multi_reg_push): Do not set
14000 RTX_FRAME_RELATED_P on the SEQUENCE.
14002 2002-05-16 Richard Henderson <rth@redhat.com>
14004 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
14005 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
14007 2002-05-16 Richard Henderson <rth@redhat.com>
14009 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
14011 * config/ia64/ia64.c (saveable_obstack): Do not declare.
14013 2002-05-16 Richard Henderson <rth@redhat.com>
14015 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
14016 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
14017 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
14018 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
14019 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
14020 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
14021 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
14022 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
14023 Revert "Basic block renumbering removal", and two followup patches.
14025 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
14027 * lcm.c (optimize_mode_switching): Revert previous change.
14029 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14031 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
14032 with only extant block numbers.
14034 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
14036 * lcm.c (optimize_mode_switching): Fix typo.
14038 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14040 * flow.c (calculate_global_regs_live): Queue blocks in program order.
14042 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14044 * doc/install.texi (Configuration): Document PWDCMD.
14046 2002-05-16 Dale Johannesen <dalej@apple.com>
14048 * combine.c (cant_combine_insn_p): Reenable combinations
14049 involving hard regs unless CLASS_LIKELY_SPILLED_P.
14051 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
14053 * c-common.c (cb_register_builtins): Handle more built-ins
14054 here rather than in gcc.c specs.
14055 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
14056 (cpp_options): Pass -O flags even when only preprocessing.
14057 * toplev.c (set_fast_math_flags): New prototype.
14058 (fast_math_flags_set_p): New.
14059 (set_no_fast_math_flags): Remove.
14060 (decode_f_option): Update.
14061 * toplev.h (set_fast_math_flags): Update.
14062 (fast_math_flags_set_p): New.
14063 (set_no_fast_math_flags): Remove.
14065 * c4x/c4x.c (c4x_override_options): Update.
14067 2002-05-16 Zack Weinberg <zack@codesourcery.com>
14069 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
14070 Default-define here.
14071 (builtin_define_with_value): Can now wrap the expansion in
14072 quotation marks if such is wanted.
14073 (cb_register_builtins): Update calls to builtin_define_with_value.
14074 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
14076 (c_common_init): Set options->stdc_0_in_system_headers.
14077 * c-lex.h: Update prototype of builtin_define_with_value.
14078 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
14079 and REGISTER_PREFIX.
14081 * cppinit.c (VERS, ULP, C, X): Kill.
14082 (builtin_array): Remove entries for __VERSION__,
14083 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
14084 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
14086 (init_builtins): Kill off a bunch of now-dead code.
14087 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
14088 -fno-leading-underscore.
14089 (cpp_handle_option): Remove code to set user_label_prefix.
14090 (cpp_post_options): Likewise.
14092 * cpplib.h (struct cpp_options): Remove user_label_prefix.
14093 (stdc_0_in_system_headers): New.
14094 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
14095 stdc_0_in_system_headers) too to decide the value of __STDC__.
14097 * tradcpp.c (user_label_prefix): Kill.
14098 (main): Remove code handling -f(no-)leading-underscore.
14099 (initialize_builtins): Don't define __REGISTER_PREFIX__
14100 or __USER_LABEL_PREFIX__.
14101 (install_value): Wrap compound statement in dummy loop so the
14102 macro works properly in an if statement.
14105 2002-05-16 Janis Johnson <janis187@us.ibm.com>
14107 * loop.h (struct loop_info): Add member has_prefetch.
14108 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
14109 (prescan_loop): Initialize has_prefetch.
14110 (struct prefetch_info): Change prefetch_in_loop and
14111 prefetch_before_loop from bit fields to ints.
14112 (emit_prefetch_instructions): Several small fixes.
14113 (check_dbra_loop): Don't reverse loop that uses prefetch.
14115 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14117 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
14118 * configure.in: Likewise.
14119 * fixinc/check.tpl: Likewise.
14120 * fixinc/fixinc.dgux: Likewise.
14121 * fixinc/fixinc.svr4: Likewise.
14122 * fixinc/fixinc.winnt: Likewise.
14123 * fixinc/fixincl.sh: Likewise.
14124 * fixproto: Likewise.
14125 * configure: Regenerate.
14127 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14129 Basic block renumbering removal:
14130 * basic_block.h (struct basic_block_def): Renamed index to sindex,
14131 added prev_bb and next_bb fields.
14132 (n_basic_blocks): Renamed to num_basic_blocks.
14133 (last_basic_block): New, index of last basic block.
14134 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
14135 traversing basic block chain.
14136 (BLOCK_NUM): index -> sindex.
14137 (create_basic_block_structure, create_basic_block): Declaration changed.
14138 (debug_num2bb): Declare.
14139 (expunge_block_nocompact): Declaration removed.
14140 (link_block, unlink_block, compact_blocks): Declare.
14141 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
14142 * cfg.c (entry_exit_blocks): Initialize new fields.
14143 (clear_edges, alloc_block, expunge_block, cached_make_edge,
14144 redirect_edge_pred, dump_flow_info, dump_edge_info,
14145 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
14146 free_aux_for_edges): Modified.
14147 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
14148 (expunge_block_nocompact): Removed.
14149 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
14150 find_unreachable_blocks, create_edge_list, print_edge_list,
14151 verify_edge_list, flow_edge_list_print, remove_fake_successors,
14152 remove_fake_edges, flow_reverse_top_sort_order_compute,
14153 flow_depth_first_order_compute, flow_preorder_transversal_compute,
14154 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
14155 flow_dfs_compute_reverse_execute): Modified.
14156 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
14157 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
14159 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
14160 merge_blocks_move_predecessor_nojumps,
14161 merge_blocks_move_successor_nojumps, merge_blocks,
14162 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
14163 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
14164 * cfglayout.c (skip_insns_after_block, label_for_bb,
14165 record_effective_endpoints, scope_to_insns_finalize,
14166 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
14167 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
14168 cfg_layout_duplicate_bb): Modified.
14169 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
14170 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
14171 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
14172 flow_loops_find, flow_loop_outside_edge_p): Modified.
14173 * cfgrtl.c (create_basic_block_structure, create_basic_block,
14174 flow_delete_block, compute_bb_for_insn, split_block,
14175 try_redirect_by_replacing_jump, redirect_edge_and_branch,
14176 force_nonfallthru_and_redirect, tidy_fallthru_edge,
14177 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
14178 commit_edge_insertions, commit_edge_insertions_watch_calls,
14179 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
14180 purge_all_dead_edges): Modified.
14181 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
14182 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
14183 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
14185 * conflict.c (conflict_graph_compute): Modified.
14186 * df.c (FOR_ALL_BBS): Removed.
14187 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
14188 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
14189 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
14190 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
14191 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
14192 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
14193 * final.c (compute_alignments, final_scan_insn): Modified.
14194 * flow.c (verify_local_live_at_start, update_life_info,
14195 update_life_info_in_dirty_blocks, free_basic_block_vars,
14196 delete_noop_moves, calculate_global_regs_live,
14197 initialize_uninitialized_subregs, allocate_bb_life_data,
14198 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
14199 mark_used_reg, count_or_remove_death_notes): Modified.
14200 * function.c (thread_prologue_and_epilogue_insns): Modified.
14201 * gcse.c (struct null_pointer_info): Change typo of current_block
14203 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
14204 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
14205 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
14206 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
14207 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
14208 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
14209 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
14210 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
14211 pre_delete, one_pre_gcse_pass, compute_transpout,
14212 invalidate_nonnull_info, delete_null_pointer_checks_1,
14213 free_code_hoist_mem, compute_code_hoist_vbeinout,
14214 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
14215 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
14216 compute_store_table, build_store_vectors, insert_insn_start_bb,
14217 insert_store, replace_store_insn, free_store_memory, store_motion):
14219 * global.c (global_alloc, global_conflicts, mark_elimination,
14220 build_insn_chain): Modified.
14221 * graph.c (print_rtl_graph_with_bb): Modified.
14222 * haifa-sched.c (sched_init): Modified.
14223 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
14224 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
14225 if_convert): Modified.
14226 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
14227 compute_insert_delete, pre_edge_lcm, compute_available,
14228 compute_farthest, compute_nearerout, compute_rev_insert_delete,
14229 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
14231 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
14232 * loop.c (loop_dump_aux): Modified.
14233 * predict.c (combine_predictions_for_insn, estimate_probability,
14234 last_basic_block_p, process_note_prediction, process_note_predictions,
14235 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
14236 expensive_function_p, estimate_bb_frequencies,
14237 compute_function_frequency): Modified.
14238 * print-rtl.c (print_rtx): Modified.
14239 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
14240 get_exec_counts, compute_branch_probabilities, compute_checksum,
14241 branch_prob, find_spanning_tree): Modified.
14242 * recog.c (split_all_insns, peephole2_optimize): Modified.
14243 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
14244 convert_regs_1, convert_regs_2, convert_regs): Modified.
14245 * regclass.c (scan_one_insn, regclass): Modified.
14246 * regmove.c (mark_flags_life_zones, regmove_optimize,
14247 combine_stack_adjustments): Modified.
14248 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
14249 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
14250 * reorg.c (dbr_schedule): Modified.
14251 * resource.c (find_basic_block, init_resource_info): Modified.
14252 * sbitmap.c (sbitmap_intersection_of_succs,
14253 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
14254 sbitmap_union_of_preds): Modified.
14255 * sched-deps.c (init_dependency_caches): Modified.
14256 * sched-ebb.c (schedule_ebbs): Modified.
14257 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
14258 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
14259 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
14260 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
14261 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
14262 ssa_const_prop): Modified.
14263 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
14264 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
14265 * ssa.c (remove_phi_alternative, find_evaluations,
14266 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
14267 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
14268 make_regs_equivalent_over_bad_edges,
14269 make_equivalent_phi_alternatives_equival,
14270 compute_conservative_reg_partition,
14271 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
14272 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
14275 2002-05-16 Mark Mitchell <mark@codesourcery.com>
14277 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
14279 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
14281 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
14282 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
14283 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
14284 calling CONSTANT_POOL_ADDRESS_P.
14285 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
14286 to decide whether to define __arm__ or __thumb.
14287 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
14288 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
14290 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
14292 * config/arc/arc.h (CPP_PREDEFINES): Remove.
14293 (CPP_SPEC): Update.
14294 (TARGET_CPU_CPP_BUILTINS): New.
14296 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
14298 * cpphash.h (cpp_macro): Move here, and make expansion a union.
14299 * cppmacro.c (cpp_macro): Remove.
14300 (enter_macro_context, replace_args, warn_of_redefinition,
14301 _cpp_create_definition, cpp_macro_definition): Update.
14303 2002-05-16 Jason Merrill <jason@redhat.com>
14305 * config/mips/mips.c (mips_output_external): Don't do sdata
14306 optimization for a variable with DECL_COMDAT set.
14308 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
14310 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
14311 Cleanups for accepting modifiers on pointers.
14312 Fix predicate typos.
14313 Allow long pointers as well as int pointers.
14315 2002-05-15 Richard Henderson <rth@redhat.com>
14317 * varasm.c (merge_weak): Remove special case for extern and common.
14319 2002-05-15 Matt Hiller <hiller@redhat.com>
14321 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
14323 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
14324 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
14325 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
14326 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
14327 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
14328 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
14330 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
14332 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
14334 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
14336 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
14337 ("altivec_mfvscr"): Read from VSCR.
14339 Add vscr sets for the following insns: altivec_vctuxs,
14340 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
14341 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
14342 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
14343 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
14344 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
14345 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
14346 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
14347 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
14348 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
14349 altivec_vsum2sws, altivec_vsumsws.
14351 * config/rs6000/rs6000.h: Add VSCR fixed register.
14352 (CALL_REALLY_USED_REGISTERS): Add vscr.
14353 (CALL_USED_REGISTERS): Same.
14354 (FIXED_REGISTERS): Same.
14355 (REG_ALLOC_ORDER): Same.
14356 (reg_class): Add VSCR_REGS.
14357 (REG_CLASS_NAMES): Same.
14358 (REG_CLASS_CONTENTS): Same.
14360 (REGISTER_NAMES): Add vscr.
14361 (DEBUG_REGISTER_NAMES): Same.
14362 (ADDITIONAL_REGISTER_NAMES): Same.
14363 (FIRST_PSEUDO_REGISTER): Increment.
14364 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
14366 2002-05-15 Jakub Jelinek <jakub@redhat.com>
14368 * fold-const.c (fold): Fix a typo.
14370 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
14372 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
14373 comparison against the highest or lowest integer value before
14374 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
14375 transformation and that of an unsigned comparison against 0
14378 2002-05-15 Richard Henderson <rth@redhat.com>
14380 * varasm.c (merge_weak): Error for any weakening after definition.
14381 Adjust weakening after use warning to catch more cases.
14382 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
14383 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
14385 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
14387 * invoke.texi (-malign-double): Re-add lost warning.
14389 * i386-protos.h (x86_output_mi_thunk): Declare.
14390 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
14391 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
14393 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
14394 when flag_asynchronous_unwind_tables is set.
14396 * flags.h (flag_reorder_functions): Declare.
14397 * function.c (prepare_function_start): Initialize frequnecy.
14398 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
14399 * Makefile.in (predict.o): Add dependency on target.h and params.h
14400 * defaults.h (HOT_TEXT_SECTION_NAME,
14401 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
14402 * predict.c (choose_function_section): New function.
14403 (estimate_bb_frequencies): Use it.
14404 * toplev.c (flag_reorder_functions): New global variable.
14405 (lang_independent_options): New.
14406 (parse_options_and_default_flags): Set.
14407 * varasm.c (assemble_start_function): Bypass functdion alignment
14408 for never executed functions.
14409 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
14410 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
14411 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
14414 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
14416 * predict.c: Inlude profile.h
14417 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
14418 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
14419 Use the information about maximal counter in the program.
14421 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
14423 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
14424 probably_never_executed_bb_p): New functions.
14425 * cfgcleanup.c (outgoing_edges_match): Use them.
14426 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
14427 (maybe_hot_bb_p, probably_cold_bb_p,
14428 probably_never_executed_bb_p): New functions.
14430 * function.h (function): Add new field function_frequency.
14431 * predict.c (compute_function_frequency): New function.
14432 (estimate_probability): Call it.
14434 2002-03-09 Jakub Jelinek <jakub@redhat.com>
14436 PR optimization/5172, optimization/5200
14437 * gcse.c (gcse_main): Disable store_motion.
14439 2002-05-14 Zack Weinberg <zack@codesourcery.com>
14441 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
14442 (c_common_nodes_and_builtins): Use it.
14443 (builtin_define_with_value): New function.
14444 (cb_register_builtins): Define __SIZE_TYPE__,
14445 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
14446 using builtin_define_with_value. Use consistent notation when
14447 defining __GXX_WEAK__.
14448 (WCHAR_TYPE_SIZE): Don't redefine.
14449 (combine_strings): Don't use WCHAR_TYPE_SIZE.
14451 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
14452 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
14453 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
14454 * tradcpp.c (initialize_builtins): Likewise.
14455 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
14457 * c-lex.h (builtin_define_with_value): Prototype.
14458 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
14459 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
14460 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
14462 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
14463 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
14464 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
14465 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
14466 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
14467 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
14468 config/sparc/sol2-bi.h, config/sparc/sparc.h:
14469 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
14470 to __SIZE_TYPE__ etc from all spec strings. When this makes
14471 extra specs empty, delete them.
14473 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
14475 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
14476 for PA8000 or generating dwarf2 call frame information.
14477 (output_call): Remove DO_FRAME_NOTES check from return pointer
14479 (following_call): Return 0 when scheduling for PA8000 or generating
14480 dwarf2 call frame information. Revise comment.
14482 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
14485 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
14486 and __IEEE_FP_INEXACT as appropriate.
14487 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
14488 (CPP_SPEC): Remove ieee defines.
14489 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
14491 2002-05-14 Richard Henderson <rth@redhat.com>
14493 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
14494 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
14496 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
14498 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
14499 (CPP_SPEC): Update.
14500 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
14501 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
14502 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
14503 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
14504 (EXTRA_SPECS): Update.
14505 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
14506 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
14507 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
14508 define TARGET_OS_CPP_BUILTINS if necessary.
14510 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
14512 * gcc.c (cpp_options): Must pass -m* and -f* options
14513 to the front end even when only preprocessing.
14514 (cc1_options): Remove redundant -lang-c.
14515 * tradcpp.c (main): Ignore -m options.
14517 * lang-specs.h: Similarly.
14519 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
14521 * genautomata.c (transform_3): Add code for transformation
14522 `(A,B,...)+C -> A+C,B,...'.
14524 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
14526 * final.c (end_final): Do not output profile_arcs constructor, when
14527 no functions are instrumented.
14529 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
14531 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
14533 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14535 * doc/install.texi: Remove special markup originally required for
14536 HTML generation with texi2html.
14538 2002-05-14 Andreas Schwab <schwab@suse.de>
14540 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
14542 (UNIQUE_SECTION): Define to get small data correctly.
14544 * varasm.c (resolve_unique_section): Add third parameter
14545 flag_function_or_data_sections and use it instead of
14546 flag_function_sections.
14547 (assemble_start_function): Pass flag_function_sections.
14548 (asm_emit_uninitialised): Pass flag_data_sections.
14549 (assemble_variable): Likewise.
14551 2002-05-14 Richard Henderson <rth@redhat.com>
14553 * config/i386/i386.md: Use define_constants for unspec numbers.
14554 * config/i386/i386.c: Likewise.
14556 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
14558 * doc/contrib.texi: Update my entry.
14560 2002-05-13 Mark Mitchell <mark@codesourcery.com>
14562 * fixinc/inclhack.def (winidss_valist): Limit applicability.
14563 * fixinc/fixincl.x: Regenerated.
14564 * fixinc/tests/base/math.h: Update.
14565 * fixinc/tests/base/testing.h: Likewise.
14567 2002-05-13 Zack Weinberg <zack@codesourcery.com>
14569 * genattr.c (gen_attr): Don't emit a comma after the last
14572 2002-05-13 Richard Henderson <rth@redhat.com>
14574 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
14575 by non-local gotos.
14576 * recog.c (peephole2_optimize): Likewise.
14578 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
14580 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
14583 2002-05-13 Jeffrey A Law (law@redhat.com)
14585 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
14586 Update prototype and callers.
14587 (propagate_one_insn): Stack pointer adjustments kill MEMs on
14588 the mem_set_list which reference the stack pointer, as do
14589 calls to constant functions as they may clobber outgoing
14592 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
14594 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
14595 (ia32_multipass_dfa_lookahead): New function.
14597 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
14599 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
14600 (translate_options): Remove 'V'.
14601 (process_command): Similarly.
14603 * invoke.texi: Remove documentation of 'V'.
14605 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
14607 * config/s390/linux.h: Revert 2002-04-22 changes.
14609 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
14611 * config/fr30/fr30.md: Only allow splits of immediate loads
14612 if the destination is a register.
14614 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
14616 * Makefile.in (c-common.o, cppinit.o): Update.
14617 * c-common.c: Include except.h.
14618 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
14619 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
14620 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
14621 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
14622 CPP_PREDEFINES): Handle here.
14624 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
14625 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
14626 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
14627 TARGET_OS_CPP_BUILTINS.
14628 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
14629 (CPP_SPEC, EXTRA_SPECS): Update.
14630 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
14631 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
14632 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
14633 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
14634 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
14636 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
14637 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
14639 2002-05-12 Zack Weinberg <zack@codesourcery.com>
14641 * emit-rtl.c (global_rtl): Update comment.
14642 (const_double_htab, const_double_htab_hash,
14643 const_double_htab_hash, lookup_const_double): New.
14644 (const_int_htab_hash, const_int_htab_eq): Remove const
14645 qualifiers, which cause tons of warnings with RTL checking on.
14646 (gen_rtx_CONST_DOUBLE): Deleted.
14647 (const_double_from_real_value): New function - bears some
14648 resemblance to the former immed_real_const_1.
14649 (immed_double_const): Moved here from varasm.c and
14651 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
14652 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
14653 (gen_rtx): Use immed_double_const.
14654 (init_emit_once): Initialize the const_double_htab. Use
14655 REAL_VALUE_FROM_INT where possible. Can now use
14656 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
14657 * varasm.c (struct varasm_status): Remove x_const_double_chain.
14658 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
14659 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
14660 (init_varasm_status, mark_varasm_status): Don't touch
14661 x_const_double_chain.
14663 * output.h: Delete prototype for clear_const_double_mem.
14664 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
14665 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
14666 const_double_from_real_value, not immed_real_const_1, and use
14667 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
14669 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
14670 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
14671 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
14672 (gen_rtx_REG): Second arg is unsigned.
14674 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
14675 (excluded_rtx): New, return true for CONST_DOUBLE.
14676 (genmacro): Write nothing for excluded codes.
14677 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
14678 * expr.c (expand_expr): Likewise.
14679 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
14680 CONST_DOUBLE_CHAIN.
14681 * toplev.c (rest_of_compilation): Don't call
14682 clear_const_double_mem.
14684 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
14685 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
14686 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
14687 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
14688 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
14689 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
14690 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
14691 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
14693 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14695 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
14697 2002-05-12 Tom Tromey <tromey@redhat.com>
14699 * tree.h (copy_node): Don't mention TREE_PERMANENT.
14701 2002-05-12 Zack Weinberg <zack@codesourcery.com>
14703 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
14704 (scan_comma_elt): New function. Accepts whitespace in comma lists.
14705 * gensupport.h: Prototype new routines.
14706 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
14708 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
14709 (next_comma_elt): Use scan_comma_elt.
14711 * config/i386/i386.md: Use new attribute notation to break up
14712 long lines in define_attr forms.
14714 2002-05-12 Richard Henderson <rth@redhat.com>
14716 * expr.c (compress_float_constant): New.
14717 (emit_move_insn): Use it.
14718 (float_extend_from_mem): New.
14719 (init_expr_once): Initialize it.
14720 * real.c (exact_real_truncate): New.
14722 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
14723 dropped into memory; penalize for size.
14724 (RTX_COSTS): FLOAT_EXTEND is free.
14725 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
14726 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
14728 2002-05-12 Richard Henderson <rth@redhat.com>
14730 * profile.h (profile_info): Add missing extern to declaration.
14731 * profile.c (profile_info): Define it.
14733 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14735 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
14736 used for DImode and TImode.
14738 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
14740 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
14743 2002-05-11 Zack Weinberg <zack@codesourcery.com>
14745 * config/rs6000/rs6000.c (rs6000_default_long_calls,
14746 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
14747 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
14748 (rs6000_override_options): Handle -m(no-)longcall.
14749 (init_cumulative_args, output_mi_thunk): Check for both
14750 longcall and shortcall attributes on the function.
14751 (rs6000_attribute_table): Add "shortcall".
14752 (rs6000_handle_longcall_attribute): Update comment.
14753 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
14754 altivec_expand_ternop_builtin): Add default clauses to switches
14755 to silence warnings.
14757 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
14758 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
14759 (TARGET_OPTIONS): Add longcall and no-longcall.
14761 * config/rs6000/rs6000.md (call_nonlocal_sysv,
14762 call_value_nonlocal_sysv): Split by alternatives. One pair
14763 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
14764 the call cookie. The other pair accepts only LR/CTR and has
14767 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
14768 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
14770 * config/rs6000/rs6000-c.c: New file.
14771 * config/rs6000/t-rs6000-c-rule: New file.
14772 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
14773 Prototype rs6000_pragma_longcall.
14775 * doc/extend.texi: Document shortcall attribute.
14776 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
14778 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14780 * reorg.c (dbr_schedule): Remove unnecessary test.
14782 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
14784 * i386.md (testsi to testqi spliters): New.
14786 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
14788 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
14790 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
14792 * basic-block.h: New flag EDGE_CAN_FALLTHRU
14793 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
14794 that can be made fallthru.
14796 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
14798 * cfglayout.c (cleanup_unconditional_jumps): New static function.
14799 (cfg_layout_initialize): Use it.
14801 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
14803 * config/avr/avr.c (avr_mcu_types): Update supported devices.
14804 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
14805 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
14807 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
14809 * dbxout.c: Fix formatting.
14810 * dependence.c: Likewise.
14812 * diagnostic.c: Likewise.
14813 * doloop.c: Likewise.
14814 * dominance.c: Likewise.
14815 * doschk.c: Likewise.
14816 * dwarf2asm.c: Likewise.
14817 * dwarf2out.c: Likewise.
14818 * dwarfout.c: Likewise.
14820 2002-05-10 Richard Henderson <rth@redhat.com>
14822 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
14823 Convert integers constants as needed. Replace "nwords" field with
14825 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
14826 * function.h: Fix typo in comment.
14827 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
14829 2002-05-10 Roger Sayle <roger@eyesopen.com>
14831 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
14832 into the equivalent (signed char)c > 0.
14834 2002-05-10 Janis Johnson <janis187@us.ibm.com>
14836 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
14837 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
14838 (struct prefetch_info): Fix spelling of member bytes_accessed.
14839 (emit_prefetch_instructions): Make dump messages more regular;
14840 restructure code to add more dump messages; use new macros for
14841 heuristics. (There are no code generation changes in any of this).
14843 2002-05-10 David S. Miller <davem@redhat.com>
14845 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
14846 (struct rtx_def): Update unchanging flag comment.
14847 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
14848 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
14849 to be handled to INSN too.
14850 (dbr_schedule): Likewise.
14851 * resource.c (next_insn_no_annul): Likewise.
14853 * cse.c (rtx_cost): Remove multiplication by power of 2 special
14856 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14858 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
14859 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
14860 (possibly) work around broken /bin/sh.
14862 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14864 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
14865 . as N64/N32 libgcc_s.so subdirs.
14867 2002-05-10 David S. Miller <davem@redhat.com>
14869 * config/sparc/sparc.md: Use define_constants for unspec numbers.
14871 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
14873 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
14875 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
14876 * doc/rtl.texi: Document these macros more accurately.
14877 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
14878 JUMP_INSNs and CALL_INSNs.
14879 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
14880 or INSN_FROM_TARGET_P if the code is appropriate.
14882 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
14884 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
14885 before using SYMBOL_REF_FLAG (addr).
14887 * config/avr/avr-protos.h (avr_io_address_p): Declare.
14888 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
14889 Make non-static. Update all callers.
14890 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
14891 New insns to clear/set/test a single bit in I/O address space.
14893 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14895 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
14897 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
14899 * Makefile.in: Update.
14900 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
14901 builtin_define_std): New.
14902 (c_common_init): Register CPP builtins callback.
14903 * c-common.h (flag_iso, flag_undef): New.
14904 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
14905 * c-lex.c: Don't include target.h.
14906 (cb_register_builtins): Move to c-common.c.
14907 (init_c_lex): Don't register hook here.
14908 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
14909 (cpp_define, cpp_assert): Remove.
14910 * gcc.c (cc1_options): Pass -undef to front end.
14911 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
14912 (TARGET_INITIALIZER): Update.
14913 * target.h (struct cpp_reader): Don't predeclare.
14914 (struct gcc_target): Remove cpp builtin hook.
14915 * tree.c (default_register_cpp_builtins): Remove.
14919 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
14921 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
14923 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14925 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
14926 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
14928 2002-05-09 Jakub Jelinek <jakub@redhat.com>
14930 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
14931 * config/sparc/libgcc-sparc-glibc.ver: New file.
14932 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
14933 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
14935 2002-05-09 Jakub Jelinek <jakub@redhat.com>
14938 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
14939 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
14940 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
14942 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
14943 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
14944 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
14945 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
14947 2002-05-09 Richard Henderson <rth@redhat.com>
14949 * config/ia64/ia64.md: Use define_constants for unspec numbers.
14950 * config/ia64/ia64.c: Likewise.
14952 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
14954 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
14955 (save_restore_insns): Likewise.
14956 (mips_expand_prologue, mips_expand_epilogue): Update callers.
14957 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
14959 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
14961 * athlon.md, k6.md, pentium.md, ppro.md): New files.
14962 * i386.md: Move scheduling information into new files.
14964 * i386.md (type attribute): Add "rotate" for rotate insns.
14965 (rotate insns): Set type to "rotate".
14966 (various attributes and function units): Treat rotate like shift.
14967 (pent_pair attribute): Only rotates by one bit position are
14969 (sbb insns): Explicitly set pent_pair attribute on a couple
14970 that were missing it.
14972 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
14974 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
14975 make sure that buffer starts on odd word address.
14976 (sh_va_arg): Skip odd fp registers when reading a double precision
14979 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
14981 * tree.h (preserve_data, object_permanent_p, type_precision):
14984 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
14986 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
14987 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
14989 * cpp.texi: Update for removal of obsolete features.
14991 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
14992 Jeffrey A Law (law@redhat.com)
14994 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
14995 the DFA interface for Pentium processors.
14996 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
14997 (attr_pent_pair, ix86_pent_find_pair): Remove.
14998 (ix86_sched_reorder_pentium): Remove.
14999 (ix86_sched_reorder): Remove reordering for Pentium.
15000 * i386.md (Pentium scheduling): Rewrite using DFA description.
15002 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
15004 * cfganal.c (can_fallthru): Fix fast path.
15005 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
15006 with edges to the next block.
15008 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
15009 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
15011 * final.c (end_final): Use C trees to output data structures for profiling.
15013 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
15014 (profile.o): New dependency profile.h
15015 (final.o): New dependency profile.h
15016 * profile.h: New file. New global structure profile_info.
15017 * final.h (count_edges_instrumented_now): Declare.
15018 (current_function_cfg_checksum): Declare.
15019 (function_list): New structure.
15020 (functions_head, functions_tail): New static variables.
15021 (end_final): Emits more data, removed some -ax stuff.
15022 (final): Stores function names and chcksums.
15023 * gcov-io.h (__write_gcov_string): New function.
15024 (__read_gcov_string): New function.
15025 * gcov.c (read_profile): New function.
15026 (create_program_flow_graph): Uses read_profile instead of reading
15028 (read_files): Removed da_file checking, it's done by read_profile now.
15029 * libgcc2.c (bb_function_info): New structure.
15030 (bb): New field in structure, removed some -ax stuff.
15031 (__bb_exit_func): Changed structure of da_file.
15032 * profile.c (count_edges_instrumented_now): New global variable.
15033 (current_function_cfg_checksum): New global variable.
15034 (max_counter_in_program): New global variable.
15035 (get_exec_counts): New function.
15036 (compute_checksum): New function.
15037 (instrument_edges): Sets count_edges_instrumented_now.
15038 (compute_branch_probabilities): Uses get_exec_counts instead of
15040 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
15041 (init_branch_prob): Removed da_file checking, done in get_exec_counts
15043 (end_branch_prob): Removed da_file checking, done in get_exec_counts
15045 * gcov.texi: Updated information about gcov file format.
15047 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
15049 * sbitmap.c: Fix formatting.
15050 * scan.c: Likewise.
15051 * scan-decls.c: Likewise.
15052 * sched-deps.c: Likewise.
15053 * sched-ebb.c: Likewise.
15054 * sched-rgn.c: Likewise.
15055 * sched-vis.c: Likewise.
15056 * sdbout.c: Likewise.
15057 * sibcall.c: Likewise.
15058 * simplify-rtx.c: Likewise.
15060 * ssa-ccp.c: Likewise.
15061 * ssa-dce.c: Likewise.
15062 * stmt.c: Likewise.
15063 * stor-layout.c: Likewise.
15064 * stringpool.c: Likewise.
15066 2002-05-09 David S. Miller <davem@redhat.com>
15068 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
15070 2002-05-07 David S. Miller <davem@redhat.com>
15072 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
15073 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
15074 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
15075 library implementation clobbers the output before the inputs
15076 are fully consumed, use stack temporary for the output.
15078 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
15080 * config/netbsd.h (CPP_SPEC): Remove.
15081 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
15082 * config/i386/netbsd.h (CPP_SPEC): Define.
15083 * config/ns32k/netbsd.h (CPP_SPEC): Define.
15084 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
15085 * config/sparc/netbsd.h (CPP_SPEC): Define.
15086 * config/vax/netbsd.h (CPP_SPEC): Define.
15088 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
15090 * read-rtl.c: Fix formatting.
15091 * real.c: Likewise.
15092 * recog.c: Likewise.
15093 * regclass.c: Likewise.
15094 * regmove.c: Likewise.
15095 * reg-stack.c: Likewise.
15096 * reload1.c: Likewise.
15097 * reload.c: Likewise.
15098 * resource.c: Likewise.
15099 * rtlanal.c: Likewise.
15101 * rtl-error.c: Likewise.
15103 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
15105 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
15106 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
15108 2002-05-08 Bernd Schmidt <bernds@redhat.com>
15110 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
15111 use __SSE2__ macro instead.
15112 * config/i386/xmmintrin.h: Likewise.
15114 2002-05-08 Janis Johnson <janis187@us.ibm.com>
15116 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
15117 and use it in all invocations of these macros. Clean up comments.
15118 * rtl.c (rtl_check_failed_flag): Add an argument for the name
15119 of the flag access macro whose check failed.
15120 * doc/rtl.texi (Flags): Document additional flag uses.
15122 2002-05-08 Robert Spier <rspier@pobox.com>
15123 Neil Booth <neil@daikokuya.demon.co.uk>
15125 PR preprocessor/6521
15126 * cppfiles.c (handle_missing_header): Don't do anything
15127 different for <> includes.
15129 * cppopts.texi: Update documentation for -MG.
15131 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
15133 * cpplex.c (cpp_interpret_charconst): Truncate as well as
15136 * cpp.texi: Clarify multichar charconst valuation.
15138 2002-05-08 Mark Mitchell <mark@codesourcery.com>
15140 * doc/invoke.texi: Document -mwindiss option.
15142 2002-05-08 Jason Merrill <jason@redhat.com>
15144 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
15146 * dwarf2out.c (gen_type_die): Abort on broken recursion.
15149 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
15152 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
15154 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
15155 little-endian multilibs to override arm/thumb multilibs.
15156 Do not build hardware floating point multilibs, nor apcs-26
15157 multilibs for the Thumb.
15159 2002-05-08 Mark Mitchell <mark@codesourcery.com>
15162 * varasm.c (mark_weak): New function.
15163 (merge_weak): Use it. Do not call declare_weak.
15164 (declare_weak): Use merge_weak.
15166 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
15168 * cse.c (dead_libcall_p): Update counts.
15169 (delete_trivially_dead_insns): Update call of dead_libcall_p.
15171 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
15173 * cfglayout.c (function_tail_eff_head): Rename to ...
15174 (function_footer): ... this one.
15175 (unlink_insn_chain): New functions.
15176 (label_for_bb): Only call block_label and emit debug message.
15177 (record_effective_endpoints): Actually unlink the headers and footers.
15178 (fixup_reorder_cahin): Re-insert the unlinked sequences.
15179 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
15180 * cfglayout.h (struct reorder_block_def): New fields footer/header;
15181 remove eff_head/eff_end.
15182 * rtl.h (set_first_insn): Declare.
15183 * emit-rtl.c (set_first_insn): New function.
15185 * cfglayout.c (fixup_reorder_chain): Dump duplicated
15186 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
15187 cfg_layout_duplicate_bb): New global function.
15188 (duplicate_insn_chain): New static function.
15189 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
15190 cfg_layout_duplicate_bb): Declare.
15191 (struct reorder_block_def): Add "original" field.
15192 * emit-rtl.c (emit_copy_of_insn_after): New function.
15193 * rtl.h (emit_copy_of_insn_after): Declare.
15195 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
15196 (fixup_reorder_chain): properly handle edges to exit block.
15198 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15199 Jan Hubicka <jh@suse.cz>
15201 * basic-block.h (note_prediction_to_br_prob): declare.
15202 * c-semantics.c: Inlucde predit.h
15203 (expand_stmt): predict GOTO_STMT as not taken.
15204 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
15205 (cleanup_cfg): Do not free tail_recursion_list.
15206 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
15207 (flow_delete_block): Kill predictions past end of basic block.
15208 * output.h (delete_unreachable_blocks): Declare.
15209 * predict.c (predicted_by_p, process_note_predictions,
15210 process_note_prediction, last_block_p): New function.
15211 (estimate_probability): Bypass loop on PRED_CONTINUE;
15212 do not handle noreturn heuristics; kill PRED_RETURN; add
15214 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
15215 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
15216 * predict.h (IS_TAKEN): New constant.
15217 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
15218 * rtl.c (NOTE_INSN_PREDICTION): New.
15219 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
15221 (insn_note): add NOTE_INSN_PREDICTION.
15222 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
15223 CFG; free tail_recursion_label_list.
15224 * stmt.c: Include predict.h;
15225 (return_prediction): New.
15226 (expand_value_return): Use it.
15227 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
15229 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
15231 * config/mips/mips.md: Name the unspecs with define_constant.
15232 (*HILO_delay): Rename to 'hilo_delay' (no star).
15233 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
15234 (reload_outdi, reload_outsi): Likewise.
15236 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
15238 * toplev.c: Fix formatting.
15240 2002-05-07 Janis Johnson <janis187@us.ibm.com>
15242 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
15243 * configure.in (ac_rtlflag_checking): New.
15244 * doc/install.texi (--enable-checking): Document RTL flag checking.
15246 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
15248 * c-common.c (c_common_init): Set options->unsigned_wchar.
15249 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
15250 group target dependencies.
15251 (init_builtins, cpp_handle_option): Update.
15252 * cpplex.c (cpp_interpret_charconst): Update.
15253 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
15254 signed_char to unsigned_char, group target dependencies.
15255 * defaults.h (WCHAR_UNSIGNED): Remove.
15256 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
15258 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
15259 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
15260 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
15261 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
15262 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
15264 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
15266 2002-05-07 Mark Mitchell <mark@codesourcery.com>
15268 * fixinc/inclhack.def (windiss_math1): New fix.
15269 (windiss_math2): Likewise.
15270 (windiss_valist): Likewise.
15271 * fixinc/fixincl.x: Regenerated.
15273 2002-05-07 Andreas Jaeger <aj@suse.de>
15275 * genautomata.c (output_internal_min_issue_delay_func): Add
15276 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
15277 (output_internal_trans_func): Likewise.
15279 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
15281 * pa.c (hppa_profile_hook): Use force_reg to get the address
15282 of the profile hook into an appropriate pseudo register.
15284 2002-05-07 Mark Mitchell <mark@codesourcery.com>
15286 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
15287 (LINK_START_SPEC): Handle it.
15288 (LINK_OS_SPEC): Likewise.
15289 (CPP_SPEC): Likewise.
15290 (STARTFILE_SPEC): Likewise.
15291 (LIB_SPEC): Likewise.
15292 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
15294 (CRTSAVRES_DEFAULT_SPEC): New macro.
15295 (LIB_WINDISS_SPEC): New macro.
15296 (CPP_OS_WINDISS_SPEC): Likewise.
15297 (STARTFILE_WINDISS_SPEC): Likewise.
15298 (ENDFILE_WINDISS_SPEC): Likewise.
15299 (LINK_START_WINDISS_SPEC): Likewise.
15300 (LINK_OS_WINDISS_SPEC): Likewise.
15301 * config/rs6000/windiss.h: New file.
15303 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
15305 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
15307 2002-05-06 David S. Miller <davem@redhat.com>
15309 * config/sparc/sparc.md (shift insns): Do not mask off
15310 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
15313 2002-05-06 Richard Henderson <rth@redhat.com>
15316 * expr.c (highest_pow2_factor_for_type): New.
15317 (expand_assignment): Use it.
15319 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
15321 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
15323 ("altivec_mfvscr"): Same.
15325 2002-05-06 Janis Johnson <janis187@us.ibm.com>
15327 * rtl.h (struct rtx_def): Update comments.
15328 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
15329 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
15330 RTL_FLAG_CHECK macros with list of expected RTL codes.
15331 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
15332 (rtl_check_failed_flag): New.
15333 * reload1.c (reload): Use REG macro before changing rtx to MEM.
15334 (reload_cse_noop_set_p): Check rtx code before using access macro.
15335 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
15336 before using access macro.
15338 2002-05-06 Janis Johnson <janis187@us.ibm.com>
15340 * doc/rtl.texi (Flags): Update to reflect current usage.
15342 2002-05-06 Roger Sayle <roger@eyesopen.com>
15345 * fold-const.c (sign_bit_p): New function.
15346 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
15347 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
15348 Reapply fold when converting (A & C) == C into (A & C) != 0.
15349 (fold_binary_op_with_conditional_arg): Fix typo in comment.
15351 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
15353 * c-common.c (warn_multichar): New.
15354 (c_common_init): Set CPP's warn_multichar.
15355 * c-common.h (warn_multichar): New.
15356 * c-decl.c (warn_multichar): Remove.
15357 * c-lex.c (lex_charconst): Update.
15358 * c-tree.h (warn_multichar): Remove.
15359 * cppexp.c (eval_token): Sign-extend charconst value.
15360 * cppinit.c (cpp_create_reader): Set warn_multichar.
15361 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
15362 each character. Update prototype. Sign-extend the result.
15363 * cpplib.h: Fix conditions.
15364 (struct cpp_options): Add new warning flag.
15365 (cpp_interpret_charconst): Update prototype.
15367 * cpp.texi: Update documentation.
15369 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
15371 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
15372 Fix typo in usage of allof instead of unit.
15374 2002-05-06 Richard Henderson <rth@redhat.com>
15376 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
15377 and any jump or call for IN.
15379 2002-05-06 Bernd Schmidt <bernds@redhat.com>
15381 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
15383 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
15385 2002-05-06 Roger Sayle <roger@eyesopen.com>
15387 * fold-const.c (lshift-double): Cast the high word to an unsigned
15388 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
15389 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
15390 avoid compiler warning. (fold): Remove redundant code from
15391 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
15393 2002-05-06 Jeff Law <law@redhat.com>
15395 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
15396 * pa.c (pa_adjust_cost): Remove all true dependency cost
15397 adjustments. Also remove support for non-DFA scheduling.
15398 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
15399 to adjust true dependency costs. Update various comments.
15400 (7100lc, 7200, 7300 scheduling): Simplify by combining the
15401 FP ALU & MPY units into a single unit.
15403 2002-05-06 Catherine Moore <clm@redhat.com>
15405 * config/v850/v850.c (compute_register_save_size): Make sure
15406 to count all of the registers that will be saved.
15408 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
15410 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
15412 2002-05-06 David S. Miller <davem@redhat.com>
15414 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
15415 allow result to overlap input operands in memory.
15417 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
15420 * cpp.texi: Update multichar charconst docs.
15422 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
15424 * cpplex.c (cpp_interpret_charconst): Sign-extend each
15425 character. Don't ignore excess characters. Treat
15426 multicharacter character constants as signed.
15427 (cpp_parse_escape): Clarify diagnostic.
15429 2002-05-05 Jakub Jelinek <jakub@redhat.com>
15431 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
15432 use add instead of shift.
15433 (ashldi3_sp64): Likewise.
15434 (ashlsi3_const1, ashldi3_const1): Remove.
15435 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
15436 * config/sparc/sparc.c (const1_operand): New.
15438 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
15440 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
15442 2002-05-05 Jakub Jelinek <jakub@redhat.com>
15445 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
15447 2002-05-05 Richard Henderson <rth@redhat.com>
15449 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
15450 memory latency adjustments.
15451 (alpha_variable_issue): Remove.
15452 (alpha_use_dfa_pipeline_interface): New.
15453 (alpha_multipass_dfa_lookahead): New.
15454 * config/alpha/alpha.md: Remove define_function_unit scheduling;
15455 include new dfa scheduling.
15456 (attr type): Add none.
15457 (blockage): Use it.
15458 * config/alpha/ev4.md: New.
15459 * config/alpha/ev5.md: New.
15460 * config/alpha/ev6.md: New.
15462 2002-05-05 David S. Miller <davem@redhat.com>
15464 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
15466 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
15468 * cse.c: Fix formatting.
15469 * emit-rtl.c: Likewise.
15471 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
15473 * genautomata.c (initiate_states): Add additional guard to
15474 initialize `units_array'.
15476 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
15478 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
15479 process_unit_to_form_the_same_automaton_unit_lists,
15480 form_the_same_automaton_unit_lists
15481 check_unit_distributions_to_automata): New prototypes and
15483 (check_automata): Rename it into `check_automata_insn_issues'.
15484 (unit_decl): New fields `the_same_automaton_unit' and
15485 `the_same_automaton_message_reported_p'.
15486 (unit_decl_t): New typedef.
15487 (the_same_automaton_lists): New gloval variable.
15488 (unit_regexp, unit_set_el, units_array, units_cmp,
15489 output_get_cpu_unit_code_func): Use the typedef.
15490 (evaluate_max_reserv_cycles): Increment
15491 `description->max_insn_reserv_cycles'.
15492 (initiate_states): Don't increment `max_cycles_num'.
15493 (transform_insn_regexps): Move code around transformation of
15494 regexps from `generate'.
15495 (generate): Remove call of `transform_insn_regexps'.
15496 (expand_automata): Call `transform_insn_regexps' and
15497 `check_unit_distributions_to_automata'. Check errors before
15500 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
15501 automaton `ultrasparc3_1'.
15503 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
15505 * c-common.c (c_common_init): Set up CPP arithmetic.
15506 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
15507 something reasonable for the host.
15508 (sanity_checks): Add checks.
15509 (cpp_read_main_file): Call sanity_checks() from here...
15510 (cpp_post_options): ... not here.
15511 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
15512 * cpplib.h (struct cpp_options): New member int_precision.
15514 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15516 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
15518 2002-05-04 David S. Miller <davem@redhat.com>
15520 * config/sparc/linux.h, config/sparc/linux64.h
15521 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
15523 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
15525 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
15527 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
15530 2002-05-05 Tim Josling <tej@melbpc.org.au>
15532 * treelang; New directory for new sample language treelang.
15534 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
15536 * Makefile.in (c-lex.o): Update.
15537 * c-lex.c: Include target.h.
15538 (cb_register_builtins): New.
15539 (init_c_lex): Set builtins callback.
15540 * c-lex.h (cpp_define, cpp_assert): New prototypes.
15541 * cppinit.c (init_builtins): Use callback, including for
15543 * cpplib.h (struct cpp_callbacks): New member.
15544 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
15545 (TARGET_INITIALIZER): Update.
15546 * target.h (struct gcc_target): New hook.
15547 * tree.c (default_register_cpp_builtins): New.
15548 * tree.h (default_register_cpp_builtins): New.
15550 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
15552 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
15554 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
15555 (cpp_post_options): Move sanity checks to...
15556 (sanity_checks): New.
15557 * cpplex.c (maybe_read_ucs): Fix prototype.
15558 (parse_string, cpp_parse_escape): Cast for %c format specifier.
15559 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
15562 2002-05-04 Bernd Schmidt <bernds@redhat.com>
15564 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
15565 builtins. Use V2DI patterns instead of TI for logical operations.
15566 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
15567 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
15568 (ix86_expand_builtins): Change the pattern used for movntdq.
15569 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
15570 sse2_nandv2di3): New patterns.
15571 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
15573 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
15574 (cvtdq2pd): Correct mode on operand 1.
15575 (sse2_umulsidi3): Describe without unspec.
15576 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
15578 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
15579 (ashlv2di3): Likewise, from sse2_ashlv2di3.
15580 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
15581 ashlv4si3, ashlv2di3): Use SImode for shift count.
15582 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
15583 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
15585 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
15587 (__m128i, __m128d): New macros.
15588 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
15589 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
15590 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
15591 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
15592 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
15593 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
15594 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
15595 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
15596 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
15597 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
15598 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
15599 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
15600 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
15601 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
15602 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
15603 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
15604 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
15605 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
15606 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
15607 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
15608 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
15609 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
15610 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
15611 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
15612 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
15613 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
15614 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
15615 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
15616 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
15617 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
15618 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
15619 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
15620 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
15621 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
15622 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
15623 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
15624 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
15626 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
15627 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
15629 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
15631 * dwarf2out.c: Fix formatting.
15632 * varasm.c: Likewise.
15634 2002-05-04 David Edelsohn <edelsohn@gnu.org>
15637 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
15638 clobber and use result as temporary value.
15640 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
15642 * expr.c (force_operand): Use expand_simple_* to handle more
15645 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
15647 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
15648 and sign-extension.
15649 (lex_charconst): Update for change in prototype of
15650 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
15652 * cpphash.h (BITS_PER_CPPCHAR_T): New.
15653 * cppinit.c (cpp_create_reader): Initialize them for no
15654 change in semantics.
15655 (cpp_post_options): Add sanity checks.
15656 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
15657 and truncation issues. Calculate in type cppchar_t.
15658 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
15659 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
15660 run-time dependent precision correctly. Return whether the
15661 result is signed or not.
15662 * cpplib.c (dequote_string): Use cppchar_t; update.
15663 * cpplib.h (cppchar_signed_t): New.
15664 struct cpp_options): New precision members.
15665 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
15666 * cppexp.c (eval_token): Update.
15668 2002-05-03 David S. Miller <davem@redhat.com>
15670 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
15671 * config/sparc/sparc.c (sparc_rtx_costs): New function
15672 implementing RTX_COSTS and CONST_COSTS.
15673 * config/sparc/sparc.h (CONST_COSTS): Delete.
15674 (RTX_COSTS_CASES): Define.
15675 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
15678 * config/sparc/sparc.md (DFA schedulers): Split out...
15679 * config/sparc/cypress.md, config/sparc/hypersparc.md,
15680 config/sparc/sparclet.md, config/sparc/supersparc.md,
15681 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
15683 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
15684 checks on it, always defined for SPARC.
15686 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
15687 Tweak, and add more detailed comments.
15689 2002-05-03 Zack Weinberg <zack@codesourcery.com>
15691 * Re-apply patch accidentally reverted with
15692 DFA scheduler merge: remove all rules and variables to slurp
15693 source files out of libiberty and rebuild them with HOST_CC.
15694 ($(HOST_PREFIX_1)varray.o): New rule.
15695 (genattrtab rule): Word wrap.
15697 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
15699 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
15700 (CPP_SUBTARGET_SPEC): Define.
15701 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
15702 cpp_subtarget specs.
15703 (CPP_SPEC): Redefine to include %(cpp_subtarget).
15705 2002-05-03 David S. Miller <davem@redhat.com>
15707 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
15708 * target.h (struct gcc_target): Delete cycle_display member.
15710 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
15711 (rtx_needs_barrier): Delete reference to cycle_display unspec.
15712 (ia64_sched_reorder2): Mention need for cycle display handling
15713 once such notes exist.
15715 2002-05-03 Richard Henderson <rth@redhat.com>
15717 * real.c (etoasc): Strip most trailing zeros for clarity.
15718 * sched-vis.c: Include real.h.
15719 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
15720 * Makefile.in (sched-vis.o): Add real.h.
15722 2002-05-03 David S. Miller <davem@redhat.com>
15724 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
15727 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
15729 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
15730 when we get an out of range literal.
15731 (altivec_expand_ternop_builtin): Same.
15732 (altivec_expand_unop_builtin): Same.
15733 (altivec_expand_builtin): Same, for dss.
15734 (altivec_expand_builtin): Use trees instead of rtl when
15735 determining literal argument validity.
15737 2002-05-03 David S. Miller <davem@redhat.com>
15739 Delete cycle display scheduling hook.
15740 * config/ia64/ia64.c (ia64_cycle_display,
15741 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
15742 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
15743 and use emit_insn_before instead of ia64_emit_insn_before.
15744 * config/ia64/ia64.md (unspec usage): Delete cycle display.
15745 (cycle_display): Delete insn pattern.
15746 * config/sparc/sparc.md (unspec usage): Delete cycle display.
15747 (cycle_display): Delete insn pattern.
15748 * config/sparc/sparc.c (sparc_cycle_display,
15749 TARGET_SCHED_CYCLE_DISPLAY): Delete.
15750 * doc/md.texi (cycle_display): Don't mention.
15751 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
15753 2002-05-03 Richard Henderson <rth@redhat.com>
15755 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
15756 * recog.h: Declare them.
15758 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
15759 * config/sparc/sparc.md: Use store_data_bypass_p instead.
15760 * config/sparc/sparc-protos.h: Update.
15762 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
15764 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
15765 -D__arch64__. Add -D_LP64.
15766 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
15768 (CPP_ARCH64_SPEC): Likewise.
15769 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
15770 (NO_BUILTIN_SIZE_TYPE): Undef.
15772 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
15774 * genautomata.c (min_issue_delay_pass_states): Change return type
15776 (min_issue_delay_pass_states): Change the algorithm.
15777 (min_issue_delay): Set up min_insn_issue_delay for the state.
15778 (output_min_issue_delay_table): Interchange the nested loops and
15779 and initiate min_insn_issue_delay for states.
15781 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
15783 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
15784 jump is simplejump.
15786 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
15788 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
15791 2002-05-03 Richard Henderson <rth@redhat.com>
15794 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
15795 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
15796 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
15797 code before JUMP, not EARLIEST.
15799 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
15801 * c-format.c (check_format_info_main): Don't check for presence of
15802 parameter for * width until after operand number has been read,
15803 and only check for it if format parameters are available.
15806 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
15808 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
15809 (LINK_SPEC): Undef before defining.
15811 2002-05-03 Jakub Jelinek <jakub@redhat.com>
15813 PR preprocessor/6489
15814 * tradcpp.c (fixup_newlines): New.
15815 (main, finclude): Use it.
15817 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
15819 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
15820 * config/mips/mips.c (mips_unique_section): Strip encoding from
15823 2002-05-03 Jakub Jelinek <jakub@redhat.com>
15825 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
15828 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15830 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
15831 (Specific): Removed buildstats references.
15832 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
15833 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
15834 Accomodate Solaris versions beyond 8.
15835 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
15836 (Specific, *-*-solaris2.8): Removed, obsolete.
15838 2002-05-03 Jakub Jelinek <jakub@redhat.com>
15841 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
15842 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
15843 fill leaf_reg_remap with identity.
15844 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
15846 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
15848 * config/h8300/crti.asm: Remove trailing spaces.
15849 * config/h8300/h8300.c: Likewise.
15850 * config/h8300/lib1funcs.asm: Likewise.
15852 2002-05-02 Jason Merrill <jason@redhat.com>
15854 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
15855 * c-decl.c (c_init_decl_processing): Use it.
15856 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
15857 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
15858 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
15860 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
15862 * regrename.c: Fix formatting.
15863 * tree.c: Likewise.
15865 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
15867 * i386.md (attribute memory): Handle compares properly.
15869 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
15871 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
15874 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
15876 * function.c: Fix formatting.
15878 2002-05-02 Jan Hubicka <jh@suse.cz>
15880 * haifa-sched.c (schedule_insn): Print table of instructions and
15882 (sched_block): Do not print ready list at verbosity level 1.
15883 * sched-vis.c (print_insn): Make global.
15884 * sched-ebb.c (ebb_print_insn): Rename from...
15885 (print_insn): ... this one.
15886 * sched-int.h (print_insn): Declare
15888 2002-05-02 Richard Henderson <rth@redhat.com>
15890 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
15891 emitted by cycle_display.
15893 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
15895 * doc/install.texi (*-*-freebsd*): Update to latest status.
15897 2002-05-02 Jakub Jelinek <jakub@redhat.com>
15900 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
15901 * config/float-sparc.h: Assume 128-bit long double if
15902 __LONG_DOUBLE_128__ is defined.
15904 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
15906 * genattrtab.c (write_function_unit_info): Add a dummy element
15907 when num_units == 0.
15909 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15911 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
15912 TYPE_MODE (double_type_node) instead of DFmode.
15914 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
15916 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
15918 * toplev.c (rest_of_compilation): Revert Richard's patch.
15920 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
15922 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
15924 2002-05-02 Catherine Moore <clm@redhat.com>
15926 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
15928 2002-05-02 Kazu Hirata <kazu@hxi.com>
15930 * combine.c: Fix comment typos.
15931 * expr.c: Likewise.
15932 * genautomata.c: Likewise.
15933 * stmt.c: Likewise.
15934 * tree.h: Likewise.
15936 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
15938 * doc/install.texi: State GNAT version requirements.
15940 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
15942 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
15943 of the frame pointer or arg pointer register which strict register
15944 checking is not enabled.
15946 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
15948 * gcc.dg/altivec-8.c: New.
15950 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
15951 PRE_INC and PRE_DEC for altivec modes.
15953 2002-05-01 Bruce Korb <bkorb@gnu.org>
15955 * fixinc/check.tpl(set-writable): make sure the function exists first
15956 * fixinc/inclhack.def(alpha_assert): fix test_text
15957 * fixinc/tests/base/assert.h: add in missing result
15959 2002-05-01 Jeff Law <law@redhat.com>
15961 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
15964 2002-05-01 Joel Brobecker <brobecker@gnat.com>
15966 * dbxout.c (dbxout_type): Emit size information for range types,
15967 as well, but only when using GDB extensions.
15969 2002-05-01 Richard Henderson <rth@redhat.com>
15971 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
15972 target-independent gnu binutils date test.
15974 2002-05-01 Richard Henderson <rth@redhat.com>
15976 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
15977 info before expunging the block.
15979 2002-05-01 Jakub Jelinek <jakub@redhat.com>
15981 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
15982 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
15983 -M -or -MM is in effect.
15985 2002-05-01 Zack Weinberg <zack@codesourcery.com>
15987 * config.gcc: Correct test of --enable-obsolete. Obsolete all
15988 A29k configurations.
15989 * doc/install.texi: Update to match.
15991 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15994 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
15995 for duplicates. Always loop over whole list.
15997 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15999 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
16001 2002-05-01 Joel Sherrill <joel@OARcorp.com>
16003 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
16006 2002-05-01 Joel Sherrill <joel@OARcorp.com>
16008 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
16010 2002-05-01 David Edelsohn <edelsohn@gnu.org>
16012 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
16013 (nabs_nopower): Same.
16014 (floatdisf2): New pattern.
16015 (absdi2): Convert to define_insn_and_split.
16017 (trunctfsf2): Same.
16018 (floatditf2): Same.
16019 (floatsitf2): Same.
16020 (fix_trunctfdi2): Same.
16021 (fix_trunctfsi2): Same.
16023 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
16025 * doc/install.texi: Update Texinfo version requirement
16028 2002-05-01 Jakub Jelinek <jakub@redhat.com>
16030 PR target/6512, PR target/5628
16031 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
16032 when memory is not aligned.
16033 (movdf_insn_v9only_vis): Likewise.
16034 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
16035 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
16036 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
16038 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
16040 * gcc.dg/altivec-7.c: New.
16042 * config/rs6000/altivec.h: Cleanup.
16044 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
16046 * doc/invoke.texi (Option Summary): Add -mvrsave=.
16047 (RS/6000 and PowerPC Options): Document -mvrsave=.
16049 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
16050 (rs6000_altivec_vrsave_string): Same.
16051 (rs6000_override_options): Call rs6000_parse_vrsave_option.
16052 (rs6000_parse_vrsave_option): New.
16053 (rs6000_stack_info): Only generate vrsave instructions when
16054 TARGET_ALTIVEC_VRSAVE.
16056 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
16057 (rs6000_altivec_vrsave_string): Define extern.
16058 (rs6000_altivec_vrsave): Same.
16059 (TARGET_ALTIVEC_VRSAVE): New.
16061 2002-04-30 Richard Henderson <rth@redhat.com>
16064 * toplev.c (rest_of_compilation): Don't run cross-jump before
16067 2002-04-30 Tom Rix <trix@redhat.com>
16069 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
16070 check which_alternative.
16072 2002-04-30 Kazu Hirata <kazu@hxi.com>
16074 * cpplex.c: Fix comment formatting.
16075 * function.c: Likewise.
16076 * integrate.c: Likewise.
16077 * regrename.c: Likewise.
16078 * sibcall.c: Likewise.
16079 * simplify-rtx.c: Likewise.
16080 * tree-inline.c: Likewise.
16082 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
16084 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
16085 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
16086 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
16087 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
16088 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
16089 * pa/x-ada: New file. Define ADA_CFLAGS.
16091 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
16093 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
16094 from MMIX_LAST_REGISTER_FILE_REGNUM.
16095 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
16096 (struct machine_function): New member highest_saved_stack_register
16097 previously static variable in mmix.c.
16098 (MACHINE_DEPENDENT_REORG): Define.
16099 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
16100 (MMIX_OUTPUT_REGNO): New.
16101 (mmix_target_asm_function_prologue): Move calculation of last used
16102 saved-stack-register into...
16103 (mmix_machine_dependent_reorg): New function. Update to also handle
16105 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
16106 register names, simplify somewhat by new variable regno.
16107 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
16109 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
16110 emitting register names.
16111 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
16112 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
16113 Remove fixed FIXME.
16114 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
16117 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
16119 2002-04-30 Richard Henderson <rth@redhat.com>
16121 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
16122 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
16123 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
16124 emit_tfmode_cvt): New.
16125 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
16126 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
16127 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
16128 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
16129 * config/sparc/sparc-protos.h: Update.
16131 2002-04-30 Janis Johnson <janis187@us.ibm.com>
16133 * install.texi (Final install): Add to the list of info to include
16134 in a report of a successful bootstrap, and add link to 3.1 list.
16136 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
16138 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
16139 (mode): Add vector modes
16140 (i387): Kill attribute.
16141 (unit): New attribute.
16142 (length_immediate): Grok new types.
16143 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
16144 (modrm): Use "unit".
16145 (memory): Handle MMX/SSE properly.
16146 (scheduling descriptions): Kill uses of fop1.
16147 (sse, mmx, fp patterns): Set type and mode properly.
16149 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
16151 * pa.c (override_options): Default to PA8000 scheduling.
16152 * doc/invoke.texi (HP-PA options): Mention newly added 7300
16153 scheduling parameter.
16155 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
16156 handling of double precision multiplies.
16158 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
16159 fpdiv and fpsqrt instructions.
16160 (7200 & 7300 scheduling): Fix typo in handling of
16161 store-load and store-store penalties.
16163 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16165 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
16166 mips. Add two missing commas.
16168 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
16170 * doc/contrib.texi (Contributors): Update Paolo Carlini's
16171 and Benjamin Kosnik's entries.
16173 2002-04-29 David S. Miller <davem@redhat.com>
16175 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
16176 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
16177 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
16178 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
16180 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16182 * combine.c (find_split_point): Use gen_int_mode.
16184 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
16186 Merging code from dfa-branch:
16188 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
16190 * genautomata.c (output_reserv_sets): Fix typo.
16192 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
16194 * genautomata.c (output_reserv_sets): Remove
16195 next_cycle_output_flag.
16197 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
16199 * sched-rgn.c (init_ready_list): Make the DFA code handle
16200 USE/CLOBBER insns in the same way as the traditional
16202 (new_ready): Similarly..
16204 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
16206 * haifa-sched.c (schedule_block): Change the DFA state only after
16209 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
16211 * pa.c (hppa_use_dfa_pipeline_interface): New function.
16212 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
16213 (override_options): Add PA7300 scheduling support.
16214 (pa_adjust_cost): Update various comments. Properly
16215 handle anti and output dependencies when using the
16217 (pa_issue_rate): Add PA7300 scheduling support.
16218 (pa_can_combine_p): Call extract_insn before calling
16219 constrain_operands (taken from mainline tree).
16220 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
16221 * pa.md (cpu attr): Add 7300. Rewrite pipeline
16222 descriptions using DFA descriptions. Add PA7300
16223 scheduling support.
16225 2002-03-30 David S. Miller <davem@redhat.com>
16227 Add UltraSPARC-III DFA scheduling support.
16228 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
16229 Update FP conditional move on register insn patterns to use it, as
16231 (define_attr cpu): Add ultrasparc3.
16232 (define_attr us3load_type): New, update integer load patterns to
16233 set it, as appropriate.
16234 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
16235 (rest): Add UltraSPARC3 scheduling description.
16236 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
16237 (PROCESSOR_ULTRASPARC3): New.
16238 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
16239 ({ASM,CPP}_CPU_SPEC): Likewise.
16240 (REGISTER_MOVE_COST): Likewise.
16241 (RTX_COSTS): Likewise.
16242 * config/sparc/sparc.c (sparc_override_options,
16243 sparc_initialize_trampoline, sparc64_initialize_trampoline,
16244 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
16245 sparc_issue_rate): Likewise.
16246 * config/sparc/sol2.h: Likewise.
16247 * config/sparc/sol2-sld-64.h: Likewise.
16248 * config/sparc/linux64.h: Likewise.
16250 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
16252 * doc/md.texi: Add comments about usage the latency time for the
16253 different dependencies and about case when two or more conditions
16254 in different define_insn_reservations returns TRUE for an insn.
16256 * doc/md.texi: Add reference for automaton based pipeline
16259 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
16261 * doc/passes.texi: Add missed information about genattrtab.
16263 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
16265 * genautomata.c (output_automata_list_transition_code): Check
16266 automata_list on NULL.
16268 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
16270 * genautomata.c (output_insn_code_cases,
16271 output_automata_list_min_issue_delay_code,
16272 output_automata_list_transition_code,
16273 output_automata_list_state_alts_code): Comment the functions.
16275 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
16277 * genautomata.c (automata_list_el_t): New typedef.
16278 (get_free_automata_list_el,free_automata_list_el,
16279 free_automata_list, automata_list_hash, automata_list_eq_p,
16280 initiate_automata_lists, automata_list_start, automata_list_add,
16281 automata_list_finish, finish_automata_lists,
16282 output_insn_code_cases, output_automata_list_min_issue_delay_code,
16283 output_automata_list_transition_code,
16284 output_automata_list_state_alts_code, add_automaton_state,
16285 form_important_insn_automata_lists): New functions and prototypes.
16286 (insn_reserv_decl): Add members important_automata_list and
16288 (ainsn): Add members important_p.
16289 (automata_list_el): New structure.
16290 (first_free_automata_list_el, current_automata_list,
16291 automata_list_table): New global variables.
16292 (create_ainsns): Initiate member important_p.
16293 (output_internal_min_issue_delay_func): Generate the switch and
16294 call output_insn_code_cases.
16295 (output_internal_trans_func, output_internal_state_alts_func):
16297 (generate): Call initiate_automata_lists.
16298 (automaton_states): New global variable.
16299 (expand_automata): Call form_important_insn_automata_lists.
16300 (write_automata): Call finish_automata_lists.
16302 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
16304 * genautomata.c (add_excls, add_presence_absence): Check that
16305 cpu units in the sets belong the same automaton.
16307 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
16308 about that cpu units in the sets belong the same automaton.
16310 * doc/md.texi: Ditto.
16312 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
16313 Nitin Gupta <niting@noida.hcltech.com>
16315 * config/sh/sh.c (sh_use_dfa_interface): New function.
16317 (sh_issue_rate): New Function.
16318 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
16319 TARGET_SCHED_ISSUE_RATE: define.
16321 * config/sh/sh.md: Add DFA based pipeline description for SH4.
16323 (define_attr insn_class): New attribute used for DFA
16325 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
16326 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
16327 cmpeqdi_t): Likewise.
16329 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
16330 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
16332 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
16334 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
16336 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
16339 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
16341 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
16342 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
16344 (output_dfa_start_func): Initiate new variable insn_codes_length,
16345 (write_automata): Output definition of the new variable.
16347 2001-10-02 David S. Miller <davem@redhat.com>
16349 * haifa-sched.c (advance_one_cycle): New function.
16350 (schedule_block): Use it.
16351 (queue_to_ready): Use it, and also make sure to advance the DFA
16352 state on all stall cycles, not just those where insn_queue links
16355 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
16357 * haifa-sched.c (max_issue): Remove last_p argument. Only return
16358 non-zero if the highest-priority instruction could be scheduled.
16359 (choose_ready): Remove last argument from max_issue call.
16361 2001-09-28 David S. Miller <davem@redhat.com>
16363 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
16364 ultrasparc and 3 for other multi-issue sparcs.
16366 2001-09-27 David S. Miller <davem@redhat.com>
16368 * config/sparc/sparc.md (cycle_display): New pattern.
16369 * config/sparc/sparc.c (sparc_cycle_display): New.
16370 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
16372 2001-09-25 David S. Miller <davem@redhat.com>
16374 Convert all of SPARC scheduling to DFA
16375 * config/sparc/sparc.md: Kill all define_function_unit
16376 directives and replace with DFA equivalent.
16377 * config/sparc/sparc.c (ultrasparc_adjust_cost,
16378 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
16379 ultra_fpmode_conflict_exists, ultra_find_type,
16380 ultra_build_types_avail, ultra_flush_pipeline,
16381 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
16382 ultrasparc_variable_issue, ultrasparc_sched_init,
16383 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
16384 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
16385 ultra_cur_hist, ultra_cycles_elapsed): Kill.
16386 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
16387 ultrasparc_store_bypass_p): New.
16388 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
16391 2001-09-24 David S. Miller <davem@redhat.com>
16393 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
16394 ready->vec[foo] not ready[foo].
16396 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
16398 * doc/md.texi: Correct examples for define_insn_reservations
16401 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
16403 * genautomata.c (create_automata): Print message about creation of
16405 (generate): Remove printing meease about creation of
16408 2001-09-05 David S. Miller <davem@redhat.com>
16410 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
16411 * config/sparc/linux64.h: Likewise.
16413 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
16415 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
16416 schedule_block, sched_init, sched_finish): Add missed calls of
16417 use_dfa_pipeline_interface.
16419 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
16422 * sched-vis.c (get_visual_tbl_length): Ditto.
16424 2001-08-27 Richard Henderson <rth@redhat.com>
16426 * genattr.c (main): Emit state_t even when not doing scheduling.
16428 2001-08-27 Richard Henderson <rth@redhat.com>
16430 * genautomata.c (expand_automata): Always create a description.
16432 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
16434 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
16435 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
16436 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
16439 * genattr.c (main): New variable num_insn_reservations. Increase
16440 it if there is DEFINE_INSN_RESERVATION. Output automaton based
16441 pipeline hazard recognizer interface.
16443 * genattrtab.h: New file.
16445 * genattrtab.c: Include genattrtab.h.
16446 (attr_printf, check_attr_test, make_internal_attr,
16447 make_numeric_value): Move protypes into genattrtab.h. Define them
16449 (num_dfa_decls): New global variable.
16450 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
16451 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
16452 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
16453 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
16455 * genautomata.c: New file.
16457 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
16459 * sched-int.h: (curr_state): Add the external definition for
16460 automaton pipeline interface.
16461 (haifa_insn_data): Add comments for members blockage and units.
16463 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
16464 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
16465 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
16466 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
16467 TARGET_SCHED_DFA_POST_CYCLE_INSN,
16468 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
16469 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
16471 (TARGET_SCHED): Use the new macros.
16473 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
16474 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
16475 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
16476 dfa_bubble): New members in gcc_target.sched.
16478 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
16479 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
16480 (insn_queue): Redefine it as pointer to array.
16481 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
16483 (max_insn_queue_index_macro_value): New variable.
16484 (curr_state, dfa_state_size, ready_try): New varaibles for
16485 automaton interface.
16486 (ready_element, ready_remove, max_issue): New function prototypes
16487 for automaton interface.
16488 (choose_ready): New function prototype.
16489 (insn_unit, blockage_range): Add comments.
16490 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
16491 FUNCTION_UNITS_SIZE == 0.
16492 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
16493 actual_hazard, potential_hazard): Add comments.
16494 (insn_cost): Use cost -1 as undefined value. Remove
16495 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
16496 pipeline interface.
16497 (ready_element, ready_remove): New functions for automaton
16499 (schedule_insn): Add new code for automaton pipeline interface.
16500 (queue_to_ready): Add new code for automaton pipeline interface.
16501 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
16502 (debug_ready_list): Print newline when the queue is empty.
16503 (max_issue): New function for automaton pipeline interface.
16504 (choose_ready): New function.
16505 (schedule_block): Add new code for automaton pipeline interface.
16506 Print ready list before scheduling each insn.
16507 (sched_init): Add new code for automaton pipeline interface.
16508 Initiate insn cost by -1.
16509 (sched_finish): Free the current automaton state and finalize
16510 automaton pipeline interface.
16512 * sched-rgn.c: Include target.h.
16513 (init_ready_list, new_ready, debug_dependencies): Add new code for
16514 automaton pipeline interface.
16516 * sched-vis.c: Include target.h.
16517 (get_visual_tbl_length): Add code for automaton interface.
16518 (target_units, print_block_visualization): Add comments.
16520 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
16521 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
16522 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
16523 (getruntime.o, genautomata.o): New entries.
16524 (genattrtab.o): Add new dependency file genattrtab.h.
16525 (genattrtab): Add new dependencies. Link it with `libm.a'.
16526 (getruntime.o, hashtab.o): New entries for canadian cross.
16528 * doc/md.texi: Description of automaton based model.
16530 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
16532 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
16533 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
16534 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
16535 TARGET_SCHED_DFA_POST_CYCLE_INSN,
16536 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
16537 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
16538 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
16540 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
16541 MAX_DFA_ISSUE_RATE): New macro descriptions.
16543 * doc/contrib.texi: Add dfa based scheduler contribution.
16545 * doc/gcc.texi: Add more information about genattrtab.
16547 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16549 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
16550 adjust_address_nv call.
16552 2002-04-29 Janis Johnson <janis187@us.ibm.com>
16554 * doc/install.texi (Testing): Provide additional information, and
16555 a stronger encouragement, for running the testsuites.
16557 2002-04-29 DJ Delorie <dj@redhat.com>
16559 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
16560 given in upper case.
16562 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16564 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
16565 Solaris 2 <widec.h> if missing.
16566 * fixinc/fixincl.x: Regenerate.
16567 * fixinc/tests/base/widec.h: New file.
16569 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
16571 * toplev.c (f_options): Add "profile" switch so that
16572 -fno-profile can be used to disable -p.
16574 2002-04-29 Bernd Schmidt <bernds@redhat.com>
16576 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
16578 * tree.c (build_common_tree_nodes_2): Likewise.
16579 * tree.h (enum tree_index): Likewise.
16580 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
16582 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
16584 (init_mmx_sse_builtins): Initialize SSE2 builtins.
16585 (ix86_expand_builtin): Add support for SSE2 builtins.
16586 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
16587 (VALID_SSE_REG_MODE): Use it.
16588 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
16589 (enum ix86_builtins): Add SSE2 builtins.
16590 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
16591 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
16592 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
16593 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
16594 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
16595 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
16596 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
16597 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
16598 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
16599 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
16600 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
16601 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
16602 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
16603 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
16604 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
16605 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
16606 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
16607 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
16608 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
16609 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
16610 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
16611 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
16612 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
16613 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
16614 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
16615 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
16616 lfence_insn): New patterns.
16617 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
16618 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
16620 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
16622 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
16624 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16626 * doc/contrib.texi (Contributors): Add Paolo Carlini and
16628 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
16629 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
16630 and CPU instead of cpu.
16632 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
16634 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
16636 (lang_independent_options): Add -fif-conversion, -fif-conversion2
16637 (rest_of_compilation): Do if conversion only when asked for.
16638 (parse_options_and_default_flags): Set new variables to 1 for -O1
16639 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
16641 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
16643 * i386.c (dbx64_register_map): Fix typo.
16645 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
16647 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
16648 real_one_half, real_bb_freq_max): New static variables.
16649 (debug_profile_bbauxs): Kill.
16650 (process_note_predictions): Kill unused variable.
16651 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
16653 (propagate_freq): Use REAL_ARITHMETICS.
16654 (estimate_bb_frequencies): Likevise; init new static variables.
16655 * Makefile.in (predict.o): Add dependency on real.h
16657 2002-04-28 David S. Miller <davem@redhat.com>
16660 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
16661 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
16662 several {reads,writes} instead.
16663 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
16666 2002-04-27 David S. Miller <davem@redhat.com>
16669 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
16672 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
16673 including signal.h and sys/ucontext.h, not needed.
16675 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
16677 * varasm.c (output_constant_def): Correct test for not calling
16678 ENCODE_SECTION_INFO for INTEGER_CST.
16680 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
16682 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
16683 keep most cases as function eval_token.
16684 (eval_token): New function.
16685 (_cpp_parse_expr): Read token here for improved diagnostics.
16686 Don't use op_as_text. Detect bad ':' here.
16687 (reduce): Don't detect bad ':' here.
16688 (op_as_text): Remove.
16689 * cpphash.h (_cpp_test_assertion): Change prototype.
16690 * cpplib.c (_cpp_test_assertion): Change prototype.
16692 2002-04-28 Richard Henderson <rth@redhat.com>
16695 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
16696 (ggc_mark_rtx_children): New.
16698 2002-04-28 Jakub Jelinek <jakub@redhat.com>
16701 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
16702 after call peepholes for UltraSPARC.
16703 (call + jump 64-bit peepholes): Remove.
16705 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16708 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
16709 result as temporary value.
16711 2002-04-28 Jakub Jelinek <jakub@redhat.com>
16714 * toplev.c (rest_of_compilation): Only run regrename and copy
16715 propagation if optimizing.
16717 2002-04-28 Jakub Jelinek <jakub@redhat.com>
16719 PR optimization/6475
16720 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
16721 register of REGNO_DECL (i).
16722 * Makefile.in (reload1.o): Add $(TREE_H).
16724 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
16726 * cppexp.c (lex): Update to use state.skip_eval.
16727 (struct op): Remove prio and flags members.
16728 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
16729 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
16730 (LEFT_ASSOC): New macro.
16731 (optab): New table of operator priorities and flags.
16733 (_cpp_parse_expr): Clean up logic. Return bool. Use a
16734 malloc-ed parser stack.
16735 (reduce): New; reduce the operator stack.
16736 (_cpp_expand_op_stack): Expand the operator stack as necessary.
16737 * cpphash.h (struct op): Predeclare.
16738 (struct cpp_reader): New members op_stack, op_limit.
16739 (struct lexer_state): New member skip_eval.
16740 (_cpp_parse_expr): Update.
16741 (_cpp_expand_op_stack): New.
16742 * cpplib.c (do_if): Update.
16743 * cppinit.c (cpp_create_reader): Create op stack.
16744 (cpp_destroy): And destroy it.
16745 * cpplib.h (CPP_LAST_CPP_OP): Correct.
16746 (TTYPE_TABLE): Correct.
16748 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16751 * c-decl.c (duplicate_decls): Call merge_weak.
16752 * c-pragma.c (apply_pragma_weak): Warn about misuse.
16753 * output.h (merge_weak): Prototype merge_weak.
16754 * varasm.c (merge_weak): New function.
16755 (declare_weak): Make sure we don't give an error on VAR_DECLs.
16756 Mark RTL with SYMBOL_REF_WEAK.
16758 2002-04-27 Kurt Garloff <garloff@suse.de>
16760 * tree-inline.c (inlinable_function_p): Improve heuristics
16761 by using a smoother function to cut down allowable inlinable size.
16762 * param.def: Add parameters max-inline-insns-single,
16763 max-inline-slope, min-inline-insns that determine the exact
16764 shape of the above function.
16765 * param.h: Likewise.
16767 2002-04-26 Richard Henderson <rth@redhat.com>
16769 * c-parse.in (malloced_yyss, malloced_yyvs): New.
16770 (yyoverflow): Re-add. Set them.
16771 (free_parser_stacks): New.
16772 * c-common.h: Declare it.
16773 * c-lex.c (c_common_parse_file): Call it.
16775 2002-04-26 Richard Henderson <rth@redhat.com>
16777 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
16778 for fallthru search.
16780 2002-04-26 Eric Christopher <echristo@redhat.com>
16782 PR optimization/3700
16783 * config/mips/mips.c (mips_issue_rate): Define. New function.
16784 (TARGET_SCHED_ISSUE_RATE): Use.
16786 2002-04-25 David S. Miller <davem@redhat.com>
16789 * reorg.c (optimize_skip): Do not allow exception causing
16790 instructions to be considered for delay slots.
16791 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
16792 (relax_delay_slots): Do not try to consider exception causing
16793 instructions as redundant.
16795 2002-04-26 Richard Henderson <rth@redhat.com>
16798 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
16800 2002-04-26 Mark Mitchell <mark@codesourcery.com>
16803 * config/i386/i386.md (untyped_call): Return the value in a float
16804 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
16807 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
16809 * tree.c (tree_int_cst_lt): Compare constants whose types differ
16810 in unsigned-ness correctly.
16812 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
16814 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
16815 portable runtime model.
16817 2002-04-26 Richard Henderson <rth@redhat.com>
16819 * c-parse.in (yyoverflow): Revert.
16821 2002-04-26 David Edelsohn <edelsohn@gnu.org>
16822 Richard Henderson <rth@redhat.com>
16824 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
16825 result as temporary value.
16827 2002-04-26 Richard Henderson <rth@redhat.com>
16830 * c-common.c (fix_string_type): Split out of ...
16831 (combine_strings): ... here. Take a varray, not a tree list.
16832 (c_expand_builtin_printf): Use fix_string_type.
16833 * c-common.h: Update decls.
16834 * c-parse.in (string): Remove. Update all uses to use STRING
16835 instead, and not call combine_strings.
16836 (yylexstring): New.
16838 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
16839 (build_asm_stmt): Likewise.
16840 * objc/objc-act.c (my_build_string): Use fix_string_type.
16841 (build_objc_string_object): Build varray for combine_strings.
16843 2002-04-26 Bo Thorsen <bo@suse.co.uk>
16845 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
16848 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
16850 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
16851 (HAVE_NO_R_OPERAND): Remove.
16852 (HAVE_VALUE): Remove.
16853 (op_to_prio): Update.
16854 (UNARY): Don't alter flags.
16855 (_cpp_parse_expr): want_value used to indicate whether
16856 a number or unary operator is expected next. Distinguish
16857 unary and binary +/-.
16858 (op_as_text): Update for unary operators.
16860 2002-04-25 Richard Henderson <rth@redhat.com>
16863 * c-parse.in (yyoverflow): New.
16865 2002-04-25 Richard Henderson <rth@redhat.com>
16868 * c-common.c (shorten_compare): Simplfy conditions leading to
16869 the generation of a warning.
16871 2002-04-25 Richard Henderson <rth@redhat.com>
16874 * expmed.c (extract_bit_field): Fall through to generic code rather
16875 than aborting on subreg special case.
16877 2002-04-25 David S. Miller <davem@redhat.com>
16879 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
16880 for DECL being NULL.
16882 2002-04-25 Steve Christiansen <smc@us.ibm.com>
16884 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
16886 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
16888 * c-decl.c (grokdeclarator): Remove outdated ??? note
16889 on invalid declaration of flexible array members.
16891 2002-04-25 Richard Henderson <rth@redhat.com>
16893 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
16895 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
16897 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
16898 needed by the compiler, even if they are used as global regs.
16900 2002-04-25 Matt Hiller <hiller@redhat.com>
16902 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
16904 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
16905 of the corresponding functions.
16906 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
16909 2002-04-25 Matt Hiller <hiller@redhat.com>
16911 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
16913 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
16914 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
16915 registers, adjust comment accordingly.
16916 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
16917 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
16918 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
16919 for coprocessor registers.
16920 (ADDITIONAL_REGISTER_NAMES): Include
16921 ALL_COP_ADDITIONAL_REGISTER_NAMES.
16923 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
16924 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
16925 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
16926 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
16927 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
16929 (mips_char_to_class): Adjust comment to include coprocessor
16930 constraint letters.
16932 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
16934 (mips_reg_names, mips_regno_to_class): Include coprocessor
16936 (mips_sw_reg_names): Ditto, make non-static.
16937 (mips_move_1word): Handle moves to and from coprocessor registers.
16938 (mips_move_2words): Handle moves to and from coprocessor
16940 (mips_class_max_nregs, mips_register_move_cost): Handle
16941 coprocessor register classes.
16942 (override_options): Initialize mips_char_to_class and
16943 mips_hard_regno_mode_ok properly for coprocessor registers.
16945 * config/mips/mips.md (movdi_internal, movdi_internal2,
16946 movsi_internal1, movsi_internal2): Add constraint-sets for
16947 coprocessor registers.
16948 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
16949 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
16951 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
16952 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
16954 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
16955 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
16957 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
16958 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
16961 * doc/tm.texi: Document feature.
16963 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
16965 * integrate.c (function_attribute_inlinable_p): Simplify.
16966 Check the table pointer is not NULL.
16968 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
16970 * doc/c-tree.texi: Fix typo in introduction.
16972 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
16974 * c-common.h (c_common_parse_file): Update.
16975 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
16976 * c-lex.c (YYDEBUG): Get from c-lex.h.
16977 (c_common_parse_file): Update.
16978 * c-lex.h (YYDEBUG, yydebug): New.
16979 * c-parse.in (YYDEBUG): Get from c-lex.h.
16980 (c_set_yydebug): Remove.
16981 * c-tree.h (c_set_yydebug): Remove.
16982 * langhooks-def.h (lhd_do_nothing_i): New.
16983 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
16984 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
16985 * langhooks.c (lhd_do_nothing_i): New.
16986 (lhd_set_yydebug): Remove.
16987 * langhooks.h (struct lang_hooks): Update.
16988 * toplev.c (set_yydebug): New.
16989 (compile_file): Update call to parse_file hook.
16990 (decode_d_option): Update.
16992 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
16994 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
16996 * loop.c (load_mems): Don't change the interface of called functions.
16998 * calls.c (expand_call): Take current_function_pretend_args_size
16999 into account when setting argblock for sibcalls.
17001 2002-04-24 Matt Hiller <hiller@redhat.com>
17003 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
17006 * cpplex.c (skip_line_comment): Process comment one multibyte
17007 character at a time rather than one char at a time, if
17009 (parse_string): Process string one multibyte character at a time
17010 rather than one char at a time, if appropriate.
17011 * c-lex.c (lex_string): Lex and copy multibyte strings
17013 * cpplib.h (cppchar_t): Change to unsigned.
17015 2002-04-24 Richard Henderson <rth@redhat.com>
17018 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
17021 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
17023 * sh.c (sh_va_arg): If argument was passed by reference,
17024 dereference the pointer.
17026 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
17028 * sh.md (divsi3_i4_media): Use match_operand for input values
17029 rather than hard registers.
17030 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
17031 unnecessarily through hard registers. Keep copies of pseudo
17032 registers outside of the libcall sequence.
17034 * sh.md (casesi_shift_media): Add modes.
17036 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
17039 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
17041 * attribs.c (c_common_attribute_table): Move table and handlers
17043 (format_attribute_table, lang_attribute_table,
17044 lang_attribute_common): Remove.
17045 (init_attributes): Replace NULL pointers with pointers to the
17047 (handle_packed_attribute, handle_nocommon_attribute,
17048 handle_common_attribute, handle_noreturn_attribute,
17049 handle_noinline_attribute, handle_always_inline_attribute,
17050 handle_used_attribute, handle_unused_attribute,
17051 handle_const_attribute, handle_transparent_union_attribute,
17052 handle_constructor_attribute, handle_destructor_attribute,
17053 handle_mode_attribute, handle_section_attribute,
17054 handle_aligned_attribute, handle_weak_attribute,
17055 handle_alias_attribute, handle_visibility_attribute,
17056 handle_no_instrument_function_attribute, handle_malloc_attribute,
17057 handle_no_limit_stack_attribute, handle_pure_attribute,
17058 handle_deprecated_attribute, handle_vector_size_attribute,
17059 vector_size_helper): Move to c-common.c.
17060 * c-common.c (c_common_attribute_table,
17061 handle_packed_attribute, handle_nocommon_attribute,
17062 handle_common_attribute, handle_noreturn_attribute,
17063 handle_noinline_attribute, handle_always_inline_attribute,
17064 handle_used_attribute, handle_unused_attribute,
17065 handle_const_attribute, handle_transparent_union_attribute,
17066 handle_constructor_attribute, handle_destructor_attribute,
17067 handle_mode_attribute, handle_section_attribute,
17068 handle_aligned_attribute, handle_weak_attribute,
17069 handle_alias_attribute, handle_visibility_attribute,
17070 handle_no_instrument_function_attribute, handle_malloc_attribute,
17071 handle_no_limit_stack_attribute, handle_pure_attribute,
17072 handle_deprecated_attribute, handle_vector_size_attribute,
17073 vector_size_helper): Move from attribs.c.
17074 * c-common.h (c_common_attribute_table,
17075 c_common_format_attribute_table): New.
17076 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
17077 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
17078 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
17079 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
17080 (LANG_HOOKS_INITIALIZER): Update.
17081 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
17082 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
17083 * target.h: Update comment.
17084 * tree.c (default_target_attribute_table): Remove.
17085 * tree.h (default_target_attribute_table, format_attribute_table,
17086 lang_attribute_table, lang_attribute_common): Remove.
17088 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
17089 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
17091 2002-04-24 Jason Merrill <jason@redhat.com>
17093 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
17094 * dwarf2out.c (dwarf_attr_name): Support it.
17095 (gen_array_type_die): Emit it.
17096 (lookup_type_die): No special handling for VECTOR_TYPE.
17097 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
17099 2002-04-24 Richard Henderson <rth@redhat.com>
17101 * config/mips/mips.md (movdi_usd): Renumber.
17103 2002-04-24 David S. Miller <davem@redhat.com>
17106 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
17107 32-bit SPARC and current_function_returns_struct is true.
17109 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
17111 * loop.c (canonicalize_condition): Use gen_int_mode.
17113 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
17115 * config/rs6000/altivec.h: Cleanup file. Add non individual
17117 (vec_vaddubm): New.
17118 (vec_vadduhm): New.
17119 (vec_vadduwm): New.
17121 (vec_vaddcuw): New.
17122 (vec_vaddubs): New.
17123 (vec_vaddsbs): New.
17124 (vec_vadduhs): New.
17125 (vec_vadduws): New.
17126 (vec_vaddsws): New.
17136 (vec_vcmpbfp): New.
17137 (vec_vcmpequb): New.
17138 (vec_vcmpequh): New.
17139 (vec_vcmpequw): New.
17140 (vec_vcmpeqfp): New.
17141 (vec_vcmpgefp): New.
17142 (vec_vcmpgtub): New.
17143 (vec_vcmpgtsb): New.
17144 (vec_vcmpgtuh): New.
17145 (vec_vcmpgtsh): New.
17146 (vec_vcmpgtuw): New.
17147 (vec_vcmpgtsw): New.
17148 (vec_vcmpgtfp): New.
17149 (vec_vcmpgefp): New.
17154 (vec_vexptefp): New.
17159 (vec_lde): Add vector float variant.
17162 (vec_vlogefp): New.
17163 (vec_vmaddfp): New.
17164 (vec_vmhaddshs): New.
17186 (vec_vmladduhm): New.
17187 (vec_vmhraddshs): New.
17188 (vec_msumubm): New.
17189 (vec_vmsummbm): New.
17190 (vec_vmsumuhm): New.
17191 (vec_vmsumshm): New.
17192 (vec_vmsumuhs): New.
17193 (vec_vmsumshs): New.
17194 (vec_vmuleub): New.
17195 (vec_vmulesb): New.
17196 (vec_vmuleuh): New.
17197 (vec_vmulesh): New.
17198 (vec_vmuloub): New.
17200 (vec_vmulouh): New.
17201 (vec_vmulosh): New.
17202 (vec_vnmsubfp): New.
17205 (vec_vpkuhum): New.
17206 (vec_vpkuwum): New.
17208 (vec_vpkuhus): New.
17209 (vec_vpkshss): New.
17210 (vec_vpkuwus): New.
17211 (vec_vpkswss): New.
17212 (vec_vpkshus): New.
17213 (vec_vpkswus): New.
17220 (vec_vrsqrtefp): New.
17231 (vec_vspltisb): New.
17232 (vec_vspltish): New.
17233 (vec_vspltisw): New.
17247 (vec_vsububm): New.
17248 (vec_vsubuhm): New.
17249 (vec_vsubuwm): New.
17251 (vec_vsubcuw): New.
17252 (vec_vsububs): New.
17253 (vec_vsubsbs): New.
17254 (vec_vsubuhs): New.
17255 (vec_vsubshs): New.
17256 (vec_vsubuws): New.
17257 (vec_vsubsws): New.
17258 (vec_vsum4ubs): New.
17259 (vec_vsum4sbs): New.
17260 (vec_vsum4shs): New.
17261 (vec_vsum2sws): New.
17262 (vec_vsumsws): New.
17264 (vec_vupkhsb): New.
17265 (vec_vupkhpx): New.
17266 (vec_vupkhsh): New.
17267 (vec_vupklsb): New.
17268 (vec_vupklpx): New.
17269 (vec_vupklsh): New.
17272 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
17275 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
17276 added literals from substracted literals.
17277 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
17278 (fold) [associate]: Preserve MINUS_EXPR if needed.
17280 2002-04-23 Zack Weinberg <zack@codesourcery.com>
17282 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
17285 2002-04-23 Tom Tromey <tromey@redhat.com>
17287 * gcc.c: Added --resource. For PR java/6314.
17289 2002-04-23 David O'Brien <obrien@FreeBSD.org>
17291 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
17292 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
17295 2002-04-23 David O'Brien <obrien@FreeBSD.org>
17297 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
17299 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
17301 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
17303 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
17304 (ix86_expand_clrstr): Fix typo.
17305 * loop.c (gen_load_of_final_value): New.
17306 (loop_givs_rescan, strength_reduce, check_dbra_loop):
17309 2002-04-23 Roger Sayle <roger@eyesopen.com>
17311 * builtins.c (builtin_memset_gen_str): New function.
17312 (expand_builtin_memset): Optimize the case of constant length, but
17315 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
17317 * config/rs6000/altivec.h (vec_step): Remove extraneous
17319 (vec_ctu): Cast return.
17321 2002-04-23 Alan Modra <amodra@bigpond.net.au>
17324 * function.h: (struct function): Add profile_label_no field.
17325 (current_function_profile_label_no): Define.
17326 * function.c: (profile_label_no): New static var.
17327 (expand_function_start): Increment it, and copy to
17328 current_function_profile_label_no.
17329 * output.h (profile_label_no): Delete.
17330 * final.c (profile_label_no): Delete.
17331 (profile_function): Use current_function_profile_label_no.
17332 (final_end_function): Don't increment profile_label_no here.
17333 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
17334 profile_label_no with current_function_profile_label_no.
17335 * config/pa/pa.c (current_function_number): Delete.
17336 (pa_output_function_prologue): Don't output profile label here.
17337 (hppa_profile_hook): Use label_no param rather than
17338 current_function_number.
17339 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
17340 * config/pa/pa.h: .. here.
17341 (FUNCTION_PROFILER): Output profile label here.
17343 2002-04-22 Eric Christopher <echristo@redhat.com>
17345 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
17346 patch of 2002-04-09 due to binutils issues.
17347 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
17349 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
17351 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
17352 constraint to 'o' for m=r and r=m alternatives.
17353 ("*movv8hi_internal1"): Same.
17354 ("*movv16qi_internal1"): Same.
17355 ("*movv4sf_internal1"): Same.
17357 2002-04-22 Janis Johnson <janis187@us.ibm.com>
17359 * rtl.h (RTX_FLAG): New macro.
17360 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
17361 * final.c (alter_subreg): Use macro to access rtx flag.
17362 * integrate.c (copy_rtx_and_substitute): Use new access macro.
17363 * print-rtl.c (print_rtx): Use new access macro.
17365 * cse.c (insert): Check rtx code before accessing flag.
17367 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
17368 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
17369 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
17370 convert_const_symbol_ref, make_canonical, make_alternative_compare,
17371 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
17372 simplify_test_exp, optimize_attrs, simplify_by_exploding,
17373 find_and_mark_used_attributes, unmark_used_attributes,
17374 add_values_to_cover, simplify_with_current_value,
17375 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
17376 copy_rtx_unchanging, main): Use new access macros.
17378 2002-04-22 Tom Rix <trix@redhat.com>
17380 * expmed.c (init_expmed): Generate shifted constant once.
17382 2002-04-22 Zack Weinberg <zack@codesourcery.com>
17384 * c-lex.c (lex_charconst): Call convert to get constant in
17385 proper type; don't just smash the type field.
17388 * config.gcc: Add list of obsolete configurations. Disallow
17389 building these without --enable-obsolete.
17390 * doc/install.texi: Document --enable-obsolete and obsoletion
17391 policy. Mention obsoletion of individual targets in
17392 appropriate places.
17394 2002-04-22 Richard Henderson <rth@redhat.com>
17396 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
17398 2002-04-22 Mark Mitchell <mark@codesourcery.com>
17401 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
17402 (walk_fixup_memory_subreg): Likewise.
17403 (fixup_var_refs_insn): Adjust accordingly.
17404 (fixup_var_refs_1): Likewise.
17406 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
17408 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
17409 LIBPATH_ARCH64_SPEC): Define.
17410 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
17411 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
17412 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
17413 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
17415 2002-04-22 Joel Sherrill <joel@OARcorp.com>
17417 * gthr-rtems.h: Correct prototypes to remove warnings.
17419 2002-04-22 Richard Henderson <rth@redhat.com>
17422 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
17424 * gcse.c (free_insn_expr_list_list): New.
17425 (clear_modify_mem_tables): Use it. Fix bit set usage.
17426 (canon_list_insert): Use EXPR_LISTs for expressions.
17427 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
17429 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
17431 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
17432 file change and include code to _cpp_pop_buffer.
17433 * cpphash.h (struct pending_option): Predeclare.
17434 (struct cpp_reader): New member next_include_file.
17435 (_cpp_pop_file_buffer): Update.
17436 (_cpp_push_next_buffer): Update, rename.
17437 * cppinit.c (cpp_destroy): Free include chain and pending here.
17438 (cpp_finish_options): Simplify.
17439 (_cpp_push_next_buffer): Rename and clean up.
17440 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
17442 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
17444 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
17446 * config/rs6000/altivec.h (vec_xor): Add variant for both args
17447 being vector signed int.
17449 (vec_xor): Add variant for both args being vector signed char.
17450 Remove redundant variant.
17453 2002-04-21 David S. Miller <davem@redhat.com>
17455 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
17456 compare mode in output RTL.
17458 2002-04-22 David Edelsohn <edelsohn@gnu.org>
17460 * config/rs6000/rs6000.c (rs6000_override_options): Correct
17461 style and formatting of previous patch.
17463 2002-04-22 Alan Modra <amodra@bigpond.net.au>
17465 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
17466 flag_pic for ABI_AIX.
17468 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
17470 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
17471 * cppfiles.c (read_include_file): Similarly.
17472 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
17473 uxstrdup ustrchr, ufputs): Similarly.
17474 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
17475 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
17476 cpp_ideq, parse_identifier, parse_number): Similarly.
17477 * cpplib.c (struct directive, dequote_string, D, run_directive,
17478 cpp_push_buffer): Similarly.
17479 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
17480 _cpp_create_definition, check_trad_stringification,
17481 cpp_macro_definition): Similarly.
17483 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
17485 * cppmacro.c (funlike_invocation_p): Don't step back
17488 2002-04-21 David Edelsohn <edelsohn@gnu.org>
17490 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
17493 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
17495 * doc/invoke.texi: Remove Chill references.
17496 * doc/gcc.texi: Update last modified date.
17498 2002-04-20 Kazu Hirata <kazu@hxi.com>
17500 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
17501 push and pop. Replace add.l with add.w.
17503 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
17505 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
17506 multiply instructions for H8/300H case.
17508 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
17510 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
17511 Bum three instructions from each routine.
17513 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
17515 * Makefile.in: Update.
17516 * decl.c (push_c_function_context, pop_c_function_context,
17517 mark_c_function_context): Rename for consistency.
17518 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
17519 * c-tree.h (push_c_function_context, pop_c_function_context,
17520 mark_c_function_context): Rename for consistency.
17521 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17522 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
17523 * function.c (init_lang_status, save_lang_status,
17524 restore_lang_status, mark_lang_status, free_lang_status):
17525 Move to langhooks.h.
17526 (push_function_context_to, pop_function_context_from,
17527 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
17529 * function.h (init_lang_status, save_lang_status,
17530 restore_lang_status, mark_lang_status, free_lang_status):
17531 Move to langhooks.h.
17532 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
17533 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
17534 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
17535 LANG_HOOKS_FUNCTION_INITIALIZER): New.
17536 (LANG_HOOKS_INITIALIZER): Update.
17537 (lhd_do_nothing_f): New.
17538 * langhooks.h (struct lang_hooks_for_functions): New.
17539 (struct lang_hooks): New hooks.
17540 * langhooks.c (lhd_do_nothing_f): New.
17542 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17543 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
17545 2002-04-19 David S. Miller <davem@redhat.com>
17547 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
17548 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
17550 2002-04-19 Jakub Jelinek <jakub@redhat.com>
17552 PR optimization/3756
17553 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
17554 x = ((int) y < 0) ? cst1 : cst2.
17556 2002-04-19 Jakub Jelinek <jakub@redhat.com>
17559 * function.c: Reapply patch for c/6358.
17560 (expand_function_end): Copy decl_rtl's mode, not
17561 current_function_return_rtx mode.
17563 2002-04-19 Joel Sherrill <joel@OARcorp.com>
17565 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
17568 2002-04-19 Tom Tromey <tromey@redhat.com>
17570 * doc/install.texi (Specific): Update status of Solaris 2.8.
17571 For PR libgcj/6158.
17573 2002-04-19 Andreas Schwab <schwab@suse.de>
17575 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
17576 (PUT_REAL): Restore old definition.
17578 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
17579 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17581 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
17582 binutils 2.11.2 and higher generate smaller binaries than Sun's
17585 2002-04-19 Mark Mitchell <mark@codesourcery.com>
17588 * toplev.c (rest_of_compilation): Do not defer functions for which
17589 TREE_SYMBOL_REFERENCED has already been set.
17591 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
17593 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
17596 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
17598 * builtins.c: Include langhooks.h.
17599 (lang_type_promotes_to): Remove.
17600 (expand_builtin_va_arg): Use new hook.
17601 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
17602 (simple_type_promotes_to): Move to c-typeck.c.
17603 * c-common.h (simple_type_promotes_to): Remove.
17604 * c-decl.c (duplicate_decls, grokdeclarator): Update.
17605 * c-format.c: Include langhooks.h.
17606 (check_format_types): Update.
17607 * c-tree.h (c_type_promotes_to): New.
17608 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
17609 (type_lists_compatible_p): Update.
17610 * langhooks-def.h (lhd_type_promotes_to): New.
17611 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
17612 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
17613 * langhooks.c (lhd_type_promotes_to): New.
17614 * langhooks.h (struct lang_hooks_for_types): New hook.
17615 * tree.h (lang_type_promotes_to): Remove.
17617 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
17619 2002-04-18 Richard Henderson <rth@redhat.com>
17621 * function.c: Revert patch for c/6358.
17623 2002-04-18 Richard Henderson <rth@redhat.com>
17625 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
17626 blocks. Handle multiple references to the TRAP block. Handle
17627 non-adjacent THEN and OTHER blocks.
17629 2002-04-18 Richard Henderson <rth@redhat.com>
17631 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
17632 crash with no type for by-mode libcalls.
17634 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
17636 2002-04-18 Bob Wilson <bob.wilson@acm.org>
17638 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
17639 __xtensa_nonlocal_goto): Use a syscall instructions to flush
17640 the register windows.
17642 2002-04-18 Zack Weinberg <zack@codesourcery.com>
17644 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
17645 appropriate. Document need for extended precision even when
17646 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
17647 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
17648 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
17649 instead of relying on later syntax error when REAL_WIDTH > 5.
17650 * real.c: Define NE based only on whether or not we have a
17651 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
17652 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
17653 define GET_REAL and PUT_REAL as simple memcpy operations; no
17654 need to byteswap or round.
17655 Use #error instead of #ifdef-ing out the entire file, for
17656 prompt error detection.
17658 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
17660 2002-04-18 David S. Miller <davem@redhat.com>
17662 * config/sparc/sparc.h (BRANCH_COST): Define.
17664 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
17667 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
17669 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
17670 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
17671 propagate_block calls after relaxation loop using new variable
17672 stabilized_prop_flags.
17674 2002-04-18 Richard Henderson <rth@redhat.com>
17676 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
17677 (ia64_va_arg): Expect variable sized types by reference.
17678 * config/ia64/ia64-protos.h: Update.
17679 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
17680 ia64_function_arg_pass_by_reference.
17682 2002-04-18 Richard Henderson <rth@redhat.com>
17684 * ifcvt.c: Include except.h.
17685 (block_has_only_trap): Break out from find_cond_trap.
17686 (find_cond_trap): Use it. Always delete the trap block.
17687 (merge_if_block): Allow then block null. Be less simplistic about
17688 what insns can end a block.
17689 * Makefile.in (ifcvt.o): Depend on except.h.
17691 * config/ia64/ia64.md (trap, conditional_trap): New.
17693 2002-04-18 Jakub Jelinek <jakub@redhat.com>
17696 * function.c (assign_parms): Assign hard current_function_return_rtx
17698 (expand_function_end): ...not here.
17700 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
17702 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
17703 * c-tree.h (c_incomplete_type_error): New.
17704 * c-typeck.c (require_complete_type, build_component_ref): Update.
17705 (incomplete_type_error): Rename.
17706 * langhooks-def.h (lhd_incomplete_type_error): New.
17707 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
17708 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
17709 * langhooks.c (lhd_incomplete_type_error): New.
17710 * langhooks.h (struct lang_hooks_for_types): New hook.
17711 * tree.c (size_in_bytes): Use new hook.
17712 * tree.h (incomplete_type_error): Remove.
17714 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
17716 2002-04-18 Zack Weinberg <zack@codesourcery.com>
17718 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
17719 TARGET_FLOAT_FORMAT blocks.
17721 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17723 * doc/install.texi (Downloading the source): Do not mention Chill
17724 any longer, but mention Ada.
17725 (Configuration): Do not mention Chill any longer.
17727 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
17729 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
17731 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
17733 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
17736 2002-04-18 Jakub Jelinek <jakub@redhat.com>
17738 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
17739 instead of unsigned_type.
17741 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
17743 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
17744 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
17747 2002-04-18 Bernd Schmidt <bernds@redhat.com>
17749 * attribs.c (vector_type_node_list): New static variable.
17750 (handle_vector_size_attribute): Use it to avoid generating a
17751 new type node each time we are called.
17753 * combine.c (subst): Avoid trying to make a vector mode subreg of
17754 an integer constant.
17755 (gen_lowpart_for_combine): Likewise.
17757 2002-04-18 Roger Sayle <roger@eyesopen.com>
17758 Jakub Jelinek <jakub@redhat.com>
17760 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
17761 for integer constant c (if x has unsigned type or sign bit is not
17762 set in c). This folds the zero/sign extension into the bit-wise and
17765 2002-04-18 Jakub Jelinek <jakub@redhat.com>
17768 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
17771 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
17773 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
17775 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
17777 * gcc.c (read_specs): Detect and fail if an attempt is made to
17778 rename a spec string to an already existing string.
17780 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17782 * config/s390/s390.c (legitimize_pic_address): Do not generate
17783 illegal address constant without CONST.
17785 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17787 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
17788 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17790 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17792 PR optimization/6305
17793 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
17794 to make sure previous reloads are taken into account. Generate
17795 better code if one operand is an in-range immediate constant.
17797 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
17799 * doc/install.texi (Building): libgcj requires GNU make.
17801 2002-04-17 Jakub Jelinek <jakub@redhat.com>
17804 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
17805 even if hard quad and register is not floating.
17806 (movtf reg<-mem split): Disallow splitting if hard quad and
17807 register is floating.
17808 (movtf mem<-reg split): Likewise.
17809 * config/sparc/sparc.c (fp_register_operand): New predicate.
17810 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
17812 2002-04-17 Zack Weinberg <zack@codesourcery.com>
17814 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
17815 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
17816 (unprotoize.o): Ditto. Build from protoize.c. Define
17817 UNPROTOIZE on command line.
17818 * protoize.c: Include cppdefault.h. Delete include_defaults.
17819 (in_system_include_dir): Use cpp_include_defaults (defined in
17821 * unprotoize.c: Delete file.
17823 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
17825 * config/rs6000/altivec.h (vec_ld): Add array variants.
17829 2002-04-17 Alan Matsuoka <alanm@redhat.com>
17830 Aldy Hernandez <aldyh@redhat.com>
17832 * config/rs6000/altivec.h: Define __ALTIVEC__.
17837 (vec_vmaddfp): New.
17839 Add parentheses to all macro arguments.
17841 2002-04-16 Richard Henderson <rth@redhat.com>
17844 * except.c (remove_eh_handler): Insert inner regions at beginning
17845 of sibling chain. Refactor expressions.
17847 2002-04-16 Richard Henderson <rth@redhat.com>
17849 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
17850 * config/sparc/sol2-gas-bi.h: New file.
17851 * config.gcc (sparc*-solaris): Add it as needed.
17852 * configure.in (AS_SPARC64_FLAG): Remove check.
17853 * config.in, configure: Regenerate.
17855 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
17857 2002-04-16 Richard Henderson <rth@redhat.com>
17859 * config/mips/mips.c (override_options): Don't override N32 for
17863 * config/mips/mips.md (can_delay): Split out of existing define_delays.
17864 (HILO_delay): Set can_delay false.
17866 2002-04-16 Dale Johannesen <dalej@apple.com>
17868 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
17869 instruction addresses.
17870 (rs6000_output_function_epilogue): Likewise.
17872 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
17874 * c-parse.in (poplevel, compstmt_start,
17875 compstmt_primary_start): Add ending ';', in accordance
17878 2002-04-16 Richard Henderson <rth@redhat.com>
17880 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
17881 Adjust tm_file order to get TARGET_DEFAULT set properly.
17882 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
17883 * doc/install.texi (sparc-solaris): Update.
17885 2002-04-16 Dale Johannesen <dalej@apple.com>
17887 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
17888 comparison operands do not match each other or if modes of
17889 conditions do not match result.
17891 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
17894 * config/s390/s390.md (mulsidi3): Set both subregs of the
17895 multiword register.
17897 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
17899 * config/rs6000/altivec.h (vec_addc): Type check.
17901 2002-04-16 Jakub Jelinek <jakub@redhat.com>
17904 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
17906 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
17908 2002-04-15 Richard Henderson <rth@redhat.com>
17910 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
17911 call_really_used_regs too.
17913 2002-04-15 Richard Henderson <rth@redhat.com>
17915 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
17917 2002-04-15 David S. Miller <davem@redhat.com>
17919 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
17920 as being CLOBBERed.
17922 2002-04-16 Jakub Jelinek <jakub@redhat.com>
17925 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
17926 CONST_VECTOR is { 0, ... 0 }.
17928 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
17930 * doc/install.texi (Installing GCC: Configuration): Clarify
17931 the only supported ways to configure gcc.
17933 2002-04-15 Roland McGrath <roland@frob.com>
17935 * config.gcc (alpha*-*-gnu*): New target configuration.
17936 * config/alpha/gnu.h: New file for it.
17937 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
17939 2002-04-16 Mark Mitchell <mark@codesourcery.com>
17941 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
17942 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
17943 * tree.h (expand_start_stmt_expr): Update prototype.
17944 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
17945 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
17946 on the STMT_EXPR created for the inline function.
17948 2002-04-15 Richard Henderson <rth@redhat.com>
17950 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
17951 config/i386/linux-aout.h, config/i386/linux-oldld.h,
17952 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
17953 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
17954 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
17955 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
17956 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
17957 Define __gnu_linux__, not gnu_linux.
17958 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
17960 2002-04-15 Mark Mitchell <mark@codesourcery.com>
17962 Remove Chill front end.
17963 * gcc.c (default_compilers): Remove Chill entries.
17964 * ch: Remove directory.
17965 * doc/frontends.texi: Remove information about Chill.
17966 * doc/sourcebuild.texi: Likewise.
17967 * doc/standards.texi: Likewise.
17969 2002-04-15 Douglas B Rupp <rupp@gnat.com>
17971 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
17972 (LONGLONG_STANDALONE): Define.
17974 2002-04-15 David S. Miller <davem@redhat.com>
17976 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
17977 Call emit_library_call with LCT_NORMAL.
17978 (sparc_initialize_trampoline): Use LCT_foo instead of
17979 magic constant in emit_library_call invocations.
17980 (sparc64_initialize_trampoline): Likewise.
17981 (sparc_profile_hook): Likewise.
17982 * config/sparc/sparc.md: Likewise.
17984 * config/sparc/sparc.c (sparc_extra_constraint_check):
17985 Fix type of argument 'c'.
17986 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
17989 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
17991 * diagnostic.h (output_buffer_state): Redefine.
17992 (output_format_decoder): New macro.
17993 (output_prefixing_rule): Likewise.
17994 (output_line_cutoff): Likewise.
17995 (diagnostic_format_decoder): Adjust.
17996 (diagnostic_prefixing_rule): Likewise.
17997 (diagnostic_line_cutoff): Likewise.
17998 (diagnostic_state): Likewise.
17999 (diagnostic_kind_count): Likewise.
18000 (diagnostic_buffer): Now a macro.
18002 * diagnostic.c (diagnostic_buffer): Remove definition.
18003 (output_is_line_wrapping): Adjust.
18004 (set_real_maximum_length): Likewise.
18005 (output_set_maximum_length): Likewise.
18006 (init_output_buffer): Likewise.
18007 (lhd_print_error_function): Likewise.
18008 (output_do_verbatim): Likewise.
18010 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
18012 * cpperror.c (print_location): Don't print include chain
18014 (cpp_begin_message): Update to use DL_ macros.
18015 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
18016 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
18017 cpp_notice, cpp_notice_from_errno): Remove.
18018 (cpp_error, cpp_error_with_line): Update to take a diagnostic
18021 * cppexp.c (CPP_ICE): Remove.
18022 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
18023 lex, integer_overflow, _cpp_parse_expr): Update.
18024 * cppfiles.c (read_include_file, find_include_file,
18025 handle_missing_header, _cpp_read_file, remap_filename): Update.
18026 * cpphash.h (enum error_type): Remove.
18027 (_cpp_begin_message): Update.
18028 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
18029 cpp_handle_option, cpp_post_options): Update.
18030 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
18031 skip_whitespace, parse_identifier, parse_slow, parse_string,
18032 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
18033 cpp_interpret_charconst): Update.
18034 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
18035 lex_macro_node, do_undef, glue_header_name, parse_include,
18036 do_include_common, read_flag, do_line, do_linemarker, do_ident,
18037 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
18038 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
18039 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
18040 _cpp_pop_buffer, do_diagnostic): Update.
18041 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
18042 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
18043 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
18044 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
18045 cpp_notice, cpp_notice_from_errno): Remove.
18046 (cpp_error, cpp_error_with_line): Update to take a diagnostic
18049 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
18050 collect_args, enter_macro_context, save_parameter, parse_params,
18051 _cpp_create_definition, check_trad_stringification,
18052 cpp_macro_definition): Update.
18053 * cppmain.c (cpp_preprocess_file): Update.
18054 * fix-header.c (read_scan_file): Update.
18056 2002-04-14 Andreas Schwab <schwab@suse.de>
18058 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
18060 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
18062 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
18064 2002-04-13 Mark Mitchell <mark@codesourcery.com>
18066 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
18069 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
18071 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
18073 2002-04-13 Joel Sherrill <joel@OARcorp.com>
18075 * config/sparc/t-elf: Enable v8 multilibs. Impacts
18076 sparc-elf and sparc-rtems targets.
18078 2002-04-13 Mark Mitchell <mark@codesourcery.com>
18080 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
18081 defined, and __gnu_hurd__ wherever __GNU__ is defined.
18082 * arm/linux-elf.h: Likewise.
18083 * cris/aout.h: Likewise.
18084 * cris/linux.h: Likewise.
18085 * i370/linux.h: Likewise.
18086 * i386/gnu.h: Likewise.
18087 * i386/linux-aout.h: Likewise.
18088 * i386/linux-oldld.h: Likewise.
18089 * i386/linux.h: Likewise.
18090 * i386/linux64.h: Likewise.
18091 * ia64/linux.h: Likewise.
18092 * m68k/linux-aout.h: Likewise.
18093 * m68k/linux.h: Likewise.
18094 * mips/linux.h: Likewise.
18095 * pa/pa-linux.h: Likewise.
18096 * pj/linux.h: Likewise.
18097 * rs6000/sysv4.h: Likewise.
18098 * s390/linux.h: Likewise.
18099 * sh/linux.h: Likewise.
18100 * sparc/linux-aout.h: Likewise.
18101 * sparc/linux.h: Likewise.
18102 * sparc/linux64.h: Likewise.
18103 * xtensa/linux.h: Likewise.
18105 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
18107 * stmt.c (check_unique_operand_names): Expect operand names to
18108 be strings rather than identifiers. Use simple_cst_equal to
18110 (resolve_operand_name_1): Make same identifier to string change here.
18111 * c-parse.in (asm_operand): Convert a named operand into a string.
18112 * cp/parse.y (asm_operand): Likewise.
18114 2002-04-13 Andreas Schwab <schwab@suse.de>
18116 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
18118 2002-04-12 Mark Mitchell <mark@codesourcery.com>
18120 Revert these changes:
18122 2002-04-06 Mark Mitchell <mark@codesourcery.com>
18125 * stor-layout.c (layout_decl): Reset the RTL for the decl.
18127 2002-04-12 Richard Henderson <rth@redhat.com>
18129 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
18130 (sparc*-*-solaris): Clean up header files.
18131 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
18132 and plan on generating 64-bit code.
18133 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
18134 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
18135 * config/sparc/sol2-sld-64.h: Rename ...
18136 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
18137 for AS_SPARC64_FLAG not defined.
18138 * config/sparc/sol2-gld-bi.h: New.
18139 * config/sparc/sol2-sld.h: Remove.
18140 * config/sparc/sol26-sld.h: New.
18141 * config/sparc/sol2.h: Tidy comments.
18142 * doc/install.texi: Document sparc-solaris configury changes.
18144 2002-04-12 Richard Henderson <rth@redhat.com>
18146 * recog.c (offsettable_address_p): Match the logic in adjust_address.
18148 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
18149 in 64-bit mode only. Use only for 32-bit or MEDLOW.
18151 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18153 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
18155 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
18157 * pa.c (pa_can_combine_p): Call extract_insn before calling
18158 constrain_operands.
18160 2002-04-12 Douglas B Rupp <rupp@gnat.com>
18162 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
18163 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
18164 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
18165 (CPP_PREDEFINES): Handle __declspec.
18166 * config/i386/t-interix (USER_H): Remove.
18168 2002-04-12 DJ Delorie <dj@redhat.com>
18170 * integrate.c (compare_blocks): Make comparisons safe for when
18171 sizeof(int) < sizeof(char *).
18172 (find_block): Likewise.
18174 2002-04-12 Jan Hubicka <jh@suse.cz>
18175 David Edelsohn <edelsohn@gnu.org>
18177 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
18179 (symbol_ref_operand): New.
18180 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
18181 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
18183 2002-04-12 Andreas Schwab <schwab@suse.de>
18185 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
18186 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
18187 overrides the definition in config/svr4.h.
18189 2002-04-12 Eric Norum <eric.norum@usask.ca>
18191 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
18192 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
18193 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
18194 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
18195 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
18196 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
18197 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
18198 definitions to config/rtems.h and make the targets more similar.
18200 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18202 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
18203 POINTERS_EXTEND_UNSIGNED.
18204 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
18205 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
18207 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
18210 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
18212 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
18213 depends on TARGET_SHMEDIA, not TARGET_SH5.
18215 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
18217 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
18218 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
18220 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
18222 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
18225 2002-04-12 Andreas Schwab <schwab@suse.de>
18227 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
18229 2002-04-12 Richard Henderson <rth@redhat.com>
18232 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
18234 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
18235 modes spanning multiple hard regs.
18237 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
18239 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
18241 * pa.c (pa_output_function_prologue): Don't accumulate the total
18242 number of code bytes when using TARGET_64BIT, or gas, SOM and not
18243 the portable runtime.
18244 (output_deferred_plabels): Handle 64bit plabels.
18245 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
18246 generating pic code using the GAS assembler for object formats that
18247 are not SOM (ie., ELF32 and ELF64).
18248 (output_millicode_call): Check attribute type if attribute length is 28.
18249 Likewise use $PIC_pcrel$0. Only call get_attr_length and
18250 dbr_sequence_length once.
18251 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
18252 dbr_sequence_length once.
18253 * pa.h (TARGET_SOM): Define if not defined.
18254 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
18255 with GAS and not SOM.
18256 (jump, call_internal_reg, call_value_internal_reg): Likewise.
18257 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
18259 2002-04-11 David O'Brien <obrien@FreeBSD.org>
18261 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
18262 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
18263 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
18264 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
18265 elfos.h and dbxelf.h values are fine now.
18266 * config/i386/freebsd.h, config/alpha/freebsd.h
18267 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
18269 2002-04-11 David O'Brien <obrien@FreeBSD.org>
18271 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
18272 or set Acpu or Amachine. Reformat.
18273 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
18275 (LINK_SPEC): Do not need to undef.
18276 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
18277 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
18278 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
18280 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
18281 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
18282 (LINK_SPEC): Do not need to undef.
18283 (DONT_USE_BUILTIN_SETJMP): Do not define.
18284 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
18285 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
18286 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
18287 Remove trailing spaces.
18288 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
18289 __ELF__, or set Acpu or Amachine. Reformat.
18290 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
18293 2002-04-11 David O'Brien <obrien@FreeBSD.org>
18295 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
18296 all other *-*-freebsd* targets.
18298 2002-04-11 Richard Henderson <rth@redhat.com>
18300 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
18302 2002-04-11 David O'Brien <obrien@FreeBSD.org>
18304 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
18305 Include {cpu}/{cpu}.h thru tm_file.
18306 (alpha*-*-linux*ecoff): Remove target.
18307 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
18308 (LINK_SPEC): Remove, is not OS independent.
18309 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
18310 (LINK_SPEC): Do not need to #undef any longer.
18311 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
18313 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
18315 (LINK_SPEC): Moved here from alpha/elf.h.
18316 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
18317 SUB_CPP_PREDEFINES.
18318 * config/alpha/linux-ecoff.h: Remove.
18319 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
18320 (CPP_SPEC): Define _POSIX_SOURCE as needed.
18321 (CPP_SUBTARGET_SPEC): Do not define.
18322 (LINK_SPEC): Do not need to #undef any longer.
18323 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
18324 * config/alpha/vms.h: Likewise.
18326 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
18328 * doc/extend.texi: Remove old claim that typedefs cannot have
18329 an alignment attribute.
18331 2002-04-11 Jakub Jelinek <jakub@redhat.com>
18333 PR optimization/6177
18334 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
18335 bitpos is 0 and bitsize CONCAT size.
18337 2002-04-11 Jakub Jelinek <jakub@redhat.com>
18340 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
18342 2002-04-10 David O'Brien <obrien@FreeBSD.org>
18344 * config/alpha/freebsd.h: Minor reformatting.
18345 (CPP_SPEC): Define ELF and add cpp_subtarget.
18346 (ASM_SPEC): No longer needed.
18348 2002-04-11 Richard Henderson <rth@redhat.com>
18350 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
18351 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
18352 (dimode mem/zero splitter): New.
18354 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
18356 * config/cris/cris.c (cris_override_options): Tweak error message
18357 for PIC not implemented.
18359 * config/cris/cris.h: Tweak comments related to parameter-passing.
18361 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
18363 2002-04-10 Richard Henderson <rth@redhat.com>
18365 * except.c (add_ehl_entry): Allow duplicates after landing pad
18368 2002-04-10 David Edelsohn <edelsohn@gnu.org>
18370 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
18372 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
18374 * c-decl.c (c_init_decl_processing): Move generation of
18375 decls for g77_integer_type_node and friends from here ...
18376 * c-common.c (c_common_nodes_and_builtins): ... to here.
18378 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
18380 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
18381 is only used as frame pointer when frame_pointer_needed is true.
18383 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
18386 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
18387 for the fact that the pool entry uses two words.
18388 (movdf_hard_insn): Similarly. Also, ADR instruction can span
18390 (movdf_soft_insn): Similarly.
18391 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
18392 for the fact that the pool entry uses three words.
18394 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
18396 * config/mips/mips.c (mips_va_arg): When using the struct version
18397 of the EABI va_list, allow arguments in the register save area to
18398 take up less room than a stack argument.
18400 2002-04-10 Richard Henderson <rth@redhat.com>
18402 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
18403 if EXPAND_INITIALIZER.
18405 2002-04-09 Richard Henderson <rth@redhat.com>
18407 * config/alpha/alpha.md (movdi_er_maybe_g): New.
18408 * config/alpha/alpha.c (alpha_expand_mov): Use it.
18410 2002-04-10 Alan Modra <amodra@bigpond.net.au>
18412 PR optimization/6233
18413 * rtlanal.c (pure_call_p): New function.
18414 * rtl.h (pure_call_p): Declare.
18415 * loop.c (prescan_loop): Use it to set has_nonconst_call.
18416 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
18418 2002-04-09 Eric Christopher <echristo@redhat.com>
18420 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
18421 information to .comm directive.
18423 2002-04-09 Richard Henderson <rth@redhat.com>
18426 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
18428 2002-04-09 Richard Henderson <rth@redhat.com>
18430 * basic-block.h (flow_delete_block_noexpunge): Declare.
18431 (expunge_block_nocompact): Declare.
18432 * cfg.c (expunge_block_nocompact): Split out from ...
18433 (expunge_block): ... here.
18434 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
18435 (flow_delete_block_noexpunge): Split out from ...
18436 (flow_delete_block): ... here.
18437 * cfgcleanup.c (delete_unreachable_blocks): Compact while
18438 removing dead blocks.
18439 * except.c (exception_handler_labels): Remove.
18440 (exception_handler_label_map): New.
18441 (struct eh_region): Add aka member.
18442 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
18443 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
18444 (for_each_eh_label, for_each_eh_label_1): New.
18445 (init_eh): Register exception_handler_label_map.
18446 (free_eh_status): Use free_region.
18447 (find_exception_handler_labels): Use the map, not the list.
18448 (remove_exception_handler_label): Likewise.
18449 (maybe_remove_eh_handler): Likewise.
18450 (remove_eh_handler): Use the region aka bitmap.
18451 * except.h (exception_handler_labels): Remove.
18452 (for_each_eh_label): Declare.
18453 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
18454 * loop.c (invalidate_loops_containing_label): New.
18455 (find_and_verify_loops): Use it. Use for_each_eh_label.
18456 * sched-rgn.c (is_cfg_nonregular): Use
18457 current_function_has_exception_handlers.
18459 2002-04-09 Richard Henderson <rth@redhat.com>
18461 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
18462 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
18463 Do not return changed status.
18464 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
18465 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
18466 New functions that do return changed status.
18467 * sbitmap.h: Update decls.
18468 * gcse.c, lcm.c: Use _cg functions as needed.
18470 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
18472 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
18473 (sh64-*-elf*, sh-*-rtemself*): Likewise.
18474 * config/sh/embed_bb.c: New file.
18475 * config/sh/embed-elf.h: New file.
18476 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
18477 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
18478 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
18480 (SUBTARGET_CPP_PTR_SPEC): Don't define.
18481 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
18482 Add subtarget_asm_endian_spec.
18483 (ASM_SPEC): Use subtarget_asm_endian_spec.
18484 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
18485 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
18486 (WCHAR_UNSIGNED): Define.
18487 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
18488 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
18489 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
18491 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
18492 (sh_adjust_cost): Likewise.
18493 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
18495 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
18496 (WCHAR_TYPE_SIZE): Likewise.
18497 (ASM_SPEC): Use subtarget_asm_endian_spec.
18498 (SH_ELF_WCHAR_TYPE): #undef/ #define.
18499 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
18500 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
18501 (MAX_WCHAR_TYPE_SIZE): Don't #define .
18502 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
18503 (USER_LABEL_PREFIX): Don't #undef /#define .
18504 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
18505 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
18506 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
18507 (ASM_SPEC): Likewise.
18508 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
18509 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
18510 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
18511 (LIB2FUNCS_EXTRA): Define.
18512 * t-sh64 (LIB2FUNCS_EXTRA): Define.
18513 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
18514 (LIB1ASMFUNCS_CACHE): Define.
18515 (LIB2FUNCS_EXTRA): Redefine empty.
18517 2002-04-08 Richard Henderson <rth@redhat.com>
18519 * reorg.c (get_branch_condition): Use reversed_comparison_code.
18521 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
18523 * config/m68hc11/larith.asm (__map_data_section): Fix condition
18524 and optimize for size.
18525 (__do_global_ctors): Fix pointer comparison.
18526 (__do_global_dtors): Likewise.
18528 2002-04-09 David S. Miller <davem@redhat.com>
18530 * config/sparc/sparc.c (sparc_extra_constraint_check): New
18531 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
18532 allow reloading pseudos.
18533 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
18534 * config/sparc/sparc-protos.h: Declare it.
18536 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
18537 unsigned comparison warning.
18538 (output_restore_regs): Mark leaf_function as unused.
18540 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18542 * expr.c (is_aligning_offset): New function.
18543 (expand_expr, case COMPONENT_EXPR): Call it.
18545 2002-04-08 David S. Miller <davem@redhat.com>
18548 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
18550 Make init_priority work on SPARC when using GNU ld.
18551 * config/sparc/linux.h, config/sparc/linux64.h,
18552 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
18553 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
18554 * config/sparc/sol2-gld.h: New file to do the same.
18555 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
18556 sparc/sol2-gld.h to tm_file.
18558 PR optimization/4328
18559 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
18560 * doc/md.texi: Document it.
18561 * config/sparc/sparc.md (movdi_insn_sp64_novis,
18562 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
18563 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
18564 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
18565 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
18567 2002-04-08 Andreas Jaeger <aj@suse.de>
18569 * stmt.c (expand_asm_operands): Revert last patch from Richard
18572 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18574 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
18575 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
18577 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18579 * doc/contrib.texi (Contributors): Add David O'Brien.
18581 2002-04-08 Alan Modra <amodra@bigpond.net.au>
18583 * configure.in (auto-build.h): Use target_alias and build_alias
18584 when running configure.
18585 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
18586 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
18587 * configure: Regenerate.
18589 2002-04-07 David S. Miller <davem@redhat.com>
18591 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
18593 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
18596 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
18597 generating 32-bit pic code.
18599 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
18601 * cppinit.c (cpp_create_reader): Initialize
18602 discard_comments_in_macro_exp.
18603 (COMMAND_LINE_OPTIONS): Add "-CC" option.
18604 (cpp_handle_option): Handle "-CC" option.
18605 * cpplex.c (save_comment): If saving a C++ comment in
18606 a directive, convert it to a C comment.
18607 (_cpp_lex_direct): Pass second comment start character to
18608 save_comment to indicate comment type.
18609 * cpplib.c (_cpp_handle_directive): If processing
18610 a "#define" directive and discard_comments_in_macro_exp
18611 is false, re-enable saving of comments.
18612 (lex_macro_node): If discard_comments_in_macro_exp is false,
18613 discard any comments before the macro identifier.
18614 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
18616 * cppmacro.c (cpp_get_token): If expanding a macro while
18617 processing a directive, discard any comments we might encounter.
18618 (parse_params): If discard_comments_in_macro_exp is false,
18619 ignore comments in the macro parameter list.
18620 * gcc.c (cpp_unique_options): Add "-CC" option.
18621 (option_map): Map "--comments-in-macros" to "-CC".
18622 * doc/cppopts.texi: Document "-CC" option.
18623 * f/lang-specs.h: Add "-CC" option.
18624 * testsuite/gcc.dg/cpp/maccom1.c: New test.
18625 * testsuite/gcc.dg/cpp/maccom2.c: New test.
18626 * testsuite/gcc.dg/cpp/maccom3.c: New test.
18627 * testsuite/gcc.dg/cpp/maccom4.c: New test.
18628 * testsuite/gcc.dg/cpp/maccom5.c: New test.
18629 * testsuite/gcc.dg/cpp/maccom6.c: New test.
18631 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
18634 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
18636 2002-04-06 Mark Mitchell <mark@codesourcery.com>
18639 * stor-layout.c (layout_decl): Reset the RTL for the decl.
18642 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
18643 RTX_UNCHANGING_P for the functions arguments when a tail call
18646 2002-04-06 Jason Merrill <jason@redhat.com>
18648 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
18649 (parse_options_and_default_flags): Set them appropriately.
18650 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
18652 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
18654 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
18657 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
18660 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
18661 types come in by-reference. Fix typo in comment.
18663 2002-04-05 David S. Miller <davem@redhat.com>
18665 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
18666 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
18667 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
18668 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
18670 2002-04-05 David S. Miller <davem@redhat.com>
18672 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
18673 are not going to emit return instructions, emit at least a nop
18674 for the sake of sane backtraces.
18676 2002-04-05 Richard Henderson <rth@redhat.com>
18678 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
18680 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
18682 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
18684 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
18686 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
18687 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
18688 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
18690 2002-04-05 Andreas Schwab <schwab@suse.de>
18692 * c-convert.c: Include c-common.h.
18693 * Makefile.in (c-convert.o): Updated.
18695 2002-04-05 Jakub Jelinek <jakub@redhat.com>
18697 * mklibgcc.in: Use separate libgcc.map for each multilib.
18698 * Makefile.in (distclean): Don't remove libgcc.map here.
18700 2002-04-05 Jakub Jelinek <jakub@redhat.com>
18702 * Makefile.in (s-mlib): Handle --disable-multilib by separate
18703 genmultilib invocation.
18705 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
18707 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
18708 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
18709 to num_gprs for symmetry.
18710 * config/mips/mips.c: Adjust accordingly.
18712 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
18714 * c-common.c (truthvalue_conversion): Rename, update.
18715 * c-common.h (c_common_truthvalue_conversion): New.
18716 * c-convert.c (convert): Update.
18717 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
18718 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
18719 * c-typeck.c (build_binary_op, build_unary_op,
18720 build_conditional_expr): Update.
18721 * fold-const.c (constant_boolean_node, fold): Use langhook.
18722 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
18723 * langhooks.h (struct lang_hooks): New hook.
18724 * stmt.c (expand_decl_cleanup): Use langhook.
18725 * tree.h (truthvalue_conversion): Remove.
18727 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
18729 2002-04-05 Alan Modra <amodra@bigpond.net.au>
18731 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
18732 Add rules to make null object file.
18734 2002-04-04 Jim Blandy <jimb@redhat.com>
18736 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
18737 macro formal parameter names.
18739 2002-04-04 David S. Miller <davem@redhat.com>
18741 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
18743 2002-04-04 Richard Henderson <rth@redhat.com>
18746 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
18747 Support copies into and out of memory. Don't accept allows_reg
18748 and allows_mem as gospel.
18750 2002-04-04 Richard Henderson <rth@redhat.com>
18753 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
18754 (write_dependence_p): Likewise.
18756 2002-04-04 Richard Henderson <rth@redhat.com>
18758 * predict.c (estimate_bb_frequencies): Do frequency calculation
18759 with a volatile temporary.
18761 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
18763 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
18765 2002-04-04 Jakub Jelinek <jakub@redhat.com>
18768 * final.c (final_start_function): Don't bump profile_label_no here...
18769 (final_end_function): ...but here.
18771 2002-04-04 Jakub Jelinek <jakub@redhat.com>
18773 * config/sparc/sparc.md (pic): New attribute.
18774 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
18776 (split after do_builtin_setjmp_setup): New.
18778 2002-04-04 Jakub Jelinek <jakub@redhat.com>
18781 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
18784 2002-04-04 Jakub Jelinek <jakub@redhat.com>
18786 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
18787 UNITS_PER_WORD for zero sized aggregates.
18789 2002-04-03 David S. Miller <davem@redhat.com>
18791 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
18792 one-character spec for this, just use %(link_gcc_c_sequence).
18794 2002-04-03 David S. Miller <davem@redhat.com>
18796 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
18799 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
18801 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
18802 (DWARF_FRAME_RETURN_COLUMN): Move.
18803 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
18804 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
18805 * pa.c (except.h, predict.h): Include.
18807 (store_reg_modify, set_reg_plus_d): Revise prototypes.
18808 (output_ascii): Add cast.
18809 (store_reg_modify): Revise to add frame notes.
18810 (set_reg_plus_d): Likewise.
18811 (compute_frame_size): Include space for eh data registers in frame if
18812 the current function calls eh_return.
18813 (hppa_expand_prologue): Ensure register %r2 is saved if the current
18814 function calls eh_return. Save eh data registers if the current
18815 function calls eh_return. Fix code to add frame notes. Emit
18816 blockage to prevent insns with frame notes being scheduled in the
18817 delay slot of calls.
18818 (hppa_expand_epilogue): Restore eh data registers and do final stack
18819 adjustment if the current function calls eh_return. Don't add frame
18821 (output_call): Revise for change in length of call insn. Don't do
18822 return pointer adjustment for an unconditional jump in the delay slot
18823 of a call when using frame notes.
18824 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
18825 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
18826 (ARG_POINTER_CFA_OFFSET): Define.
18827 * pa.md (return_external_pic): New pattern.
18828 (prologue): Correct formatting. Use return_external_pic if current
18829 function calls eh_return.
18830 (call_internal_symref, call_value_internal_symref,
18831 sibcall_internal_symref, sibcall_value_internal_symref): Change default
18832 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
18834 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
18836 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
18837 list of targets to check using "nop" insn.
18838 * configure: Rebuilt.
18840 2002-04-04 Alan Modra <amodra@bigpond.net.au>
18842 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
18844 2002-04-03 David S. Miller <davem@redhat.com>
18846 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
18847 library sequence passed to the linker.
18848 (LINK_COMMAND_SPEC): Use it.
18849 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
18850 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
18851 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18853 2002-04-03 Jason Merrill <jason@redhat.com>
18855 * except.c (struct eh_status): Remove protect_list.
18856 (begin_protect_partials, end_protect_partials): Remove.
18857 (add_partial_entry): Remove.
18858 * except.h: Remove prototypes.
18860 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
18861 expand_decl_cleanup_eh.
18864 * tree.h (CLEANUP_EH_ONLY): New macro.
18865 * stmt.c (expand_decl_cleanup_eh): New fn.
18866 (expand_cleanups): Check CLEANUP_EH_ONLY.
18867 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
18868 Use expand_decl_cleanup_eh.
18869 (expand_stmt): Adjust.
18870 * c-common.h: Adjust prototype.
18872 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
18874 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
18875 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
18876 (cris_target_asm_function_epilogue): Ditto.
18877 (cris_initial_frame_pointer_offset): Ditto.
18878 (cris_simple_epilogue): Ditto.
18879 (cris_expand_builtin_va_arg): Variable-size types come in
18882 2002-04-03 David S. Miller <davem@redhat.com>
18884 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
18886 (set_fast_math): Correct 'fsr' type.
18888 2002-04-03 Richard Henderson <rth@redhat.com>
18891 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
18892 * toplev.c (check_global_declarations): Use it.
18893 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
18894 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
18895 (LANG_HOOKS_DECLS): Add it.
18896 * langhooks.c (lhd_warn_unused_global_decl): New.
18897 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
18898 * c-objc-common.c (c_warn_unused_global_decl): New.
18899 * c-tree.h (c_warn_unused_global_decl): Declare.
18900 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
18902 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
18904 * langhooks-def.h (lhd_set_decl_assembler_name,
18905 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
18906 (LANG_HOOKS_INITIALIZER): Update.
18907 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
18908 * langhooks.h (struct lang_hooks): New hook.
18909 * tree.c (set_decl_assembler_name): Move to langhooks.c.
18910 (lang_set_decl_assembler_name): Remove.
18911 (init_obstacks): Don't set hook.
18912 (decl_assembler_name): New function.
18913 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
18914 (decl_assembler_name): New.
18915 (lang_set_decl_assembler_name): Remove.
18917 2002-04-03 Jakub Jelinek <jakub@redhat.com>
18919 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
18920 works properly with .hidden symbols.
18921 * configure: Rebuilt.
18922 * config.in: Rebuilt.
18923 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
18924 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
18925 properly with .hidden symbols.
18927 2002-04-03 Jakub Jelinek <jakub@redhat.com>
18930 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
18933 2002-04-03 Richard Henderson <rth@redhat.com>
18936 * sched-rgn.c (sets_likely_spilled): New.
18937 (sets_likely_spilled_1): New.
18938 (add_branch_dependences): Use it.
18940 2002-04-02 Richard Henderson <rth@redhat.com>
18943 * loop.h (LOOP_FIRST_PASS): New.
18944 * loop.c (strength_reduce): Mind it when deciding to unroll.
18945 * toplev.c (rest_of_compilation): Set it.
18947 2002-04-02 David S. Miller <davem@redhat.com>
18949 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
18950 mems_ok_for_ldd_peep when the order of the loads being examined
18952 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
18953 existing comment to increase comprehension of this situation.
18955 2002-04-02 Zack Weinberg <zack@codesourcery.com>
18957 * config/sh/sh.md: Don't use union real_extract.
18959 2002-04-02 Richard Henderson <rth@redhat.com>
18961 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
18963 2002-04-02 David O'Brien <obrien@FreeBSD.org>
18965 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
18966 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
18967 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
18968 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
18969 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
18970 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
18971 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
18972 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
18973 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
18974 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
18975 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
18976 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
18977 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
18978 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
18979 Include as many configury headers via tm_file as possible. This
18980 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
18981 * config/openbsd-oldgas.h: New file.
18982 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
18983 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
18984 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
18985 config/i386/i386-coff.h, config/i386/i386-interix.h,
18986 config/i386/iscdbx.h, config/i386/linux-aout.h,
18987 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
18988 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
18989 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
18990 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
18991 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
18992 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
18993 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
18994 config/i386/vxi386.h: Do not directly include configury headers.
18995 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
18996 Directly include configury headers that are no longer automatically
18997 included by the above headers.
18998 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
18999 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
19000 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
19001 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
19002 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
19003 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
19004 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
19005 (TARGET_VERSION): Define.
19006 * config/i386/beos-elf.h, config/i386/freebsd.h,
19007 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
19008 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
19009 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
19010 config/i386/sco5.h, config/i386/sysv4.h
19011 (TARGET_VERSION): Do not need to protect.
19012 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
19013 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
19014 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
19015 config/i386/i386-interix.h, config/i386/linux-aout.h,
19016 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
19017 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
19018 (YES_UNDERSCORES): Do not define - not needed.
19019 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
19020 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
19021 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
19022 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
19023 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
19024 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
19025 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
19026 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
19028 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
19029 Richard Henderson <rth@redhat.com>
19032 * function.c (assign_temp): Accept either type or decl argument.
19033 Detect variables whose size is too large to fit into an integer.
19034 * stmt.c (expand_decl): Pass the decl, not the type.
19036 2002-04-02 David O'Brien <obrien@FreeBSD.org>
19038 * protoize.c: Match include directory usage with cppdefault.c.
19040 2002-04-03 Jeffrey A Law (law@redhat.com)
19041 Hans-Peter Nilsson <hp@bitrange.com>
19043 * combine.c (simplify_comparison): Avoid narrowing a comparison
19044 with a paradoxical subreg when doing so would drop signficant bits.
19046 2002-04-02 Steve Ellcey <sje@cup.hp.com>
19048 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
19049 if POINTERS_EXTEND_UNSIGNED is defined.
19051 2002-04-02 Richard Henderson <rth@redhat.com>
19054 * local-alloc.c (contains_replace_regs): LO_SUM may contain
19057 2002-04-02 Richard Henderson <rth@redhat.com>
19059 * doc/standards.texi: Document required freestanding libc entry points.
19061 2002-04-02 Alan Modra <amodra@bigpond.net.au>
19063 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
19064 associated splitter. Remove MQ constraint.
19065 (ctrdi_internal4): Correct CCmode clobber.
19067 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
19069 * milli64.S ($$dyncall): New function.
19070 * t-linux (LIB1ASMFUNCS): Revise module list.
19071 (LIB1ASMSRC): Use pa/milli64.S.
19073 2002-04-02 Richard Henderson <rth@redhat.com>
19075 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
19076 rename solaris_sys_varargs_h.
19078 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19080 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
19081 the same mode as its component.
19083 2002-04-02 Richard Henderson <rth@redhat.com>
19086 * final.c (this_is_asm_operands): Export.
19087 * output.h (this_is_asm_operands): Declare.
19088 * config/i386/i386.c (print_operand): Error odd asm operands.
19090 2002-04-02 Richard Henderson <rth@redhat.com>
19093 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
19095 2002-04-01 Richard Henderson <rth@redhat.com>
19098 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
19099 * fixinc/fixincl.x: Rebuild.
19101 2002-04-01 Richard Henderson <rth@redhat.com>
19103 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
19104 (atomic_alloc, atomic_free): New.
19105 (SIZE, MASK_FOR, PTR_IN): New.
19106 (emergency_reg_state, emergency_reg_state_free): New.
19107 (emergency_labeled_state, emergency_labeled_state_free): New.
19108 (reg_state_alloced, labeled_state_alloced): New.
19109 (alloc_reg_state, free_reg_state): New.
19110 (alloc_label_state, free_label_state, free_label_states): New.
19111 (push, pop, dup_state_stack, free_state_stack): Use them.
19112 (desc_label_state): Likewise.
19113 (uw_frame_state_for): Free label states and state stack.
19114 (uw_update_reg_address): Eliminate warnings.
19116 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
19118 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
19119 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
19121 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
19123 * c-decl.c (grokdeclarator): Update.
19124 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
19125 * c-tree.h (c_mark_addressable): New.
19126 * c-typeck.c (default_function_array_conversion, build_unary_op,
19127 build_array_ref, convert_for_assignment): Update.
19128 (mark_addressable): Rename.
19129 * calls.c (try_to_integrate, expand_call): Use langhook.
19130 * expr.c (expand_expr): Use langhook.
19131 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
19132 * langhooks.h (struct lang_hooks): New hook.
19133 * stmt.c (expand_asm_operands): Use langhook.
19134 * tree.h (mark_addressable): Remove.
19136 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
19138 2002-04-01 Bob Wilson <bob.wilson@acm.org>
19140 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
19141 in previous change.
19143 2002-04-01 Bob Wilson <bob.wilson@acm.org>
19145 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
19146 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
19148 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
19150 * c-common.c (unsigned_conversion_warning, convert_and_check,
19151 unsigned_type, signed_type, shorten_compare,
19152 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
19153 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
19154 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
19156 * c-decl.c (grokdeclarator): Update.
19157 * c-format.c (check_format_types): Update.
19158 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
19159 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
19160 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
19161 * convert.c (convert_to_integer): Use new hooks.
19162 * expmed.c (make_tree): Use new hooks.
19163 * expr.c (store_expr): Use new hooks.
19164 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
19165 all_ones_mask_p, unextend, fold): Use new hooks.
19166 * langhooks.h (struct lang_hooks_for_types): New hooks.
19167 * tree.h (signed_or_unsigned_type, signed_type,
19168 unsigned_type): Remove.
19170 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
19171 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
19173 2002-03-31 Richard Henderson <rth@redhat.com>
19175 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
19176 (desc_frgr_mem): Fix reference to f16-f31.
19178 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19180 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
19181 RTVEC_ELT): Const-ify.
19182 * varray.h (VARRAY_CHECK): Const-ify.
19183 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
19184 ggc_mark_rtvec, ggc_mark): Const-ify.
19186 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
19188 * diagnostic.c: Include langhooks-def.h.
19189 * Makefile.in (diagnostic.o): Update.
19191 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
19193 * c-common.c (c_unsafe_for_reeval): Rename.
19194 * c-common.h (c_unsafe_for_reeval): Rename.
19195 * c-decl.c (finish_incomplete_decl): Rename.
19196 (c_init_decl_processing): Don't set langhook.
19197 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
19198 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
19199 * c-objc-common.c (c_objc_common_init): Don't set langhook.
19200 * c-tree.h (finish_incomplete_decl): Rename.
19201 * langhooks-def.h (lhd_unsafe_for_reeval): New.
19202 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
19203 (LANG_HOOKS_INITIALIZER): Update.
19204 * langhooks.c (lhd_unsafe_For_reeval): New.
19205 * langhooks.h (struct langhooks): New hooks.
19206 * toplev.c (incomplete_decl_finalize_hook): Remove.
19207 (wrapup_global_declarations): Update.
19208 * tree.c (lang_unsafe_for_reeval): Remove.
19209 (unsafe_for_reeval): Update.
19210 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
19213 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
19214 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
19216 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
19218 * diagnostic.c (print_error_function): Remove.
19219 (default_print_error_function): Rename.
19220 (report_error_function): Update.
19221 * diagnostic.h (print_error_function): Remove.
19222 (default_print_error_function): Remove.
19223 * langhooks-def.h (struct diagnostic_context): Predeclare.
19224 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
19225 (LANG_HOOKS_INITIALIZER): Update.
19226 * langhooks.h (struct diagnostic context): Predeclare.
19227 (struct lang_hooks): New hook.
19229 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19231 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
19232 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
19234 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
19235 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
19236 of PIC_OFFSET_TABLE_REGNUM thruout.
19237 * config/rs6000/rs6000.md: Likewise.
19238 * config/rs6000/darwin.h: Likewise.
19240 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19242 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
19243 unsigned HOST_WIDE_INT, not unsigned int.
19245 2002-03-31 Jakub Jelinek <jakub@redhat.com>
19247 PR middle-end/6096, middle-end/6098, middle-end/6099
19248 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
19250 (fill_slots_from_thread): Likewise.
19252 2002-03-31 Jakub Jelinek <jakub@redhat.com>
19254 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
19255 floating fields in float regs.
19256 (function_arg_record_value_2): Likewise.
19258 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
19260 * config/mmix/mmix.md (define_constants): Remove misleading
19261 FIXME. Add MMIX_fp_rO_OFFSET.
19262 ("nonlocal_goto_receiver"): Don't have stack-frame address of
19263 saved rO as part of the pattern. Remove FIXME.
19264 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
19265 here, at output-time.
19267 2002-03-31 Jakub Jelinek <jakub@redhat.com>
19270 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
19272 (output_v9branch): Likewise.
19274 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
19276 * gcc.c: Revert previous patch for now.
19277 * config/i386/djgpp.h: Likewise.
19279 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
19281 * config/mmix/crti.asm (_init): Register _fini with atexit.
19282 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
19284 2002-03-31 Richard Henderson <rth@redhat.com>
19287 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
19288 (ASM_OUTPUT_DEF_FROM_DECLS): New.
19290 2002-03-31 Richard Henderson <rth@redhat.com>
19292 * libgcc2.c (__bb_exit_func): Make static.
19294 * config/alpha/alpha.md (trap): New.
19296 2002-03-31 Richard Henderson <rth@redhat.com>
19298 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
19299 promoted argument types; build trap.
19300 (expand_builtin_trap): New.
19301 (expand_builtin): Use it.
19302 * stmt.c (expand_nl_goto_receivers): Likewise.
19303 * expr.h (expand_builtin_trap): Declare.
19304 * libfuncs.h (LTI_abort, abort_libfunc): New.
19305 * optabs.c (init_optabs): Init abort_libfunc.
19307 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
19309 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
19310 (LINK_COMMAND_SPEC): ... from here.
19311 (init_gcc_specs): Duplicate it here too, omitting
19312 shared_name in the second copy.
19313 (init_spec): Test for duplicate
19314 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
19316 2002-03-30 David S. Miller <davem@redhat.com>
19318 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
19319 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
19321 2002-03-30 Roger Sayle <roger@eyesopen.com>
19322 Richard Henderson <rth@redhat.com>
19324 * regmove.c (combine_stack_adjustments_for_block): Avoid
19325 emitting a stack adjustment of zero bytes. Let delete_insn
19328 2002-03-30 Richard Henderson <rth@redhat.com>
19330 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
19331 (sparc_emitting_epilogue): New.
19332 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
19333 * config/sparc/sparc-protos.h: Update.
19334 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
19335 (TARGET_SWITCHES): Update.
19336 * config/sparc/sparc.md (return): Remove.
19337 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
19338 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
19339 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
19340 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
19341 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
19342 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
19343 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
19344 Remove MASK_EPILOGUE.
19345 * doc/invoke.texi: Update.
19347 2002-03-30 Daniel Berlin <dan@dberlin.org>
19349 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
19350 CPP will start the file for us.
19352 2002-03-30 Richard Henderson <rth@redhat.com>
19355 * config/ia64/ia64.c (group_barrier_needed_p): Special case
19356 prologue_allocate_stack.
19357 (ia64_single_set): Use insn codes for recognition of special
19358 cases, not rtl matching.
19359 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
19361 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
19363 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
19365 2002-03-30 Richard Henderson <rth@redhat.com>
19368 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
19369 or -fomit-frame-pointer with profiling.
19370 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
19371 (FUNCTION_PROFILER): Do nothing.
19372 (PROFILE_HOOK): New.
19373 * config/sparc/sparc.c (sparc_override_options): Don't check
19374 code models for profiling.
19375 (sparc_function_profiler): Remove.
19376 (sparc_profile_hook): New.
19377 * config/sparc/sparc-protos.h: Update.
19379 2002-03-30 Jakub Jelinek <jakub@redhat.com>
19381 PR optimization/6086
19382 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
19383 of SUBREG of volatile MEM or because the MEM was mode dependent,
19384 return CLOBBER instead of unmodified SUBREG.
19386 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
19388 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
19389 when not optimizing.
19391 * toplev.c (rest_of_compilation): Cann mark_constant_function
19392 only when optimizing.
19394 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
19397 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
19398 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
19399 (try_optimize_cfg): clear all AUX fields.
19401 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
19402 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
19403 (ix86_address_cost): Be prepared for SUBREGed registers.
19404 (legitimate_address_p): Accept SUBREGed registers.
19406 2002-03-29 Richard Henderson <rth@redhat.com>
19409 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
19411 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19413 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
19414 for aggregate and TFmode types.
19416 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
19418 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
19420 2002-03-29 Richard Henderson <rth@redhat.com>
19423 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
19424 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
19426 2002-03-29 Richard Henderson <rth@redhat.com>
19429 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
19430 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
19431 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
19432 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
19434 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
19436 2002-03-29 Dale Johannesen <dalej@apple.com>
19438 * loop.c (combine_movables): Do allow combination of pseudos.
19440 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
19442 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
19443 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
19444 No functional change except ...
19445 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
19446 * doc/install.texi (*-*-freebsd*): Document port configuration.
19448 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
19450 * Makefile.in (convert.o, calls.o, expmed.o): Update.
19451 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
19453 * builtin-types.def (BT_PTRMODE): Update.
19454 * c-common.c (type_for_size): Rename c_common_type_for_size.
19455 (type_for_mode): Similarly.
19456 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
19458 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
19459 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
19460 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
19462 * c-typeck.c (common_type, comptypes, default_conversion):
19464 * calls.c: Include langhooks.h.
19465 (emit_library_call_value_1): Use new hooks. Avoid redundant
19467 * convert.c: Include langhooks.h
19468 (convert_to_pointer, convert_to_integer): Use new hooks.
19469 * except.c (init_eh): Similarly.
19470 * expmed.c: Include langhooks.h.
19471 (expand_mult_add): Use new hooks.
19472 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
19473 try_casesi): Similarly.
19474 * fold-const.c (optimize_bit_field_compare, make_range,
19475 decode_field_reference, fold_truthop, fold): Similarly.
19476 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
19477 put_var_into_stack): Similarly.
19478 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
19479 LANG_HOOKS_TYPE_FOR_SIZE): New.
19480 (LANG_HOOKS_TYPES_INITIALIZER): Update.
19481 * langhooks.h (lang_hooks_for_types): New hooks.
19482 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
19483 * tree.c (get_unwidened, get_narrower): Similarly.
19484 * tree.h (type_for_mode, type_for_size): Remove.
19485 * varasm.c (force_const_mem): Use new hooks.
19486 * utils2.c (nonbinary_modular_operation): Update.
19488 * objc-act.c (handle_impent): Update.
19489 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
19492 2002-03-29 Steve Ellcey <sje@cup.hp.com>
19494 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
19495 * config/ia64/ia64.c (basereg_operand): New.
19496 * config/ia64/ia64-protos.h (basereg_operand): Declare.
19497 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
19499 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
19501 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
19502 unwind information when frame_pointer_needed.
19503 (mmix_assemble_integer): Tweak wording in comment.
19505 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
19507 * Makefile.in (except.o): Update.
19508 * except.c: Include langhooks.h.
19509 (init_eh): Use langhook.
19510 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
19511 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
19512 (LANG_HOOKS_INITIALIZER): Update.
19513 * langhooks.h (lang_hooks_for_types): New.
19514 (struct lang_hooks): Add it.
19515 * tree.c (make_lang_type_fn, make_lang_type): Remove.
19516 * tree.h (make_lang_type_fn, make_lang_type): Remove.
19518 * alpha/alpha.c: Include langhooks.h.
19519 (alpha_build_va_list): Use langhook.
19520 * d30v/d30v.c: Include langhooks.h.
19521 (d30v_build_va_list): Use langhook.
19522 * i386/i386.c: Include langhooks.h.
19523 (ix86_build_va_list): Use langhook.
19524 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
19525 * s390/s390.c: Include langhooks.h.
19526 (s390_build_va_list): Use langhook.
19527 * stormy16/stormy16.c: Include langhooks.h.
19528 (stormy16_build_va_list): Use langhook.
19530 2002-03-29 Jakub Jelinek <jakub@redhat.com>
19533 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
19535 (length): Compute variable length for branches/calls/jumps here.
19536 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
19537 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
19538 define branch_type attribute.
19539 (divsi3_sp32): Maximum length is 6 not 7.
19540 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
19541 call_address_untyped_struct_value_sp32,
19542 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
19543 * config/sparc/sparc.c (empty_delay_slot): New function.
19544 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
19545 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
19547 2002-03-29 Jakub Jelinek <jakub@redhat.com>
19549 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
19550 nonzero_bits if not needed.
19551 (nonzero_bits) [XOR]: Likewise.
19552 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
19553 reg_last_set_mode and mode are both MODE_INT, but not equal.
19554 (record_value_for_reg): Compute reg_last_set_nonzero_bits
19555 in nonzero_bits_mode for MODE_INT modes.
19557 2002-03-28 Richard Henderson <rth@redhat.com>
19560 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
19561 to GAS. Correct drift between alternatives.
19563 2002-03-28 Richard Henderson <rth@redhat.com>
19566 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
19568 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
19570 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
19571 emulation to the linker.
19573 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
19575 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
19576 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
19578 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
19580 * combine.c (simplify_and_const_int): Make sure to apply mask
19581 when force_to_mode returns a constant integer. PR3311.
19583 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
19585 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
19587 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
19589 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
19590 and Objective-C Dialect Options.
19592 2002-03-28 Richard Henderson <rth@redhat.com>
19594 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
19595 comparison should be done vs !=0 not >0 return code. Tidy cases.
19597 2002-03-28 Richard Henderson <rth@redhat.com>
19599 * c-decl.c (finish_function): New arg can_defer_p. Pass it
19600 on to c_expand_body.
19601 * c-tree.h (finish_function): Update decl.
19602 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
19604 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
19606 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
19608 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
19610 * rtlanal.c: Include flags.h
19611 (may_trap_p): Do not mark FP operations if trapping
19612 if !flag_trapping_math
19613 * Makefile.in (rtlanal.o): Add dependency on flag.h
19614 * ifcvt.c (noce_operand_ok): Avoid the lameness.
19616 2002-03-27 Zack Weinberg <zack@codesourcery.com>
19618 * mips.md: Use dconst1, not 1.0, as first argument of
19619 REAL_VALUE_LDEXP. Don't use union real_extract.
19621 2002-03-28 Alan Modra <amodra@bigpond.net.au>
19623 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
19624 rather than $target. Heed program_prefix and
19625 program_transform_name. Search for gas in cross-compiler case too.
19626 "test -x" rather than "test -f".
19627 (gcc_cv_ld): Likewise.
19628 (gcc_cv_nm): Heed program_prefix and program_transform_name.
19629 (gcc_cv_objdump): Likewise.
19630 * configure: Regenerate.
19632 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
19634 * Makefile.in (attribs.o): Update.
19635 * attribs.c: Include langhooks.h.
19636 (decl_attributes): Use langhook.
19637 * c-decl.c (insert_default_attributes): Rename.
19638 * c-tree.h (c_insert_default_attributes): New.
19639 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
19640 (LANG_HOOKS_INITIALIZER): Update.
19641 * langhooks.h (struct lang_hooks): New hook.
19642 * tree.h (insert_default_attributes): Remove.
19644 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
19646 2002-03-27 Andreas Schwab <schwab@suse.de>
19648 * config/i386/i386.c (classify_argument): Also check for
19651 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19653 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
19656 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
19658 * i960.md (ret): Set PC.
19659 (nonlocal_goto): Fix expander.
19660 * builtins.c (epxand_builin_longjmp): Check that we've emitted
19663 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
19665 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
19666 of libcall regions.
19668 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19670 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
19671 assigning to BLOCK_FOR_INSN directly.
19673 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
19675 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
19677 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
19679 * c-common.c (c_expand_expr): Fix prototype.
19680 * c-common.h (c_expand_expr): Always declare, update.
19681 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
19682 * c-objc-common.c (c_objc_common_init): No global hook.
19683 * expr.c (expand_expr): Use langhook.
19684 * expr.h (enum expand_modifier): Conditionally declare.
19685 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
19686 (LANG_HOOKS_INITIALIZER): Update.
19687 * langhooks.c (lhd_expand_expr): New.
19688 * langhooks.h (struct lang_hooks): New hook.
19689 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
19690 (lang_independent_init): Don't default hook.
19692 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
19694 2002-03-27 Richard Henderson <rth@redhat.com>
19697 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
19698 TARGET_CONST_GP. Simplify conditions.
19700 2002-03-27 Richard Henderson <rth@redhat.com>
19702 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
19703 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
19704 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
19706 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
19708 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
19709 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
19710 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
19711 Remove unnecessary masks.
19712 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
19713 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
19714 -mwindows, -mdll switches and their negations.
19716 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
19718 * gcc-common.c (lang_mark_false_label_stack): Remove.
19719 * ggc.h (lang_mark_false_label_stack): Similarly.
19721 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
19723 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
19725 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
19726 or __rtems_ is defined.
19728 2002-03-26 Richard Henderson <rth@redhat.com>
19730 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
19731 if a non-trivial load was emitted.
19732 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
19733 in high+extra+low case.
19735 2002-03-26 Richard Henderson <rth@redhat.com>
19737 * config.gcc (sparc*-solaris): Use float_format=sparc.
19739 2002-03-26 Richard Henderson <rth@redhat.com>
19741 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
19742 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
19743 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
19744 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
19745 (WINT_TYPE_SIZE): Fix at 32.
19747 2002-03-26 Richard Henderson <rth@redhat.com>
19749 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
19750 until after eh landing pad generation.
19751 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
19752 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
19754 2002-03-26 Richard Henderson <rth@redhat.com>
19756 * expr.h (ADD_PARM_SIZE): One more convert for INC.
19758 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
19760 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
19761 and warning switches.
19762 (cc1_options): Likewise.
19764 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
19766 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
19767 Restore more of the signal context. Set no_reg_stack_frame.
19768 * config/ia64/unwind-ia64.c (unw_state_record):
19769 Add no_reg_stack_frame, comments.
19770 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
19771 (uw_update_context): Adjust bsp when unwinding from leaf,
19772 but not signal frame.
19774 2002-03-26 David Edelsohn <edelsohn@gnu.org>
19776 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
19778 2002-03-26 Bob Wilson <bob.wilson@acm.org>
19780 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
19782 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
19785 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
19786 "Add a pool_range attribute", which was lost during the ARM/Thumb
19789 2002-03-26 Bob Wilson <bob.wilson@acm.org>
19791 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
19792 a register into the MAC16 accumulator.
19794 2002-03-26 Andrew Cagney <ac131313@redhat.com>
19796 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
19797 (Warning Options): Document -Wswitch-enum.
19798 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
19800 (warn_switch_enum): Define variables.
19801 * flags.h (warn_switch_enum): Declare variables.
19802 * stmt.c (expand_end_case_type): When warn_switch_enum /
19803 -Wswitch-enum, perform switch checks.
19806 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
19808 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
19809 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
19810 (reload_muladdsi_compare0_scratch): Delete.
19812 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
19814 * doc/install.texi (*-*-freebsd*): Update.
19816 2002-03-26 Richard Henderson <rth@redhat.com>
19818 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
19819 (SUB_PARM_SIZE): Cast DEC to ssizetype.
19821 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
19822 types from the normal argument frame.
19824 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
19825 variable sized objects by reference.
19826 (sparc_va_arg): Receive them by reference too.
19828 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
19830 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
19831 code to not restoring global registers.
19833 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
19835 * Makefile.in (ggc-common.o): Update.
19836 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
19837 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
19838 * c-tree.h (c_mark_tree): New.
19839 * ggc-common.c: Include langhooks.h.
19840 (gcc_mark_trees): Use new langhook.
19841 * ggc-callbacks.c: Delete file.
19842 * ggc.h (lang_mark_tree): Remove.
19843 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
19844 (LANG_HOOKS_INITIALIZER): Update.
19845 * langhooks.h (struct lang_hooks): New hook.
19847 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
19849 2002-03-25 Zack Weinberg <zack@codesourcery.com>
19851 * doc/cpp.texi: Exclude entire Top node from printed manual.
19852 Move option index after directive index. Insert page breaks
19853 before GFDL and concept index. Index environment variables
19854 with command line options.
19855 * doc/cppenv.texi: Use @vtable for environment variable list.
19856 Add paragraph explaining semantics of empty elements in path
19857 variables. Exclude a cross-reference to Fishkill from the
19858 manpage. Remove an unnecessary cross-reference of the entry
19859 right above the referer. Don't use @anchor in text that goes
19861 * doc/cppopts.texi: Cross-reference the environment variables
19862 section, not the specific environment variable, for consistency.
19864 2002-03-25 Richard Henderson <rth@redhat.com>
19866 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
19867 anywhere in the block. Don't refer to insns that have been
19868 removed from the chain. Iterate backward through the new insns.
19869 Don't refer to edges that have been removed.
19871 2002-03-26 Alan Modra <amodra@bigpond.net.au>
19873 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
19874 test for overflow of constant.
19876 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
19879 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
19880 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
19881 these patterns on arm_archv4.
19883 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
19885 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
19888 2002-03-25 Zack Weinberg <zack@codesourcery.com>
19890 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
19891 float_handled, float_handler, float_signal, set_float_handler,
19892 and do_float_handler. Set handler for SIGFPE to crash_signal.
19893 * toplev.h: Don't prototype do_float_handler.
19895 * c-lex.c: Fold parse_float into lex_number. Make warning
19896 about portability of hex float constants more informative, and
19897 don't issue it on top of a syntax error.
19898 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
19900 * real.h: Define REAL_VALUE_ABS here...
19901 * simplify-rtx.c: ... not here. Fold check_fold_consts,
19902 simplify_unary_real, simplify_binary_real, and
19903 simplify_binary_is2orm1 into their callers.
19904 * tree.c: Fold build_real_from_int_cst_1 into caller.
19906 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
19908 * tsystem.h: Include float.h here...
19909 * libgcc2.c: ... not here.
19911 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
19913 Fixes for: PR bootstrap/3591, target/5676
19914 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
19915 defined. Do not disable exceptions or rtti.
19916 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
19917 mcore.h. Disable exceptions and rtti, since they are not
19920 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
19922 * c-decl.c (maybe_build_cleanup): Remove.
19923 * expr.c (expand_expr): Use langhook.
19924 * langhooks-def.h (lhd_return_null_tree,
19925 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
19926 (LANGHOOKS_INITIALIZER): Update.
19927 * langhooks.c (lhd_return_null_tree): New.
19928 * langhooks.h (struct lang_hooks): New hook.
19929 * tree-inline.c (initialize_inlined_parameters): Use langhook.
19930 * tree.h (maybe_build_cleanup): Remove.
19932 2002-03-25 Jakub Jelinek <jakub@redhat.com>
19934 * regrename.c (build_def_use): Move recog_memoized
19935 before extract_insn.
19937 2002-03-25 Jakub Jelinek <jakub@redhat.com>
19940 * expr.c (emit_group_store): Handle storing into CONCAT.
19942 2002-03-25 Jakub Jelinek <jakub@redhat.com>
19944 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
19945 corresponding MATCH_DUP.
19947 2002-03-24 Richard Henderson <rth@redhat.com>
19949 * unroll.c (unroll_loop): Zero label_map.
19951 * gcse.c: Include except.h.
19952 * Makefile.in (gcse.o): Update.
19954 2002-03-24 Richard Henderson <rth@redhat.com>
19956 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
19957 Do resolve_unique_section before shared data clause.
19959 2002-03-24 Richard Henderson <rth@redhat.com>
19961 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
19963 2002-03-24 Richard Henderson <rth@redhat.com>
19965 * recog.c (peephole2_optimize): Split blocks when EH insns are
19966 generated in the middle of a block. Do global life update if
19969 2002-03-24 Richard Henderson <rth@redhat.com>
19971 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
19973 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
19976 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
19977 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
19978 (init_dependency_output): Don't make no_output decision here.
19980 2002-03-24 Andrew Cagney <ac131313@redhat.com>
19982 * stmt.c (check_for_full_enumeration_handling): Remove tests of
19983 warn_switch. Update description.
19984 (expand_end_case_type): Call check_for_full_enumeration_handling
19987 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19989 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
19990 (m68hc11_split_move): Call it to see if the source and destination
19991 operands use the same direction auto inc/dec mode, otherwise make the
19992 source an offsetable memory operand and generate an add.
19994 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
19996 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
19997 register for operand 2.
19998 ("*subsi3_zero_extendqi"): Likewise.
19999 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
20000 bits so that it is compatible with a pop.
20001 ("*andhi3_gen"): Likewise.
20002 ("xorhi3"): Likewise.
20004 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
20006 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
20008 (cpp_post_options): ... not here.
20010 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
20011 Aldy Hernandez <aldyh@redhat.com>
20013 Removal of separate preprocessor cpp0.
20015 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
20016 cpp0, install-common): Update.
20017 * c-common.c (flag_preprocess_only): New.
20018 (c_common_init): Preprocess for -E.
20019 * c-common.h (flag_preprocess_only): New.
20020 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
20021 * c-objc-common.c (c_init_decl_processing): Exit quickly
20022 for NULL return from c_common_init.
20023 * cpplib.h (cpp_preprocess_file): New.
20024 * cppmain.c (main, general_init, pfile, progname): Remove.
20025 (do_preprocessing): Rename cpp_preprocess_file, don't call
20026 cpp_finish. Don't close stdout here.
20027 (setup_callbacks): Update prototype.
20028 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
20030 * tradcpp.c (main): Ignore -quiet.
20032 * lang-specs.h (default_compilers): Preprocess with cc1obj.
20034 2002-03-24 Richard Henderson <rth@redhat.com>
20036 PR optimization/5742
20037 * machmode.def: Add inner mode field to complex modes.
20038 * config/mips/mips.c (mips_function_value): Always define. Add
20039 new argument to handle libcalls.
20040 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
20041 (FUNCTION_VALUE): Likewise.
20042 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
20043 * config/mips/mips-protos.h: Update.
20045 2002-03-23 Richard Henderson <rth@redhat.com>
20047 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
20048 * config/sparc/sparc-protos.h: Update.
20049 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
20051 2002-03-23 Richard Henderson <rth@redhat.com>
20053 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
20054 _start or _init begins the text segment.
20056 2002-03-23 David Edelsohn <edelsohn@gnu.org>
20058 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
20059 not HOST_WIDEST_INT.
20060 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
20062 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
20065 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
20066 operand argument to output_return_instruction.
20067 * arm.c (arm_print_operand, case 'd'): If the operand is
20068 const_true_rtx then just return.
20069 (arm_print_operand, case 'D'): If the operand is const_true_rtx
20072 2002-03-23 Andrew Cagney <ac131313@redhat.com>
20074 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
20075 (Warning Options): Document -Wswitch-default.
20076 * toplev.c (W_options): Add -Wswitch-default. Update comment on
20078 (warn_switch_default): Define variable.
20079 (warn_switch): Update comment.
20080 * flags.h (warn_switch_default): Declare variable.
20081 (warn_switch): Update comment.
20082 * stmt.c (expand_end_case): Check for and, when
20083 warn_switch_no_default, warn of a missing default case.
20085 2002-03-23 Alan Modra <amodra@bigpond.net.au>
20087 * real.h (N): Special case 128 bit doubles.
20089 * combine.c (simplify_comparison): When widening modes, ignore
20090 sign extension on CONST_INTs.
20092 2002-03-22 Bob Wilson <bob.wilson@acm.org>
20094 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
20095 passed to adjust_address. Fix comment formatting.
20098 2002-03-22 Zack Weinberg <zack@codesourcery.com>
20100 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
20101 Always make REAL_VALUE_TYPE a struct containing an array of
20102 HOST_WIDE_INT, not a double. Tidy up the code deciding how
20103 big it is. Don't declare or use union real_extract.
20105 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
20106 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
20107 (print_operand), config/arm/arm.c (output_move_double),
20108 config/arm/arm.md (consttable_4, consttable_8),
20109 config/romp/romp.c (output_fpops), config/s390/s390.h
20110 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
20111 (xtensa_output_literal): Don't use union real_extract.
20113 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
20114 (sfmode_constant_to_ulong), config/ns32k/merlin.h
20115 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
20116 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
20117 (PRINT_OPERAND): Don't use local version of union
20120 * config/convex/convex.c (check_float_value), config/vax/vax.c
20121 (vax_float_literal), config/m88k/m88k.md (divdf3),
20122 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
20123 config/pdp11/pdp11.c (output_move_quad): Don't do host
20124 arithmetic on target floating point quantities.
20126 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
20127 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
20129 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
20130 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
20132 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
20133 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
20135 * print-rtl.c (print_rtx): Disable code which needs
20136 floating-point emulator.
20137 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
20138 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
20139 depending on HOST_FLOAT_FORMAT to be defined properly.
20141 * config/1750a/1750a.c (get_double, float_label): Delete.
20142 (print_operand): Delete huge commented-out chunk. Use
20143 REAL_VALUE_TO_DECIMAL.
20144 * config/1750a/1750a-protos.h: Delete prototypes of deleted
20146 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
20148 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
20149 Use REAL_VALUE_TO_DECIMAL as ELF version does.
20150 * config/m88k/m88k.c (real_power_of_2_operand,
20151 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
20152 real_extract out of the union; run the input through
20153 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
20154 from that into the union.
20155 * config/pdp11/pdp11.c (output_move_double): Rearrange
20156 parentheses to make automatic indenter happy.
20158 * doc/tm.texi (Cross-compilation): Rename node to "Floating
20159 Point" and rewrite to describe current situation. Also adjust
20160 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
20162 * doc/rtl.texi: Adjust cross reference.
20164 2002-03-22 Bob Wilson <bob.wilson@acm.org>
20166 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
20167 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
20168 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
20169 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
20170 prevent use of sp as a reload register.
20171 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
20172 non_acc_reg_operand.
20173 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
20174 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
20175 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
20176 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
20178 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
20180 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
20181 * cpplex.c (unterminated): Delete.
20182 (parse_string): No string literal may extend over multiple
20183 lines. Suppress the error when preprocessing assembly.
20184 * cppmain.c (scan_translation_unit): Strings are single-line.
20186 * doc/cpp.texi: Update to match.
20188 2002-03-22 Jakub Jelinek <jakub@redhat.com>
20190 PR optimization/5854
20191 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
20193 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
20194 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
20195 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
20196 const0 if scratch register was not allocated.
20197 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
20198 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
20199 with GEN_INT (...).
20200 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
20201 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
20202 with GEN_INT (...) everywhere. Remove constraints in define_split
20204 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
20205 require scratch register for setting 0 into regs/non-pushable memory.
20207 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
20209 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
20210 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
20212 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
20214 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
20215 * cppinit.c (cpp_create_reader): On by default.
20216 (cpp_handle_option): Handle -W[no-]endif-labels.
20217 (cpp_post_options): Also enable if -pedantic.
20218 * cpplib.c (do_else): Use it.
20219 (do_endif): Likewise.
20220 * doc/cppopts.texi: Document new option.
20221 * doc/invoke.texi: Document new option.
20223 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
20225 * config/i386/i386.c, config/i386/i386.md: Change all occurences
20226 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
20228 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
20230 * flow.c (calculate_global_regs_live): Clear aux fields of
20233 2002-03-22 Jakub Jelinek <jakub@redhat.com>
20235 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
20236 REG or MEM subregs, pass rtx * instead of rtx to it.
20237 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
20238 rtx * instead of rtx to alter_subreg.
20239 * config/m32r/m32r.c (gen_split_move_double): Likewise.
20240 * config/pj/pj.c (pj_output_rval): Likewise.
20242 2002-03-22 Richard Henderson <rth@redhat.com>
20245 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
20246 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
20247 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
20248 (ia64_expand_prologue): Look at int_regs, not words, for number
20249 of incomming int regs.
20251 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
20253 * expr.c (expand_expr): A RESULT_DECL is part of a call.
20255 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
20257 * toplev.c (flag_loop_optimize, flag_crossjumping):
20258 New static variables.
20259 (rest_of_compilation): Conditionalize crossjumping and
20261 (parse_options_and_default_flags): Default loop_optimize and
20263 (lang_independent_options): Add -fcrossjumping and -floop-optimize
20264 * invoke.texi (crossjumping, loop-optimize): Document.
20266 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
20268 * real.c (eiisneg): Move outside #ifdef NANS.
20270 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
20272 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
20273 frequencies match; avoid match on different loop depths.
20274 (try_crossjump_to_bb): Kill tests that no longer brings time
20276 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
20278 (split_edge): Likewise.
20280 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
20283 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
20284 * cfgrtl.c: Include insn-config.h
20285 (split_block) Dirtify block in presence of conditional execution
20287 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
20289 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
20290 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
20291 (function_arg): Constify CUMULATIVE_ARGS.
20292 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
20293 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
20294 (UNITS_PER_DOUBLE): New macro.
20295 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
20296 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
20297 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
20298 fp_regs and stack_words.
20299 (EABI_FLOAT_VARARGS_P): New macro.
20300 * config/mips/mips.c (struct mips_arg_info): New.
20301 (mips_arg_info): New function.
20302 (function_arg_advance): Use it. Add adjustment instructions here
20303 rather than in function_arg.
20304 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
20305 for VOIDmode at the beginning of the function.
20306 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
20307 (function_arg_pass_by_reference): Likewise.
20308 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
20309 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
20310 (mips_va_start): Likewise. Use the new stack_words field of
20311 CUMULATIVE_ARGS to set up overflow area. Reformat.
20312 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
20313 doubles and other types, aligning the overflow pointer for non-doubles
20314 too. Remove some code duplication. Replace hard-coded constants.
20316 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
20318 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
20319 (CLASS_UNITS): Undefine.
20320 (CLASS_MAX_NREGS): Use FP_INC.
20321 * config/mips/mips.c (compute_frame_size): Likewise.
20322 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
20324 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
20326 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
20327 prototype, and handle lexing numbers and identifiers.
20328 (parse_identifier): Update to new form of parse_slow.
20329 (parse_number): Fast path only, use parse_slow otherwise.
20330 (_cpp_lex_direct): Update calls to parse_number.
20332 2002-03-21 DJ Delorie <dj@redhat.com>
20334 * bb-reorder.c (make_reorder_chain_1): Protect against
20335 when redundant edges are omitted.
20336 * predict.c (dump_prediction): Likewise.
20338 2002-03-21 Richard Henderson <rth@redhat.com>
20341 * fixinc/inclhack.def (solaris_stdio_tag): New.
20342 * fixinc/fixincl.x: Regenerate.
20344 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
20347 * c-typeck.c (process_init_element): Flag non-static
20348 initialization of a flexible array member as illegal.
20350 2002-03-22 Alan Modra <amodra@bigpond.net.au>
20352 * config/rs6000/t-linux64: New.
20353 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
20354 t-ppccomm. Use t-rs6000 and t-linux64.
20355 (powerpc64-*-gnu* <tmake_file>): Likewise.
20356 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
20357 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
20358 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
20360 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
20362 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
20363 flag_really_no_inline instead of optimize == 0.
20365 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
20367 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
20369 * flags.h (flag_really_no_inline): New.
20371 * c-common.c (c_common_post_options): Initialize
20372 flag_really_no_inline.
20374 * toplev.c (flag_really_no_inline): New.
20376 2002-03-21 Jakub Jelinek <jakub@redhat.com>
20378 * config/avr/avr.md (length): Fix length computation for
20379 conditional branches.
20381 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
20383 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
20384 sdbout.o, profile.o): Update.
20385 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
20387 * c-common.h (gettags): Move here from tree.h.
20388 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
20389 insert_block, getdecls, kept_level_p, global_bindings_p): New.
20390 * dbxout.c (dbxout_init): Use getdecls langhook.
20391 * expr.c (expand_expr): Use insert_block langhook.
20392 * fold-const.c: Include langhooks.h.
20393 (fold_range_test, fold_binary_op_with_conditional_arg,
20394 fold): Use global_bindings_p langhook.
20395 * integrate.c (expand_inline_function): Use insert_block langhook.
20396 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
20397 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
20398 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
20399 LANG_HOOKS_GETDECLS): New.
20400 (LANG_HOOKS_INITIALIZER): Update.
20401 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
20403 * langhooks.h (struct lang_hooks_for_decls): New.
20404 (struct lang_hooks): Update.
20405 * profile.c: Include langhooks.h.
20406 (output_func_start_profiler): Use new langhooks.
20407 * sdbout.c: Include langhooks.h.
20408 (sdbout_init, sdbout_finish): Use getdecls langhook.
20409 * stmt.c: Include langhooks.h.
20410 (expand_fixup, fixup_gotos): Use new langhooks.
20411 * stor-layout.c: Include langhooks.h.
20412 (variable_size): Use global_bindings_p langhook.
20413 * toplev.c (compile_file): Use getdecls langhook.
20414 * tree-inline.c (remap_block): Use insert_block langhook.
20415 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
20416 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
20418 2002-03-21 Richard Henderson <rth@redhat.com>
20420 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
20421 constants in .data when -fpic.
20423 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20425 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
20428 2002-03-21 Tom Tromey <tromey@redhat.com>
20430 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
20432 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20434 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
20436 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
20438 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
20439 Richard Henderson <rth@redhat.com>
20442 * c-common.c (c_expand_expr): Preserve result of a statement
20443 expression if needed.
20445 2002-03-21 Jakub Jelinek <jakub@redhat.com>
20448 * genrecog.c (maybe_both_true_mode): Remove.
20449 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
20450 * machmode.def (Pmode): Likewise.
20452 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
20454 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
20455 (nonlocal_mentioned_p_1): New function.
20456 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
20457 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
20458 (mark_constant_function): Recognize pure functions.
20459 * rtl.h (global_reg_mentioned_p): New prototype.
20460 * rtlanal.c (global_reg_mentioned_p,
20461 global_reg_mentioned_p_1): New function.
20463 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20465 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
20467 * fixinc/fixincl.x: Regenerate.
20469 2002-03-20 Jason Merrill <jason@redhat.com>
20471 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
20473 2002-03-20 Michael Meissner <meissner@redhat.com>
20475 * doc/invoke.texi (Optimize Options): Document that -O2 sets
20478 2002-03-20 Bob Wilson <bob.wilson@acm.org>
20480 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
20481 ".literal_position" directive before the constant pool.
20483 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20485 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
20486 Add Craig Rodrigues.
20487 Add Brad Lucier to testers.
20489 2002-03-20 Jakub Jelinek <jakub@redhat.com>
20492 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
20494 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
20495 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
20496 instead of insn_extract.
20498 2002-03-20 Jakub Jelinek <jakub@redhat.com>
20501 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
20503 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
20504 stmt if some case has been output.
20506 2002-03-20 Jakub Jelinek <jakub@redhat.com>
20509 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
20510 movsfcc_1, movdfcc_1): Add %O2.
20511 * config/i386/i386.c (print_operand): Handle %ON.
20512 Print . before float condition codes in Sun as cmov syntax.
20513 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
20514 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
20517 2002-03-20 Philip Blundell <pb@nexus.co.uk>
20519 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
20520 return instruction if PC was popped.
20522 2002-03-20 Bob Wilson <bob.wilson@acm.org>
20524 * config/xtensa/xtensa.md: Remove unused type attributes.
20525 (adddi_carry, subddi_carry): Change type attribute to "multi".
20527 2002-03-19 Dale Johannesen <dalej@apple.com>
20529 PR optimization/5999, middle-end/5731
20530 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
20531 multiplications by reciprocals.
20533 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
20535 * Makefile.in: Update.
20536 * c-common.c: Include langhooks.h.
20537 (inline_forbidden_p): Use new hook.
20538 * diagnostic.c: Include langhooks.h.
20539 (format_with_decl, announce_function,
20540 default_print_error_function): Use new hook.
20541 * dwarf2out.c (dwarf2_name): Use new hook.
20542 * function.c: Include langhooks.h.
20543 (init_function_start): Use new hook.
20544 * langhooks-def.h (lhd_decl_printable_name): New.
20545 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
20546 (LANGHOOKS_INITIALIZER): Update.
20547 * langhooks.c (lhd_decl_printable_name): New.
20548 * langhooks.h (struct lang_hooks): New hook.
20549 * toplev.c (decl_name, decl_printable_name): Remove.
20550 (open_dump_file): Use new hook.
20551 (process_options): Remove old hook.
20552 * tree.h (decl_printable_name): Remove.
20554 * objc-act.c (objc_init): Remove old hook.
20555 (objc_printable_name): Export.
20556 * objc-act.h (objc_printable_name): New.
20557 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
20559 2002-03-19 Jim Blandy <jimb@redhat.com>
20561 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
20562 the start_source_file debug hook, not the current line number.
20564 2002-03-19 Richard Henderson <rth@redhat.com>
20566 * flow.c (EH_USES): Provide default.
20567 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
20568 * doc/tm.texi (EH_USES): New.
20570 * config/ia64/ia64.c (ia64_eh_uses): New.
20571 * config/ia64/ia64-protos.h: Update.
20572 * config/ia64/ia64.h (EH_USES): New.
20574 2002-03-19 Richard Henderson <rth@redhat.com>
20576 * varasm.c (output_constant_def): Fix stupid typo.
20578 2002-03-19 Richard Henderson <rth@redhat.com>
20581 * except.c (current_function_has_exception_handlers): New.
20582 * except.h: Declare it.
20583 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
20584 Combine tests that disable all sibcalls for the function.
20586 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
20588 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
20591 2002-03-19 Richard Henderson <rth@redhat.com>
20594 * config/ia64/ia64.c: Revert 2002-03-01 patch.
20595 * config/ia64/ia64.h (INIT_EXPANDERS): New.
20597 2002-03-19 Jim Blandy <jimb@redhat.com>
20599 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
20600 name, even if the replacement list contains no tokens, as required
20603 2002-03-19 Jason Merrill <jason@redhat.com>
20605 * varasm.c (globalize_decl): Get the name from the RTL, not
20606 DECL_ASSEMBLER_NAME.
20608 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
20610 2002-03-19 Bob Wilson <bob.wilson@acm.org>
20612 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
20613 subdi_carry): Define.
20615 2002-03-19 David Edelsohn <edelsohn@gnu.org>
20617 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
20618 about -fpic/-fPIC if extra_warnings set.
20620 2002-03-19 David Edelsohn <edelsohn@gnu.org>
20622 * expr.c (expand_expr): Sign-extend CONST_INT generated from
20623 TREE_STRING_POINTER.
20624 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
20626 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20628 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
20629 in favor of SP if FRAME_POINTER_REQUIRED is false.
20631 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
20633 * emit-rtl.c (gen_int_mode): New function.
20634 * rtl.h: Prototype for it.
20635 * combine.c (make_extraction, simplify_comparison), expmed.c
20636 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
20637 (convert_modes, store_field), optabs.c (expand_fix),
20638 simplify-rtx.c (neg_const_int, simplify_unary_real),
20640 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
20641 Use it instead of GEN_INT (trunc_int_for_mode (...)).
20643 2002-03-19 Jakub Jelinek <jakub@redhat.com>
20646 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
20647 convert_parm_for_inlining.
20648 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
20650 * langhooks-def.h: Likewise.
20651 * objc/objc-lang.c: Likewise.
20652 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
20654 * tree-inline.c (initialize_inlined_parameters):
20655 Call convert_parm_for_inlining lang hook if needed.
20656 * c-typeck.c (c_convert_parm_for_inlining): New function.
20657 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
20659 2002-03-18 Mark Mitchell <mark@codesourcery.com>
20661 * calls.c (precompute_arguments): Do not assume that temporaries
20662 can be destroyed after expanding the argument.
20663 (expand_call): Likewise.
20665 2002-03-15 Eric Christopher <echristo@redhat.com>
20667 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
20668 Fix register preference on last change.
20669 * config/mips/mips.c (mips_return_in_memory): New function.
20670 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
20671 * config/mips/mips-protos.h: Declare.
20672 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
20673 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
20675 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
20677 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
20679 (anddi3, iorsi3): Likewise.
20681 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
20682 use %gprel for symbols that are going to be placed in linkonce
20685 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
20686 RETURN_ADDRESS_POINTER_REGNUM to $ra.
20687 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
20688 not needed. Disregard leaf_function_p().
20689 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
20690 mips16 frame pointer.
20691 * config/mips/mips.md (store ra): Only to small SP offsets.
20692 2001-08-22 Graham Stott <grahams@redhat.com>
20693 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
20694 return a REG rtx for the return address register.
20696 2002-03-18 Bob Wilson <bob.wilson@acm.org>
20698 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
20699 constant-pool addresses as "mode-dependent".
20700 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
20702 2002-03-18 Jakub Jelinek <jakub@redhat.com>
20705 * expr.c (emit_group_load): Use extract_bit_field if
20706 needed for CONCAT arguments.
20708 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
20711 * arm.md (tablejump): Make this a define_expand. For PIC add the
20712 offset to the base of the table.
20713 (thumb_tablejump): Matcher for Thumb tablejump insn.
20714 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
20715 as the difference of two labels.
20716 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20717 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
20718 tables in the code.
20719 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
20720 * arm.c (get_jump_table_size): If the table is not in the text
20721 section, return zero.
20723 2002-03-18 Bernd Schmidt <bernds@redhat.com>
20725 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
20727 (arm_reload_out_hi): Use gen_lowpart instead of
20728 gen_rtx_SUBREG to access QImode components.
20729 * config/arm/arm.md: Disable zero_extend split for QImode
20730 subregs in BIG_ENDIAN mode.
20731 (storehi_bigend): Match use of least significant byte.
20732 (storeinthi): Remove extraneous SUBREG.
20733 Add missing construction of operands[2].
20734 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
20735 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
20736 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
20738 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
20740 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
20743 2002-03-17 Richard Henderson <rth@redhat.com>
20745 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
20748 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
20750 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
20751 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
20753 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20755 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
20757 * predict.c (estimate_bb_frequencies): Delete unused variables.
20759 2002-03-17 Richard Henderson <rth@redhat.com>
20761 * config/ia64/ia64.c (ia64_attribute_table): Move before
20762 targetm definition. Make static.
20764 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
20766 * c-common.h (yyparse, c_common_parse_file): New.
20767 * c-lang.c: Include c-common.h.
20768 (LANG_HOOKS_PARSE_FILE): Redefine.
20769 * c-lex.c: Include c-common.h.
20770 (yyparse): Rename c_common_parse_file. Call yyparse.
20771 * c-parse.in (yyparse): Remove macro.
20772 * c-tree.h (yyparse_1): Remove.
20773 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
20774 (LANG_HOOKS_INITIALIZER): Update.
20775 * langhooks.h (struct lang_hoooks): New hook parse_file.
20776 * toplev.c (compile_file): Use parse_file hook.
20777 * tree.h (yyparse): Remove.
20778 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
20780 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
20782 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
20783 float_truncate, not fix.
20784 ("*truncdfsf2_real"): Ditto.
20785 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
20787 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
20789 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
20791 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
20792 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
20793 where appropriate. Make the second reference to
20794 leaf_function_p a function call, as intended. Reindented.
20796 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
20797 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
20799 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
20800 add register to non-constant into sp.
20802 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
20803 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
20804 (mips16_gp_pseudo_rtx): Lose.
20805 (INIT_EXPANDERS): Deleted.
20806 * config/mips/mips.c (mips_init_machine_status): New.
20807 (mips_free_machine_status): New.
20808 (mips_mark_machine_status): New.
20809 (override_options): Set them.
20810 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
20811 (struct machine_function): ... new. Replaced all references.
20812 (mips_add_gc_roots): Don't mark them.
20813 (embedded_pic_fnaddr_reg): New, extracted from...
20814 (embedded_pic_offset): ... here.
20815 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
20818 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
20820 * cppinit.c: Revert -MD removal.
20822 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20824 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
20825 soft registers by default for 68HC12.
20826 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
20827 when compiling with -fomit-frame-pointer.
20828 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
20829 (expand_epilogue): Likewise.
20830 (m68hc11_gen_rotate): Use exg when rotating by 8.
20832 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20834 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
20835 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
20836 (splits): Remove unused add splits.
20837 ("*addhi3_68hc12"): Tune constraints.
20838 ("addhi_sp"): Try to use X instead of Y in all cases and if the
20839 constant fits in 8-bits and D is dead use abx/aby instructions.
20840 ("*addhi3"): Remove extern declaration of ix_reg.
20841 ("*subsi3"): Optimize and provide new split.
20842 ("subhi3"): Cleanup.
20843 ("*subhi3_sp"): Avoid saving X if we know it is dead.
20844 (arith splits): For 68hc12 save the address register on the stack
20845 and do the arithmetic operation with a pop.
20847 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20849 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
20850 allocating QImode in address registers.
20851 ("*movqi_m68hc11"): Likewise.
20853 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
20855 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
20857 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
20859 * cppinit.c (print_help): Display -MD and -MMD.
20860 Don't display usage string. Update assertion syntax and
20862 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
20863 (cpp_handle_option): Update.
20865 2002-03-15 Chris Demetriou <cgd@broadcom.com>
20867 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
20868 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
20869 and define it so that regardless of target CPU size,
20870 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
20871 of "int" rather than "long."
20873 2002-03-15 Richard Henderson <rth@redhat.com>
20875 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
20878 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20880 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
20881 ("tstqi" split): Avoid using memory for tstqi on address register.
20882 (splits): Remove constraints.
20883 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
20884 ("cmpdf", "cmpsf"): Remove since not used.
20885 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
20886 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
20888 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20890 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
20891 ("neghi2"): Tighten constraints.
20892 ("one_cmplsi2"): Optimize and simplify split.
20893 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
20895 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20897 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
20898 and split of AND operation to clear the upper bits.
20899 ("*logicalsi3_zextqi"): Likewise.
20900 ("*logicallhi3_zexthi_ashift8"): Likewise.
20901 ("*logicalsi3_silshr16"): Likewise.
20902 ("logicalsi3_silshl16"): Likewise.
20903 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
20905 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20907 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
20908 (m68hc11_indirect_p): New function.
20909 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
20910 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
20912 (asm_print_register): Likewise.
20913 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
20914 (m68hc11_indirect_p): Declare.
20915 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
20916 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
20917 (TARGET_SWITCHES): New option -mrelax.
20918 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
20920 ("iorsi3", "xorsi3"): Likewise.
20921 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
20922 ("*andhi3_mem"): New to handle destination in memory with bclr
20923 and a scratch register.
20924 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
20925 ("*andhi3_const"): New when operand2 is constant.
20926 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
20927 ("*andhi3_gen"): Cleanup of the old "andhi3".
20928 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
20929 ("xorqi3"): Update constraints.
20931 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20933 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
20934 for reg_equiv_memory_loc when the operand is a register that does
20935 not get a hard register (stack location).
20936 (tst_operand): After reload, accept all memory operand.
20937 (symbolic_memory_operand): Fix detection of symbolic references.
20938 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
20939 accept symbols and any constant.
20941 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20943 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
20944 note on the insn that sets the soft frame register.
20945 (must_parenthesize): ix and iy are also reserved names.
20946 (print_operand_address): One more place where parenthesis are required
20947 to avoid confusion with register names.
20948 (m68hc11_gen_movhi): Allow push of stack pointer.
20949 (m68hc11_check_z_replacement): Fix handling of parallel with a
20951 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
20952 the replacement register is.
20953 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
20954 and D8_REGS classes.
20955 (MODES_TIEABLE_P): All modes are tieable except QImode.
20957 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20959 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
20960 (___subdi3): Likewise.
20961 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
20962 (__map_data_section): Optimize 68hc11 case.
20964 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20966 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
20967 than a shift to avoid adding a register with itself.
20968 (m68hc11_memory_move_cost): Take into account NO_REGS.
20969 (m68hc11_register_move_cost): Update and use memory move cost
20970 for soft registers.
20971 (m68hc11_address_cost): Make cost of valid offset not 0 so that
20972 it gives more opportunities to cse to optimize.
20973 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
20974 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
20976 2002-03-15 Mark Mitchell <mark@codesourcery.com>
20978 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
20979 * c-common.def (CLEANUP_STMT): New tree node.
20980 * c-common.h (CLEANUP_DECL): New macro.
20981 (CLEANUP_EXPR): Likewise.
20982 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
20983 * expr.c (expand_expr): Tidy.
20984 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
20985 * tree-inline.c (initialize_inlined_parameters): Clean up
20986 new local variables.
20988 2002-03-15 Jakub Jelinek <jakub@redhat.com>
20991 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
20992 before movrXX only, use reg_overlap_mentioned_p.
20993 Only special case NE if just one insn can be generated.
20995 2002-03-15 Jason Merrill <jason@redhat.com>
20997 * varasm.c (assemble_variable): Call resolve_unique_section before
20998 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
20999 of error_mark_node.
21001 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
21004 * arm.md (split pattern for thumb shiftable immediates): Add comment
21005 explaining non-obvious test.
21007 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
21010 * arm.md (movaddr, movaddr_insn): Delete.
21012 2002-03-15 Jason Merrill <jason@redhat.com>
21014 * toplev.c (wrapup_global_declarations): Clarify variable handling.
21015 -fkeep-static-consts doesn't apply to comdats.
21017 2002-03-14 Richard Henderson <rth@redhat.com>
21019 * c-decl.c: Include c-pragma.h.
21020 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
21021 (finish_function): Tidy.
21022 * c-pragma.c: Include c-common.h.
21023 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
21024 (handle_pragma_weak): Use them.
21025 (init_pragma): Register pending_weaks.
21026 * c-pragma.h (maybe_apply_pragma_weak): Declare.
21027 * print-tree.c (print_node): Print DECL_WEAK.
21028 * varasm.c (mark_weak_decls): Remove.
21029 (remove_from_pending_weak_list): Remove.
21030 (add_weak): Remove.
21031 (asm_emit_uninitialised): Call globalize_decl for weak commons.
21032 (weak_decls): Make a tree_list.
21033 (declare_weak): Cons weak_decls directly.
21034 (globalize_decl): Remove weak_decls elements directly.
21035 (weak_finish): Simplify weak_decls walk. Don't weaken unused
21036 symbols. Don't pretend to handle aliases.
21037 (init_varasm_once): Update weak_decls registry.
21038 * Makefile.in: Update dependencies.
21040 2002-03-14 Richard Henderson <rth@redhat.com>
21043 * config/ia64/ia64.c: Include tm_p.h last.
21044 (gen_nop_type): Remove duplicate definition.
21045 (cycle_end_fill_slots): Set sched_data for second L slot.
21046 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
21047 (nop_cycles_until): Fix typos.
21049 2002-03-15 Jakub Jelinek <jakub@redhat.com>
21051 PR optimization/5891
21052 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
21054 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
21056 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
21057 descriptors correctly.
21059 2002-03-14 Michael Meissner <meissner@redhat.com>
21061 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
21062 100, allowing MAX_UNROLLED_INSNS to be overridden.
21064 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
21067 * unroll.c (params.h): Include.
21068 (MAX_UNROLLED_INSNS): Delete, now in params.h.
21070 * doc/invoke.texi (--param max-unroll-insns): Document.
21072 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
21074 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
21076 * arm.md: Fix warnings about constraints in peepholes and splits.
21078 2002-03-14 Zack Weinberg <zack@codesourcery.com>
21080 * cpphash.h (struct lexer_state): Remove line_extension member.
21081 * cpplib.c (dequote_string, do_linemarker): New functions.
21082 (linemarker_dir): New data object.
21083 (DIRECTIVE_TABLE): No longer need to interpret #line in
21084 preprocessed source. Delete obsolete comment about return
21085 values of handlers.
21086 (end_directive, directive_diagnostics, _cpp_handle_directive):
21087 Don't muck with line_extension.
21088 (directive_diagnostics): No need to issue warnings for
21090 (_cpp_handle_directive): Issue warnings for linemarkers here,
21091 when appropriate. Dispatch linemarkers to do_linemarker, not
21093 (do_line): Code to handle linemarkers split out to do_linemarker.
21094 Convert escape sequences in filename argument, both places.
21096 * cppmacro.c (quote_string): Rename cpp_quote_string and
21097 export. All callers changed.
21098 * cpplib.h (cpp_quote_string): Prototype.
21099 * cppmain.c (print_line): Call cpp_quote_string on to_file
21100 before printing it.
21102 * doc/cpp.texi: Document that escapes are now interpreted in
21103 #line and in linemarkers, and that non-printing characters are
21104 converted to octal escapes when linemarkers are generated.
21106 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
21108 * emit-rtl.c (try_split): Use delete_insns.
21109 * recog.c (split_all_insns): Fix terminating condition.
21111 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
21112 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
21115 * arm.c (arm_output_epilogue): Fix floating-point register save
21116 adjustment when using a frame pointer.
21118 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
21120 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
21121 * config/mips/mips.c (compute_frame_size): Retrofit them here.
21122 (save_restore_insns, mips_expand_epilogue): And here.
21123 (build_mips16_call_stub): And here.
21124 (mips_function_value): Use the new macros to decide whether a single
21125 or complex float can be returned in floating-point registers. Return
21126 a parallel rtx in the complex case.
21128 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
21130 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
21131 call after liveness analysis.
21133 * recog.c (split_insn): Use delete_insn_and_edges.
21135 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
21136 instructions to have branch prediction notes.
21137 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
21139 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
21141 * configure.in: Don't pass -Wno-long-long to a ADA compiler
21142 that doesn't support it.
21143 * configure: Regenerate.
21145 2002-03-13 Jakub Jelinek <jakub@redhat.com>
21148 * config/sparc/sparc.md (normal_branch, inverted_branch,
21149 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
21150 inverted_fp_branch): Adjust calls to output_cbranch.
21151 Set length attribute.
21152 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
21153 output_v9branch. Set length attribute.
21154 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
21156 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
21157 (output_cbranch): Likewise. Handle far branches.
21158 (output_v9branch): Handle far branches.
21159 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
21161 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
21162 noov_compare64_op predicates.
21164 2002-03-13 Jason Merrill <jason@redhat.com>
21166 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
21167 into the function and constify it.
21168 * gthr-dce.h, gthr-solaris.h: Likewise.
21170 2002-03-13 David Edelsohn <edelsohn@gnu.org>
21172 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
21173 * config/rs6000/rs6000.c (rs6000_va_arg): Use
21174 std_expand_builtin_va_arg if not ABI_V4.
21176 2002-03-13 Jason Merrill <jason@redhat.com>
21178 * varasm.c (globalize_decl): New fn.
21179 (assemble_start_function): Use it.
21180 (asm_emit_uninitialized): Use it.
21181 (assemble_alias): Use it.
21182 (assemble_variable): Use it.
21184 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
21186 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
21187 2002-03-12 internal visibility change.
21188 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
21189 visibility into SYMBOL_REF_FLAG.
21191 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
21193 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
21194 VOIDmode operand. Add compile-time optimization for constant results.
21196 2002-03-12 Jason Merrill <jason@redhat.com>
21198 * c-typeck.c (convert_for_assignment): Don't allow conversions
21199 between pointers and references. Only allow lvalues to convert to
21202 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
21204 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
21205 before prologue, to avoid scheduling problems.
21207 2002-03-13 Jakub Jelinek <jakub@redhat.com>
21209 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
21210 (ELIMINABLE_REGS): Add sfp->sp.
21211 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
21213 2002-03-13 Jakub Jelinek <jakub@redhat.com>
21215 PR optimization/5892
21216 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
21218 2002-03-13 Jakub Jelinek <jakub@redhat.com>
21220 * loop.c (basic_induction_var): Don't call convert_modes if mode
21221 classes are different.
21223 2002-03-12 Richard Henderson <rth@redhat.com>
21225 PR optimization/5901
21226 * function.c (reposition_prologue_and_epilogue_notes): Position
21227 the markers after/before the last/first insn not deleted.
21229 2002-03-12 Richard Henderson <rth@redhat.com>
21231 PR optimization/5878
21232 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
21233 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
21234 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
21236 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
21237 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
21238 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
21240 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
21241 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
21242 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
21243 also. Don't set it if not flag_pic.
21244 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
21245 to be INVALID_REGNUM when not used.
21247 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
21249 * expmed.c (store_bit_field): Reset alias set for memory.
21250 (extract_bit_field): Same.
21252 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21254 * c-common.c (c_tree_code_type, c_tree_code_length,
21255 c_tree_code_name, add_c_tree_codes): Delete.
21256 * c-common.h (add_c_tree_codes): Delete.
21257 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
21259 * c-objc-common.c (c_objc_common_init): Don't call
21260 add_c_tree_codes, instead set lang_unsafe_for_reeval.
21261 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
21262 objc_tree_code_name, add_objc_tree_codes): Delete.
21263 (objc_init): Don't call add_objc_tree_codes.
21264 * objc/objc-lang.c (tree_code_type, tree_code_length,
21265 tree_code_name): Define.
21266 * toplev.c (lang_independent_init): Don't set
21267 tree_code_length[IDENTIFIER_NODE].
21268 * tree.c (tree_code_type, tree_code_length, tree_code_name):
21269 Delete definitions, moved to language front-ends.
21270 * tree.def (IDENTIFIER_NODE): Hardwire the length.
21271 * tree.h (tree_code_type, tree_code_length, tree_code_name):
21273 (tree_code_length): Change type to unsigned char.
21275 2002-03-12 Richard Henderson <rth@redhat.com>
21277 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
21278 internal visibility change.
21280 2002-03-12 Bob Wilson <bob.wilson@acm.org>
21282 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
21283 validize_mem() instead of change_address to avoid clobbering
21286 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
21288 * c-lex.h (position_after_whitespace): Remove.
21290 2002-03-12 Jakub Jelinek <jakub@redhat.com>
21292 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
21293 (lex_string): Use unsigned char pointers.
21295 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
21297 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
21298 is not a valid memory_operand.
21300 2002-03-12 Bob Wilson <bob.wilson@acm.org>
21302 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
21303 * config/xtensa/lib1funcs.asm: Fix copyright to include
21304 special case for libgcc files.
21305 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
21306 (__divsi3): Likewise.
21307 (__umodsi3): Likewise.
21308 (__modsi3): Likewise.
21309 * config/xtensa/lib2funcs.S: Fix copyright to include
21310 special case for libgcc files.
21312 2002-03-12 Tom Rix <trix@redhat.com>
21314 * collect2.c (resolve_lib_name): Move outside of
21315 OBJECT_FORMAT_COFF ifdef.
21316 (ignore_library): Same.
21318 2002-03-12 Bob Wilson <bob.wilson@acm.org>
21320 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
21322 2002-03-12 Bob Wilson <bob.wilson@acm.org>
21324 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
21325 to function_section before writing out the constant pool.
21327 2002-03-12 David Edelsohn <edelsohn@gnu.org>
21329 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
21331 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
21333 2002-03-12 Alan Modra <amodra@bigpond.net.au>
21335 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
21336 (adddi3): Likewise.
21339 (cmpsi splitter): Likewise.
21340 (modsi3): Fail if <= 0.
21341 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
21342 redundant test when HOST_BITS_PER_WIDE_INT != 32.
21343 (reg_or_sub_cint64_operand): Likewise.
21344 (num_insns_constant_wide): Optimize sign extension.
21345 (rs6000_legitimize_address): Likewise.
21347 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
21349 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
21350 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
21352 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
21354 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
21355 address calculation.
21357 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
21359 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
21360 scratch register to DImode / TImode.
21361 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
21362 register used does not overlap the target.
21364 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21366 * Makefile.in (debug.o): Depend on debug.h.
21367 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
21368 * debug.c (do_nothing_debug_hooks): Likewise.
21369 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
21370 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
21371 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
21372 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
21373 * dwarfout.c (dwarf_debug_hooks): Likewise.
21374 * integrate.c (output_inline_function): Likewise.
21375 * objc/objc-act.c (synth_module_prologue): Likewise.
21376 * sdbout.c (sdb_debug_hooks): Likewise.
21377 * toplev.c (debug_hooks): Likewise.
21378 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21380 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21382 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
21383 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
21384 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
21385 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
21386 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
21387 * defaults.h (POINTER_SIZE): Define.
21388 * doc/tm.texi (POINTER_SIZE): Document default.
21390 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21392 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
21394 2002-03-11 Richard Henderson <rth@redhat.com>
21396 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
21397 if rebuild_label_notes_after_reload.
21399 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
21401 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
21402 emit pic register load if "internal" visibility.
21403 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
21404 (cris_expand_builtin_va_arg): Do all computations on trees.
21406 2002-03-11 Richard Henderson <rth@redhat.com>
21408 * rtlanal.c: Include recog.h.
21409 (keep_with_call_p): Fix thinko.
21410 * Makefile.in (rtlanal.o): Update dependencies.
21412 2002-03-11 Chris Meyer <cmeyer@gatan.com>
21414 * genflags.c (gen_insn): Use IS_VSPACE.
21415 * genoutput.c (output_insn_data): Likewise.
21416 (process_template): Likewise.
21418 2002-03-11 Richard Henderson <rth@redhat.com>
21420 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
21422 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
21424 * Makefile.in: Update.
21425 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
21426 Update documentation.
21427 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
21428 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
21430 2002-03-11 Zack Weinberg <zack@codesourcery.com>
21432 * Makefile.in: Give texi2pod its input file as a command line
21433 argument, not on stdin.
21435 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
21436 Daniel Berlin <dan@dberlin.org>
21438 C++ alias analysis improvement.
21439 * alias.c (record_component_aliases): Record aliases for base
21442 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
21444 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
21446 2002-03-11 Douglas B Rupp <rupp@gnat.com>
21448 * toplev.c (vms_fopen): Remove, not needed.
21450 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
21452 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
21454 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
21455 for FP, already done later.
21457 * toplev.c (debug_args): Add entry for VMS_DEBUG.
21458 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
21460 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
21462 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
21463 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
21464 LARGEST_EXPONENT_IS_NORMAL for the given mode.
21465 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
21466 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
21467 (ediv, emul, eldexp, esqrt): Likewise.
21468 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
21469 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
21470 (saturate): New function.
21471 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
21472 (make_nan): Use a saturation value instead of a NaN if
21473 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
21474 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
21475 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
21476 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
21477 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
21478 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
21479 !ROUND_TOWARDS_ZERO.
21480 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
21481 (ROUND_TOWARDS_ZERO): Document.
21483 2002-03-11 Andreas Jaeger <aj@suse.de>
21485 * cfg.c (dump_flow_info): Remove unused variable.
21487 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
21489 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
21490 computations on trees.
21492 2002-03-10 Richard Henderson <rth@redhat.com>
21495 * reload.c (copy_replacements_1): New.
21496 (copy_replacements): Use it to recurse through the rtx.
21498 2002-03-10 Richard Henderson <rth@redhat.com>
21500 * loop.c (strength_reduce): Compute number of iterations as
21501 unsigned HOST_WIDE_INT.
21503 2002-03-10 Richard Henderson <rth@redhat.com>
21505 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
21506 to move away from the end of the block.
21508 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
21510 PR preprocessor/5899
21511 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
21513 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21515 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
21517 * attribs.c (decl_attributes): Fix signed/unsigned warning.
21519 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
21521 * config/mmix/mmix.c: Improve comments.
21522 (mmix_target_asm_function_prologue): Drop variable
21523 empty_stack_frame. Don't allocate unused slot above fp.
21524 (mmix_target_asm_function_epilogue): Mirror prologue changes.
21525 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
21526 brace in first column.
21527 (enum reg_class): Ditto.
21528 (FIRST_PARM_OFFSET): Now 0.
21529 (USER_LABEL_PREFIX): Remove #if 0:d definition.
21531 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21533 * combine.c (make_extraction): Fix error in last change.
21535 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21537 * c4x.c (c4x_fp_reglist): Const-ify.
21538 * cris.c (cris_print_operand): Likewise.
21539 * i386.c (ix86_va_arg): Likewise.
21540 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
21541 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
21542 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
21543 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
21544 * mcore.h (regno_reg_class): Likewise.
21545 * mips.c (gen_int_relational): Likewise.
21546 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
21547 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
21548 * pdp11.c (move_costs): Likewise.
21549 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
21550 * s390.c (s390_branch_condition_mnemonic, regclass_map):
21552 * s390.h (regclass_map): Likewise.
21553 * sh.c (shift_amounts): Likewise.
21554 * sh.md (rotlsi3): Likewise.
21556 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
21558 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
21559 (ne0+5): Use new clobber to generate proper shift pattern.
21560 Patch by Michael Matz <matz@kde.org>.
21562 2002-03-09 Andreas Schwab <schwab@suse.de>
21564 * gcc.c (validate_all_switches): Also handle `%W{...}'.
21566 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
21568 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
21570 2002-03-09 Jakub Jelinek <jakub@redhat.com>
21573 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
21574 even for non-representable constants.
21576 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21578 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
21579 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
21580 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
21581 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
21582 (pop_function_context): Compute MAY_SHARE parameter for
21584 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
21585 (gen_mem_addressof): Call fixup_var_refs with new parm.
21587 * combine.c (make_extraction): Don't make extension of CONST_INT.
21589 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
21591 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
21592 in o32 and o64 ABIs.
21593 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
21594 but getting fixed-size structs passed in registers regardless of
21595 padding in o32 and o64 ABIs.
21597 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
21598 offset before loading address of argument passed by transparent
21601 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
21603 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
21605 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
21607 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
21608 marker such that registers after it are saved.
21610 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21612 * sparc.c (arith_4096_operand): Fix error in last change.
21614 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
21616 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
21617 defaults for MEABI.
21619 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
21621 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
21624 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
21626 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
21628 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
21630 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
21631 removed; fix return value.
21632 * combine.c (combine_instructions): Dirtify blocks where we failed to
21633 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
21634 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
21636 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21638 * gcse.c (insert_insn_end_bb): Fix typo in last change.
21640 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
21642 * recog.c (peephole2_optimize): Re-distribute EH edges.
21644 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
21646 * expr.c (expand_expr): Use unsave lang hook.
21647 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
21648 (LANG_HOOKS_INITIALIZER): Update.
21649 * langhooks.h (struct lang_hooks): New hook unsave.
21650 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
21651 (unsave_expr_1): Remove unused lang_unsave_expr_now.
21652 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
21653 (unsave_expr_now): Remove.
21654 * tree.h (unsave_expr_now, lang_unsave,
21655 lang_unsave_expr_now): Remove.
21658 2002-03-08 Andreas Jaeger <aj@suse.de>
21660 * flow.c (propagate_block_delete_insn): Remove unused variable.
21662 2002-03-08 Kazu Hirata <kazu@hxi.com>
21664 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
21665 insn length for memory load/store.
21667 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
21669 * doc/install.texi (--with-libiconv-prefix): Document.
21671 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
21673 * doc/sourcebuild.texi: Fix typo.
21675 2002-03-08 Jakub Jelinek <jakub@redhat.com>
21678 * builtins.c (std_expand_builtin_va_arg): Do all computations on
21681 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21683 * rtl.c (copy_most_rtx): Move from here ...
21684 * emit-rtl.c (copy_most_rtx): ... to here.
21686 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
21688 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
21689 SUBTARGET_CPP_SIZE_SPEC.
21690 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
21692 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
21694 2002-03-07 Matt Hiller <hiller@redhat.com>
21696 * gensupport.c (first_dir_md_include): Renamed from include;
21697 change all references.
21698 (last_dir_md_include): Renamed from last_include; change all
21700 (init_md_reader): Unconditionally initialize base_dir whether or
21701 not filename is a relative path.
21703 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
21705 * config/fp-bit.c (_unord_f2): Compile it in even if
21706 US_SOFTWARE_GOFAST is enabled.
21708 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
21709 NULL_RTX. Set all HFmode operations as NULL_RTX.
21710 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
21711 NULL_RTX, try reversing the comparison and the operands.
21713 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
21715 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
21716 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
21719 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
21721 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
21723 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
21725 * basic-block.h (fixup_abnormal_edges): Declare.
21726 * reload1.c (fixup_abnormal_edges): New function.
21727 * reg-stack.c (convert_regs): Use it.
21729 * gcse.c (insert_insn_end_bb): Handle trapping insns.
21731 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
21733 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
21735 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
21736 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
21737 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
21738 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
21739 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
21740 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
21741 unless x and y could be infinite.
21742 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
21743 Check that the common type of both arguments is a real, even for
21744 targets without unordered comparisons. Allow an integer argument
21745 to be compared against a real.
21746 (expand_tree_builtin): Use expand_unordered_cmp.
21747 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
21748 * cse.c (fold_rtx): Likewise. Fix indentation.
21749 * fold-const.c (fold_real_zero_addition_p): New.
21750 (fold): Use it, and the new HONOR_... macros.
21751 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
21752 * jump.c (reversed_comparison_code_parts): After searching for
21753 the true comparison mode, use HONOR_NANS to decide whether it
21754 can be safely reversed.
21755 (reverse_condition_maybe_unordered): Remove IEEE check.
21756 * simplify-rtx.c (simplify_binary_operation): Use the new macros
21757 to decide which simplifications are valid. Allow the following
21758 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
21759 and (a - -b) to (a + b).
21760 (simplify_relational_operation): Use HONOR_NANS.
21761 * doc/tm.texi: Document the MODE_HAS_... macros.
21763 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
21765 * combine.c (simplify_comparison): If simplifying a logical shift
21766 right and compare with constant, force the comparison to unsigned.
21768 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
21770 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
21772 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
21774 (alt_reg_names): Remove % for vrsave.
21776 2002-03-06 Richard Henderson <rth@redhat.com>
21778 PR optimization/5844
21779 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
21780 if used indicates we've already emitted one copy of an operand.
21781 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
21782 (gen_split): Supply a non-null used.
21784 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
21786 * reload1.c (reload): Unshare all rtl after reload is done.
21788 * simplify-rtx.c (simplify_plus_minus): Do not abort,
21789 but simply fail if the expression is too complex to simplify.
21790 (simplify_gen_binary): Handle simplify_plus_minus failures.
21792 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
21794 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
21795 consistently call delete_trivially_dead_insns after CSE and GCSE;
21796 fix DFI_life dumping; do jump threading after liveness; do crossjumping
21797 after liveness2; update comment in last crossjumping.
21798 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
21800 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
21802 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
21803 after completing fast dead code elimination.
21805 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
21808 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
21810 * version.c: Fix misplaced leading blanks on first line.
21812 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
21814 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
21816 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
21818 * cfgcleanup.c (mentions_nonequal_regs): New function.
21819 (thread_jump): Use it.
21820 * toplev.c (rest_of_compilation): Run jump threading after
21823 2002-03-06 Jakub Jelinek <jakub@redhat.com>
21825 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
21828 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
21830 * predict.c (estimate_bb_frequencies): Do not reload the
21831 frequencies from notes.
21833 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
21835 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
21836 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
21838 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
21839 delete_noop_moves): Return indeger.
21840 * flow.c (ndead): New variable.
21841 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
21842 BB argument; update callers.
21843 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
21844 (life_analysis): Do not call purge_all_dead_edges.
21845 (update_life_info): Return number of deleted insns; print statistics.
21846 (update_life_info_in_dirty_blocks): likewise.
21847 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
21848 return number of insns deleted.
21850 * cse.c: Include timevar.h
21851 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
21852 iterate until stabilizes; print statistics; return number of killed
21854 * Makefile.in: (cse.o): Add timevar.h dependency
21855 * rtl.h (delete_trivially_dead_insns): New.
21856 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
21857 * toplev.c (rest_of_compilation): Update callers.
21859 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
21860 (try_optimize_cfg): Do not update liveness.
21861 (cleanup-cfg): Loop until try_optimize_cfg and dead code
21862 removal stabilizes; use delete_trivially_dead_insns.
21864 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
21866 2002-03-05 Zack Weinberg <zack@codesourcery.com>
21868 * cppmain.c (setup_callbacks): Disable #pragma and #ident
21869 callbacks when processing assembly language.
21871 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
21873 * pa.h (ASM_FILE_END): Define.
21874 * som.h (ASM_FILE_END): Delete.
21876 * pa.c (function_arg): Don't pass floats in general registers in
21877 indirect calls if TARGET_ELF32.
21879 2002-03-05 Richard Henderson <rth@redhat.com>
21881 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
21883 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
21885 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
21887 2002-03-05 Jakub Jelinek <jakub@redhat.com>
21889 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
21890 -r command line. Don't hide any symbols if not building
21893 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
21895 * cfg.c (dump_flow_info): Warn about profile mismatches.
21896 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
21897 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
21899 2002-03-05 Jakub Jelinek <jakub@redhat.com>
21901 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
21902 wide volatile memory by parts.
21904 2002-03-05 Jakub Jelinek <jakub@redhat.com>
21906 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
21909 2002-03-05 Richard Henderson <rth@redhat.com>
21911 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
21913 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
21915 * toplev.c (documented_lang_options): Document more
21916 language-specific options.
21917 * doc/invoke.texi (Warning Options): Correct documentation for
21918 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
21919 * c-decl.c (c_decode_option): Use a table to handle warning options.
21921 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
21923 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
21924 parameter to mmix_encode_section_info.
21925 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
21926 relocatably. Always produce ELF, not mmo if linking relocatably.
21927 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
21928 first is non-zero, don't add symbol prefix.
21929 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
21930 prototype accordingly.
21932 2002-03-04 Krister Walfridsson <cato@df.lth.se>
21934 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
21936 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
21938 * configure.in: Increase required makeinfo version to 4.1.
21939 * configure: Regenerate.
21941 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
21943 * .cvsignore: Remove *.info* and genrtl*; these files are generated
21946 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
21948 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
21949 * doc/invoke.texi: Fix @math uses.
21951 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
21953 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
21956 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
21958 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
21959 (powerpc-*-eabisimaltivec*): Same.
21961 * config/rs6000/t-ppcendian: New.
21963 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21965 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
21966 nonimmediate_src_operand and nonimmediate_lsrc_operand to
21967 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
21969 2002-03-03 Richard Henderson <rth@redhat.com>
21971 * toplev.c (rest_of_decl_compilation): Revert last two changes.
21973 2002-03-03 Zack Weinberg <zack@codesourcery.com>
21975 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
21976 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
21977 tree.c, config/m68k/m68k.c:
21978 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
21979 REAL_ARITHMETIC blocks unconditional. Delete some further
21980 #ifdef blocks predicated on REAL_ARITHMETIC.
21981 * flags.h, toplev.c: Delete remaining references to
21982 flag_pretend_float.
21984 * doc/invoke.texi: Remove documentation of -fpretend-float.
21985 * doc/tm.texi: Describe the various REAL_* macros as provided by
21986 real.h, not by the target configuration files.
21988 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
21989 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
21990 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
21991 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
21992 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
21993 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
21994 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
21995 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
21996 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
21997 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
21998 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
21999 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
22000 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
22001 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
22002 config/xtensa/xtensa.h:
22003 Do not define, undefine, or mention in comments any of
22004 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
22005 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
22006 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
22007 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
22008 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
22009 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
22010 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
22011 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
22012 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
22014 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22016 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
22017 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
22018 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
22019 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
22020 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
22021 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
22023 * defaults.h (BITS_PER_WORD): Define.
22024 * doc/tm.texi (BITS_PER_WORD): Document default value.
22026 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
22027 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
22028 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
22030 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22032 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
22033 lieu of explicit sizeof/sizeof.
22034 * i386.c (override_options, ix86_init_mmx_sse_builtins,
22035 ix86_expand_builtin): Likewise.
22036 * mips.c (mips_add_gc_roots): Likewise.
22037 * mmix.c (mmix_output_condition): Likewise.
22038 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
22039 altivec_init_builtins): Likewise.
22040 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
22041 * cppexp.c (Nsuff, parse_number): Likewise.
22042 * cppinit.c (builtin_array_end): Likewise.
22043 * gcc.c (n_default_compilers, process_command): Likewise.
22044 * genpreds.c (output_predicate_decls): Likewise.
22045 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
22046 * lcm.c (N_ENTITIES): Likewise.
22047 * stor-layout.c (set_sizetype): Likewise.
22049 2002-03-03 Richard Henderson <rth@redhat.com>
22051 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
22052 for types or labels.
22054 2002-03-03 Richard Henderson <rth@redhat.com>
22056 * c-decl.c (start_decl): Initialized variables are not common.
22058 2002-03-02 Per Bothner <per@bothner.com>
22060 * gcc.c (option_map): Suport new --bootclasspath option.
22061 --CLASSPATH is now just an alias for --classpath.
22063 2002-03-02 Richard Henderson <rth@redhat.com>
22065 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
22066 load if "internal" visibility.
22067 * doc/extend.texi: Document visibility meanings.
22069 2002-03-02 Richard Henderson <rth@redhat.com>
22071 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
22072 to functions as well.
22074 2002-03-02 Richard Henderson <rth@redhat.com>
22076 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
22077 (handle_visibility_attribute): Don't call assemble_visibility.
22078 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
22079 without asmspec. Invoke assemble_alias when needed.
22080 * varasm.c (maybe_assemble_visibility): New.
22081 (assemble_start_function, assemble_variable, assemble_alias): Use it.
22083 2002-03-02 Richard Henderson <rth@redhat.com>
22085 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
22086 invoke ENCODE_SECTION_INFO with first call flag.
22088 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
22089 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
22090 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
22091 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
22092 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
22093 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
22094 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
22095 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
22096 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
22097 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
22098 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
22099 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
22100 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
22101 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
22102 config/mcore/mcore-protos.h, config/mcore/mcore.c,
22103 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
22104 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
22105 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
22106 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
22107 config/sh/sh.h, config/sparc/sparc.h,
22108 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
22109 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
22110 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
22111 FIRST argument. As needed, examine it and do nothing.
22113 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
22114 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
22115 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
22117 * config/arm/t-pe (pe.o): Add dependencies.
22119 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22121 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
22122 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
22123 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
22124 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
22125 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
22126 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
22127 * defaults.h (BITS_PER_UNIT): Define.
22128 * doc/tm.texi (BITS_PER_UNIT): Document default value.
22130 2002-03-02 Kazu Hirata <kazu@hxi.com>
22132 * config/h8300/h8300-protos.h: Add a prototype for
22133 compute_a_shift_length.
22134 * config/h8300/h8300.c (h8300_asm_insn_count): New.
22135 (compute_a_shift_length): Likewise.
22136 (h8300_adjust_insn_length): Do not adjust insn length of shift
22138 * config/h8300/h8300.md (anonymous shift patterns): Use
22139 compute_a_shift_length.
22141 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22143 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
22144 trunc_int_for_mode.
22146 * emit-rtl.c (offset_address): Call update_temp_slot_address.
22148 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22150 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
22151 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
22152 * flags.h (flag_zero_initialized_in_bss): Declare.
22153 * toplev.c (flag_zero_initialized_in_bss): New flag.
22154 (lang_independent_options): Add flag_zero_initialized_in_bss.
22155 * tree.c (initializer_zerop): New function.
22156 * tree.h (initializer_zerop): Declare.
22157 * varasm.c (assemble_variable): If we can emit bss, put zero
22158 initializers in the bss section.
22160 2002-03-02 Alan Modra <amodra@bigpond.net.au>
22162 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
22163 like more than one symbol per .weak directive.
22165 2002-03-01 Richard Henderson <rth@redhat.com>
22167 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
22168 adjust argument_pointer by pretend_args_size.
22169 (ia64_va_start): Adjust va_start address by -pretend_args_size.
22171 2002-03-01 Kazu Hirata <kazu@hxi.com>
22173 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
22175 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
22177 * toplev.c (rest_of_compilation): Delete dead jumptables before
22179 * flow.c (delete_dead_jumptables): Make global.
22180 * rtl.h (delete_dead_jumptables): Declare.
22182 2002-03-01 David Edelsohn <edelsohn@gnu.org>
22184 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
22185 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
22186 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
22188 2002-03-01 Kazu Hirata <kazu@hxi.com>
22190 * config/h8300/h8300-protos.h: Fix formatting.
22191 * config/h8300/h8300.c: Likewise.
22192 * config/h8300/h8300.h: Likewise.
22194 2002-03-01 Kazu Hirata <kazu@hxi.com>
22196 * config/h8300/h8300.c (print_operand): Support 16-bit
22197 constant addresses.
22198 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
22200 2002-02-28 Richard Henderson <rth@redhat.com>
22202 * expmed.c (store_bit_field): Prevent generation of CONCATs;
22203 pun complex values as integers; use gen_lowpart instead of
22205 (extract_bit_field): Likewise.
22207 2002-03-01 Alan Modra <amodra@bigpond.net.au>
22208 David Edelsohn <edelsohn@gnu.org>
22210 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
22211 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
22212 (SUPPORTS_WEAK): Likewise.
22213 * output.h (add_weak): Add tree param.
22214 * varasm.c (add_weak): Likewise. Save decl.
22215 (struct weak_syms): Add decl field.
22216 (mark_weak_decls): New function.
22217 (init_varasm_once): ggc_add_root mark_weak_decls.
22218 (assemble_start_function): Use ASM_WEAKEN_DECL.
22219 (assemble_variable): Likewise.
22220 (assemble_alias): Likewise.
22221 (declare_weak): Pass decl to add_weak.
22222 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
22223 (remove_from_pending_weak_list): Declare and define for
22225 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
22226 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
22227 * defaults.h (SUPPORTS_WEAK): Likewise.
22228 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
22229 .weak for code sym. Do emit .size for descriptor sym.
22230 (ASM_DECLARE_FUNCTION_SIZE): Define.
22231 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
22232 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
22233 .lglobl unless TARGET_XCOFF. Formatting fixes.
22234 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
22235 .weak for code sym.
22236 (HANDLE_PRAGMA_WEAK): Remove.
22237 (ASM_WEAKEN_LABEL): Remove.
22238 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
22240 2002-03-01 Jason Merrill <jason@redhat.com>
22242 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
22243 (TARGET_EXPR_CLEANUP): New macro.
22245 2002-02-28 Steve Ellcey <sje@cup.hp.com>
22247 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
22248 to take ptr_extend into account as third type of extension.
22249 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
22250 fields used by SUBREG_PROMOTED_UNSIGNED_P.
22251 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
22252 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
22253 * calls.c (precompute_arguments): Use new macro.
22254 (expand_call): Ditto.
22255 * combine.c (nonzero_bits): Ditto.
22256 (record_promoted_value): Ditto.
22257 * expr.c (store_expr): Ditto.
22258 (expand_expr): Ditto.
22259 * function.c (assign_parms): Ditto.
22261 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
22263 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
22264 override -shared and -shared-libgcc.
22266 2002-02-28 David O'Brien <obrien@FreeBSD.org>
22268 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
22270 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
22273 2002-02-28 Richard Henderson <rth@redhat.com>
22275 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
22276 4 cycle latency from MM producers.
22277 (ia64_internal_sched_reorder): Likewise with pipeline flush.
22279 2002-02-28 Jakub Jelinek <jakub@redhat.com>
22281 * mklibgcc.in: Don't use GNU make extension.
22283 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
22285 * c-parse.in (STATIC): New terminal.
22286 (scspec): New non-terminal. Update productions accordingly.
22287 (program): Remove bogus ifc / end ifc.
22288 (array_declarator): Simplify production using STATIC.
22290 2002-02-28 Jim Meyering <meyering@lucent.com>
22292 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
22293 \a still means TARGET_BELL.
22295 2002-02-28 Richard Henderson <rth@redhat.com>
22297 * haifa-sched.c (sched_emit_insn): New.
22298 (schedule_block): Use last_scheduled_insn to track last insn.
22299 * sched-int.h (sched_emit_insn): Prototype.
22300 * config/ia64/ia64.c (last_issued): Remove.
22301 (ia64_variable_issue): Don't set it.
22302 (nop_cycles_until): Use sched_emit_insn.
22304 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
22306 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
22307 extended constants.
22309 2002-02-28 Kazu Hirata <kazu@hxi.com>
22311 * config/h8300/h8300.c: Fix formatting.
22312 * config/h8300/h8300.h: Likewise.
22314 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
22316 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
22317 which may overwrite the high byte of the frame pointer.
22319 2002-02-28 Bo Thorsen <bo@suse.de>
22321 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
22322 (STARTFILE_SPEC): Add 64 bit files.
22323 (ENDFILE_SPEC): Likewise.
22325 2002-02-28 Jason Merrill <jason@redhat.com>
22327 * c-decl.c (finish_function): Only warn about missing return
22328 statement with -Wreturn-type.
22330 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
22332 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
22334 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
22335 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
22337 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
22339 * basic-block.h (BB_REACHABLE): Renumber.
22340 (BB_DIRTY, BB_NEW): New flags.
22341 (clear_bb_flags): Declare.
22342 (update_life_info_in_dirty_blocks): Declare.
22343 * cfg.c (clear_bb_flags): New function.
22344 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
22345 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
22346 reorder_insns, emit_insn_after): Mark block as dirty.
22347 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
22348 (update_life_info_in_dirty_blocks): New function.
22349 * recog.c (apply_change_group): Dirtify block.
22351 * cse.c (cse_insn): Reorder emitting of jump insn to keep
22353 * gcse.c (delete_null_pointer_checks): Likewise.
22355 * toplev.c (dump_file_index): Move cse2 after bp,
22357 (dump_file_info): Similary.
22358 (rest_of_compilation): Avoid most of CFG rebuilds;
22359 do first if converision after null pointer checks, do cse2
22360 after branch prediction; avoid full liveness rebuild after
22361 initializing subregs.
22362 * invoke.texi (-d options): Document -du, renumber.
22364 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
22365 (notice_new_block): Do not set BB_UPDATE_LIFE.
22366 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
22367 merge_blocks_move_successor_nojumps, merge_blocks,
22368 try_crossjump_to_edge): Likewise.
22369 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
22370 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
22371 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
22372 (merge_of_block): Do not use life_data_ok.
22373 (find_if_case_1): Do not use SET_UPDATE_LIFE.
22374 (if_convert): Use BB_DIRTY mechanizm to update life.
22375 * lcm.c (optimize_mode_switching): Update
22376 update_life_info_in_dirty_blocks
22378 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
22380 * Makefile.in (integrate.o): Update.
22381 * c-decl.c (copy_lang_decl): Rename.
22382 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
22383 * integrate.c: Include langhooks.h.
22384 (copy_decl_for_inlining): Update to use langhook.
22385 * langhooks-def.h (lhd_do_nothing_t,
22386 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
22387 (LANG_HOOKS_INITIALIZER): Update.
22388 * langhooks.c (lhd_do_nothing_t): New.
22389 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
22390 * tree.h (copy_lang_decl): Remove.
22392 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
22394 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
22396 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
22397 POST_DEC, and POST_MODIFY.
22399 2002-02-27 Zack Weinberg <zack@codesourcery.com>
22401 * c-typeck.c (digest_init): Remove unused parameter; all
22404 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
22406 * expmed.c (expand_shift): Correctly test for low part of a
22409 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
22411 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
22412 insn UIDs with insn addresses.
22414 2002-02-27 Zack Weinberg <zack@codesourcery.com>
22416 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
22417 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
22418 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
22419 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
22420 gcc.c, toplev.c: Delete code implementing -traditional mode.
22422 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
22423 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
22424 Document removal of -traditional mode for compilation, and
22425 remove documentation only relevant to that mode.
22427 * config/nextstep.h, config/ptx4.h, config/svr4.h,
22428 config/convex/convex.h, config/d30v/d30v.h,
22429 config/i386/dgux.h, config/i386/osf1elf.h,
22430 config/i386/osfelf.h, config/i386/osfrose.h,
22431 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
22432 config/m68k/hp310.h, config/m88k/dgux.h,
22433 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
22434 config/m88k/m88k.h, config/m88k/openbsd.h,
22435 config/mips/abi64.h, config/mips/osfrose.h,
22436 config/mips/svr4-5.h, config/mips/svr4-t.h,
22437 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
22438 config/stormy16/stormy16.h: Remove all references to
22439 -traditional from target specs. Delete all mention of the
22440 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
22441 delete a couple of commented-out definitions of
22442 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
22445 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
22446 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
22448 2002-02-27 Zack Weinberg <zack@codesourcery.com>
22450 * mklibgcc.in: Don't use \n in a line subject to
22451 interpretation by echo.
22453 2002-02-27 Graham Stott <grahams@redhat.com>
22455 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
22458 * loop.c (prescan_loop): Handle PARALLEL.
22460 * unroll.c (loop_iterations): Return 0 if the add_val for
22463 * final.c (output_operand_lossage): Constify PFX_STR.
22465 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
22467 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
22469 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
22470 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
22472 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
22474 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
22476 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
22478 * cpplex.c (_cpp_lex_token): Handle directives in macro
22480 * cpplib.c (_cpp_handle_directive): Save and restore state
22481 if parsing macro args when entering a directive.
22482 * cppmacro.c (collect_args): No need to handle directives
22483 in macro arguments.
22484 (enter_macro_context, replace_args): Use the original macro
22485 definition in case it was redefined whilst collecting arguments.
22487 * cpp.texi: Update.
22489 2002-02-26 David Edelsohn <edelsohn@gnu.org>
22491 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
22492 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
22493 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
22495 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
22496 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
22497 (load_toc_v4_PIC_2): Same.
22499 2002-02-26 Alan Modra <amodra@bigpond.net.au>
22501 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
22503 2002-02-26 Richard Henderson <rth@redhat.com>
22505 * config/alpha/alpha.md (ashldi_se): Re-enable.
22507 2002-02-26 Richard Henderson <rth@redhat.com>
22509 * config/alpha/alpha.c (alpha_encode_section_info): Examine
22510 MODULE_LOCAL_P; improve commentary.
22512 2002-02-26 Zack Weinberg <zack@codesourcery.com>
22514 * doc/cpp.texi: Clarify documentation of relationship between
22515 #line and #include.
22517 2002-02-26 Kazu Hirata <kazu@hxi.com>
22519 * config/h8300/h8300-protos.h: Update the prototype for
22520 compute_logical_op_length. Add the prototype for
22521 compute_logical_op_cc.
22522 * config/h8300/h8300.c (compute_logical_op_length): Figure out
22523 code from operands.
22524 (compute_logical_op_cc): New.
22525 * config/h8300/h8300.md: Combine all the logical op patterns
22526 in HImode and SImode. Use compute_logical_op_cc.
22528 2002-02-26 Kelley Cook <kelleycook@comcast.net>
22530 * config/i386/i386.c (print_operand): Don't append ATT-style
22531 length suffixs to x87 opcodes when in Intel mode.
22533 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
22535 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
22536 (init_emit_once): Update calls.
22537 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
22538 (init_syntax_once): Prototype.
22540 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
22542 * pa-linux.h (LIB_SPEC): Update definition.
22543 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
22545 2002-02-26 Richard Henderson <rth@redhat.com>
22547 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
22548 if we emitted a stop bit.
22550 2002-02-26 Jakub Jelinek <jakub@redhat.com>
22552 * configure.in (libgcc_visibility): Substitute.
22553 * configure: Rebuilt.
22554 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
22555 defined symbols .hidden.
22557 2002-02-26 Jakub Jelinek <jakub@redhat.com>
22559 * attribs.c (c_common_attribute_table): Add visibility.
22560 (handle_visibility_attribute): New function.
22561 * varasm.c (assemble_visibility): New function.
22562 * output.h (assemble_visibility): Add prototype.
22563 * tree.h (MODULE_LOCAL_P): Define.
22564 * crtstuff.c (__dso_handle): Use visibility attribute.
22565 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
22566 for MODULE_LOCAL_P symbols too.
22567 * config/ia64/ia64.c (ia64_encode_section_info): Handle
22568 MODULE_LOCAL_P symbols the same way as local symbols.
22569 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
22570 into .sdata/.sbss by the user.
22571 * doc/extend.texi (Function Attributes): Document visibility
22574 2002-02-26 Jakub Jelinek <jakub@redhat.com>
22577 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
22578 STRING_CST initializer spanning the whole variable without
22580 If expand_expr returned MEM, don't use it.
22582 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
22584 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
22585 generate a die for the lexical block.
22587 2002-02-26 Kazu Hirata <kazu@hxi.com>
22589 * config/h8300/h8300-protos.h: Add a prototype for
22590 compute_logical_op_length.
22591 * config/h8300/h8300.c (compute_logical_op_length): New.
22592 * config/h8300/h8300.md (anonymous logical patterns): Use
22593 compute_logical_op_length for length.
22595 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
22597 * dwarf2out.c (modified_type_die): Do not call type_main_variant
22599 (gen_type_die): Same.
22601 * attribs.c (handle_vector_size_attribute): Set debug information.
22603 2002-02-26 Daniel Egger <degger@fhm.edu>
22605 * config/rs6000/rs6000.md: Swap define_insn attributes to
22606 fix incorrect generation of merge high instructions instead
22609 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
22611 * c-typeck.c (really_start_incremental_init): Use
22612 bitsize_zero_node for vectors.
22614 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
22616 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
22617 ("*set_vrsave_internal"): Same.
22619 2002-02-25 Richard Henderson <rth@redhat.com>
22621 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
22622 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
22624 2002-02-25 Jakub Jelinek <jakub@redhat.com>
22627 * config/i386/i386.c (ix86_return_pops_args): Only pop
22628 fake structure return argument if it was passed on the stack.
22630 2002-02-25 Jason Merrill <jason@redhat.com>
22632 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
22635 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
22637 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
22638 link with shared_name only.
22639 * doc/invoke.texi (Link Options): Document new behavior.
22641 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
22643 * c-typeck.c (push_init_level): Handle vectors.
22645 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
22647 * config/sparc/sparc.c (const64_high_operand): Zero-extend
22648 operands of SPARC_SETHI_P.
22649 (input_operand): Likewise.
22650 (sparc_emit_set_const32): Likewise.
22651 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
22652 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
22653 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
22654 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
22655 (movdi_insn_sp64_vis): Likewise.
22656 (movdi split, movdf split): Use SETHI32.
22657 * doc/md.texi: Document SPARC constraints L, M and N.
22659 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
22661 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
22662 ("*set_vrsave_internal"): use mfspr for Darwin.
22664 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
22665 gen_get_vrsave_internal.
22667 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22669 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
22671 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
22673 * cpplex.c (cpp_interpret_charconst): Get signedness or
22674 otherwise of wide character constants correct.
22675 * cppexp.c (lex): Get signedness of wide charconsts correct.
22677 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22679 * optabs.c (widen_operand): Only call convert_modes for
22680 promoted SUBREG if signedness matches.
22681 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
22683 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
22685 * cpplib.c (glue_header_name): Use local buffer to build up
22688 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
22690 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
22692 2002-02-23 Kazu Hirata <kazu@hxi.com>
22694 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
22695 H8/300[HS] separately.
22696 * config/h8300/h8300.md: Remove the early clobber constraint
22697 from bit field patterns.
22699 2002-02-23 Kazu Hirata <kazu@hxi.com>
22701 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
22703 (mulhisi3): Likewise.
22704 (umulqisi3): Likewise.
22705 (umulhisi3): Likewise.
22707 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
22709 * cppinit.c (output_deps): Correct test for stdout output.
22710 (init_dependency_output): Cure warning.
22712 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22714 * expr.c (store_expr): When converting expression to promoted
22715 equivalent type, allow using SUBREG_REG of TARGET as the target
22716 of the expansion of EXP.
22717 * loop.c (basic_induction_var, case SUBREG): Always look inside.
22718 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
22719 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
22720 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
22721 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
22723 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
22725 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
22726 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
22727 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
22729 2002-02-23 Jakub Jelinek <jakub@redhat.com>
22731 PR optimization/5747
22732 * loop.c (scan_loop): Update reg info if move_movables created new
22735 2002-02-23 David Edelsohn <edelsohn@gnu.org>
22737 * gcc.c (init_gcc_spec): Revert last change.
22739 2002-02-23 David Edelsohn <edelsohn@gnu.org>
22741 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
22742 gpc_reg_operand constraint.
22744 2002-02-23 Alan Modra <amodra@bigpond.net.au>
22746 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
22747 Simplify comparison of `low'.
22748 (add_operand): Fix formatting.
22749 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
22750 (mask_operand): Disallow mask to wrap in 64-bit mode.
22751 (rs6000_stack_info): Remove redundant test setting push_p.
22752 (output_toc): Fix formatting.
22753 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
22754 cc_reg_not_cr0_operand constraint.
22755 (booldi3, boolcdi3 splitters): Same.
22757 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
22759 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
22761 2002-02-22 David Edelsohn <edelsohn@gnu.org>
22763 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
22764 gcc invoked with -shared-libgcc.
22766 2002-02-22 Jakub Jelinek <jakub@redhat.com>
22769 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
22770 decl if any of elements was TREE_USED.
22772 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
22774 * config/sparc/sol2.h: Don't include sys/mman.h.
22775 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
22776 (arith_4096_operand): Don't throw high bits away.
22777 (const64_operand): Take sign extension of CONST_INTs into account.
22778 (const64_high_operand, sparc_emit_set_const32): Likewise.
22779 (GEN_HIGHINT64): Likewise.
22780 (sparc_emit_set_const64_quick1): Likewise.
22781 (const64_is_2insns): Likewise.
22782 (print_operand): Use trunc_int_for_mode for sign extension.
22783 * config/sparc/sparc.h (SMALL_INT32): Likewise.
22784 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
22785 chars. Assume CONST_INT is already properly sign-extended.
22786 (movdi split): Sign-extend each SImode part.
22787 (andsi3 split): Don't mask high bits off, so that result
22788 remains properly sign-extend.
22789 (iorsi3 split): Likewise.
22790 (xorsi3 split): Likewise.
22792 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
22794 * fold-const.c (fold): Fix typo in comments.
22796 2002-02-21 Diego Novillo <dnovillo@redhat.com>
22798 * Makefile.in (langhooks.o): Update dependencies.
22800 2002-02-21 Diego Novillo <dnovillo@redhat.com>
22802 * langhooks.c: Include flags.h.
22804 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
22806 * testsuite/gcc.dg/attr-alwaysinline.c: New.
22808 * c-common.c (c_common_post_options): Set inline trees by
22811 * doc/extend.texi (Function Attributes): Document always_inline
22813 Update documentation about inlining when not optimizing.
22815 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
22817 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
22818 unless DECL_ALWAYS_INLINE.
22820 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
22821 unless DECL_ALWAYS_INLINE.
22822 (c_disregard_inline_limits): Disregard if always_inline set.
22824 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
22825 Disregard if always_inline set.
22826 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
22827 unless DECL_ALWAYS_INLINE.
22829 * attribs.c (handle_always_inline_attribute): New.
22830 (c_common_attribute_table): Add always_inline.
22832 * config/rs6000/altivec.h: Add prototypes for builtins
22833 requiring the always_inline attribute.
22835 2002-02-21 Eric Christopher <echristo@redhat.com>
22837 * expmed.c (store_bit_field): Try to simplify the subreg
22838 before generating a new one when when the mode size of
22839 value is less than maxmode.
22841 2002-02-21 Richard Henderson <rth@redhat.com>
22843 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
22844 than gen_rtx_PLUS to form the sum.
22845 * explow.c (force_reg): Rearrange to not allocate new pseudo
22846 when force_operand returns a register.
22847 * expr.c (expand_assignment): Allow offset_rtx expansion to
22848 return a sum. Do not force addresses into registers.
22849 (expand_expr): Likewise.
22850 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
22851 to canonicalize arithmetic that didn't simpify.
22852 (simplify_plus_minus): New argument force; update
22853 all callers. Don't split CONST unless we can do something with it,
22854 and wouldn't lose the constness of the operands.
22856 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
22857 that we generated earlier.
22859 2002-02-21 Tom Tromey <tromey@redhat.com>
22861 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
22862 (output_line_info): Use constant `1', with a long explanatory
22864 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
22866 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
22868 * jump.c (redirect_jump): If old label has no UID, don't try to
22871 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
22873 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
22874 If input is constant, do shifts at compile time.
22876 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
22878 * doc/extend.texi: Fix some more overfull hboxes.
22880 2002-02-21 Jakub Jelinek <jakub@redhat.com>
22882 PR optimization/4994
22883 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
22886 2002-02-21 Jakub Jelinek <jakub@redhat.com>
22889 * expr.h (expand_and): Add mode argument.
22890 * expmed.c (expand_and): Add mode argument.
22891 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
22892 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
22893 * except.c (expand_builtin_extract_return_addr): Likewise.
22894 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
22895 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
22896 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
22897 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
22898 * config/c4x/c4x.md: Use GEN_INT (x) instead of
22899 gen_rtx (CONST_INT, VOIDmode, x).
22901 2002-02-21 Jakub Jelinek <jakub@redhat.com>
22904 * stmt.c (warn_if_unused_value): Move side effects test once more.
22906 2002-02-20 Torbjorn Granlund <tege@swox.com>
22908 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
22909 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
22911 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
22913 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
22914 SUBREG or ZERO_EXTEND.
22916 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
22918 * sh.h (current_function_anonymous_args): Remove.
22919 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
22920 of current_function_varargs and current_function_stdarg is set.
22921 * sh.c (sh_expand_prologue): Check current_function_varargs /
22922 current_function_stdarg / TARGET_SH5 instead of
22923 current_function_anonymous_args.
22925 * sh64.h (TARGET_VERSION): Define.
22927 2002-02-20 David Edelsohn <edelsohn@gnu.org>
22929 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
22930 VRSAVE_REGNO on TARGET_ALTIVEC.
22932 2002-02-20 Alan Modra <amodra@bigpond.net.au>
22934 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
22935 bits of SImode const_int.
22936 (includes_rshift_p): Likewise.
22937 (print_operand): Call mask_operand and mask64_operand with correct
22939 (rs6000_output_function_epilogue): Pad traceback table to word.
22940 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
22941 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
22942 mask64_operand with correct mode.
22943 (FUNCTION_ARG_REGNO_P): Correct parentheses.
22945 2002-02-20 Jakub Jelinek <jakub@redhat.com>
22948 * varasm.c (get_pool_constant_mark): New.
22949 * rtl.h (get_pool_constant_mark): Add prototype.
22950 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
22951 be represented if it has not been output.
22953 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
22955 * combine.c (do_SUBST): Sanity check substitutions of
22956 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
22957 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
22958 CONST_INT into its operand.
22959 (known_cond): Likewise, for ZERO_EXTEND.
22960 * simplify-rtx.c (simplify_unary_operation): Fix condition to
22961 allow for simplification of wide modes. Reject CONST_INTs in
22962 ZERO_EXTEND when their actual mode is not given.
22964 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
22966 * c-decl.c (pushdecl): If no global declaration is found for an
22967 extern declaration in block scope, try a limbo one.
22969 2002-02-20 Jakub Jelinek <jakub@redhat.com>
22972 * c-common.c (pointer_int_sum): Moved from...
22973 * c-typeck.c (pointer_int_sum): ...here.
22974 * c-common.h (pointer_int_sum): Add prototype.
22976 2002-02-20 Jakub Jelinek <jakub@redhat.com>
22979 * c-decl.c (duplicate_decls): Return 0 if issued error about
22982 2002-02-20 Roger Sayle <roger@eyesopen.com>
22983 Jakub Jelinek <jakub@redhat.com>
22986 * tree.c (host_integerp): Ensure that the constant integer is
22987 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
22988 when pos is zero or non-zero respectively. Clarify comment.
22989 * c-format.c (check_format_info_recurse): Fix host_integerp
22990 usage; the pos argument should be zero when assigning to a
22991 signed HOST_WIDE_INT.
22993 2002-02-20 Richard Henderson <rth@redhat.com>
22995 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
22996 of the operand, rather than assuming TImode.
22997 (ix86_expand_binop_builtin): Cope with commutative patterns
22998 using nonimmediate_operand for both operands.
22999 (ix86_expand_timode_binop_builtin): Likewise.
23000 (ix86_expand_store_builtin): Validate operand 1.
23001 (ix86_expand_unop1_builtin): Likewise.
23003 2002-02-20 Philip Blundell <philb@gnu.org>
23006 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
23008 2002-02-20 Richard Henderson <rth@redhat.com>
23011 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
23013 2002-02-20 Tom Tromey <tromey@redhat.com>
23015 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23016 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23017 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23018 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23019 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
23022 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
23024 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
23025 for (const_int 0) in X not just INTVAL.
23027 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
23029 * doc/extend.texi: Avoid or reduce overfull hboxes.
23031 2002-02-20 Diego Novillo <dnovillo@redhat.com>
23033 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
23034 operations if the field does not start at a mode boundary.
23036 2001-02-20 Joel Sherrill <joel@OARcorp.com>
23038 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
23039 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
23040 Also done for -Acpu and -Amachine.
23042 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
23044 * cppinit.c (init_dependency_output): Take deps output file
23045 from -o if none given with -MF. Suppress normal output.
23046 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
23047 * doc/cpp.texi, doc/invoke.texi: Update.
23049 2002-02-19 Zack Weinberg <zack@codesourcery.com>
23051 * toplev.c (output_quoted_string): Write unprintable
23052 characters with octal escapes.
23054 2002-02-19 David Edelsohn <edelsohn@gnu.org>
23056 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
23057 really_call_used[VRSAVE_REGNO] if not Altivec.
23059 2002-02-19 Alan Modra <amodra@bigpond.net.au>
23061 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
23063 (constant_pool_expr_1): Fix formatting.
23064 (rs6000_legitimize_reload_address): Likewise.
23066 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23068 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
23069 now that we have one.
23071 2002-02-19 Zack Weinberg <zack@codesourcery.com>
23073 * tree.h (struct tree_common): Remove aux. Add unused_0 at
23074 end of first block of bitfields (which was only seven bits);
23075 rename dummy to unused_1; remove comment which is no longer true.
23077 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
23079 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
23081 2002-02-19 Philip Blundell <pb@nexus.co.uk>
23084 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
23088 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
23089 arm_is_longcall_p rather than inspecting call-type cookie
23091 (call_value_insn) [TARGET_THUMB]: Likewise.
23093 2002-02-19 Graham Stott <grahams@redhat.com>
23095 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
23097 2002-02-19 David Edelsohn <edelsohn@gnu.org>
23099 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
23100 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
23101 (FP_SAVE_INLINE): Delete.
23103 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
23104 * config/rs6000/eabi.asm: Remove ABI save restore routines.
23105 * config/rs6000/t-ppccomm: Build crtsavres.o.
23106 * config/rs6000/crtsavres.asm: New file.
23108 2002-02-19 Philip Blundell <philb@gnu.org>
23110 * config/arm/arm.c (use_return_insn): Don't reject interrupt
23112 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
23113 (output_return_instruction): Allow interrupt functions to return with
23114 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
23115 (arm_expand_prologue): Subtract 4 before stacking LR in an
23116 interrupt function.
23118 2002-02-19 Philip Blundell <pb@nexus.co.uk>
23120 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
23121 decl, not just FUNCTION_DECL.
23122 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
23123 (arm_assemble_integer): Likewise.
23124 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
23127 2002-02-19 matthew green <mrg@eterna.com.au>
23129 * config.gcc (sparc-*-netbsdelf*): Enable target.
23130 (sparc64-*-netbsd*): New target.
23131 * config/sparc/netbsd-elf.h: New file.
23132 * config/sparc/t-netbsd64: New file.
23134 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
23136 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
23138 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
23140 * doc/invoke.texi: explicitly list the style guidelines that
23141 -Weffc++ checks for.
23143 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
23145 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
23147 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
23150 * gcc.c (cpp_unique_options): Treat -o as indicating object file
23151 only if not -E. If -E, pass -o through to the preprocessor.
23153 2002-02-19 Kazu Hirata <kazu@hxi.com>
23155 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
23156 register number with an appropriate macro.
23158 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
23160 * doc/rtl.texi (Constants): Close @code tag.
23162 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
23164 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
23165 ("mmx_uavgv4hi3"): Same.
23166 ("pmulhrwv4hi3"): Same.
23168 * tree-inline.c (walk_tree): Handle vectors.
23170 * c-common.c (constant_expression_warning): Handle vectors.
23171 (overflow_warning): Same.
23173 * sched-deps.c (sched_analyze_2): Handle vectors.
23175 * rtlanal.c (rtx_unstable_p): Handle vectors.
23176 (rtx_varies_p): Same.
23177 (count_occurrences): Same.
23178 (regs_set_between_p): Same.
23179 (modified_between_p): Same.
23180 (modified_in_p): Same.
23181 (volatile_insn_p): Same.
23182 (volatile_refs_p): Same.
23183 (side_effects_p): Same.
23184 (may_trap_p): Same.
23185 (inequality_comparisons_p): Same.
23186 (replace_regs): Same.
23187 (computed_jump_p_1): Same.
23189 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
23191 (inner_mode_array): New.
23192 (copy_rtx): Handle vectors.
23193 (copy_most_rtx): Same.
23194 (rtx_equal_p): Same.
23195 (get_mode_alignment): Adjust for vectors.
23197 * resource.c (mark_referenced_resources): Handle vectors.
23198 (mark_set_resources): Same.
23200 * reload1.c (eliminate_regs): Handle vectors.
23201 (elimination_effects): Same.
23202 (scan_paradoxical_subregs): Same.
23204 * reload.c (subst_reg_equivs): Handle vectors.
23206 * regrename.c (scan_rtx): Handle vectors.
23208 * regclass.c (reg_scan_mark_refs): Handle vectors.
23210 * recog.c (find_single_use_1): Handle vectors.
23212 * local-alloc.c (equiv_init_varies_p): Handle vectors.
23213 (contains_replace_regs): Same.
23214 (memref_referenced_p): Same.
23216 * integrate.c (copy_rtx_and_substitute): Handle vectors.
23217 (subst_constants): Same.
23219 * genattrtab.c (attr_copy_rtx): Handle vectors.
23220 (encode_units_mask): Same.
23221 (clear_struct_flag): Same.
23222 (count_sub_rtxs): Same.
23224 * gcse.c (want_to_gcse_p): Handle vectors.
23225 (oprs_unchanged_p): Same.
23226 (hash_expr_1): Same.
23227 (oprs_not_set_p): Same.
23228 (expr_killed_p): Same.
23229 (compute_transp): Same.
23230 (store_ops_ok): Same.
23232 * function.c (purge_addressof_1): Do not allow paradoxical subregs
23234 (fixup_var_refs_1): Same.
23235 (instantiate_virtual_regs_1): Same.
23237 * fold-const.c (operand_equal_p): Handle vectors.
23239 (rtl_expr_nonnegative_p): Same.
23241 * flow.c (mark_used_regs): Handle vectors.
23243 * df.c (df_uses_record): Handle vectors.
23245 * cselib.c (cselib_subst_to_values): Handle vectors.
23246 (cselib_mem_conflict_p): Same.
23249 * cse.c (canon_reg): Handle vectors.
23251 (cse_process_notes): Same.
23252 (count_reg_usage): Same.
23253 (canon_hash): Same.
23255 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
23257 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
23259 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
23260 (gen_rtx): Handle CONST_VECTOR.
23261 (gen_const_vector_0): New.
23262 (copy_rtx_if_shared): CONST_VECTORs can be shared.
23263 (reset_used_flags): Same.
23264 (copy_insn_1): Same.
23265 (initializer_constant_valid_p): Handle VECTOR_CST.
23267 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
23269 * doc/rtl.texi (Constants): Document const_vector.
23270 (CONST0_RTX): Update for vectors.
23271 (RTL sharing): Same.
23273 * print-tree.c (print_node): Add case for VECTOR_CST.
23275 * tree.h (TREE_VECTOR_CST_ELTS): New.
23276 (struct tree_vector): New.
23277 (union tree_node): Add vector node.
23278 (build_vector): Add prototype.
23280 * tree.def (VECTOR_CST): New.
23282 * tree.c (build_vector): New.
23284 * expmed.c (make_tree): Handle CONST_VECTOR.
23286 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
23287 (CONST_VECTOR_ELT): New.
23288 (CONST_VECTOR_NUNITS): New.
23290 * machmode.h (GET_MODE_INNER): New.
23291 (DEF_MACHMODE): Accept 8th arg.
23293 * machmode.def: Add 8th argument for vector inner mode.
23294 Add inner vector modes for vectors.
23296 * rtl.def (VEC_CONST): Remove.
23297 (CONST_VECTOR): New.
23299 * expr.c (clear_storage): Allow vectors.
23300 (is_zeros_p): Handle VECTOR_CST.
23302 * varasm.c (output_constant_pool): Handle vectors.
23303 (rtx_const): Add veclo and vechi fields.
23304 (kind): Add RTX_VECTOR.
23305 (decode_rtx_const): Add case for vector.
23307 * config/rs6000/rs6000-protos.h: Add zero_constant.
23309 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
23310 constants. Force easy vector constants into memory.
23311 (easy_vector_constant): New.
23312 (emit_easy_vector_constant): New.
23313 (rs6000_legitimize_reload_address): Do not generate bad reloads on
23316 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
23318 ("altivec_lvxl"): Same.
23319 (altivec_lvebx): Same.
23320 (altivec_lvehx): Same.
23321 (altivec_lvewx): Same.
23322 ("*movv4si_const0"): New.
23323 ("*movv4sf_const0"): New.
23324 ("*movv8hi_const0"): New.
23325 ("*movv16qi_const0"): New.
23327 2002-02-18 Kazu Hirata <kazu@hxi.com>
23329 * config/h8300/h8300.c (notice_update_cc): Use
23332 2002-02-18 Kazu Hirata <kazu@hxi.com>
23334 * config/h8300/h8300.md (divmod patterns): Change the
23335 constraints for operands[1] to register_operand.
23337 2002-02-18 Kazu Hirata <kazu@hxi.com>
23339 * config/h8300/h8300-protos.h: Remove the prototype for
23341 * config/h8300/h8300.c (p_operand): Remove.
23342 * config/h8300/h8300.md: Replace p_operand with
23345 2002-02-18 Philip Blundell <pb@nexus.co.uk>
23347 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
23349 (output_return_instruction): Allow use of LDR to unstack
23350 return addresss even for interrupt handlers or when
23351 interworking. If compiling for ARMv5, use interworking-safe
23352 return instructions by default. Remove duplicated code and
23353 lengthy "strcat" sequences.
23355 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23357 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
23358 (LINK_EH_SPEC): Define.
23359 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
23361 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
23363 * config/s390/s390.c (s390_emit_prologue): Do not set the
23364 frame_related flag for call-clobbered registers.
23366 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
23368 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
23369 (construct_container): Fix handling of SSE operands.
23370 (ix86_expand_builtin): Fix handling of 64bit pointers.
23371 (mmx_maskmovq_rex): New pattern.
23373 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
23375 * regrename.c (kill_set_value): Handle subregs properly.
23377 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
23379 * objc/objc-act.c (handle_impent): Remove leading '*'
23380 from objc_class_name.
23382 2002-02-17 Richard Henderson <rth@redhat.com>
23384 * config/alpha/alpha.c (some_small_symbolic_operand,
23385 some_small_symbolic_operand_1, split_small_symbolic_operand,
23386 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
23387 Handle small SYMBOL_REFs anywhere, not just inside memories.
23388 * config/alpha/alpha-protos.h: Update.
23389 * config/alpha/alpha.h (PREDICATE_CODES): Update.
23390 * config/alpha/alpha.md (small symbolic operand splitter): Update.
23392 2002-02-17 Roland McGrath <roland@frob.com>
23394 * config.gcc (powerpc-*-gnu-gnualtivec*,
23395 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
23396 * config/rs6000/gnu.h: New file.
23397 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
23398 Grok "gnu" in rs6000_abi_name.
23399 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
23400 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
23401 Grok -mcall-gnu analogous to -mcall-linux et al.
23402 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
23403 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
23404 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
23406 2002-02-17 Jakub Jelinek <jakub@redhat.com>
23409 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
23412 2002-02-17 Philipp Thomas <pthomas@suse.de>
23414 * config/cris/cris.h: Undefine STARTFILE_SPEC and
23415 ENDFILE_SPEC before (re)defining them.
23417 2002-02-17 Kazu Hirata <kazu@hxi.com>
23419 * config/h8300/h8300.c: Fix formatting.
23420 * config/h8300/h8300.h: Likewise.
23422 2002-02-17 Philipp Thomas <pthomas@suse.de>
23424 * doc/tm.texi: Explain why empty strings should not be
23425 marked for translation.
23427 2002-02-17 Philipp Thomas <pthomas@suse.de>
23429 * final.c (output_operand_lossage): Changed to accept
23430 printf style arguments. Change calls where necessary.
23431 * output.h (output_operand_lossage): Change declaration
23432 accordingly. Update copyright.
23433 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
23434 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
23435 Update copyright date where necessary.
23437 * config/i386/i386.c (print_operand): Likewise. Remove use of
23440 * config/cris/cris.c (cris_operand_lossage): Likewise.
23441 Rename parameter so that exgettext recognizes it as
23442 translatable message.
23443 (LOSE_AND_RETURN): Rename parameter to msgid.
23445 2002-02-17 Kazu Hirata <kazu@hxi.com>
23447 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
23448 hard coded register number with an appropriate macro.
23449 (HARD_REGNO_MODE_OK): Likewise.
23450 (ARG_POINTER_REGNUM): Likewise.
23451 (STATIC_CHAIN_REGNUM): Likewise.
23452 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
23453 * config/h8300/h8300.md (define_constants): Define more
23456 2002-02-17 Philipp Thomas <pthomas@suse.de>
23458 * config/i386/i386.h: Don't mark empty strings for translation.
23460 2002-02-16 H.J. Lu <hjl@gnu.org>
23462 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
23464 2002-02-16 Zack Weinberg <zack@codesourcery.com>
23466 * cppinit.c (merge_include_chains): Check for brack being
23467 NULL before attempting to merge it with qtail.
23469 2002-02-16 Andrew Cagney <ac131313@redhat.com>
23471 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
23474 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
23476 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
23478 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
23480 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
23481 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
23482 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
23484 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23486 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
23487 now only if !TARGET_FIX.
23488 (*movsi_nt_vms_fix): New pattern.
23490 2002-02-16 Douglas B Rupp <rupp@gnat.com>
23492 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
23493 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
23494 (alpha_sa_mask, alpha_sa_size): Reflect above change.
23495 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
23496 (alpha_start_function, alpha_expand_epilogue): Likewise.
23497 (unicosmk_gen_dsib): Likewise.
23499 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23501 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
23503 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
23505 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
23506 check_and_change_labels, s390_final_chunkify): Delete.
23507 (s390_split_branches, s390_chunkify_pool): New functions.
23508 (s390_function_prologue): Call them.
23510 * config/s390/s390.h (S390_REL_MAX): Delete.
23511 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
23513 * config/s390/s390.md (cjump, icjump, jump): Fix length
23514 attribute calculation.
23517 2002-02-15 David Edelsohn <edelsohn@gnu.org>
23519 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
23520 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
23522 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
23524 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
23525 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
23526 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
23528 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
23530 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
23532 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
23534 * reload.c (find_dummy_reload): Check that an output register
23535 is valid for its mode.
23537 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
23539 * combine.c (known_cond): After replacing the REG of a SUBREG, try
23542 * function.c (assign_parms): Demote promoted argument passed by
23543 transparent reference.
23545 2001-02-14 Joel Sherrill <joel@OARcorp.com>
23547 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
23548 -Acpu() and -Amachine() to eliminate warnings.
23550 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
23552 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
23554 2002-02-14 Kazu Hirata <kazu@hxi.com>
23556 * config/h8300/h8300-protos.h: Update the prototype for
23558 * config/h8300/h8300.c (const_costs): Treat SET as a little
23559 more expensive operation.
23560 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
23561 reference to const_costs.
23563 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
23565 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
23567 2002-02-14 Jakub Jelinek <jakub@redhat.com>
23570 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
23571 use arguments from newtype.
23573 2002-02-13 Eric Christopher <echristo@redhat.com>
23575 * config/mips/mips.c (override_options): Add check for march/mipsX
23576 on the same command line. Fix error message in cpu processing.
23577 Remove architecture and ISA checks.
23579 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
23581 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
23583 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
23585 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
23587 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
23589 ("*movv8hi_internal1"): Same.
23590 ("*movv16qi_internal1"): Same.
23591 ("*movv4sf_internal1"): Same.
23593 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
23594 not push_reload for altivec modes.
23596 2002-02-13 Joel Sherrill <joel@OARcorp.com>
23598 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
23599 all RTEMS targets including removal of #includes from config/*/rtems*.h
23600 file and adding them to tm_file setting. Added xm_defines=POSIX to
23602 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
23603 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
23604 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
23605 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
23606 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
23607 config/m68k/rtemself.h: Ditto.
23608 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
23609 config/mips/rtems64.h: Ditto.
23610 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
23611 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
23613 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
23614 config/sparc/rtemself.h: Ditto.
23615 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
23616 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
23617 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
23619 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
23620 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
23621 target made more similar to i386-elf.
23622 * config/i386/t-rtems-i386: Added soft float support and multilibs.
23623 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
23624 be similar to config/m68k/t-m68kelf.
23625 * gthr-rtems.h: Encapsulate with extern "C" for C++.
23627 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
23629 * regmove.c (kill_value): Handle subregs.
23631 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
23633 * i386.md (mul patterns): Allow memory operand to be first;
23634 add expanders where needed; fix constraints.
23635 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
23636 Allow memory operand to be the first.
23638 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
23641 2002-02-13 Jakub Jelinek <jakub@redhat.com>
23644 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
23647 2002-02-13 Jakub Jelinek <jakub@redhat.com>
23649 PR optimization/5547:
23650 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
23651 all valid IA-32 address modes involving non-scaled %ebx and
23652 GOT/GOTOFF as displacement.
23654 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
23656 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
23657 after emitting ltorg insns.
23659 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
23660 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
23661 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
23662 *abssf2): Fix "op_type" attribute.
23664 2002-02-13 Douglas B Rupp <rupp@gnat.com>
23666 * mkconfig.sh: Avoid using a subshell redirect.
23667 ($output.T): Change to $(output)T.
23668 (ENABLE_NLS): Remove unneeded undef.
23670 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
23671 * config/alpha/x-vms (libsubdir): Define.
23673 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
23674 register frame procedures. Optimize retrieving context.
23676 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
23677 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
23678 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
23680 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23682 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
23683 Make same change as for find_base_value.
23685 2002-02-13 Kazu Hirata <kazu@hxi.com>
23687 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
23688 of QImode and SImode.
23690 2002-02-13 Kazu Hirata <kazu@hxi.com>
23692 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
23693 length computation of movsi.
23694 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
23696 2002-02-13 Kazu Hirata <kazu@hxi.com>
23698 * config/h8300/h8300.md (subqi3): Tighten the predicate for
23699 operands[2] to register_operand.
23701 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
23703 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
23705 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
23707 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
23708 for altivec_lvx* and altivec_stvx*.
23709 ("*movv4si_internal"): Add constraint for loading from GPRs.
23710 ("*movv8hi_internal1"): Same.
23711 ("*movv16qi_internal1"): Same.
23712 ("*movv4sf_internal1"): Same.
23714 * config/rs6000/rs6000.c (altivec_register_operand): New.
23716 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
23717 altivec_register_operand.
23719 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
23721 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
23724 2002-02-13 Stan Shebs <shebs@apple.com>
23726 * c-typeck.c (digest_init): Handle vectors.
23727 (really_start_incremental_init): Same.
23728 (pop_init_level): Same.
23729 (process_init_element): Same.
23731 * varasm.c (output_constant): Same.
23733 * expr.c (clear_storage): Same.
23734 (store_constructor): Same.
23736 2002-02-12 Eric Christopher <echristo@redhat.com>
23738 * explow.c (hard_function_value): Add comment explaining
23739 signed/unsigned comparison.
23741 2002-02-12 Jakub Jelinek <jakub@redhat.com>
23743 * jump.c (never_reached_warning): Add finish argument.
23744 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
23745 real insn after end.
23746 * rtl.h (never_reached_warning): Adjust prototype.
23747 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
23748 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
23749 never_reached_warning.
23751 2002-02-12 Graham Stott <grahams@redhat.com>
23753 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
23755 2002-02-12 Kazu Hirata <kazu@hxi.com>
23757 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
23758 logical shifts on H8/300.
23759 (shift_alg_si): Improve several shifts on H8/300.
23760 (get_shift_alg): Likewise.
23762 2002-02-12 Graham Stott <grahams@redhat.com>
23764 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
23766 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23768 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
23769 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
23771 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
23773 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
23774 non-CONST_INT through default_assemble_integer.
23775 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
23776 <case 8>: Abort for CONST_DOUBLE.
23778 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
23780 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
23782 * config/pa/pa-linux.h (LIB_SPEC): Delete.
23783 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
23785 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
23787 * config/stormy16/stormy16.md (zero_extendqihi2): New.
23789 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
23791 * regrename.c (regrename_optimize): Don't accept a
23792 part-clobbered register if the replaced register is not part
23795 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
23796 take padding into account when computing the argument value.
23798 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
23800 * combine.c (try_combine): Apply substitutions in
23801 CALL_INSN_FUNCTION_USAGE too.
23803 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
23805 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
23806 __builtin_altivec_abs*.
23809 * config/rs6000/rs6000.h (rs6000_builtins): Add
23810 ALTIVEC_BUILTIN_ABS*.
23812 * config/rs6000/altivec.h: Use const char for builtins expecting
23814 (vec_abs): New versions for C and C++.
23817 2002-02-10 Kazu Hirata <kazu@hxi.com>
23819 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
23822 2002-02-10 Kazu Hirata <kazu@hxi.com>
23824 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
23825 constant definition from h8300.md.
23826 (FRAME_POINTER_REGNUM): Likewise.
23827 * config/h8300/h8300.md (define_constants): Add FP_REG.
23829 2002-02-10 Kazu Hirata <kazu@hxi.com>
23831 * config/h8300/h8300.c (print_operand): Remove redundant code.
23833 2002-02-10 Kazu Hirata <kazu@hxi.com>
23835 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
23836 * config/h8300/h8300.c (byte_reg): Make it static.
23838 2002-02-10 Richard Henderson <rth@redhat.com>
23841 * c-typeck.c (incomplete_type_error): Handle flexible array members.
23843 2002-02-10 Richard Henderson <rth@redhat.com>
23846 * tree.c (append_random_chars): Don't abort if main_input_filename
23849 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
23851 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
23853 2002-02-10 Kazu Hirata <kazu@hxi.com>
23855 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
23856 (pushhi1): Likewise.
23858 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
23860 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
23861 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
23863 2002-02-09 David O'Brien <obrien@FreeBSD.org>
23865 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
23867 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
23869 2002-02-09 Kazu Hirata <kazu@hxi.com>
23871 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
23872 a half of an SImode register on H8/300.
23874 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
23876 * i386.md (movdi_2): Add missing '!'.
23878 2002-02-09 Kazu Hirata <kazu@hxi.com>
23880 * config/h8300/h8300.h: Fix formatting. Remove commented-out
23883 2002-02-09 Kazu Hirata <kazu@hxi.com>
23885 * config/h8300/h8300.md (length): Correct the distance valid
23886 for the short branch.
23888 2002-02-09 Kazu Hirata <kazu@hxi.com>
23890 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
23892 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
23894 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
23895 registers in SImode.
23896 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
23899 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
23902 Contribute sh64-elf.
23903 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
23904 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
23905 (sh_cannot_modify_jumps_p): New function.
23906 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
23907 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
23908 (sh_ms_bitfield_layout_p): New function.
23909 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
23910 Zack Weinberg <zack@codesourcery.com>
23911 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
23912 expand_simple_binop instead of expand_binop.
23913 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
23914 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
23915 use of .quad and .uaquad.
23916 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
23917 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
23918 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
23919 * config/sh/sh.md (movdi_const, movdi_const_32bit,
23920 movdi_const_16bit): Make sure all CONSTs have modes.
23921 (sym2PIC): Ditto, but by adjusting all callers.
23922 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
23923 if the prologue calls the SHmedia argument decoder or register
23925 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
23926 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
23927 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
23928 (sh_expand_epilogue): Don't emit USE of return target register.
23929 (prepare_move_operands): Legitimize DImode PIC addresses.
23930 (sh_media_register_for_return): Skip tr0, used to initialize the
23932 (sh_expand_prologue): Remove explicit USE of return register.
23933 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
23934 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
23935 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
23936 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
23937 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
23938 EXTRA_CONSTRAINT_T.
23939 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
23940 (MOVI_SHORI_BASE_OPERAND_P): New.
23941 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
23942 (EXTRA_CONSTRAINT_T): Define in terms of them.
23943 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
23944 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
23945 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
23946 alternatives supporting TARGET_REGS.
23947 (UNSPEC_GOTPLT): New constant.
23948 (movdi split): Move incrementing of LABEL_NUSES...
23949 (movdi_const, movdi_const_32bit): Here. Use
23950 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
23951 (movdi_const_16bit): New.
23952 (call, call_value) [flag_pic]: Use GOTPLT.
23953 (call_pop, call_value_pop): New expands.
23954 (call_pop_compact, call_pop_rettramp): New insns.
23955 (call_value_pop_compact, call_value_pop_rettramp): New insns.
23956 (sibcall) [flag_pic]: Use GOT.
23957 (builtint_setjmp_receiver): Remove bogus, unused expand.
23958 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
23959 (*pt, *ptb, ptrel): New insns.
23960 (sym2GOT): Handle DImode GOT.
23961 (sym2GOTPLT, symGOTPLT2reg): New expands.
23962 (sym2PIC): New expand.
23963 (shcompact_return_tramp): Use GOTPLT to return trampoline.
23964 (shcompact_return_tramp_i): Use return register explicitly.
23965 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
23966 disable flag_reorder_blocks.
23967 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
23968 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
23969 clobbers, for clarity.
23970 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
23971 restoring of r0 in macl as MAYBE_DEAD.
23972 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
23973 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
23974 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
23975 alter_subreg all over.
23976 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
23977 reload, instead of emitting instructions that would require
23979 (casesi_load_media): Add missing modes.
23980 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
23981 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
23982 as used if the argument decoder is called.
23983 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
23984 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
23985 Pmode, then extend it to DImode if necessary.
23986 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
23987 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
23988 constants in FPU-enabled SHmedia, let them be loaded from memory.
23989 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
23990 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
23991 Adjust whitespace in assembly output templates.
23992 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
23993 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
23994 mode of if_then_else.
23995 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
23996 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
23998 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
23999 Joern Rennecke <amylaar@redhat.com>
24000 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
24001 (SUBTARGET_CPP_PTR_SPEC): New.
24002 (SUBTARGET_CPP_SPEC): Remove.
24003 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
24004 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
24005 Fix typo in previous checkin.
24006 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
24007 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
24008 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
24009 Alexandre Oliva <aoliva@redhat.com>
24010 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
24011 what single FP register can hold for SHmedia target.
24012 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
24013 Alexandre Oliva <aoliva@redhat.com>
24014 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
24015 Do not split into SUBREG.
24016 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
24017 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
24018 and added new functions as specified in SH5 ABI r9.
24019 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
24020 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
24022 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
24023 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
24024 gen_consttable_4 and gen_consttable_8. Emit multiple labels
24025 and consttable_window_ends.
24026 2001-06-03 Graham Stott <grahams@redhat,com>
24027 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
24028 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
24029 * config/sh/sh.c (print_operand): Handle floating-point pair,
24030 vector and matrix registers.
24031 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
24032 vector modes into account.
24033 * config/sh/sh.md (movv2sf): Split move between registers into
24035 (movv4sf, movv16sf): Introduce insns that get split only after
24037 * config/sh/shmedia.h: Fix Copyright dates.
24038 * config/sh/ushmedia.h: Likewise. Move loop counter
24039 declarations into conditionals that uses them.
24040 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
24042 * config/sh/sshmedia.h: Fix Copyright dates.
24043 (sh_media_PUTCFG): Fix constraints.
24044 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
24045 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
24046 ptrmemfunc_vbit_in_delta for SH5.
24047 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
24048 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
24049 * invoke.texi: Likewise.
24050 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
24051 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
24052 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
24053 GCC_pop_shmedia_regs_nofpu): New global symbols.
24054 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
24055 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
24056 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
24057 compact function with nonlocal labels.
24058 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
24059 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
24060 (initial_elimination_offset): Account for their stack space.
24061 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
24062 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
24063 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
24064 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
24065 least one of the operands to be a register.
24066 (movv2sf): Likewise. Renamed to movv2sf_i.
24067 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
24068 prepare_move_operands() before emitting SHmedia insns.
24069 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
24070 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
24071 Don't save nor initialize r12. Don't mis-align the stack.
24072 Pad the code with a nop.
24073 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
24075 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
24076 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
24077 [__SHMEDIA__]: Implement.
24078 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
24079 * config/sh/sh.md: Set latency of `pt' closer to reality.
24080 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
24081 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
24082 Set move, load and store type attributes.
24083 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
24084 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
24086 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
24087 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
24088 * config/sh/sh.c (sh_media_register_for_return): New function.
24089 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
24090 branch-target register.
24091 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
24092 * config/sh/sh.md (return_media_i): Use any call-clobbered
24093 branch-target register.
24094 (return_media): If r18 wasn't copied in the prologue, copy it
24096 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
24097 Clear class FP0_REGS.
24098 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
24100 2001-03-08 DJ Delorie <dj@redhat.com>
24101 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
24102 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
24103 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
24104 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
24105 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
24106 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
24107 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
24108 return value correctly for call_cookie.
24109 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
24110 * config/sh/crt1.asm (start): Modified so as to call
24111 ___setup_argv_and_call_main.
24112 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
24113 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
24115 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
24116 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
24117 (STRIP_NAME_ENCODING): Use it.
24118 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
24119 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
24120 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
24121 prepare_scc_operands().
24122 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
24123 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
24124 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
24125 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
24126 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
24127 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
24128 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
24129 used in shcompact_incoming_args.
24130 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
24132 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
24134 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
24135 Adjust accordingly.
24136 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
24137 Simplify. Adjust. Add sanity check.
24138 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
24140 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
24142 (udivsi3, divsi3): Use them.
24143 (force_mode_for_call): New insn.
24144 (call, call_value, sibcall_value): Emit it before SHcompact
24146 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
24147 * config/sh/sh.md (call, call_value, sibcall): Make sure the
24148 call cookie is non-NULL before taking its value.
24149 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
24150 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
24151 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
24152 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
24154 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
24155 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
24156 temporary for stack adjusts. Use MACL and MACH to pass
24157 arguments to shcompact_incoming_args.
24158 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
24160 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
24161 (nested_trampoline): Load static chain address into r1.
24162 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
24163 2001-01-07 Alexandre Oliva <aoliva@redhat.com
24164 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
24165 fp_arith_reg_operand().
24166 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
24167 * config/sh/sh.md (casesi): Sign-extend the first two operands,
24168 and use signed compares for them.
24169 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
24170 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
24171 ones properly aligned.
24172 (find_barrier): Account for extra alignment needed for 8-byte wide
24174 (machine_dependent_reorg): Require a label for the second 4-byte
24175 constant after an 8-byte one.
24176 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
24178 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
24179 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
24180 last_float when switching float modes.
24181 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
24182 auto-increment for general-purpose registers.
24183 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
24185 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
24187 * config/sh/sh.c (sh_builtin_saveregs): Support using all
24188 registers for varargs.
24189 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
24190 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
24191 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
24192 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
24193 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
24194 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
24195 call_cookie accordingly.
24196 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
24197 (SHCOMPACT_BYREF): Likewise.
24198 (SHCOMPACT_FORCE_ON_STACK): New macro.
24199 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
24200 (sh_builtin_saveregs): Likewise.
24201 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
24202 shcompact_incoming_args): Use new shift values. Support
24203 sequences of consecutive and non-consecutive pushes/pops.
24204 * config/sh/sh.md (return): Don't explicitly use PR_REG.
24205 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
24206 * config/sh/sh.h (TEXT_SECTION): Define.
24207 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
24208 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
24209 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
24210 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
24211 return values on FPU-enabled SHmedia.
24212 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
24213 FPU-enabled SHmedia.
24214 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
24215 value is returned in a non-FP reg and is not returned by
24217 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
24219 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
24220 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
24221 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
24222 quad-aligned to be passed by callee-copy reference.
24223 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
24224 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
24225 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
24226 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
24227 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
24228 copying low-numbered FP regs to r7 and r8.
24229 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
24230 FP regs to general-purpose regs only if the copy was passed on the
24232 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
24233 copying FP reg to r9.
24234 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
24235 copy FP regs to general-purpose regs only in outgoing calls.
24236 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
24237 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
24239 * config/sh/sh.h (struct sh_args): Document all fields.
24240 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
24241 passed partially on the stack should not consider making
24243 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
24244 stack_regs only for incoming calls. When passing FP args,
24245 make sure there are FP regs available before modifying
24247 (SHCOMPACT_BYREF): Pass double args in general-purpose
24248 registers by reference.
24249 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
24250 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
24251 attempt to generate sibcalls if the caller got any arguments
24253 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
24254 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
24255 to 8-byte boundaries.
24256 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
24257 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
24258 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
24259 stored in the stack.
24260 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
24261 for the offsets to have the ISA bit set.
24262 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
24263 invocation. Use beq instead of bgt to mark end of sequence of
24265 (shcompact_incoming_args): Fix store of r2. Use beq instead of
24266 bgt to mark end of sequence of stores.
24267 * config/sh/sh.c (arith_operand): Don't check whether
24268 CONST_OK_FOR_J for now.
24269 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
24270 instead of long for conversion.
24271 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
24272 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
24273 before passing it to fprintf.
24274 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
24275 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
24276 Call set_fpscr before reading/writing SR.
24277 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
24279 * config/sh/lib1funcs.asm: Add `.align 2' directives before
24281 (FMOVD_WORKS): Define on SH5 with FPU.
24282 (set_fpscr): Define on SH5. Remove separate _fpscr_values
24284 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
24286 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
24287 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
24289 (ia_main_table): Ditto.
24290 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
24291 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
24292 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
24293 the definitions from sh.h.
24294 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
24296 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
24297 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
24298 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
24299 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
24300 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
24301 Increment LABEL_NUSES.
24303 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
24305 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
24307 * config/sh/elf.h (SIZE_TYPE): Likewise.
24308 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
24309 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
24310 shcompact_incoming_args): Load switch table addresses using
24312 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
24313 (NO_BUILTIN_SIZE_TYPE): Define.
24314 (SIZE_TYPE): Don't define.
24315 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
24316 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
24317 definition of __SH5__=32 for -m5-compact-nofpu.
24318 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
24320 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
24321 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
24322 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
24323 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
24324 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
24325 (INSN_LENGTH_ALIGNMENT): Likewise.
24326 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
24327 * config/sh/sh.md (call, call_value, sibcall): Simplify
24328 copying of non-branch-target register.
24329 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
24330 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
24331 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
24332 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
24333 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
24334 floating-point values as structs.
24335 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
24336 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
24337 general-purpose register.
24338 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
24339 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
24340 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
24341 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
24342 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
24343 (ENCODE_SECTION_INFO): Enclose variables and constants in
24345 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
24346 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
24347 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
24348 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
24349 only for LABEL_REFs. For SYMBOL_REFs, prepend
24350 SH_DATALABEL_ENCODING to the symbol name.
24351 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
24353 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
24354 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
24356 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
24357 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
24358 (DATALABEL_REF_P): Don't require CONST.
24359 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
24361 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
24362 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
24364 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
24365 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
24366 Use shallow_copy_rtx and PUT_MODE to change the mode of
24367 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
24368 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
24369 on SHmedia using GENERAL_REGs.
24370 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
24371 bltu_media_i): Fix reversion of conditions.
24372 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
24373 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
24374 * config/sh/sh.c (output_far_jump): Save r13 in macl.
24375 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
24376 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
24377 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
24378 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
24379 (GCC_nested_trampoline): Likewise.
24380 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
24381 * config/sh/sh.c (gen_datalabel_ref): Define.
24382 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
24383 (INITIALIZE_TRAMPOLINE): Likewise.
24384 (TRAMPOLINE_ADJUST_ADDRESS): Define.
24385 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
24386 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
24387 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
24388 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
24389 (ic_invalidate): Adjust for SH5.
24390 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
24391 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
24392 _nested_trampoline.
24393 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
24394 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
24395 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
24396 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
24397 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
24398 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
24399 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
24400 * config/sh/sh.c (target_reg_operand): Match only target-branch
24401 registers and pseudos that aren't virtual registers.
24402 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
24403 Copy operands that don't match target_reg_operand to pseudos.
24404 (call_media, call_value_media, sibcall_media): Use
24405 target_reg_operand instead of target_operand.
24406 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
24407 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
24408 * config/sh/sh.c (target_reg_operand): Match hardware registers
24409 other than branch-target registers.
24410 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
24411 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
24412 (fpscr_values) [SH5 == 32]: Define.
24413 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
24414 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
24415 Handle function addresses coming in SUBREGs.
24416 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
24417 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
24418 shcompact_return_trampoline): Use datalabel where appropriate.
24419 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
24420 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
24421 general-purpose register to copy one branch-target register to
24423 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
24424 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
24425 SYMBOL_REFs with VOIDmode.
24426 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
24427 bltu_media_i): New insns.
24428 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
24429 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
24430 (INIT_CUMULATIVE_ARGS): Likewise.
24431 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
24432 * machmode.def (V16SFmode): New mode.
24433 * c-common.c (type_for_mode): Support V2SF and V16SF.
24434 * tree.c (build_common_tree_nodes_2): Likewise.
24435 * tree.h (tree_index): Likewise.
24436 * calls.c (emit_call_1): Take args_so_far. Adjust all
24437 callers. Introduce CALL_POPS_ARGS.
24438 * tm.texi (CALL_POPS_ARGS): Document.
24439 * config/sh/crt1.asm: Implement in SHmedia mode.
24440 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
24441 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
24442 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
24443 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
24444 Implement divsi and udivsi in SHmedia mode. Introduce
24445 SHcompact trampolines.
24446 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
24448 (regno_reg_class): Rewrite.
24449 (fp_reg_names): Remove.
24450 (sh_register_names, sh_additional_register_names): New.
24451 (print_operand): Added `u'. Support SUBREGs in addresses.
24452 Add parentheses around shifted CONSTs.
24453 (output_file_start): Output .mode and .abi directives.
24454 (shiftcosts, addsubcosts, multcosts): Adjust.
24455 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
24456 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
24457 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
24458 bytes, not registers. Take into account the need for the
24459 SHcompact incoming args trampoline. Adjust all callers.
24460 (sh_expand_prologue): Take stack_regs into account. Call
24461 incoming args trampoline. Keep stack aligned as per SH5 ABI.
24462 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
24463 stack aligned as per SH5 ABI.
24464 (sh_builtin_saveregs): Support SH5 ABI.
24465 (sh_build_va_list, sh_va_start): Likewise.
24466 (initial_elimination_offset): Take alignment into account.
24467 Compute location of PR according to the SH5 stack frame.
24468 (arith_reg_operand): Reject branch-target registers.
24469 (shmedia_6bit_operand): New.
24470 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
24471 (target_reg_operand): Match DImode only. Accept SUBREGs.
24472 (target_operand): New.
24473 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
24474 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
24475 SIBCALL_REGS for SHmedia.
24476 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
24477 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
24478 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
24479 (TARGET_SWITCHES): New SH5 flags.
24480 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
24481 VALID_REGISTER_P to disable unsupported registers.
24482 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
24483 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
24484 (FUNCTION_ARG_PADDING): Define.
24485 (FASTEST_ALIGNMENT): Adjust.
24486 (SH_REGISTER_NAMES_INITIALIZER): New.
24487 (sh_register_names): Declare.
24488 (DEBUG_REGISTER_NAMES): Define.
24489 (REGISTER_NAMES): Define based on sh_register_names.
24490 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
24491 (sh_additional_register_names): Declare.
24492 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
24493 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
24494 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
24495 (REGISTER_NATURAL_MODE): Define.
24496 (FIRST_PSEUDO_REGISTER): Adjust.
24497 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
24498 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
24499 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
24500 (VECTOR_MODE_SUPPORTED_P): Define.
24501 (REG_CLASS_CONTENTS): Adjust.
24502 (SMALL_REGISTER_CLASSES): Adjust.
24503 (REG_ALLOC_ORDER): Adjust.
24504 (INDEX_REG_CLASS): Adjust.
24505 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
24506 (CONST_OK_FOR_LETTER_P): Adjust.
24507 (PREFERRED_RELOAD_CLASS): Adjust.
24508 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
24509 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
24510 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
24511 (FIRST_FP_PARM_REG): Adjust.
24512 (CALL_POPS_ARGS): Define.
24513 (FUNCTION_ARG_REGNO_P): Adjust.
24514 (struct sh_args): New fields.
24515 (GET_SH_ARG_CLASS): Adjust.
24516 (INIT_CUMULATIVE_ARGS): Adjust.
24517 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
24518 (FUNCTION_ARG_ADVANCE): Adjust.
24519 (FUNCTION_ARG): Adjust.
24520 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
24521 (FUNCTION_ARG_CALLEE_COPIES): Define.
24522 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
24523 (STRICT_ARGUMENT_NAMING): Define.
24524 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
24525 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
24526 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
24527 (SETUP_INCOMING_VARARGS): Adjust.
24528 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
24529 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
24530 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
24531 (SUBREG_OK_FOR_INDEX_P): Adjust.
24532 (EXTRA_CONSTRAINT_S): Update.
24533 (EXTRA_CONSTRAINT_T): New.
24534 (EXTRA_CONSTRAINT): Adjust.
24535 (GO_IF_LEGITIMATE_INDEX): Adjust.
24536 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
24537 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
24538 (MOVE_MAX): Adjust.
24539 (MAX_MOVE_MAX): Define.
24541 (CONST_COSTS): Adjust.
24542 (REGISTER_MOVE_COST): Adjust.
24543 (BRANCH_COST): Adjust.
24544 (TEXT_SECTION_ASM_OP): Adjust.
24545 (DBX_REGISTER_NUMBER): Adjust.
24546 (ASM_OUTPUT_DOUBLE_INT): New.
24547 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
24548 (PREDICATE_CODES): Adjust.
24549 (PROMOTE_MODE): Adjust.
24550 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
24551 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
24552 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
24553 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
24554 (DR0_REG, DR2_REG, DR4_REG): Renumber.
24555 (TR0_REG, TR1_REG, TR2_REG): New.
24556 (XD0_REG): Renumber.
24557 (UNSPEC_COMPACT_ARGS): New.
24558 (type): Added pt and ptabs.
24559 (length): Default to 4 on SHmedia. Default pt length to 12
24560 and 20 on SHmedia32 and SHmedia64, respectively.
24561 (pt): New function unit.
24562 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
24563 Add whitespace between operands of SHmedia instructions.
24565 (adddi3_media, addsi3_media): Adjust constraints.
24566 (subsi3) [SHmedia]: Force operand 1 into a register.
24567 (udivsi3_i1_media, udivsi3_i4_media): New.
24568 (udivsi3): Support SHmedia.
24569 (divsi3_i1_media, divsi3_i4_media): New.
24570 (divsi3): Support SHmedia.
24571 (anddi3, iordi3, xordi3): Adjust constraints.
24572 (zero_extendhidi2, zero_extendqidi2): New.
24573 (extendsidi2, extendhidi2, extendqidi2): New.
24574 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
24575 (pop_e, pop_fpul, pop_4): Likewise.
24576 (movsi_media): Support FP and BT registers.
24577 (movsi_media_nofpu): New. Adjust splits to DImode.
24578 (lduw, ldub): Renamed to zero_extend* above.
24579 (movqi_media): Fix typo.
24580 (movdi_media): Support FP and BT registers.
24581 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
24582 (movdi_const_32bit): New.
24583 (shori_media): Require immediate operand. Use `u' for output.
24584 (movdf_media, movsf_media): Simplified.
24585 (movdf_media_nofpu, movsf_media_nofpu): New.
24586 (movdf, movsf): Adjust
24587 (movv2sf, movv2sf, movv16sf): New.
24588 (beq_media, beq_media_i): Adjust constraints. Don't use
24589 scratch BT register.
24590 (bne_media, bne_media_i): Likewise.
24591 (bgt_media, bgt_media_i): Likewise.
24592 (bge_media, bge_media_i): Likewise.
24593 (bgtu_media, bgtu_media_i): Likewise.
24594 (bgeu_media, bgeu_media_i): Likewise.
24595 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
24596 bunordered): Emit jump insn. Force operands to registers when
24598 (jump_media, jump): Simplify.
24599 (call_compact, call_compact_rettramp): New.
24600 (call_value_compact, call_value_compact_rettramp): New.
24601 (call_media, call_value_media): Simplify.
24602 (sibcall_compact, sibcall_media): New.
24603 (call, call_value): Adjust for SHmedia and SHcompact.
24604 (sibcall, sibcall_value, untyped_call): Likewise.
24605 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
24606 (indirect_jump): Adjust for SHmedia.
24607 (casesi_jump_media): New.
24608 (nop): Re-enable for SHmedia.
24609 (call_site): Restrict to SH1.
24610 (casesi): Adjust for SHmedia.
24611 (casesi_shift_media, casesi_load_media): New.
24612 (return): Explicitly use PR register. Call return trampoline
24614 (return_i): Explicitly use PR register.
24615 (shcompact_return_tramp, shcompact_return_tramp_i): New.
24616 (return_media): Adjust.
24617 (shcompact_incoming_args): New.
24618 (epilogue): Adjust.
24619 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
24620 (movstrsi): Disable on SH5.
24621 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
24622 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
24623 (subsf3, subsf3_media): Likewise.
24624 (mulsf3, mulsf3_media, mac_media): Likewise.
24625 (divsf3, divsf3_media): Likewise.
24626 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
24627 (floatsisf2, fux_truncsfsi2): Likewise.
24628 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
24630 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
24631 (cmpunsf_media, cmpsf): Likewise.
24632 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
24633 (abssf2, abssf2_media): Likewise.
24634 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
24635 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
24636 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
24637 (floatsidf2, fix_truncdfsi2): Likewise.
24638 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
24640 (cmpeqdf_media, cmpgtdf_media): Likewise.
24641 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
24642 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
24643 (absdf2, absdf2_media): Likewise.
24644 (extendsfdf2, extendsfdf2_media): Likewise.
24645 (truncsfdf2, truncsfdf2_media): Likewise.
24646 * config/sh/sh64.h: New file.
24647 * config/sh/t-sh64: New file.
24648 * config/sh/shmedia.h: New file.
24649 * config/sh/ushmedia.h: New file.
24650 * config/sh/sshmedia.h: New file.
24651 * configure.in: Added sh64-*-elf.
24652 * configure: Rebuilt.
24653 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
24654 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
24655 (reg_class_from_letter): Use `b' for TARGET_REGS.
24656 (print_operand): Support `%M', `%m', `AND' and
24657 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
24658 (andcosts): Adjust for SHmedia.
24659 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
24661 (target_reg_operand): New function.
24662 * config/sh/sh-protos.h (target_reg_operand): Declare.
24663 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
24664 FP registers on SH5.
24665 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
24667 (TARGET_REGISTER_P): New macro.
24668 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
24669 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
24670 (EXTRA_CONSTRAINT_S): New macro.
24671 (EXTRA_CONSTRAINT): Adjust.
24672 (FLOAT_TYPE_SIZE): Define to 32.
24673 (Pmode): DImode on SHmedia.
24674 (CONST_COSTS): Adjust for SHmedia literals.
24675 (PREDICATE_CODES): Added target_reg_operand.
24676 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
24677 * config/sh/sh.md: Remove all attrs from SHmedia insns.
24678 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
24679 (cmpdi): Accept SHmedia.
24680 (movdicc_false, movdicc_true): New insns.
24681 (movdicc): New expand.
24682 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
24684 (addsi3_media): Match `S' constraint.
24685 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
24686 (negdi2): Expand for SHmedia.
24687 (one_cmpldi2): New expand.
24688 (zero_extendsidi2): Change from expand to insn.
24689 (extendsidi2): Add constraints.
24690 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
24691 LD/ST address. Fix SI immediate loading split.
24692 (movhi_media, movqi_media, lduw, ldub): New insns.
24693 (movhi, movqi): Accept SHmedia.
24694 (shori_media, movdi_media): Relax input constraints. Split
24695 symbolic constants.
24696 (movdf_media, movsf_media): New insn. New split to movdi.
24697 (movdf, movsf): Match on SHmedia.
24698 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
24699 bgeu_media): New insns and splits. New insns with `_i' suffix.
24700 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
24701 (bunordered): New expand.
24702 (jump_compact): Renamed from `jump'.
24703 (jump_media): New insn.
24704 (jump): New expand.
24705 (call_media, call_value_media): New insns.
24706 (call, call_value): Adjust.
24707 (indirect_jump_compact): Renamed from `indirect_jump'.
24708 (indirect_jump_media): New insn.
24709 (indirect_jump): New expand.
24710 (untyped_call, return): Accept SHmedia.
24711 (return_media): New insn.
24712 (prologue, epilogue, blockage): Accept SHmedia.
24713 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
24714 (sunordered): New expand.
24715 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
24716 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
24717 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
24718 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
24719 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
24720 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
24721 abssf2_media): New insns.
24722 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
24723 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
24724 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
24725 floatdidf2, floatsidf2_media, fix_truncdfdi2,
24726 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
24727 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
24728 absdf2_media): New insns.
24729 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
24730 (extendsfdf2_media, truncdfsf2_media): New insns.
24731 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
24732 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
24733 * config/sh/sh.h (CONST_OK_FOR_J): Document.
24734 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
24735 * config/sh/sh.md (adddi3): New expand.
24736 (adddi3_media, adddi3z_media): New insns.
24737 (adddi3_compact): Renamed from adddi3.
24738 (addsi3_media): Use add.l r63 to add constant zero.
24739 (subdi3): New expand.
24740 (subdi3_media): New insn.
24741 (subdi3_compact): Renamed from subdi3.
24742 (mulsidi3): New expand.
24743 (mulsidi3_media): New insn.
24744 (mulsidi3_compact): Renamed from mulsidi3.
24745 (umulsidi3): New expand.
24746 (umulsidi3_media): New insn.
24747 (umulsidi3_compact): Renamed from umulsidi3.
24748 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
24749 (ashlsi3, ashrsi3, lshrsi3): Use them.
24750 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
24751 (ashldi3, ashrdi3, lshrdi3): Use them.
24752 (zero_extendsidi2): New expand.
24753 (extendsidi2): New insn.
24754 (movsi_media): New insn. Split to movdi to load constants.
24755 (movsi): Enable for shmedia.
24756 (movdi_media): New insn. Use shori_media to load wide constants.
24757 (short_media): New insn.
24758 (movdi): Enable for shmedia.
24759 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
24760 * config/sh/sh.h (CPP_SPEC): Added `m5'.
24761 (SUBTARGET_CPP_SPEC): Added `!m5'.
24762 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
24763 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
24764 to all other SH variants.
24765 (TARGET_DEFAULT): Set to SH1_BIT.
24766 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
24767 (BITS_PER_WORD): Raise to 64 on shmedia.
24768 (MAX_BITS_PER_WORD): Change to 64.
24769 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
24770 (INT_TYPE_SIZE): Keep as 32.
24771 (UNITS_PER_WORD): Raise to 8 on shmedia.
24772 (MIN_UNITS_PER_WORD): Keep as 4.
24773 (POINTER_SIZE): Raise to 64 on shmedia.
24774 (CONST_OK_FOR_J): New macro.
24775 (CONST_OK_FOR_LETTER_P): Use it.
24776 (processor_type): Add PROCESSOR_SH5.
24777 * config/sh/sh.md: Conditionalize all expands, insns and
24778 splits to TARGET_SH1.
24780 (addsi3_compact): Renamed from...
24781 (addsi3): Now an expand.
24782 (addsi3_media, subsi3_media): New insns.
24783 (subsi3): Don't negate constants with SHmedia.
24785 * hooks.c: New file.
24786 * hooks.h: New file.
24787 * Makefile.in (HOOKS_H): New.
24788 (TARGET_DEF_H): Added $(HOOKS_H).
24789 (OBJS): Added hooks.o.
24790 (cfgcleanup.o, bb-reorder.o): Added target.h.
24791 (hooks.o): Added dependencies.
24792 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
24793 (TARGET_INITIALIZER): this.
24794 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
24795 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
24796 * bb-reorder.c: Include target.h.
24797 (reorder_basic_blocks): Skip if cannot modify jumps.
24798 * cfgcleanup.c: Include target.h.
24799 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
24801 2002-02-08 Chris Demetriou <cgd@broadcom.com>
24803 * config/mips/mips.md (casesi_internal, casesi_internal_di):
24804 Protect jump delay slot instructions with .set noreorder and
24807 2002-02-08 Chris Demetriou <cgd@broadcom.com>
24809 * config/mips/mips.md (casesi_internal_di): Calculate
24810 the index into the target offset table correctly.
24812 2002-02-08 Richard Henderson <rth@redhat.com>
24814 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
24815 * final.c (output_addr_const): Accept and discard SUBREG.
24816 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
24817 mark them unknown instead.
24818 (simplify_subtraction): Handle RTX_UNKNOWN.
24819 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
24821 2002-02-08 David Edelsohn <edelsohn@gnu.org>
24823 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
24825 2002-02-08 Richard Henderson <rth@redhat.com>
24827 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
24829 2002-02-08 Andreas Jaeger <aj@suse.de>
24831 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
24832 * config/i386/t-linux64: New file.
24834 2002-02-08 Jakub Jelinek <jakub@redhat.com>
24836 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
24837 * c-parse.in (compstmt): Clear last_expr_type.
24839 2002-02-07 Richard Henderson <rth@redhat.com>
24841 * loop.c (strength_reduce): Sink final_value when not
24844 2002-02-07 David O'Brien <obrien@FreeBSD.org>
24846 * config/sparc/freebsd.h: Fix mismatched spec {.
24848 2002-02-07 Richard Henderson <rth@redhat.com>
24850 * cfgrtl.c: Include recog.h and insn-config.h.
24851 (keep_with_call_p): Fix general_operand invocation.
24852 * Makefile.in (cfgrtl.o): Update dependencies.
24854 2002-02-07 Kazu Hirata <kazu@hxi.com>
24856 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
24857 comment. Accept HImode only if TARGET_H8300.
24859 2002-02-07 Eric Christopher <echristo@redhat.com>
24861 * config/mips/crtn.asm: Cleanup #ifdefs.
24863 2002-02-07 Eric Christopher <echristo@redhat.com>
24865 * config/mips/crti.asm: Add changes for mips16. mips16 uses
24866 register 7 as RA instead of $31.
24867 * config/mips/crtn.asm: Ditto.
24868 * config/mips/mips.c (mips_move_2words): Add case for
24869 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
24870 (compute_frame_size): Fix typo.
24871 (save_restore_insns): Ditto. Make documentation about using
24872 register $7 as return register more precise.
24873 (mips_expand_epilogue): Fix comment. Add code to work around not
24874 being able to add to the stack pointer directly.
24875 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
24876 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
24879 2002-02-07 Tom Rix <trix@redhat.com>
24881 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
24882 immediates in ldu and stdu DS opcode field.
24883 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
24884 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
24885 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
24887 2002-02-07 Jeff Sturm <jsturm@one-point.com>
24889 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
24890 offset for stack bias.
24892 2002-02-07 H.J. Lu <hjl@gnu.org>
24894 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
24896 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
24898 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
24900 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
24902 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
24903 * i386.c (x86_order_regs_for_local_alloc): New global function.
24904 * i386.h (REG_ALLOC_ORDER): CLeanup.
24905 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
24907 2002-02-07 Richard Henderson <rth@redhat.com>
24909 PR optimization/2463
24910 * alias.c (find_base_value): Recall base values for fixed hard regs.
24911 * loop.c (loop_regs_update): Don't use single_set on non-insns.
24913 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
24915 * config/mips/mips.md (define_delay) [mips16]: Adjust required
24918 2002-02-06 Richard Henderson <rth@redhat.com>
24921 * stmt.c (resolve_operand_name_1): Take more care with mixed
24922 named and unnamed operands.
24924 2002-02-06 Janis Johnson <janis187@us.ibm.com>
24925 Jan Hubicka <jh@suse.cz>
24927 * loop.c (remove_constant_addition): Avoid clobbering a shared
24930 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
24932 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
24933 * config/s390/t-linux64: New file.
24934 * config/s390/libgcc-glibc.ver: New file.
24936 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
24938 * config/s390/linux64.h: Delete file.
24939 * config/s390/s390x.h: New file.
24940 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
24941 as target header file.
24942 * config/s390/linux.h (TARGET_VERSION): Define depending on
24943 DEFAULT_TARGET_64BIT.
24944 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
24945 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
24946 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
24947 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
24948 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
24949 (EXTRA_SPEC): New define.
24950 * config/s390/s390.h (TARGET_VERSION): Define depending on
24951 DEFAULT_TARGET_64BIT.
24952 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
24954 2002-02-06 Jason Merrill <jason@redhat.com>
24956 * c-decl.c (finish_function): Warn about a non-void function with
24957 no return statement and no abnormal exit.
24958 (current_function_returns_abnormally): New variable.
24959 (start_function): Clear it.
24960 (struct c_language_function): Add returns_abnormally.
24961 (push_c_function_context): Save it.
24962 (pop_c_function_context): Restore it.
24963 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
24964 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
24965 an explicit return type.
24966 * c-tree.h: Declare current_function_returns_abnormally.
24967 (C_FUNCTION_IMPLICIT_INT): New macro.
24968 * c-typeck.c (build_function_call): Set it.
24969 (c_expand_return): Set current_function_returns_value even if the
24970 value is erroneous.
24972 2002-02-06 Jakub Jelinek <jakub@redhat.com>
24975 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
24976 unsafe for reevaluation.
24978 2002-02-06 Jakub Jelinek <jakub@redhat.com>
24981 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
24982 EXPR_STMT, but COMPOUND_STMT, recurse into it.
24984 2002-02-06 Richard Henderson <rth@redhat.com>
24986 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
24987 be a general_operand. Dest for function value must be a pseudo.
24989 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
24991 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
24992 as SYMBOL_REFs from the constant pool.
24994 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
24996 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
24997 passed by invisible reference.
24999 2002-02-05 Richard Henderson <rth@redhat.com>
25001 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
25003 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
25005 Implement using "base addresses" in insn operands as default.
25006 * config/mmix/mmix.c (mmix_conditional_register_usage): if
25007 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
25008 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
25009 used to read the rtx value.
25010 (mmix_target_asm_function_epilogue): Fix spacing.
25011 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
25012 (mmix_legitimate_address): Ditto.
25013 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
25014 should be loaded with a GETA insn. Don't allocate needless extra
25015 char for nul termination and fix misleading comment.
25016 (mmix_print_operand_address): Handle constants if
25017 TARGET_BASE_ADDRESSES.
25018 (mmix_output_register_setting): Use base addressing if
25019 TARGET_BASE_ADDRESSES and the number of insns is 3.
25020 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
25021 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
25022 to use R as constraint, add LDA to match s.
25023 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
25024 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
25025 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
25026 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
25027 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
25028 order with other fixed registers.
25029 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
25030 other parameter/call-clobbered registers.
25031 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
25032 -mbase-addresses, -mno-base-addresses.
25033 (MMIX Options): Ditto.
25035 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
25037 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
25039 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
25041 * config/rs6000/altivec.h: Change elem to _S_elem.
25043 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
25045 * config/netbsd.h (WCHAR_TYPE): Define.
25046 (WCHAR_TYPE_SIZE): Ditto.
25047 (WINT_TYPE): Ditto.
25048 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
25049 (WCHAR_UNSIGNED): Ditto.
25050 (WCHAR_TYPE_SIZE): Ditto.
25051 (WINT_TYPE): Ditto.
25052 * config/arm/netbsd.h: Likewise.
25053 * config/i386/netbsd-elf.h: Likewise.
25054 * config/i386/netbsd.h: Likewise.
25055 * config/m68k/netbsd-elf.h: Likewise.
25056 * config/m68k/netbsd.h: Likewise.
25057 * config/ns32k/netbsd.h: Likewise.
25058 * config/sparc/netbsd.h: Likewise.
25059 * config/vax/netbsd.: Likewise.
25061 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
25063 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
25064 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
25065 (TARGET_INITIALIZER): this.
25066 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
25067 (BITFIELD_NBYTES_LIMITED): Markup fix.
25068 * tree.h (default_ms_bitfield_layout_p): Declare.
25069 (record_layout_info): Added prev_field.
25070 * tree.c (default_ms_bitfield_layout_p): New fn.
25071 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
25072 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
25073 * stor-layout.c: Include target.h.
25074 (start_record_layout): Initialize prev_field.
25075 (place_field): Handle MS bit-field layout, and disregard
25076 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
25077 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
25078 * Makefile.in (stor-layout.o): Adjust dependencies.
25080 2002-02-05 Jason Merrill <jason@redhat.com>
25082 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
25084 2002-02-05 Andreas Jaeger <aj@suse.de>
25086 * crtstuff.c: Fix comments.
25088 2002-02-05 Richard Henderson <rth@redhat.com>
25091 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
25092 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
25095 * config/mips/mips.c (function_arg): Handle TImode.
25096 (function_arg_advance): Likewise.
25098 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
25100 * config/rs6000/altivec.h (vec_step_help): Rename to
25103 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
25105 * config/rs6000/altivec.h: Fix typos.
25107 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
25109 * config/arm/netbsd.h: Correct a comment.
25111 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
25113 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
25114 building void typed builtins.
25116 * config/rs6000/altivec.h (vec_ld*): Fix typos.
25117 (vec_step): Implement for C++.
25119 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25121 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
25123 2002-02-04 Richard Henderson <rth@redhat.com>
25125 * combine.c (nonzero_bits): Re-introduce special case for
25126 sp/fp/ap wrt REGNO_POINTER_ALIGN.
25128 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
25130 * doc/extend.texi: Warn about unsupported usage of altivec
25133 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
25134 (altivec_predicate_*): New.
25136 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
25137 Add C++ version of vec_*() functions.
25139 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
25140 (bdesc_2arg): Remove altivec predicates.
25141 (altivec_expand_builtin): Handle predicates.
25142 (altivec_init_builtins): Handle predicates.
25143 (altivec_expand_predicate_builtin): New.
25145 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
25147 * pa.c (DO_FRAME_NOTES): Move forward.
25148 (store_reg): Revise handling of frame notes.
25149 (load_reg): Likewise.
25150 (set_reg_plus_d): Likewise.
25151 (hppa_expand_prologue): Likewise.
25152 (hppa_expand_epilogue): Likewise.
25154 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
25156 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
25158 2002-02-04 Jakub Jelinek <jakub@redhat.com>
25160 PR c/4475, c++/3780:
25161 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
25162 * c-common.h (SWITCH_TYPE): Define.
25163 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
25164 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
25165 Rename spareness variable to sparseness.
25166 (expand_end_case_type): Renamed from expand_end_case, use orig_type
25167 if non-NULL instead of TREE_TYPE (orig_index).
25168 * tree.h (expand_end_case_type): Renamed from expand_end_case.
25169 (expand_end_case): Define using expand_end_case_type.
25170 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
25171 to expand_end_case_type.
25172 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
25174 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
25176 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
25177 (BIGGEST_ALIGNMENT): Change to 128.
25179 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
25181 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
25183 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
25185 * pa.md (call_internal_reg_64bit): Remove unused variable.
25187 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
25189 * config/arm/arm.h (machine_function): Add uses_anonymous_args
25191 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
25192 * config/arm/arm.c (current_function_anonymous_args): Delete,
25193 replace uses with cfun->machine->uses_anonymous_args.
25194 (arm_reorg): Do not reset uses_anonymous_args.
25196 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
25197 any geenral register.
25199 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
25201 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
25204 2002-02-04 Richard Henderson <rth@redhat.com>
25206 * combine.c (force_to_mode): Remove STACK_BIAS code.
25207 (nonzero_bits): Likewise. Replace sp/fp special case with
25208 REGNO_POINTER_ALIGN.
25210 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
25211 (HARD_FRAME_POINTER_REGNUM): New.
25212 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
25213 (FIXED_REGS, CALL_USED_REGS): Update.
25214 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
25215 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
25216 (HARD_REGNO_NREGS): Update for SFP.
25217 (STACK_POINTER_OFFSET): Include bias here ...
25218 (FIRST_PARM_OFFSET): ... not here.
25219 (STACK_BIAS): Remove.
25220 (INIT_EXPANDERS): New.
25221 (STARTING_FRAME_OFFSET): Do not include bias.
25222 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
25223 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
25224 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
25225 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
25226 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
25227 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
25228 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
25229 (MUST_SAVE_REGISTER): Likewise.
25230 (sparc_flat_function_prologue): Likewise.
25231 (sparc_flat_function_epilogue): Likewise.
25232 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
25233 (sparc_init_modes): SFP is GENERAL_REGS.
25234 (sparc_builtin_saveregs): SFP does not have bias applied.
25236 2002-02-04 Richard Henderson <rth@redhat.com>
25238 * config/alpha/alpha.c (current_function_is_thunk): Don't check
25239 current_function_is_thunk.
25240 (alpha_sa_mask): Distinguish between current_function_is_thunk
25241 called from ASM_OUTPUT_MI_THUNK and not.
25242 (alpha_does_function_need_gp): Thunks always need gp.
25243 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
25244 (alpha_output_mi_thunk_osf): New.
25245 * config/alpha/alpha-protos.h: Update.
25246 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
25248 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
25250 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
25251 function types, not when they're taken away.
25253 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
25255 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
25256 CODE_LABEL and jump table when replacing a table jump with a
25259 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
25261 * config/s390/s390-protos.h (legitimize_la_operand,
25262 s390_secondary_input_reload_class, s390_plus_operand,
25263 s390_expand_plus_operand): Add prototypes.
25265 config/s390/s390.c (s390_secondary_input_reload_class,
25266 s390_plus_operand, s390_expand_plus_operand): New functions.
25268 (struct s390_address): New member 'pointer'.
25269 (s390_decompose_address): Compute it.
25270 (legitimate_la_operand_p): Use it.
25271 (legitimize_la_operand): New function.
25272 (movti, movdi, movdf splitters): Call it.
25274 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
25275 (PREDICATE_CODES): Add s390_plus_operand.
25277 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
25278 (la_ccclobber): Allow GENERAL_REGS as output operand.
25280 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
25281 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
25282 (*la_64, *la_31, reload_indi, reload_insi): ... these.
25284 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
25286 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
25287 register names for regular asm () construct.
25289 2002-02-04 Jakub Jelinek <jakub@redhat.com>
25291 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
25294 2002-02-04 Jakub Jelinek <jakub@redhat.com>
25296 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
25299 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
25301 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
25302 constant pool to be identical by string address and index.
25304 2002-02-04 Anthony Green <green@redhat.com>
25306 * output.h (SECTION_OVERRIDE): Define.
25307 * varasm.c (named_section): Obey SECTION_OVERRIDE.
25309 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
25311 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
25312 by existing arm*-*-netbsd* (a.out) target.
25313 (ns32k-*-netbsdelf*): Likewise.
25314 (sparc-*-netbsdelf*): Likewise.
25315 (vax-*-netbsdelf*): Likewise.
25317 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
25319 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
25320 headers and libobjc headers.
25322 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
25324 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
25325 (_mingw.h): Remove duplicate include.
25327 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
25329 * config.gcc: Set cpu_type to m68k for 68010, as well.
25330 (m68010-*-netbsdelf*): New...
25331 (m68k*-*-netbsdelf*): ...targets.
25332 * config/m68k/netbsd-elf.h: New file.
25334 2002-02-02 Kazu Hirata <kazu@hxi.com>
25336 * config/h8300/h8300.c (hand_list): Move inside function_arg.
25338 2002-02-02 Kazu Hirata <kazu@hxi.com>
25340 * config/h8300/h8300.c (h8_push_ops): Move inside
25342 (h8_pop_ops): Likewise.
25343 (h8_move_ops): Likewise.
25345 2002-02-02 Kazu Hirata <kazu@hxi.com>
25347 * config/h8300/h8300.c (os_task): Make it static.
25348 (monitor): Likewise.
25349 (pragma_saveall): Likewise.
25351 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
25353 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
25354 constant is a valid sign-extension for Pmode.
25356 2002-02-02 Kazu Hirata <kazu@hxi.com>
25358 * config/h8300/h8300.c: Fix formatting.
25360 2002-02-02 Kazu Hirata <kazu@hxi.com>
25362 * config/h8300/h8300.md: Fix formatting.
25364 2002-02-02 Kazu Hirata <kazu@hxi.com>
25366 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
25367 predicates of operands[1]. Split the patterns for each
25370 2002-02-02 Kazu Hirata <kazu@hxi.com>
25372 * config/h8300/h8300.md (xor patterns): Tighten the predicates
25373 of operands[1] to register_operand.
25375 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
25377 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
25378 * cpphash.c (_cpp_init_hashtable): Similarly.
25379 * cppinit.c (cpp_create_reader): Default the signed_char flag.
25380 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
25381 (COMMAND_LINE_OPTIONS): Recognize -f{un,}signed-char.
25382 (cpp_handle_option): Handle the new options.
25383 * cpplex.c (cpp_interpret_charconst): Use new flag.
25384 * cpplib.h (struct cpp_options): New member signed_char.
25385 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
25386 (cpp_options): Handle -fsigned-char and -funsigned-char.
25387 (static_specs): Remove signed_char_spec.
25388 (do_spec1): Don't handle %c.
25389 * system.h: Poison SIGNED_CHAR_SPEC.
25390 * tradcif.y (yylex): Use flag_signed_char.
25391 * tradcpp.h (flag_signed_char): New.
25392 * tradcpp.c (flag_signed_char): New.
25393 (main): Handle new command-line options.
25394 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
25396 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
25397 * avr/avr.h: Remove old comments.
25398 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
25399 (CC1_SPEC): Pass -fsigned-char if -mic*.
25400 (SIGNED_CHAR_SPEC): Remove.
25402 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
25404 2002-02-01 Eric Christopher <echristo@redhat.com>
25406 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
25407 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
25408 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
25409 (ASM_OUTPUT_REG_POP): Ditto.
25411 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
25413 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
25416 2002-02-02 Jakub Jelinek <jakub@redhat.com>
25418 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
25420 2002-02-02 Jakub Jelinek <jakub@redhat.com>
25423 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
25426 2002-02-01 Janis Johnson <janis187@us.ibm.com>
25428 * cfganal.c: Include tm_p.h.
25429 (keep_with_call_p): Fix the test that determines if a register holds
25430 the return value of a call.
25432 2002-02-01 DJ Delorie <dj@redhat.com>
25434 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
25435 we are given conflicting registers, switch to the other one we
25436 had allocated for us.
25437 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
25438 as TImode so we know when the "other" register is available.
25440 2002-02-01 David O'Brien <obrien@FreeBSD.org>
25442 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
25445 2002-02-01 Janis Johnson <janis187@us.ibm.com>
25447 * cfganal.c (keep_with_call_p): New function.
25448 (flow_call_edges_add): Prevent splitting a block between a call and
25449 a single-set instruction that should be kept in the same block.
25451 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
25453 * doc/install.texi (avr): Update outdated URL.
25455 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
25457 * config/stormy16/stormy16.md (pushqi): New.
25461 (movhi): Remove stack operands.
25463 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
25464 nonimmediate_nonstack_operand.
25465 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
25467 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
25470 2002-01-31 Jason Merrill <jason@redhat.com>
25472 * Makefile.in (c-parse.c): Handle .output file.
25473 * objc/Make-lang.in (objc-parse.c): Likewise.
25475 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
25477 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
25478 the -me[lb] option is given. Don't output the default flag
25481 2002-01-31 Zack Weinberg <zack@codesourcery.com>
25483 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
25484 the primary source file; this has not been done yet.
25485 * c-decl.c (c_expand_body): Reset input_filename from
25486 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
25488 2002-01-31 Kazu Hirata <kazu@hxi.com>
25490 * rtlanal.c (subreg_regno_offset): Do not use
25491 SUBREG_REGNO_OFFSET.
25492 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
25493 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
25495 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
25497 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
25498 version rather than GNATS version in --version output.
25500 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
25502 * ifcvt.c (noce_process_if_block): Make a copy of the destination
25503 when copying back from a temporary.
25505 2002-01-30 Richard Henderson <rth@redhat.com>
25507 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
25508 and new_dest are the same.
25510 2002-01-30 Richard Henderson <rth@redhat.com>
25513 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
25514 * rtl.c (note_insn_name): Update.
25515 * emit-rtl.c (remove_unnecessary_notes): Kill it.
25516 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
25517 to perform loop rotation.
25518 (expand_exit_loop_top_cond): New.
25519 * tree.h (expand_exit_loop_top_cond): Declare it.
25520 * c-semantics.c (genrtl_while_stmt): Use it.
25521 (genrtl_for_stmt): Likewise.
25523 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
25525 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
25526 arguments to 64-bit boundaries on 64-bit ABIs.
25528 2002-01-30 Steve Ellcey <sje@cup.hp.com>
25530 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
25532 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
25534 * c-decl.c (grokdeclarator): Handle type being a typedef for an
25537 2002-01-30 David O'Brien <obrien@FreeBSD.org>
25539 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
25540 * config/sparc/sparc_bi.h: Remove file.
25541 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
25543 2002-01-30 Richard Henderson <rth@redhat.com>
25545 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
25547 2002-01-30 Zack Weinberg <zack@codesourcery.com>
25549 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
25551 2002-01-30 Jason Merrill <jason@redhat.com>
25553 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
25554 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
25555 (reg_save): Use DW_CFA_offset_extended_sf instead.
25557 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
25559 2002-01-29 Jakub Jelinek <jakub@redhat.com>
25561 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
25564 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
25566 * rs6000.md ("*call_value_local32"): Remove constraints.
25567 ("*call_value_local64"): Same.
25568 ("*call_value_indirect_nonlocal_aix32"): Same.
25569 ("*call_value_nonlocal_aix32"): Same.
25570 ("*call_value_indirect_nonlocal_aix64"): Same.
25571 ("*call_value_nonlocal_aix64"): Same.
25572 ("*call_value_nonlocal_sysv"): Same.
25574 2002-01-29 Richard Henderson <rth@redhat.com>
25576 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
25578 2002-01-29 Richard Henderson <rth@redhat.com>
25580 * expr.c (force_operand): Ignore flag_pic for detecting pic
25582 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
25583 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
25584 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
25585 instead of open-coded loop.
25586 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
25587 be fixed when in use.
25589 2002-01-29 Richard Henderson <rth@redhat.com>
25591 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
25592 * sched-rgn.c (propagate_deps): Update them.
25593 * sched-deps.c (sched_analyze_insn): Update them. Flush the
25594 clobbers list when either gets too long.
25596 2002-01-29 Jakub Jelinek <jakub@redhat.com>
25598 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
25599 and INDEX_REGS the same as GENERAL_REGS.
25600 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
25602 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
25604 * tree.c (build_nonstandard_integer_type): Correct prototype.
25606 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
25608 * config/s390/s390.md (movstrsico, movstrdix_64,
25609 movstrsix_31): Remove, replace by ...
25610 (movstrdi_short, movstrsi_short, movstrdi_long,
25611 movstrsi_long): ... these. New.
25612 (movstrdi, movstrsi): Adapt.
25614 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
25615 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
25616 Remove unnecessary CC clobber.
25617 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
25618 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
25620 (divmoddi4): Don't partially initialize TImode register.
25622 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
25624 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
25626 2002-01-29 Richard Henderson <rth@redhat.com>
25628 * flow.c (print_rtl_and_abort): Remove.
25629 (print_rtl_and_abort_fcn): Remove.
25630 (verify_local_live_at_start): Use dump_bb instead.
25631 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
25632 (verify_wide_reg_1): Return 2 on mode test failure.
25634 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
25636 PR c/3325, c/3326, c/2511, c/3347
25637 * c-decl.c (enum_decl_context): Remove BITFIELD.
25638 (grokdeclarator): Take bitfield width as an input.
25639 Ensure bitfields are given the correct type. Perform
25640 bitfield width validation with build_bitfield_integer_type
25641 rather than waiting for finish_struct.
25642 (grok_typename, grok_typename_in_parm_context, start_decl,
25643 push_parmdecl, grokfield, start_function): Update calls to
25645 (build_bitfield_integer_type): New function.
25646 (finish_struct): Move bitfield validation to grokdeclarator
25647 and build_bitfield_integer_type.
25648 * tree.c (build_nonstandard_integer_type): New function.
25649 * tree.h (build_nonstandard_integer_type): New prototype.
25651 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
25653 2002-01-29 Jakub Jelinek <jakub@redhat.com>
25656 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
25657 don't ignore unrecognized -W* options.
25658 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
25659 * cpplib.h (cpp_handle_option): Adjust prototype.
25660 * c-decl.c (c_decode_options): Pass 0 as last argument to
25664 * gcc.c (cpp_unique_options): Split from cpp_options.
25665 (cpp_options): Source cpp_unique_options.
25666 (default_compilers): Use cpp_unique_options instead of cpp_options
25667 when used together with cc1_options.
25668 (static_specs): Add cpp_unique_options.
25669 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
25670 when used together with cc1_options.
25672 2002-01-29 Kazu Hirata <kazu@hxi.com>
25674 * config/h8300/h8300-protos.h: Update the prototype of
25676 * config/h8300/h8300.c (output_a_shift): Remove an unused
25677 argument 'insn'. Remove redundant code.
25678 * config/h8300/h8300.md: Adust to the new prototype of
25681 2002-01-29 Kazu Hirata <kazu@hxi.com>
25683 * config/h8300/h8300-protos.h: Update the prototypes of
25684 emit_a_rotate and expand_a_rotate.
25685 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
25686 first argument to 'enum rtx_code'.
25687 (expand_a_rotate): Likewise.
25689 2002-01-28 Kazu Hirata <kazu@hxi.com>
25691 * config/h8300/h8300-protos.h: Update the prototype of
25693 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
25695 * config/h8300/h8300.md: Adjust to the new prototype.
25697 2002-01-28 Kazu Hirata <kazu@hxi.com>
25699 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
25702 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
25704 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
25705 is a fixed register before returning pic_offset_table_rtx.
25706 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
25707 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
25709 2002-01-28 Jason Merrill <jason@redhat.com>
25711 * dwarf2.h: Sync with src version.
25713 2002-01-28 Paul Koning <pkoning@equallogic.com>
25715 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
25716 BT_FN_VOID_PTR_VAR.
25717 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
25718 * doc/extend.texi (__builtin_prefetch): Update documentation:
25719 first argument is now const void ptr.
25721 2002-01-28 Kazu Hirata <kazu@hxi.com>
25723 * config/h8300/h8300-protos.h: Remove an unused prototype.
25725 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
25727 * toplev.c (lang_independent_init): Round up identifier size.
25729 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
25731 * config.gcc: Revert previous change.
25733 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
25735 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
25737 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
25739 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
25740 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
25741 other non-elf netbsd config frags.
25742 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
25743 collect2 will does that.
25744 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
25745 shared-lib frobbing will work.
25747 2002-01-28 Kazu Hirata <kazu@hxi.com>
25749 * config/h8300/h8300.h: Fix formatting.
25750 * config/h8300/h8300.md: Likewise.
25752 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
25754 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
25755 the old, removed AAA_standards fix.
25756 * fixinc/fixincl.x: Rebuilt.
25758 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
25760 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
25761 atexit call in crtbegin, hooked in after call to frame_dummy;
25762 register EH before registering __fini__start.
25764 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
25766 * config/rs6000/altivec.h: Remove spurious semicolons.
25768 2002-01-27 Kazu Hirata <kazu@hxi.com>
25770 * config/h8300/h8300.md: Replace dead bit extraction patterns
25771 with ones that work.
25773 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25775 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
25776 if not STRICT_ALIGNMENT.
25777 * rtl.h (MEM_ALIGN): Likewise.
25779 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
25781 * doc/invoke.texi (-fdump-translation-unit): Revert this
25782 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
25784 2002-01-27 Kazu Hirata <kazu@hxi.com>
25786 * config/h8300/h8300.md (define_constants): New.
25787 (anonymous patterns) Use defined constants appropriately.
25789 2002-01-27 Kazu Hirata <kazu@hxi.com>
25791 * config/h8300/h8300.c (function_arg): Remove redundant code.
25793 2002-01-26 Richard Henderson <rth@redhat.com>
25795 * sched-deps.c (reg_pending_uses_head): New.
25796 (reg_pending_barrier): Rename from reg_pending_sets_all.
25797 (find_insn_list): Don't mark inline.
25798 (find_insn_mem_list): Remove.
25799 (add_dependence_list, add_dependence_list_and_free): New.
25800 (flush_pending_lists): Replace only_write param with separate
25801 for_read and for_write parameters. Update all callers. Use
25802 add_dependence_list_and_free.
25803 (sched_analyze_1): Do not add reg dependencies here; just set
25804 the pending bits. Use add_dependence_list.
25805 (sched_analyze_2): Likewise.
25806 (sched_analyze_insn): Replace schedule_barrier_found with
25807 reg_pending_barrier. Add all dependencies for pending reg
25808 uses, sets, and clobbers.
25809 (sched_analyze): Don't add reg dependencies for calls, just
25810 set pending bits. Use regs_invalidated_by_call. Treat
25811 sched_before_next_call as a normal list, not a fake insn.
25812 (init_deps): No funny init for sched_before_next_call.
25813 (free_deps): Free pending mems lists. Don't zero reg_last.
25814 (init_deps_global): Init reg_pending_uses.
25815 (finish_deps_global): Free it.
25816 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
25817 (find_insn_mem_list): Remove.
25818 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
25819 (propagate_deps): Use them. Zero temp mem lists.
25821 2002-01-26 Richard Henderson <rth@redhat.com>
25823 * Makefile.in (CRTSTUFF_CFLAGS): New.
25824 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
25825 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
25826 crtstuff.c instead of alpha assembly version.
25827 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
25828 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
25829 not FORCE_{INIT,FINI}_SECTION_ALIGN.
25830 (__do_global_dtors_aux): Mark used.
25831 (frame_dummy, __do_global_ctors_aux): Mark used.
25832 (fini_dummy, init_dummy): Remove.
25834 * config/alpha/crtbegin.asm: Remove file.
25835 * config/alpha/crtend.asm: Remove file.
25836 * config/alpha/t-crtbe: Remove file.
25837 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
25838 (LINK_EH_SPEC): New.
25840 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
25841 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
25842 calling constructors.
25843 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
25845 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
25846 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
25847 CRT_END_INIT_DUMMY hack.
25848 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
25849 FORCE_{INIT,FINI}_SECTION_ALIGN.
25851 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
25852 FORCE_{INIT,FINI}_SECTION_ALIGN.
25854 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
25855 invocation sequence.
25856 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
25858 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
25859 (FORCE_CODE_SECTION_ALIGN): New.
25861 2002-01-26 Richard Henderson <rth@redhat.com>
25863 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
25865 2002-01-26 Richard Henderson <rth@redhat.com>
25867 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
25868 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
25870 2002-01-26 Kazu Hirata <kazu@hxi.com>
25872 * config/h8300/h8300.md: Remove bit extraction patterns that
25873 cannot be triggered.
25874 Restrict each bit extraction pattern to a variant on which the
25877 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
25879 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
25881 2002-01-26 Kazu Hirata <kazu@hxi.com>
25883 * config/h8300/h8300.md: Remove bit test patterns that cannot
25885 Restrict each bit test pattern to a variant on which the
25888 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25890 * builtins.c (expand_builtin_strncat): Remove redundant check for
25893 2002-01-25 David O'Brien <obrien@FreeBSD.org>
25895 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
25897 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
25900 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
25902 * dbxout.c (dbxout_init): Use assemble_name rather than just
25903 stripping off the first character.
25904 (dbxout_source_file): Likewise.
25906 2002-01-25 DJ Delorie <dj@redhat.com>
25908 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
25909 using rtx_equal_p, not by comparing pointers.
25911 2002-01-25 Steve Ellcey <sje@cup.hp.com>
25913 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
25914 for PIC_OFFSET_TABLE_REGNUM.
25915 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
25917 2002-01-25 David O'Brien <obrien@FreeBSD.org>
25919 * config.gcc (x86_64-*-freebsd*): New target.
25920 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
25922 (i[34567]86-*-freebsd*): Don't include svr4.h.
25923 * config/i386/freebsd64.h: New file.
25925 2002-01-25 Douglas B Rupp <rupp@gnat.com>
25927 * config/alpha/x-vms (version): Make static.
25929 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
25930 in previous checkin.
25932 * Makefile.in (install-headers-cp): New target.
25933 * config.gcc (alpha-dec-*vms*): Install headers with
25936 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
25938 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
25941 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25943 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
25944 of compare_tree_int.
25945 (expand_builtin_strncat): Likewise.
25946 * c-decl.c (finish_struct): Use tree_low_cst.
25947 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
25948 * tree.c (compare_tree_int): Likewise.
25950 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
25952 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
25953 adjustments even if they are implemented by more than two insns.
25955 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
25957 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
25958 * df.h (struct ref): Kill B.
25959 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
25961 * basic-block.h (PROP_EQUAL_NOTES): New flag.
25962 * flow.c (propagate_one_insn): Use it.
25963 (mark_used_regs): Handle NIL.
25965 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
25967 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
25970 2002-01-25 David Edelsohn <edelsohn@gnu.org>
25972 * rs6000.md (prefetch): Make address V4SI mode so that the address
25973 is restricted to legitimate form for instruction.
25975 2002-01-25 Bob Wilson <bob.wilson@acm.org>
25977 * doc/install.texi (xtensa-*-elf): New target.
25978 (xtensa-*-linux*): New target.
25979 * doc/contrib.texi: Add myself.
25981 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
25983 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
25984 purpose register to hold an SImode (or smaller) value.
25986 2002-01-25 Jakub Jelinek <jakub@redhat.com>
25988 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
25990 * crtstuff.c: Likewise.
25992 2002-01-25 Kazu Hirata <kazu@hxi.com>
25994 * config/h8300/h8300.md (negation patterns): Tighten
25995 predicates to register_operand.
25997 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
25999 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
26002 * builtins.c (expand_builtin_prefetch): Same.
26004 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
26006 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
26009 2002-01-24 Kazu Hirata <kazu@hxi.com>
26011 * config/h8300/h8300.c (print_operand): Remove support for
26012 operand character 'A'.
26013 * config/h8300/h8300.md (three anonymous patterns): Replace
26014 operand character 'A' with either 'T' or 'S'.
26016 2002-01-24 Kazu Hirata <kazu@hxi.com>
26018 * config/h8300/h8300.c (print_operand): Remove support for
26019 operand character 'U'.
26021 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
26023 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
26025 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
26027 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
26028 values to be assigned to the stack pointer.
26030 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
26032 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
26033 to const_double needs to be done right for big-endian systems.
26035 2002-01-24 Jason Merrill <jason@redhat.com>
26038 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
26039 to can_throw_internal.
26041 2002-01-23 Richard Henderson <rth@redhat.com>
26043 * fold-const.c (fold): Change UINT_MAX test to check vs precision
26044 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
26046 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
26048 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
26049 (symGOT2reg): Use them, then set as GOT value as unchanging.
26050 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
26051 as a temporary, if possible.
26052 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
26053 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
26055 2002-01-23 Kazu Hirata <kazu@hxi.com>
26057 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
26058 accept to accept 0x80 as operands[2].
26060 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
26062 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
26064 2002-01-23 Richard Henderson <rth@redhat.com>
26066 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
26068 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
26070 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
26071 (parmlist_or_identifiers_1): Verify that only a parmlist follows
26074 2002-01-23 Richard Henderson <rth@redhat.com>
26076 * expr.c (move_by_pieces_1): Extend size before negation.
26078 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
26079 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
26080 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
26081 * config/m68k/t-m68kelf: Likewise.
26083 2002-01-23 Bob Wilson <bob.wilson@acm.org>
26085 * config/xtensa/elf.h: New file.
26086 * config/xtensa/lib1funcs.asm: New file.
26087 * config/xtensa/lib2funcs.S: New file.
26088 * config/xtensa/linux.h: New file.
26089 * config/xtensa/t-xtensa: New file.
26090 * config/xtensa/xtensa-config.h: New file.
26091 * config/xtensa/xtensa-protos.h: New file.
26092 * config/xtensa/xtensa.c: New file.
26093 * config/xtensa/xtensa.h: New file.
26094 * config/xtensa/xtensa.md: New file.
26095 * config.gcc (xtensa-*-elf*): New target.
26096 (xtensa-*-linux*): New target.
26097 * cse.c (canon_hash): Compare rtx pointers instead of register
26098 numbers. This is required for the Xtensa port.
26099 * integrate.c (copy_insn_list): Handle case where the static
26100 chain is in memory and the memory address has to be copied to
26102 * doc/invoke.texi (Option Summary): Add Xtensa options.
26103 (Xtensa Options): New node.
26104 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
26106 2002-01-23 Zack Weinberg <zack@codesourcery.com>
26108 * diagnostic.c (internal_error): Do ICE suppression only
26109 when ENABLE_CHECKING is not defined.
26111 * c-typeck.c (require_complete_type): Return error_mark_node
26112 if type is error_mark_node.
26114 2002-01-23 Janis Johnson <janis187@us.ibm.com>
26116 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
26117 -Os and issue a warning.
26119 2002-01-23 Zack Weinberg <zack@codesourcery.com>
26121 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
26122 current (lack of) need for host configuration by hand.
26124 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
26125 references. Documentation of some target macros moved from
26126 hostconfig.texi to tm.texi.
26128 2002-01-23 Will Cohen <wcohen@redhat.com>
26130 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
26133 2002-01-23 Kazu Hirata <kazu@hxi.com>
26135 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
26138 2002-01-23 Jason Merrill <jason@redhat.com>
26140 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
26142 * function.c (assign_parms): Don't put args of inline functions
26143 into registers when not optimizing.
26145 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
26147 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
26148 (prologue_use): New pattern.
26149 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
26150 preference to gen_rtx_USE.
26151 (thumb_expand_prologue): Use gen_prologue_use in preference to
26153 (thumb_expand_epilogue): Use gen_prologue_use in preference to
26156 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
26158 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
26160 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
26163 * doc/extend.texi: Correct documentation of __alignof__.
26165 2002-01-22 Zack Weinberg <zack@codesourcery.com>
26167 * params.h: Rename arguments of DEFPARAM so that it will be
26168 recognized as a translation keyword.
26170 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
26172 * extend.texi: Document altivec functions.
26173 Fix N-bit adjectives in X86 builtin documentation.
26175 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
26177 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
26178 auto_inc_dec values.
26180 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
26182 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
26184 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
26186 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
26188 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
26190 2002-01-22 Richard Henderson <rth@redhat.com>
26192 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
26193 copy_insn not copy_rtx.
26195 2002-01-23 Alan Modra <amodra@bigpond.net.au>
26197 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
26198 "nonzero" as that might add "1" bits. Ensure "constop" is
26199 properly sign extened.
26200 (force_to_mode): Tweak for sign extended constop.
26202 2002-01-22 Richard Henderson <rth@redhat.com>
26204 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
26205 for_each_rtx instead of assuming we're already looking at the MEM.
26206 (split_small_symbolic_mem_operand): Likewise.
26207 * config/alpha/alpha.h (PREDICATE_CODES): Update.
26208 * config/alpha/alpha.md (small symbolic memory splitters): Update.
26210 2002-01-22 Richard Henderson <rth@redhat.com>
26212 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
26213 sequence number for the literal.
26214 (divmoddi_internal_er): Likewise.
26216 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
26219 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
26220 in LIBICONV variable.
26221 * configure: Regenerated.
26223 2002-01-22 Krister Walfridsson <cato@df.lth.se>
26225 * dependence.c (build_def_use): Remove array_idx.
26227 * dwarfout.c (last_filename): Remove.
26228 (output_compile_unit_die): Remove last_filename.
26230 2002-01-22 Roger Sayle <roger@eyesopen.com>
26231 Richard Henderson <rth@redhat.com>
26234 * fold-const.c (fold): Optimize unsigned comparisons against
26235 UINT_MAX (and similar unsigned constants).
26237 2002-01-22 Janis Johnson <janis187@us.ibm.com>
26239 * Makefile.in (loop.o): Depend on OPTABS_H.
26240 * loop.c (emit_prefetch_instructions): Check the prefetch operand
26241 against the predicate.
26244 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
26245 for the address operand.
26247 2002-01-22 Richard Henderson <rth@redhat.com>
26249 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
26251 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
26254 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
26255 preprocessor flags.
26257 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
26259 * config.gcc (x86_64-*-netbsd*): New target.
26260 * config/i386/netbsd64.h: New file.
26262 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
26264 * regrename.c (kill_value): Fix typo.
26266 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
26268 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
26270 * config/rs6000/rs6000.h: Same.
26272 * function.c (instantiate_virtual_regs): Remove
26273 STARTING_FRAME_PHASE.
26274 (assign_stack_local_1): Same.
26275 Calculate frame phase.
26277 2002-01-22 Nick Clifton <nickc@redhat.com>
26279 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
26280 variable declaration to outer scope in order to simplify
26282 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
26283 arm_hard_regno_mode_ok.
26284 * config/arm/arm-protos.h: Add a prototype for
26285 arm_hard_regno_mode_ok.
26286 * config/arm/arm.c (soft_df_operand): Remove now redundant
26287 check for DImode values using IP_REGNUM.
26288 (nonimmediate_soft_df_operand): Remove now redundant check for
26289 DImode values using IP_REGNUM.
26290 (arm_hard_regno_mode_ok): New function. New check: make sure
26291 that DImode values are not stored in IP_REGNUM.
26293 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
26295 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
26297 2002-01-22 Jason Merrill <jason@redhat.com>
26299 * c-semantics.c (genrtl_compound_stmt): Only check nesting
26300 consistency if this COMPOUND_STMT is scoped.
26302 2002-01-22 Kazu Hirata <kazu@hxi.com>
26304 * predict.c: Fix formatting.
26305 * print-tree.c: Likewise.
26306 * protoize.c: Likewise.
26307 * real.h: Likewise.
26309 * sbitmap.h: Likewise.
26310 * scan.c: Likewise.
26311 * sched-deps.c: Likewise.
26312 * sched-vis.c: Likewise.
26313 * sdbout.c: Likewise.
26314 * sibcall.c: Likewise.
26316 * ssa-ccp.c: Likewise.
26317 * ssa-dce.c: Likewise.
26318 * stmt.c: Likewise.
26319 * stor-layout.c: Likewise.
26320 * system.h: Likewise.
26322 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26324 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
26325 if fits in bounds of base type.
26327 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
26328 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
26329 (add_bound_info, default): If can't find a context, make a
26331 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
26333 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
26335 * c-typeck.c (parser_build_binary_op): If result from
26336 build_binary_op is ERROR_MARK just return error_mark_node without
26337 further processing.
26339 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
26341 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
26342 Split a.out-specific bits into...
26343 * config/netbsd-aout.h: ...this.
26344 * config/netbsd-elf.h: New file.
26345 * config/alpha/netbsd-elf.h: Remove.
26346 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
26347 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
26348 (STARTFILE_SPEC): Remove redundant definition.
26349 (ENDFILE_SPEC): Likewise.
26350 (LINK_SPEC): Likewise.
26351 (CPP_SPEC): Likewise.
26352 (ASM_SPEC): Likewise.
26353 (LIB_SPEC): Likewise.
26354 (SWITCH_TAKES_ARG): Likewise.
26355 (TARGET_MEM_FUNCTIONS): Likewise.
26356 (CPP_PREDEFINES): Redefine.
26357 (ASM_FINAL_SPEC): Remove redefinition.
26358 (ASM_COMMENT_START): Redefine.
26359 (FUNCTION_PROFILER): Define.
26360 (TARGET_VERSION): Redefine.
26361 Comment and formatting cleanup.
26362 * config/i386/netbsd.h: Include <netbsd-aout.h>.
26363 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
26364 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
26365 big- or little-endian.
26366 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
26367 * config.gcc (*-*-netbsd*): Add definitions common to all
26369 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
26370 gnu_ld definitions. Add netbsd-elf.h to and remove
26371 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
26372 tmake_file, and don't lose previous tmake_file contents.
26373 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
26374 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
26375 gnu_ld definitions. Add netbsd-elf.h to tm_file.
26376 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
26377 (mipsel-*-netbsd*): Rename this to...
26378 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
26379 mips/little.h to tm_file for mips*el-*.
26380 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
26381 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
26382 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
26384 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
26386 * pa-protos.h (reg_before_reload_operand): New function prototype.
26387 * pa.c (reg_before_reload_operand): New function implementation.
26388 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
26389 contraints to "*m".
26391 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26393 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
26395 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
26397 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
26398 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
26399 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
26400 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
26401 (ENDFILE_SPEC): Undefine.
26402 (STARTFILE_SPEC): Redefine for PA.
26404 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26406 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
26408 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
26410 * config.gcc: Add entries to supported PowerPC --with-cpu
26413 2002-01-21 Jakub Jelinek <jakub@redhat.com>
26415 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
26416 true for 64-bit mode only SSE registers in 32-bit mode.
26418 2002-01-21 Kazu Hirata <kazu@hxi.com>
26420 * unwind-dw2.c: Fix formatting.
26421 * unwind-dw2-fde.c: Likewise.
26422 * unwind-dw2-fde.h: Likewise.
26423 * unwind-pe.h: Likewise.
26424 * varasm.c: Likewise.
26425 * varray.h: Likewise.
26427 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
26429 Remove workaround for register stack overwrite bug in mmix.
26430 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
26431 support for TARGET_REG_STACK_FILL_BUG.
26432 * config/mmix/mmix.h: Remove member has_call_without_parameters.
26433 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
26435 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
26436 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
26437 -mno-reg-stack-fill-bug-workaround.
26438 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
26439 machine member has_call_without_parameters.
26440 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
26441 -mreg-stack-fill-bug-workaround and
26442 -mno-reg-stack-fill-bug-workaround.
26443 (MMIX Options): Ditto.
26445 2002-01-21 Kazu Hirata <kazu@hxi.com>
26447 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
26449 Remove redundant code.
26451 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
26453 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
26454 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
26455 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
26456 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
26457 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
26458 out target macro definitions and non-target-specific comments
26459 mostly taken from old versions of the manual.
26461 2002-01-20 Kazu Hirata <kazu@hxi.com>
26463 * config/h8300/h8300.h: Fix comment formatting.
26464 * config/ia64/aix.h: Likewise.
26465 * config/ia64/ia64-protos.h: Likewise.
26466 * config/ia64/ia64.c: Likewise.
26467 * config/ia64/ia64.h: Likewise.
26468 * config/ia64/ia64intrin.h: Likewise.
26469 * config/ia64/linux.h: Likewise.
26470 * config/ia64/unwind-aix.c: Likewise.
26471 * config/ia64/unwind-ia64.c: Likewise.
26473 2002-01-20 Kazu Hirata <kazu@hxi.com>
26475 * config/h8300/h8300.c: Revise comments about shift code.
26477 2002-01-20 Kazu Hirata <kazu@hxi.com>
26479 * config/h8300/h8300.c (function_arg): Update a comment.
26481 2002-01-20 Kazu Hirata <kazu@hxi.com>
26483 * config/h8300/h8300.md: Update the comments at the beginning
26486 2002-01-20 Kazu Hirata <kazu@hxi.com>
26488 * config/i370/i370.c: Fix comment formatting.
26489 * config/i370/i370.h: Likewise.
26490 * config/i370/i370.md: Likewise.
26491 * config/i370/linux.h: Likewise.
26493 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26495 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
26497 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
26498 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
26499 in incomplete case.
26501 2002-01-20 Graham Stott <grahams@redhat.com>
26503 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
26505 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
26507 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
26509 2002-01-19 Tom Rix <trix@redhat.com>
26511 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
26513 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
26515 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
26517 * function.c (assign_stack_local_1): Adjust x_frame_offset with
26518 STARTING_FRAME_PHASE.
26519 (STARTING_FRAME_PHASE): New.
26520 (instantiate_virtual_regs): Check saneness of
26521 STARTING_FRAME_PHASE.
26523 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
26525 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
26527 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
26529 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
26531 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
26532 be used for bootstrapping GCC 3.0.
26534 2002-01-18 Kazu Hirata <kazu@hxi.com>
26536 * config/h8300/h8300.md: Fix an insn length.
26538 2002-01-18 Kazu Hirata <kazu@hxi.com>
26540 * bitmap.h: Fix comment formatting.
26541 * combine.c: Likewise.
26542 * cppfiles.c: Likewise.
26543 * c-pragma.h: Likewise.
26544 * c-typeck.c: Likewise.
26546 * dwarf2out.c: Likewise.
26547 * function.c: Likewise.
26549 * genattrtab.c: Likewise.
26550 * gthr-win32.h: Likewise.
26551 * haifa-sched.c: Likewise.
26552 * predict.c: Likewise.
26553 * rtlanal.c: Likewise.
26555 * unwind-dw2-fde.h: Likewise.
26556 * unwind-pe.h: Likewise.
26557 * vmsdbgout.c: Likewise.
26559 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26561 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
26562 if type_required and passed decl.
26564 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
26566 * config.gcc (cpu_type): Include altivec.h in powerpc
26570 * config/rs6000/altivec.h: New.
26572 2002-01-17 David Edelsohn <edelsohn@gnu.org>
26574 * doc/install.texi (*-ibm-aix*): Update assembler and exception
26575 handling information.
26576 * doc/trouble.texi (Interoperation): Add libstdc++ information
26578 (Misunderstandings): Add template instantiation and static template
26579 member information for AIX.
26581 2002-01-17 Jason Merrill <jason@redhat.com>
26583 * dbxout.c (dbxout_type): Support const and volatile.
26585 * except.c (add_partial_entry): Remove backwards compatibility code.
26586 (end_protect_partials): Likewise.
26588 2002-01-17 Jakub Jelinek <jakub@redhat.com>
26590 * config/ia64/ia64.md (prologue_use): New.
26591 * config/ia64/ia64.c (ia64_expand_prologue): Use
26592 gen_prologue_use instead of gen_rtx_USE.
26593 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
26594 as CODE_FOR_pred_rel_mutex.
26595 (ia64_sched_reorder2): Likewise.
26597 2002-01-16 Eric Christopher <echristo@redhat.com>
26599 * config/mips/r3900.h: Reformat.
26600 (SUBTARGET_CPP_SIZE_SPEC): Remove.
26601 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
26602 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
26603 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
26604 * config/mips/t-elf: Remove mips3 multilib.
26606 2002-01-16 H.J. Lu <hjl@gnu.org>
26608 * config/mips/linux.h: Include "mips/abi64.h".
26610 2002-01-16 H.J. Lu <hjl@gnu.org>
26612 * config/mips/t-linux: New.
26614 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
26616 * config/mips/linux.h: Don't include "gofast.h".
26617 (INIT_SUBTARGET_OPTABS): Removed.
26619 2002-01-16 Kazu Hirata <kazu@hxi.com>
26621 * config/h8300/h8300-protos.h: Replace emit_a_shift with
26623 * config/h8300/h8300.c: Likewise.
26624 * config/h8300/h8300.md: Likewise.
26626 2002-01-16 Kazu Hirata <kazu@hxi.com>
26628 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
26629 spaces after an opcode name.
26630 (pushqi1_h8300hs): Likewise.
26631 (pushhi1_h8300hs): Likewise.
26633 2002-01-16 Kazu Hirata <kazu@hxi.com>
26635 * doc/extend.texi: Replace "option" with "attribute"
26638 2002-01-16 Jakub Jelinek <jakub@redhat.com>
26640 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
26641 (and:DI () (const_int -8)).
26642 (split_small_symbolic_mem_operand): Split
26643 (mem (and:DI () (const_int -8)).
26645 2002-01-16 Jakub Jelinek <jakub@redhat.com>
26648 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
26649 same way as TYPE_IMUL.
26650 (ultrasparc_sched_reorder): Likewise.
26651 * config/sparc/sparc.md (type): Add comment to update
26652 ultrasparc_sched_reorder when making changes.
26654 2002-01-16 Kazu Hirata <kazu@hxi.com>
26656 * doc/invoke.texi: Change the dump file name of block
26657 reordering pass from 28.bbro to 29.bbro.
26658 Mention -dk option.
26660 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
26662 * i386.md (minsf splitter): Fix pasto.
26664 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
26666 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
26667 to frame pointer initialisation instruction.
26668 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
26669 initialisation instruction.
26670 (soft_df_operand): Do not accept the IP register.
26671 (nonimmediate_soft_df_operand): Do not accept the IP register.
26673 2002-01-16 Jakub Jelinek <jakub@redhat.com>
26676 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
26677 MASK_V8 being both set.
26679 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
26681 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
26682 insn for GOT register; add REG_MAYBE_DEAD notes instead.
26683 config/s390/s390.md (call, call_value): Add GOT register to
26684 CALL_INSN_FUNCTION_USAGE where needed.
26685 (call_exp, call_value_exp): New.
26687 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
26689 * config/arm/arm.c: General formatting tidy up.
26691 2002-01-16 Graham Stott <grahams@redhat.com>
26693 * calls.c (try_to_integrate): Use "(size_t)" intermediate
26694 cast and when casting an integer literal to "rtx" pointer.
26695 (expand_call): Likewise.
26696 * flow.c (try_pre_increment): Likewise.
26697 (find_use_as_address): Likewise.
26698 * integrate.c (expand_iline_function): Likewise.
26699 * regmove.c (try_auto_increment): Likewise.
26701 2002-01-16 Graham Stott <grahams@redhat.com>
26703 * sched-rgn.c (passed): Use sbitmap_free.
26704 (header): Likewise.
26706 (in_queue): Likewise.
26707 (in_stack): Likewise.
26709 2002-01-15 Eric Christopher <echristo@redhat.com>
26711 * flow.c (propagate_one_insn): Change to use fatal_insn.
26713 2002-01-15 Kazu Hirata <kazu@hxi.com>
26715 * expmed.c (extract_fixed_bit_field): Remove unused code.
26716 * system.h: Poison SLOW_ZERO_EXTEND.
26717 * doc/tm.texi: Remove.
26718 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
26719 * config/arm/arm.h: Likewise.
26720 * config/avr/avr.h: Likewise.
26721 * config/clipper/clipper.h: Likewise.
26722 * config/convex/convex.h: Likewise.
26723 * config/d30v/d30v.h: Likewise.
26724 * config/dsp16xx/dsp16xx.h: Likewise.
26725 * config/elxsi/elxsi.h: Likewise.
26726 * config/fr30/fr30.h: Likewise.
26727 * config/h8300/h8300.h: Likewise.
26728 * config/i370/i370.h: Likewise.
26729 * config/i386/i386.h: Likewise.
26730 * config/m68k/m68k.h: Likewise.
26731 * config/mips/mips.h: Likewise.
26732 * config/ns32k/ns32k.h: Likewise.
26733 * config/pdp11/pdp11.h: Likewise.
26734 * config/pj/pj.h: Likewise.
26735 * config/s390/s390.h: Likewise.
26736 * config/sh/sh.h: Likewise.
26737 * config/stormy16/stormy16.h: Likewise.
26738 * config/v850/v850.h: Likewise.
26739 * config/vax/vax.h: Likewise.
26740 * config/we32k/we32k.h: Likewise.
26742 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
26744 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
26745 (altivec_lvsl): Change constraint to b.
26746 (altivec_lvsr): Same.
26747 (altivec_lvebx): Same.
26748 (altivec_lvehx): Same.
26749 (altivec_lvewx): Same.
26750 (altivec_lvxl): Same.
26751 (altivec_lvx): Same.
26752 (altivec_stvx): Add parallel.
26753 (altivec_stvxl): Same.
26754 (altivec_stvehx): Same.
26755 (altivec_stvebx): Same.
26756 (altivec_stvebx): Same.
26758 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
26760 * config.gcc: Change altivec.h to altivec-defs.h.
26762 * config/rs6000/altivec.h: Delete.
26764 * config/rs6000/altivec-defs.h: Add.
26766 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
26768 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
26771 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
26772 less than or equal to eight bytes.
26774 * vax.md (andsi3): Remove constraints and change SET destination
26775 operand type to nonimmediate_operand.
26776 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
26777 when it is a CONST_INT.
26779 2002-01-15 Jason Merrill <jason@redhat.com>
26781 * c-common.def (FILE_STMT): New code.
26782 * c-common.c (statement_code_p): It's a statement.
26783 * c-common.h (stmt_tree_s): Add x_last_filename.
26784 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
26785 (last_expr_filename): New macro.
26786 * c-semantics.c (begin_stmt_tree): Initialize it.
26787 (add_stmt): If the filename changed, also insert a
26789 (expand_stmt): Handle seeing one.
26791 2002-01-15 Eric Christopher <echristo@redhat.com>
26793 * flow.c (propagate_one_insn): Add error message and print out
26794 insn for debugging.
26796 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
26798 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
26799 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
26800 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
26801 TRAMPOLINE_ALIGNMENT.
26802 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
26804 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
26805 PCC_BITFIELD_TYPE_MATTERS.
26806 * config/interix.h (STDC_VALUE): Remove. Use
26807 STDC_0_IN_SYSTEM_HEADERS.
26808 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
26809 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
26810 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
26812 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
26814 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
26815 not work on this platform currently.
26817 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
26819 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
26820 readonly_warning in _().
26822 2002-01-15 Douglas B Rupp <rupp@gnat.com>
26824 * gcc.c (delete_if_ordinary): Backout previous change.
26826 2002-01-15 Kazu Hirata <kazu@hxi.com>
26828 * config/h8300/h8300.c (print_operand): Remove support for
26829 unused operand characters.
26831 * read-rtl.c: Fix formatting.
26832 * real.c: Likewise.
26833 * recog.c: Likewise.
26834 * regclass.c: Likewise.
26835 * regmove.c: Likewise.
26836 * reg-stack.c: Likewise.
26837 * reload1.c: Likewise.
26838 * rtlanal.c: Likewise.
26840 2002-01-15 Kazu Hirata <kazu@hxi.com>
26842 * config/i386/i386.c: Fix formatting.
26844 2002-01-15 Jakub Jelinek <jakub@redhat.com>
26846 * c-typeck.c (process_init_element): Don't save_expr
26847 COMPOUND_LITERAL_EXPR if just its initializer will be used.
26849 2002-01-15 David Edelsohn <edelsohn@gnu.org>
26851 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
26852 emit optional traceback table if optimize_size or TARGET_ELF.
26853 * config/rs6000/rs6000.md (prefetch): New.
26855 2002-01-15 Andreas Jaeger <aj@suse.de>
26857 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
26859 2002-01-15 Kazu Hirata <kazu@hxi.com>
26861 * mips-tfile.c: Fix formatting.
26863 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
26865 * unroll.c (final_reg_note_copy): Fix previous commit.
26867 2002-01-14 Kazu Hirata <kazu@hxi.com>
26869 * config/h8300/h8300-protos.h: Remove the prototype for
26871 * config/h8300/h8300.c (eq_operator): Remove.
26873 2002-01-14 Richard Henderson <rth@redhat.com>
26875 * config/i386/i386.md (prefetch): Tidy.
26876 (prefetch_3dnow): Fix locality operand.
26878 2002-01-14 Richard Henderson <rth@redhat.com>
26880 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
26881 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
26883 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
26885 * reload1.c (reload_combine): Pass reg_sum replacement through
26886 copy_rtx in loop performing multiple changes.
26888 2002-01-14 Jakub Jelinek <jakub@redhat.com>
26890 * except.c (remove_unreachable_regions): New.
26891 (free_eh_status): Clear exception_handler_labels.
26892 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
26893 (find_exception_handler_labels): Don't add the same label more than
26895 (remove_exception_handler_label): Don't die if
26896 find_exception_handler_labels hasn't been called for the current
26899 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
26901 * toplev.c (rest_of_compilation): Rebuild jump labels after
26904 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
26906 * doc/extend.texi: Move documentation of X86 built-in functions
26908 * doc/invoke.texi: From here.
26909 * doc/sourcebuild.texi: Document location of documentation for
26910 machine built-in functions.
26912 2002-01-13 Christopher Faylor <cgf@redhat.com>
26914 * cppfiles.c (TEST_THRESHOLD): New macro.
26915 (SHOULD_MMAP): Ditto.
26916 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
26919 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
26921 * unroll.c (final_reg_note_copy): Properly handle
26923 (unroll_loops): Fix LOOP_CONDITION heuristics.
26925 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
26927 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
26928 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
26930 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
26932 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
26935 2002-01-14 Tom Rix <trix@redhat.com>
26937 * config/rs6000/rs6000.md: Fix typo with sradi.
26939 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
26941 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
26942 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
26943 (clrstrdi, clrstrsi): Adapt callers.
26945 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
26947 (movti splitter): Never use register 0 as base register.
26949 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
26951 * combine.c (simplify_shift_const): Always generate new rtx
26952 for shift expression instead of reusing given expression.
26954 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26956 * config/alpha/alpha.c (alpha_expand_mov): Don't call
26957 alpha_legitimize_address unless mode is Pmode.
26959 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
26961 * doc/md.texi (Modifiers): Document the '*' constraint for the
26964 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
26965 * doc/extend.texi (Function Attributes): 'interrupt' is valid
26968 2002-01-13 Richard Henderson <rth@redhat.com>
26970 * reload.c (find_reloads): Use a hard reg destination as reload reg
26971 for an input reload of the source.
26973 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
26975 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
26978 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
26980 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
26981 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
26983 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
26985 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26987 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
26989 2002-01-12 Tom Rix <trix@redhat.com>
26991 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
26994 2002-01-12 Richard Henderson <rth@redhat.com>
26996 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
26998 * doc/invoke.texi: Update Alpha options.
27000 * doc/invoke.texi: Update i386 built-in function lists.
27002 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
27004 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
27005 referencing outside.
27007 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27009 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
27010 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
27011 offsets, and change line folding.
27012 * optabs.c (expand_binop): Remove warnings.
27013 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
27015 2002-01-12 Graham Stott <grahams@redhat.com>
27017 * attribs.c (handle_deprecated_attribute): constify WHAT.
27018 * diagnostic.c (warn_deprecated_use): Add braces, fixes
27019 dangling else warning and constify WHAT.
27020 * except.h (struct function, struct inline_remap): Move
27021 struct tag forward defs before all prototypes.
27022 (duplicate_eh_regions): Whitespace.
27024 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
27026 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27027 MODE_BASE_REG_CLASS.
27028 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
27030 2002-01-12 Richard Henderson <rth@redhat.com>
27032 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
27033 (ix86_expand_vector_move): New.
27034 (bdesc_2arg): Remove andps, andnps, orps, xorps.
27035 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
27036 Remove old prefetch builtins. Special case the logicals removed above.
27037 (ix86_expand_builtin): Likewise.
27038 (safe_vector_operand): Use V4SFmode, not TImode.
27039 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
27040 (ix86_expand_timode_binop_builtin): New.
27041 * config/i386/i386-protos.h: Update.
27042 * config/i386/i386.h (enum ix86_builtins): Update.
27043 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
27044 Use ix86_expand_vector_move in vector move expanders.
27045 (movti_internal, movti_rex64): Add xorps alternative.
27046 (sse_clrv4sf): Rename and adjust from sse_clrti.
27047 (prefetch): Don't work so hard.
27048 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
27049 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
27050 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
27052 2002-01-11 Richard Henderson <rth@redhat.com>
27054 * config/i386/mmintrin.h: New file.
27055 * config/i386/xmmintrin.h: New file.
27056 * config.gcc (i?86-*-*): Add extra_headers.
27057 * simplify-rtx.c (simplify_unary_operation): Handle saturating
27059 (simplify_binary_operation): Handle saturating arithmetic codes.
27060 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
27061 not the lowpart subreg.
27062 (ix86_expand_builtin): Return a TImode dummy register instead of 0
27064 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
27066 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
27068 * conflict.c (conflict_graph_compute): Free regsets when finished.
27069 * ssa.c (compute_coalesced_reg_partition): Likewise.
27071 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
27073 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
27074 every where we allocate a register.
27076 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
27078 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
27079 * lcm.c (compute_earliest, compute_farthest): Likewise.
27081 2002-01-11 Janis Johnson <janis187@us.ibm.com>
27083 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
27085 2002-01-11 Janis Johnson <janis187@us.ibm.com>
27087 * doc/rtl.texi (Insns): Fix 2 typos.
27089 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
27091 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
27092 options. Use @table @gcctabopt for MMIX options. Add index
27093 entries for MMIX options. Start new paragraph with first
27094 heading of the machine-dependent options.
27096 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
27099 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
27100 * combine.c (force_to_mode): Same.
27101 * reload1.c (clear_reload_reg_in_use): Same.
27103 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
27105 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
27108 2002-01-11 Andreas Jaeger <aj@suse.de>,
27109 Brad Lucier <lucier@math.purdue.edu>
27111 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
27114 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
27116 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
27117 Protect with IN_LIBGCC.
27118 (LINK_EH_SPEC): Add required trailing space.
27120 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
27122 * c-tree.h: Move function declarations so that they are listed
27123 under the filename which contains them.
27124 (check_identifier, finish_decl_top_level,
27125 lookup_name_current_level_global, shadow_record_fields): Remove.
27127 2002-01-11 Andreas Jaeger <aj@suse.de>
27129 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
27132 2002-01-10 Richard Henderson <rth@redhat.com>
27134 * config/alpha/alpha.c (print_operand): Add 'J'.
27135 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
27136 new operand with the sequence number for the lituse. When splitting
27137 the insns, use gen_movdi_er_high_g and generate a sequence number.
27138 (gen_movdi_er_high_g): Print the sequence number if non-zero.
27140 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
27142 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
27143 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
27145 (altivec_expand_builtin): Same.
27146 (altivec_expand_stv_builtin): New.
27148 * config/rs6000/rs6000.h (rs6000_builtins): Same.
27150 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
27151 ("altivec_lvehx"): New.
27152 ("altivec_lvewx"): New.
27153 ("altivec_lvxl"): New.
27154 ("altivec_lvx"): New.
27155 ("altivec_stvx"): New.
27156 ("altivec_stvebx"): New.
27157 ("altivec_stvehx"): New.
27158 ("altivec_stvewx"): New.
27159 ("altivec_stvxl"): New.
27161 2002-01-10 Richard Henderson <rth@redhat.com>
27163 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
27164 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
27165 care not to delete instructions twice.
27167 2002-01-10 Zack Weinberg <zack@codesourcery.com>
27169 * toplev.c: Don't declare environ (it's not used anywhere).
27170 * configure.in: Don't check for declaration of environ.
27171 * config/i386/xm-mingw32.h: Don't #define environ.
27172 * config.in, configure: Regenerate.
27174 2002-01-10 Zack Weinberg <zack@codesourcery.com>
27176 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
27177 * configure: Regenerate.
27179 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
27180 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
27181 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
27183 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
27184 LIMITS_H_TEST here, not in m68k/x-next.
27185 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
27186 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
27188 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
27189 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
27190 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
27192 * config/i386/x-djgpp: Renamed i386/t-djgpp.
27193 * config/m88k/x-dolph: Renamed m88k/t-dolph.
27194 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
27195 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
27196 replacement of quadlib.asm with quadlib.c.
27198 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
27199 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
27200 config/rs6000/xm-beos.h: Delete file.
27202 * config.gcc: Update to match above changes.
27204 2002-01-10 Kazu Hirata <kazu@hxi.com>
27206 * config/h8300/h8300.h: Fix comment typos.
27207 * config/h8300/h8300.md: Likewise.
27208 * config/h8300/lib1funcs.asm: Likewise.
27210 2002-01-10 Dale Johannesen <dalej@apple.com>
27212 PR optimization/5269
27213 * unroll.c (precondition_loop_p): Make *increment be the correct
27214 sign when n_iterations known, to avoid confusing caller.
27216 2002-01-10 Kazu Hirata <kazu@hxi.com>
27218 * doc/extend.texi (deprecated): Fix a typo.
27220 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
27222 * basic-block.h (update_br_prob_note): Declare.
27223 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
27224 (try_forward_edges): Care negative frequencies and update note.
27225 (outgoing_edges_match): Tweek conditional merging heuristics.
27226 (try_crossjump_to_edge): use update_br_prob_note.
27227 * cfglayout.c (fixup_reorder_chain): Likewise.
27228 * cfrtl.c (update_br_prob_note): New.
27229 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
27231 * i386.c (ix86_decompose_address): Return -1 if address contains
27233 (legitimate_address_p): Require ix86_decompose_address to return 1.
27235 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
27236 (cprop_insn): Likewise.
27238 2002-01-10 Kazu Hirata <kazu@hxi.com>
27240 * toplev.c: Fix formatting.
27241 * tree.c: Likewise.
27242 * tree-dump.c: Likewise.
27243 * unroll.c: Likewise.
27244 * unwind-dw2.c: Likewise.
27245 * unwind-dw2-fde.c: Likewise.
27246 * unwind-dw2-fde-glibc.c: Likewise.
27247 * unwind-sjlj.c: Likewise.
27249 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
27251 * doc/invoke.texi: Document PDP-11 options.
27253 2002-01-10 Kazu Hirata <kazu@hxi.com>
27255 * config/h8300/h8300.h: Fix formatting.
27257 2002-01-10 Ira Ruben <ira@apple.com>
27259 Add __attribute__ ((deprecated)).
27260 * extend.texi: Document __attribute__ ((deprecated)).
27261 * invoke.texi: Document -Wno-deprecated-declarations.
27262 * testsuite/g++.dg/other/deprecated.C: New C++ test.
27263 * testsuite/gcc.dg/deprecated.c: New C test.
27264 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
27265 (c_common_attribute_table): Add "deprecated" entry.
27266 (handle_deprecated_attribute): New function.
27267 * c-decl.c (deprecated_states): New enum.
27268 deprecated_state: State of "deprecated" handling.
27269 (start_decl): Set deprecated_state based on attributes.
27270 (grokdeclarator): Test for deprecated uses, propagate attribute.
27271 * c-typeck.c (build_component_ref): Test for deprecated fields.
27272 (build_external_ref): Test for deprecated primaries.
27273 * diagnostic.c (warn_deprecated_use) New function to issue
27274 warnings about __attribute__ ((depricated)) references.
27275 * flags.h (warn_deprecated_decl): Extern declared for
27276 -W[no-]deprecated-declarations option.
27277 * print-tree.c (print_node): Show deprecated flag status.
27278 * toplev.c (warn_deprecated_decl): Defined.
27279 (W_options): Added "deprecated-declaration".
27280 * toplev.h (warn_deprecated_use): Extern declared.
27281 * tree.h (struct tree_common): Define deprecated_flag.
27282 (TREE_DEPRECATED): New macro to access flag.
27283 * cp/call.c (build_call): Test for deprecated calls.
27284 * cp/class.c (add_implicitly_declared_members): Set global
27285 flag to tell grokdeclarator to not issue deprecated warnings.
27286 * cp/cp-tree.h: Add extern for adding_implicit_members.
27287 * cp/decl.c (deprecated_states): New enum.
27288 (start_decl): Set deprecated_state based on attributes.
27289 (grokdeclarator): Test for deprecated uses, propagate attribute.
27290 * cp/lex.c (do_identifier): Test for deprecated primaries.
27291 * cp/typeck.c (build_component_ref): Test for deprecated fields.
27293 2002-01-10 Ira Ruben <ira@apple.com>
27295 Fix to assign attributes to inline member functions.
27296 * cp/decl.c (start_method): Handle attrlist.
27298 2002-01-10 Kazu Hirata <kazu@hxi.com>
27300 * combine.c (expand_field_assignment): Use subreg_lsb().
27302 2002-01-10 David Edelsohn <edelsohn@gnu.org>
27304 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
27305 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
27306 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
27307 Recurse for any operand of AND as long as constant is non-zero.
27309 2002-01-10 Kazu Hirata <kazu@hxi.com>
27311 * config/h8300/h8300.md: Remove constraints from expanders.
27313 2002-01-10 Kazu Hirata <kazu@hxi.com>
27315 * varasm.c: Fix formatting.
27316 * varray.c: Likewise.
27317 * vmsdbgout.c: Likewise.
27318 * xcoffout.c: Likewise.
27320 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
27322 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
27323 update edge probabilities to match.
27325 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
27327 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
27329 * doc/languages.texi, doc/sourcebuild.texi: New files.
27330 * doc/configfiles.texi: Make a subsubsection. Update.
27331 * doc/configterms.texi: Add @node. Remove warning that this isn't
27332 instructions for building GCC.
27333 * doc/makefile.texi: Make a subsection.
27334 * doc/gccint.texi: Update.
27336 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
27338 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
27340 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
27342 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
27344 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
27346 * optabs.c (expand_fix): Look for wider integer modes first.
27348 * i386.md (mov?f): Avoid the fake const double trick for medium
27350 (min?f*/max?f*): Prohibit memory operands for i387 variant.
27351 (fop_df_4): Disable for SSE compilation.
27353 2002-01-10 Graham Stott <grahams@redhat.com>
27355 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
27356 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
27358 2002-01-10 Richard Henderson <rth@redhat.com>
27360 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
27362 2002-01-10 Richard Henderson <rth@redhat.com>
27364 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
27365 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
27367 2002-01-10 Kazu Hirata <kazu@hxi.com>
27369 * combine.c (can_combine_p): Fix a comment typo.
27371 2002-01-09 Zack Weinberg <zack@codesourcery.com>
27373 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
27374 empty list correctly. Change loop index $t to $f for
27375 consistency with rest of Makefile.
27377 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
27379 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
27380 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
27382 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
27383 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
27384 (altivec_init_builtins): Same.
27385 (altivec_expand_unop_builtin): Return NULL_RTX on error.
27386 (altivec_expand_binop_builtin): Same.
27387 (altivec_expand_ternop_builtin): Same.
27390 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
27391 ("altivec_vctuxs"): Fix typo.
27392 ("altivec_vnmsubfp"): Same.
27393 ("altivec_dssall"): New.
27394 ("altivec_mfvscr"): New.
27395 ("altivec_dss"): New.
27396 ("altivec_lvsl"): New.
27397 ("altivec_lvsr"): New.
27398 ("altivec_dstt"): New.
27399 ("altivec_dstst"): New.
27400 ("altivec_dststt"): New.
27401 ("altivec_dst"): New.
27403 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
27404 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
27406 2002-01-09 Richard Henderson <rth@redhat.com>
27408 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
27410 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
27412 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
27414 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
27416 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
27418 2002-01-09 Kazu Hirata <kazu@hxi.com>
27420 * read-rtl.c: Fix formatting.
27421 * real.c: Likewise.
27422 * regclass.c: Likewise.
27423 * regrename.c: Likewise.
27424 * reg-stack.c: Likewise.
27425 * reload1.c: Likewise.
27426 * reload.c: Likewise.
27429 2002-01-09 Kazu Hirata <kazu@hxi.com>
27431 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
27432 to extract items in the expr_list chain.
27434 2002-01-09 Richard Henderson <rth@redhat.com>
27436 * config/vax/vax.c (vax_rtx_cost): Never abort.
27438 * config/vax/vax.h (REAL_ARITHMETIC): Define.
27440 2002-01-09 Jan Hubicka <jh@suse.cz>
27442 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
27444 2002-01-09 Richard Henderson <rth@redhat.com>
27446 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
27447 Unify code from various alternatives.
27449 2002-01-09 Richard Henderson <rth@redhat.com>
27451 * regrename.c (copy_value): Ignore the copy if the source register
27452 is present in the value chain with a narrower mode.
27454 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
27456 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
27457 for the c4x target. Also improve layout.
27459 2002-01-09 Richard Henderson <rth@redhat.com>
27461 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
27462 * config/m32r/m32r.md (and ior xor splitters): Swap operands
27463 to match insn patterns.
27465 2002-01-09 Richard Henderson <rth@redhat.com>
27467 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
27468 (copyprop_hardreg_forward_1): Likewise.
27470 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
27472 * pa.md (decrement_and_branch_until_zero): Change predicate for
27473 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
27475 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
27477 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
27478 gets undefined. For Darwin.
27480 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
27482 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
27484 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
27486 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
27488 2002-01-08 Richard Henderson <rth@redhat.com>
27490 * regrename.c (copy_value): Ignore overlapping copies.
27492 2002-01-08 Richard Henderson <rth@redhat.com>
27494 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
27495 as needed to avoid shared structure.
27497 2002-01-08 Kazu Hirata <kazu@hxi.com>
27499 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
27502 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
27504 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
27505 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
27506 documentation of obsolete macros.
27507 * system.h: Poison these macros.
27508 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
27509 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
27510 config/c4x/c4x.h, config/clipper/clipper.h,
27511 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
27512 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
27513 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
27514 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
27515 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
27516 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
27517 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
27518 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
27519 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
27520 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
27521 config/sparc/sparc.h, config/stormy16/stormy16.h,
27522 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
27523 definitions and commented out definitions of obsolete macros.
27524 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
27525 of MAX_INT_TYPE_SIZE.
27527 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
27529 * config/s390/s390.c (s390_preferred_reload_class): Never
27530 return ADDR_REGS if it isn't a subset of the given class.
27531 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
27532 FP_REGS, but all superclasses as well.
27534 * config/s390/s390.c (s390_function_profiler): Fix thinko.
27536 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
27537 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
27538 must not be a const_int.
27540 2002-01-08 Richard Henderson <rth@redhat.com>
27542 * Makefile.in (toplev.o): Depend on options.h.
27543 (gcc.o): Depend on specs.h.
27545 2002-01-08 Jakub Jelinek <jakub@redhat.com>
27547 * expr.c (store_expr): Convert VOIDmode constants back to target's
27550 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
27552 * doc/invoke.texi: Markup gcc as @command. Refer to
27553 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
27554 of http://gcc.gnu.org/thanks.html.
27556 2002-01-08 Dale Johannesen <dalej@apple.com>
27558 * config/rs6000/rs6000.md: Add missing int register
27559 target case to movdf_low.
27561 2002-01-08 Zack Weinberg <zack@codesourcery.com>
27563 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
27564 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
27565 (cppinit.o): Depend on except.h.
27566 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
27567 s-specs): New rules.
27569 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
27570 Don't create specs.h/options.h/gencheck.h here. Remove
27571 unnecessary variable settings from last argument of AC_OUTPUT.
27572 * config.in, configure: Regenerate.
27573 * intl.c: Hardcode package name as "gcc".
27575 * cppinit.c: Include except.h.
27576 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
27578 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
27579 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
27580 (!)USING_SJLJ_EXCEPTIONS.
27581 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
27583 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
27585 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
27586 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
27587 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
27588 documentation of obsolete macros.
27589 * system.h: Poison these macros.
27590 * config/d30v/d30v.h, config/ns32k/encore.h,
27591 config/stormy16/stormy16.h: Remove definitions and commented out
27592 definitions of obsolete macros.
27594 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
27596 * objc/objc-act.c (handle_class_ref): Mark the declaration of
27597 %sobjc_class_ref_%s as used - to prevent unwanted compiler
27600 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
27602 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
27603 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
27604 to insn adjusting stack/frame pointer.
27605 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
27606 accept operands that cause the insn to be non-splittable.
27608 2002-01-08 Graham Stott <grahams@redhat.com>
27610 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
27611 (C_TYPE_FIELDS_VOLATILE): Likewise.
27612 (C_TYPE_BEING_DEFINED): Likewise.
27613 (C_IS_RESERVED_WORD): Likewise.
27614 (C_TYPE_VARIABLE_SIZE): Likewise.
27615 (C_DECL_VARIABLE_SIZE): Likewise.
27616 (C_MISSING_PROTOTYPE_WARNED): Likewise.
27617 (C_SET_EXP_ORIGINAL_CODE): Likewise.
27618 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
27620 (C_DECL_ANTICIPATED): Likewise.
27621 (c_build_type_variant): Add parenthesis.
27623 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
27625 * gcc.c (option_map): Remove --version.
27626 (process_command): Handle -fversion following the GNU Coding
27627 Standards. Partially addresses PR other/704.
27629 2002-01-08 Graham Stott <grahams@redhat.com>
27631 * combine.c (combine_instructions): Fix typo.
27633 2002-01-08 Graham Stott <grahams@redhat.com>
27635 * debug.h: Use "tree" and "rtx" throughout.
27637 * debug.c: Likewise.
27639 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
27641 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
27642 constant pool, use the pool's version of the symbol instead.
27644 2002-01-07 Richard Henderson <rth@redhat.com>
27646 * regrename.c (find_oldest_value_reg): Ignore the value chain if
27647 the original register was copied in a mode with a fewer number of
27648 hard registers than the desired mode.
27649 (copyprop_hardreg_forward_1): Likewise.
27650 (debug_value_data): Fix loop test.
27651 * toplev.c (parse_options_and_default_flags): Reenable
27652 -fcprop-registers at -O1.
27654 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
27656 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
27657 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
27659 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
27662 * config/rs6000/rs6000.md: Add altivec predicate patterns.
27664 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
27666 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
27667 (pa_output_function_prologue): Output local label at the beginning of
27668 the prologue when profiling.
27669 (hppa_profile_hook): Use the local label rather than the function label.
27670 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
27672 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
27674 * config/rs6000/rs6000.c (print_operand): Remove extra space.
27675 (altivec_expand_unop_builtin): Fix thinko.
27676 (altivec_expand_binop_builtin): Same.
27677 (altivec_expand_ternop_builtin): Same.
27678 (altivec_expand_builtin): Same.
27680 2002-01-07 Richard Henderson <rth@redhat.com>
27682 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
27684 2002-01-07 Jason Merrill <jason@redhat.com>
27686 * unwind-dw2.c (execute_cfa_program): Use < again.
27688 2002-01-07 Jakub Jelinek <jakub@redhat.com>
27690 * predict.c (combine_predictions_for_insn): Avoid division by zero.
27692 2002-01-07 Jakub Jelinek <jakub@redhat.com>
27694 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
27695 Don't allow -1 - x -> ~x simplifications in the first pass.
27697 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
27699 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
27701 (altivec_expand_binop_builtin): Same.
27702 (altivec_expand_unop_builtin): Same.
27703 (print_operand): Fix typo.
27704 (bdesc_1arg): Add vupk* variants.
27706 * rs6000.h (rs6000_builtins): Add vupk* enums.
27708 * rs6000.md: Add altivec_vupk* variants.
27710 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
27712 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
27713 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
27714 and last update dates.
27716 2002-01-07 Janis Johnson <janis187@us.ibm.com>
27718 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
27720 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
27722 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
27723 * config/avr/avr.h (CPP_SPEC): Likewise.
27724 (LINK_SPEC): Likewise.
27725 (CRT_BINUTILS_SPECS): Likewise.
27726 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
27727 * doc/invoke.texi (AVR Options): Document them.
27729 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
27731 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
27734 2002-01-07 Graham Stott <grahams@redhat.com>
27736 * config/i386/i386.h: Update copyright date.
27737 (HALF_PIC_PTR): Add parenthesis.
27738 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
27739 (CONSTANT_ALIGNMENT): Add parenthesis.
27740 (DATA_ALIGNMENT): Likewise.
27741 (LOCAL_ALIGNMENT): Likewise.
27742 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
27743 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
27744 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
27745 (HARD_REGNO_NREGS): Add paranethesis.
27746 (VALID_SSE_REG_MODE): Whitespace.
27747 (VALID_MMX_REG_MODE): Whitespace.
27748 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
27749 (ix86_hard_regno_mode_ok): Add parenthesis.
27750 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
27751 (RETURN_IN_MEMORY): Whitespace.
27752 (N_REG_CLASSES): Add parenthesis.
27753 (INTEGER_CLASS_P): Add parenthesis and wrap.
27754 (FLOAT_CLASS_P): Likewise.
27755 (SSE_CLASS_P): Likewise.
27756 (MMX_CLASS_P): Likewise.
27757 (MAYBE_INTEGER_CLASS_P): Likewise.
27758 (MAYBE_FLOAT_CLASS_P): Likewise.
27759 (MAYBE_SSE_CLASS_P): Likewise.
27760 (MAYBE_MMX_CLASS_P): Likewise.
27761 (Q_CLASS_P): Likewise.
27762 (GENERAL_REGNO_P): Uppercase macro parameter.
27763 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
27764 (FP_REGNO_P): Likewise.
27765 (ANY_FP_REGNO_P): Uppercase macro parameter.
27766 (SSE_REGNO_P): Likewise.
27767 (SSE_REGNO): Likewise.
27768 (SSE_REG_P): Likewise.
27769 (SSE_FLOAT_MODE_P): Likewise.
27770 (MMX_REGNO_P): Likewise.
27771 (MMX_REG_P):Likewise.
27772 (STACK_REG_P): Likewise.
27773 (NON_STACK_REG_P): Likewise.
27774 (STACK_TOP_P): Likewise.
27775 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
27776 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
27777 (SECONDARY_MEMORY_NEEDED): Likewise.
27778 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
27779 (MD_ASM_CLOBBERS): Whitespace and wrap.
27780 (MUST_PASS_IN_STACK): Whitespace and wrap.
27781 (RETURN_POPS_ARGS): Add parenthesis.
27782 (INIT_CUMULATIVE_ARGS): Likewise.
27783 (FUNCTION_ARG): Likewise.
27784 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
27785 (SETUP_INCOMING_VARARGS): Likewise.
27786 (BUILD_VA_LIST_TYPE): Add parenthesis.
27787 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
27789 (EXPAND_BUILTIN_VA_ARG): Likewise.
27790 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
27791 (INITIALIZE_TRAMPOLINE): Add parenthesis.
27792 (INITIAL_ELIMINATION_OFFSET): Likewise.
27793 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
27794 (REGNO_OK_FOR_BASE_P): Likewise.
27795 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
27796 (REGNO_OK_FOR_DIREG_P): Likewise.
27797 (REG_OK_FOR_INDEX_P): Whitespace.
27798 (REG_OK_FOR_BASE_P): Whitespace.
27799 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
27801 (FIND_BASE_TERM): Fix typo.
27802 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
27803 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
27804 (SYMBOLIC_CONST; Whitespace.
27805 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
27806 (ENCODE_SECTION_INFO): Whitespace.
27807 (FINALIZE_PIC): Remove do { ... } while (0).
27808 (PROMOTE_MODE): Wrap in do { ... } while (0).
27809 (CONST_COSTS): Whitespace.
27810 (RTX_COSTS): Add paramethesis, whitespace and wrap.
27811 (REGISTER_MOVE_COST): Add parenthesis.
27812 (MEMORY_MOVE_COST): Likewise.
27813 (EXTRA_CC_MODES): Whitespace.
27814 (SELECT_CC_MODE): Add parenthesis and whitespace.
27815 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
27816 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
27817 (ASM_OUTPUT_LABEL): Add paramethesis.
27818 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
27819 (ASM_OUTPUT_REG_POP): Likewise.
27820 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
27821 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
27823 * config/i386/i386.c: Update copyright.
27824 (CHECK_STACK_LIMIT): Add parenthesis.
27825 (AT_BP): Uppercase macro parameter.
27826 (x86_64_int_parameter_registers): Constify.
27827 (x86_64_int_return_registers): Likewise.
27828 (ix86_compare_op0): Use rtx.
27829 (construct_container): Constify INTREG parameter.
27830 (function_arg): Use rtx.
27832 * diagnostic.h: Update copyright date.
27833 (output_buffer_state): Add parenthesis.
27834 (output_buffer_format_args): Likewise.
27836 * combine.c (combine_instructions): Replace XEXP (links, 0)
27839 2002-01-06 H.J. Lu <hjl@gnu.org>
27841 * cfgcleanup.c (thread_jump): Fix 2 typos.
27843 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
27845 * config.gcc: Add support for --enable-altivec.
27847 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
27849 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
27851 2002-01-06 Jakub Jelinek <jakub@redhat.com>
27853 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
27854 __objc_class_name_*.
27856 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
27858 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
27860 2002-01-06 Richard Henderson <rth@redhat.com>
27862 * reorg.c (emit_delay_sequence): Remove death notes, not merely
27863 nop them out. Increment label reference count for REG_LABEL.
27864 (fill_slots_from_thread): Frob label reference count around
27865 delete_related_insns.
27867 2002-01-05 Richard Henderson <rth@redhat.com>
27869 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
27872 2002-01-05 Richard Henderson <rth@redhat.com>
27874 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
27875 * integrate.c (output_inline_function): Likewise.
27876 * toplev.c (rest_of_compilation): Do it here instead. Move call
27877 to remove_unnecessary_notes after emitting abstract instance.
27878 Force an emitted nested function to have its parent emited as well.
27879 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
27881 (rtl_for_decl_location): Do not look at reload data structures
27882 before reload has run.
27884 2002-01-05 Kazu Hirata <kazu@hxi.com>
27886 * cse.c: Fix formatting.
27887 * dwarf2asm.c: Likewise.
27888 * dwarf2out.c: Likewise.
27889 * explow.c: Likewise.
27890 * expmed.c: Likewise.
27891 * function.c: Likewise.
27892 * gcov.c: Likewise.
27893 * gencheck.c: Likewise.
27894 * genrecog.c: Likewise.
27895 * ggc-common.c: Likewise.
27896 * ggc-page.c: Likewise.
27897 * global.c: Likewise.
27899 2002-01-05 Kazu Hirata <kazu@hxi.com>
27901 * combine.c: Fix formatting.
27903 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
27906 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
27908 2002-01-05 David Edelsohn <edelsohn@gnu.org>
27910 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
27911 as 1 for __powerpc64__ as well.
27913 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
27915 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
27918 2002-01-05 Daniel Berlin <dan@dberlin.org>
27920 * lcm.c: Revert change, due to performance regression it causes on
27921 SPEC because it's slightly more conservative (sigh, I hate
27924 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
27926 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
27928 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
27930 * doc/cppinternals.texi: Update.
27932 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
27934 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
27935 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
27937 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
27938 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
27939 kludge for pre-october-14th mmix versions to handle new-found bug
27940 with PUSHJ/PUSHGO and the register stack.
27941 * config/mmix/mmix.h (struct machine_function): Rename member
27942 has_call_value_without_parameters to has_call_without_parameters.
27943 All referers changed.
27944 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
27945 TARGET_MASK_BRANCH_PREDICT): New macros.
27946 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
27947 -mno-reg-stack-fill-bug-workaround.
27948 * config/mmix/mmix.md ("call"): Set struct machine member
27949 has_call_without_parameters.
27951 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
27953 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
27955 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
27957 * cfgcleanup.c: Include tm_p.h
27958 (mark_effect): Fix handling of hard register; fix handling of SET
27960 2002-01-04 Kazu Hirata <kazu@hxi.com>
27962 * config/h8300/h8300.md (anonymous patterns): Check that
27963 operands are registers before using REGNO on them.
27965 2002-01-03 Roland McGrath <roland@frob.com>
27967 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
27969 2002-01-04 Jakub Jelinek <jakub@redhat.com>
27971 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
27972 * c-common.h (genrtl_expr_stmt_value): Likewise.
27973 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
27974 (expand_expr_stmt_value): Add maybe_last argument.
27975 Don't warn about statement with no effect if it is the last statement
27976 in expression statement.
27977 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
27978 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
27979 expand_expr_stmt_value.
27980 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
27981 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
27982 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
27983 as maybe_last to expand_expr_stmt_value.
27985 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
27987 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
27988 be passed in, do not build it.
27989 (c_begin_if_stmt): New function.
27990 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
27991 * c-common.h (c_expand_start_cond): Update prototype.
27992 (c_begin_if_stmt): Prototype new function.
27993 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
27994 * c-parse.in (if_prefix): Use c_begin_if_stmt,
27995 c_begin_while_stmt and c_finish_while_stmt_cond.
27997 2002-01-04 William Cohen <wcohen@redhat.com>
27999 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
28000 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
28001 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
28002 * config/pa/som.h (ASM_FILE_START): Likewise.
28004 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
28006 * lcm.c: Include df.h.
28007 Add available_transfer_function prototype.
28008 (compute_available): Rework to use iterative dataflow framework.
28009 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
28010 with bb_info in df.h
28011 (available_transfer_function): New function.
28013 * Makefile.in (lcm.o): add df.h to dependencies.
28015 2002-01-04 Richard Henderson <rth@redhat.com>
28017 * config/alpha/alpha.c (some_operand): Accept HIGH.
28018 (input_operand): Likewise; accept simple references to globals.
28019 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
28020 (alpha_const_double_ok_for_letter_p): Likewise.
28021 (alpha_extra_constraint): Likewise.
28022 (alpha_preferred_reload_class): Likewise. Do not force
28023 symbolic constants to memory.
28024 (alpha_legitimate_address_p): Accept simple references
28025 to small_symbolic_operand.
28026 (alpha_legitimize_address): New arg scratch. Be prepared to be
28027 called when no_new_pseudos. Emit simple symbolic references.
28028 Split integers into low, high, and rest.
28029 (alpha_expand_mov): Use alpha_legitimize_address.
28030 (some_small_symbolic_mem_operand): New.
28031 (split_small_symbolic_mem_operand): New.
28032 * config/alpha/alpha-protos.h: Update.
28033 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
28034 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
28035 (EXTRA_CONSTRAINT): Likewise.
28036 (PREFERRED_RELOAD_CLASS): Likewise.
28037 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
28038 (PREDICATE_CODES): Update.
28039 * config/alpha/alpha.md: New post-reload splitters to convert
28040 simplfied symbolic operands to the form that references $29.
28041 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
28042 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
28044 2002-01-03 Richard Henderson <rth@redhat.com>
28046 * local-alloc.c (function_invariant_p): Update commentary.
28048 2002-01-04 H.J. Lu <hjl@gnu.org>
28050 * toplev.c (rest_of_compilation): Fix a typo when calling
28053 2002-01-03 Kazu Hirata <kazu@hxi.com>
28055 * c-common.c: Fix formatting.
28056 * diagnostic.c: Likewise.
28057 * doloop.c: Likewise.
28058 * dwarf2out.c: Likewise.
28060 2002-01-03 Kazu Hirata <kazu@hxi.com>
28062 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
28063 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
28065 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
28067 * cpperror.c: Update comments and copyright.
28068 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
28069 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
28071 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
28073 * collect2.c (main): Use strcmp when testing for "-shared".
28075 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
28077 * cppmacro.c: Don't include intl.h. Update comments.
28078 (new_number_token): Allocate enough buffer for 64-bit unsigned
28079 integers; update prototype.
28080 * cppmain.c: Update comments.
28082 2002-01-03 William Cohen <wcohen@redhat.com>
28084 * function.h (struct function): Add profile.
28085 (current_function_profile): New.
28086 doc/extend.texi: Update documentation.
28087 * final.c (final_start_function): Use current_function_profile
28088 instead of profile_flag.
28089 (profile_after_prologue): Likewise.
28090 * function.c (expand_function_start): Likewise.
28091 (expand_function_start): Likewise.
28092 * config/alpha/alpha.c (direct_call_operand):
28093 (alpha_does_function_need_gp): Likewise.
28094 (alpha_expand_prologue): Likewise.
28095 * config/arm/arm.c (arm_expand_prologue): Likewise.
28096 thumb_expand_prologue: Likewise.
28097 * config/d30v/d30v.c (d30v_stack_info): Likewise.
28098 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
28099 (fr30_expand_prologue): Likewise.
28100 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
28101 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
28102 * config/i386/i386.h (FINALIZE_PIC): Likewise.
28103 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
28104 * config/i960/i960.c (i960_output_function_prologue): Likewise.
28105 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
28106 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
28107 (m32r_expand_prologue): Likewise.
28108 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
28109 (m88k_expand_prologue): Likewise.
28110 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
28111 * config/mips/mips.c (compute_frame_size): Likewise.
28112 (mips_expand_prologue): Likewise.
28113 (mips_can_use_return_insn): Likewise.
28114 * config/pa/elf.h (ASM_FILE_START): Likewise.
28115 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
28116 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
28117 * config/pa/som.h (ASM_FILE_START): Likewise.
28118 * config/romp/romp.c (romp_using_r14): Likewise.
28119 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
28120 (rs6000_stack_info): Likewise.
28121 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
28122 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
28123 * config/v850/v850.c (compute_register_save_size): Likewise.
28125 2002-01-03 Jakub Jelinek <jakub@redhat.com>
28127 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
28128 gen_lowpart_common fails, use gen_lowpart_SUBREG.
28130 2002-01-03 Turly O'Connor <turly@apple.com>
28132 * darwin.c (machopic_output_possible_stub_label): Don't generate
28133 stub routines for pseudo-stubs which we've just defined.
28135 2002-01-03 Kazu Hirata <kazu@hxi.com>
28137 * builtins.c: Fix formatting.
28138 * c-typeck.c: Likewise.
28139 * combine.c: Likewise.
28140 * expr.c: Likewise.
28141 * loop.c: Likewise.
28143 2002-01-03 Andreas Schwab <schwab@suse.de>
28145 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
28146 and return true if _cpp_push_next_buffer pushed a new include
28148 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
28149 _cpp_pop_file_buffer did not push a new file.
28150 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
28152 2002-01-02 Eric Christopher <echristo@redhat.com>
28154 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
28155 FIND_REG_INC_NOTE call. Update copyright.
28156 * loop.c (canonicalize_condition): Ditto.
28157 * reorg.c (delete_scheduled_jump): Ditto.
28159 2002-01-03 Kazu Hirata <kazu@hxi.com>
28161 * gcse.c: Fix formatting.
28163 2002-01-03 Graham Stott <grahams@redhat.com>
28165 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
28166 forward defs for struct tags rtx_def, union_tree, rtvec_def
28167 also output corresponding typedefs for rtx, tree, and rtvec.
28169 * system.h: Move forward defs for struct tags rtx_def, union_tree,
28170 rtvec_def along with corresponding typedefs for rtx, tree, and
28171 rtvec to config.h, hconfig.h, tconfig.h.
28173 2002-01-03 Graham Stott <grahams@redhat.com>
28175 * tree.h: Update copyright date.
28176 (IS_EXPR_CODE_CLASS): Add parenthesis.
28177 (TREE_SET_CODE): Add whitespace.
28178 (TREE_CHECK): Add parenthesis.
28179 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
28180 (CST_OR_CONSTRUCTOR_CHECK):
28181 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
28182 (TREE_SYMBOL_REFERENCED): Whitespace.
28183 (INT_CST_LT): Likewise.
28184 (INT_CST_LT_UNSIGNED): Likewise.
28185 (tree_real_cst): Unwrap comment.
28186 (tree_string): Likewise.
28187 (tree_complex): Likewise.
28188 (IDENTIFIER_POINTER): correct cast.
28189 (SAVE_EXPR_CONTEXT): Whitespace.
28190 (EXPR_WFL_FILENAME_NODE): Likewise.
28191 (EXPR_WFL_FILENAME): Remove parenthesis.
28192 (DECL_ORIGIN): Add parenthesis.
28193 (DECL_FROM_INLINE): Use NULL_TREE.
28194 (build_int_2): Whitespace.
28195 (build_type_variant): Add parenthesis.
28197 * gcc/jcf-parse.c: Update copyright date.
28198 (yyparse): Constify resource_filename.
28200 2002-01-03 Graham Stott <grahams@redhat.com>
28202 * rtl.h: Update copyright date.
28203 (RTL_CHECK1): Wrap long line.
28204 (RTL_CHECK2): Likewise.
28205 (RTL_CHECKC1): Wrap long line and whitespace.
28206 (RTL_CHECKC2): Likewise.
28207 (XWINT): Whitespace.
28213 (XBITMAP): Likewise.
28215 (XBBDEF): Likewise.
28217 (X0WINT): Likewise.
28219 (X0UINT): Likewise.
28223 (X0MODE): Likewise.
28224 (X0BITMAP): Likewise.
28225 (X0TREE): Likewise.
28226 (X0BBDEF): Likewise.
28227 (X0ADVFLAGS): Likewise.
28228 (X0CSELIB): Likewise.
28229 (X0MEMATTR): Likewise.
28230 (XCWINT): Likewise.
28232 (XCUINT): Likewise.
28236 (XCMODE): Likewise.
28237 (XCBITMAP): Likewise.
28238 (XCTREE): Likewise.
28239 (XCBBDEF): Likewise.
28240 (XCADVFLAGS): Likewise.
28241 (XCCSELIB): Likewise.
28242 (XC2EXP): Likewise.
28243 (INSN_UID): Likewise.
28244 (PREV_INSN): Likewise.
28245 (PATTERN): Likewise.
28246 (INSN_CODE): Likewise.
28247 (PUT_REG_NOTE_KIND): Likewise.
28248 (CODE_LABEL_NUMBER): Likewise.
28249 (NOTE_SOURCE_FILE): Likewise.
28250 (NOTE_BLOCK): Likewise.
28251 (NOTE_EH_HANDLER): Likewise.
28252 (NOTE_RANGE_INFO): Likewise.
28253 (NOTE_LIVE_INFO): Likewise.
28254 (NOTE_BASIC_BLOCK): Likewise.
28255 (NOTE_EXPECTED_VALUE): Likewise.
28256 (NOTE_LINE_NUMBER): Likewise.
28257 (LABEL_NAME): Likewise.
28258 (LABEL_NUSES): Likewise.
28259 (LABEL_ALTERNATE_NAME): Likewise.
28260 (ADDRESSOF_DECL): Likewise.
28261 (JUMP_LABEL): Likewise.
28262 (LABEL_NEXTREF): Likewise.
28264 (ORIGINAL_REGNO: Likewise.
28265 (HARD_REGISTER_NUM_P): Add parenthesis.
28266 (SUBREG_REG): Whitespace.
28267 (SUBREG_BYTE): Likewise.
28268 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
28269 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
28270 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
28271 (ASM_OPERANDS_INPUT_VEC): Likewise.
28272 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
28273 (ASM_OPERANDS_INPUT): Likewise.
28274 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
28275 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
28276 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
28277 (ASM_OPERANDS_INPUT_MODE): Likewise.
28278 (ASM_OPERANDS_SOURCE_FILE): Likewise.
28279 (ASM_OPERANDS_SOURCE_LINE): Likewise.
28280 (MEM_SET_IN_STRUCT_P): Minor reformat.
28281 (TRAP_CONDITION): Whitespace.
28282 (TRAP_CODE): Likewise.
28283 (COND_EXEC_TEST): Likewise.
28284 (COND_EXEC_CODE): Likewise.
28285 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
28286 (PHI_NODE_P): Add parenthesis.
28287 (plus_constant): Whitespace and add parenthesis.
28289 2002-01-03 Kazu Hirata <kazu@hxi.com>
28291 * config/avr/avr.c: Fix comment typos.
28292 * config/c4x/c4x.md: Likewise.
28293 * config/dsp16xx/dsp16xx.h: Likewise.
28294 * config/dsp16xx/dsp16xx.md: Likewise.
28295 * config/i386/i386.md: Likewise.
28296 * config/ia64/ia64.c: Likewise.
28297 * config/m32r/m32r.h: Likewise.
28298 * config/m68hc11/m68hc11.md: Likewise.
28299 * config/mmix/mmix.c: Likewise.
28300 * config/mn10200/mn10200.c: Likewise.
28301 * config/romp/romp.c: Likewise.
28302 * config/sh/sh.c: Likewise.
28303 * config/stormy16/stormy16.c: Likewise.
28304 * config/stormy16/stormy16.h: Likewise.
28305 * config/stormy16/stormy16.md: Likewise.
28307 2002-01-03 Graham Stott <grahams@redhat.com>
28309 * loop.h: Update copyright date.
28310 (LOOP_MOVABLES): Fix typo.
28311 (LOOP_REGS): Likewise.
28312 (LOOP_IVS): Likewise.
28314 2002-01-03 Graham Stott <grahams@redhat.com>
28316 * cppinit.c: Update copyright date.
28317 Don't include output.h
28318 * Makefile.in: Update copyright date.
28321 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
28324 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
28325 (-pthread) Add to RS/6000 options.
28327 2002-01-02 Kazu Hirata <kazu@hxi.com>
28329 * except.c: Fix comment typos.
28330 * loop.c: Likewise.
28331 * varasm.c: Likewise.
28332 * doc/tm.texi: Fix a typo.
28334 2002-01-02 Jakub Jelinek <jakub@redhat.com>
28336 * c-typeck.c (output_init_element): Allow initializing static storage
28337 duration objects with compound literals.
28339 2002-01-02 Richard Henderson <rth@redhat.com>
28341 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
28344 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28346 * gcc.c (default_compilers): Const-ify.
28347 * mips-tdump.c (stab_names): Likewise.
28348 * mips-tfile.c (map_coff_types, map_coff_storage,
28349 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
28350 pseudo_ops_t, pseudo_ops): Likewise.
28351 * protoize.c (default_include): Likewise
28353 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
28354 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
28355 Add array size in declaration.
28356 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
28357 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
28358 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
28359 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
28360 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
28361 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
28362 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
28363 emtens, make_nan): Const-ify.
28364 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
28365 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
28367 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
28369 * config.gcc (ia64-*-*): Set extra_headers.
28370 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
28371 * config/alpha/t-osf: Remove.
28372 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
28374 2002-01-02 David Edelsohn <edelsohn@gnu.org>
28376 * config/rs6000/t-aix43: Revert previous change.
28378 2002-01-02 Jason Merrill <jason@redhat.com>
28380 * c-decl.c (c_expand_body): Call outlining_inline_function when
28381 emitting an inline function out of line.
28383 2002-01-02 Richard Henderson <rth@redhat.com>
28385 * dwarf2out.c (limbo_die_node): Add created_for member.
28386 (new_die): New argument created_for. Update all callers.
28387 (mark_limbo_die_list): New.
28388 (dwarf2out_init): Register limbo_die_list as a root.
28389 (dwarf2out_finish): Force insert limbo dies into their function
28392 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
28395 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
28397 2002-01-02 Kazu Hirata <kazu@hxi.com>
28399 * config/h8300/fixunssfsi.c: Update copyright.
28402 * config/h8300/h8300.c: Update copyright.
28403 Eliminate warnings.
28405 2002-01-02 Kazu Hirata <kazu@hxi.com>
28407 * config/romp/romp.c: Fix comment formatting.
28408 * config/romp/romp.h: Likewise.
28409 * config/romp/romp.md: Likewise.
28410 * config/s390/s390.c: Likewise.
28411 * config/stormy16/stormy16.c: Likewise.
28412 * config/stormy16/stormy16.h: Likewise.
28414 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
28416 * c-common.h (genrtl_expr_stmt_value): Declare.
28417 * c-semantics.c (genrtl_goto_stmt): Redirect to...
28418 (genrtl_goto_stmt_value): ... this new function. Pass new
28419 argument down to expand_expr_stmt_value, taking
28420 TREE_ADDRESSABLE into account.
28421 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
28422 STMT_EXPR as addressable, i.e., one whose result we want.
28423 * expr.c (expand_expr): Don't save expression statement value
28424 of labeled_blocks or loop_exprs.
28425 * stmt.c (expand_expr_stmt): Redirect to...
28426 (expand_expr_stmt_value): ... this new function. Use new
28427 argument to tell whether to save expression value.
28428 (expand_end_stmt_expr): Reset last_expr_type and
28429 last_expr_value if we don't have either.
28430 * tree-inline.c (declare_return_variable): Mark its use
28431 statement as addressable.
28432 * tree.h: Document new use of TREE_ADDRESSABLE.
28433 (expand_expr_stmt_value): Declare.
28435 2002-01-01 Tom Rix <trix@redhat.com>
28437 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
28438 rs6000_emit_allocate_stack.
28440 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
28442 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
28443 ${srcdir}/ginclude/ to every entry in extra_headers.
28444 * configure: Regenerate.
28445 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
28446 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
28447 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
28448 * ginclude/proto.h: Rename to config/convex/proto.h.
28450 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28452 * attribs.c (handle_vector_size_attribute): Use host_integerp
28453 and tree_int_cst; remove warnings.
28454 * caller-save.c (insert_restore): Add cast to get rid of warning.
28455 (insert_save): Likewise.
28456 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
28457 * regmove.c (find_matches): Add temporary var to kill a warning.
28459 2002-01-01 Douglas B Rupp <rupp@gnat.com>
28461 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
28462 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
28463 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
28464 (vms-dwarf2eh.o): Add Makefile rule.
28465 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
28466 * config/alpha/vms-dwarf2eh.asm: New file.
28468 * gcc.c (delete_if_ordinary): Delete all versions.
28470 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
28472 * config/mmix/mmix.md: Update FIXME to not mention
28474 (MMIX_rJ_REGNUM): New define_constants constant.
28475 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
28476 "*movdicc_real"): Adjust contraints formatting.
28477 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
28478 for branch prediction.
28479 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
28481 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
28482 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
28483 number. Delete related FIXMEs.
28484 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
28485 from number to MMIX_rJ_REGNUM.
28486 (TARGET_MASK_BRANCH_PREDICT): New.
28487 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
28488 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
28489 value. Add -mbranch-predict and -mno-branch-predict.
28490 (TARGET_VERSION): Drop date.
28491 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
28492 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
28493 for finding out global symbols.
28494 (mmix_asm_output_labelref): Revert condition for global symbol.
28495 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
28496 (mmix_print_operand_punct_valid_p): A '+' is valid.
28498 See ChangeLog.6 for earlier changes.