1 2001-12-11 Aldy Hernandez <aldyh@redhat.com>
3 * c-common.c (type_for_mode): Handle unsigned vectors.
4 (type_for_mode): Remove redundant calls to TYPE_MODE.
6 * tree.c (make_vector): New.
7 (build_common_tree_nodes_2): Use make_vector for vector types.
8 Add unsigned vector types.
10 * tree.h (tree_index): Add unsigned types for vectors.
11 (unsigned_V16QI_type_node): New.
12 (unsigned_V4SI_type_node): New.
13 (unsigned_V8QI_type_node): New.
14 (unsigned_V8HI_type_node): New.
15 (unsigned_V4HI_type_node): New.
16 (unsigned_V2SI_type_node): New.
18 2001-12-11 Stan Shebs <shebs@apple.com>
20 * objc/objc-act.c (finish_message_expr): Fix misplaced parens in a
23 2001-12-11 David O'Brien <obrien@FreeBSD.org>
25 * config.gcc (m68020-*-elf*): Expand tm_file to include all needed
26 cpu configuration headers.
27 * config/h8300/elf.h: Include dbxelf.h.
28 * config/m68k/linux.h: Likewise.
29 * config/m68k/m68020-elf.h: Likewise.
30 * config/m68k/m68kv4.h: Likewise.
31 * config/sh/elf.h: Likewise.
32 * config/m68k/m68kemb.h: Add comment about the its purpose.
34 2001-12-11 Richard Henderson <rth@redhat.com>
36 * objc/objc-act.c (build_constructor): Cast initializer values
37 to the proper field types.
39 2001-12-11 Jakub Jelinek <jakub@redhat.com>
41 * unwind-dw2.c (execute_cfa_program): Fix DW_CFA_restore handling.
43 2001-12-10 Roger Sayle <roger@eyesopen.com>
45 * builtins.c (expand_builtin): Use a switch statement to list
46 those functions not expanded without optimizations, instead of a
47 series of equality tests.
49 Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
51 * config/alpha/vms.h (LIB_SPEC): Define.
52 * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Don't set component field.
54 * libgcc2.c (_bb): Remove ctime declaration.
56 * Makefile.in (stage[1234]-start): $(LN_S) utilities in a manner
57 that works if LN_S = cp.
59 * config/alpha/x-vms (version): Change "." to "_".
61 * configure.in: Hardcode that vfork works on VMS host.
62 * configure: Regenerated.
64 Mon Dec 10 18:37:31 2001 Douglas B. Rupp <rupp@gnat.com>
66 * gcc.c (convert_filename): Add do_obj parameter. Don't convert
68 (process_command): Modify calls to convert_filename.
70 2001-12-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
72 * config/sparc/sol2-sld-64.h: Include dbxelf.h again.
74 Mon Dec 10 15:54:27 2001 Jeffrey A Law (law@cygnus.com)
76 * combine.c (known_cond): Check mode of each operand to determine
77 if COND is comparing floating point values.
79 2001-12-10 David Edelsohn <edelsohn@gnu.org>
81 * rs6000.h (processor_type): Add PPC405.
82 (RTX_COSTS): Add PPC405. Correct rs64 and ppc630 multiply costs.
83 * rs6000.md: Add PPC405 information. Utilize imul2 and imul3 for
84 rios1, rs64, and ppc630 processors.
85 * rs6000.c (processor_target_table): Add PPC405.
87 2001-12-10 Richard Henderson <rth@redhat.com>
89 * config/alpha/alpha.md (unaligned_extendhidi): Call gen_lowpart
90 instead of hardcoding subregs into the _be and _le patterns.
92 2001-12-10 Neil Booth <neil@daikokuya.demon.co.uk>
94 * c-lex.c, c-parse.in, c-typeck.c: Revert concatenation changes.
96 Mon Dec 10 09:19:11 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
98 * config/i386/i386.md (leave, leave_rex64): Adjust pattern to match
101 2001-12-10 Joseph S. Myers <jsm28@cam.ac.uk>
103 * doc/cpp.texi: Don't condition menus on @ifinfo. Condition the
104 copyright notice formerly conditioned on @ifinfo on @ifnottex
107 Mon Dec 10 06:15:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
109 * vmsdbgout.c (lookup_filename): Remove warning.
111 Mon Dec 10 06:09:57 2001 Douglas B. Rupp <rupp@gnat.com>
113 * Makefile.in: Add $(OUTPUT_OPTION) to compilation rules.
115 * config.gcc (alpha*-dec-vms*): Change to alpha*-dec-*vms*
116 (exeext, target_alias, prefix, local_prefix): Define.
117 * config/alpha/x-vms (USE_COLLECT2): Make empty.
118 * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Use Unix style
119 file specifications. Remove ".".
120 (GCC_INCLUDE_DIR): Remove redefinition (redundant).
121 * fixinc/mkfixinc.sh (alpha*-dec-vms*): Change to alpha*-dec-*vms*
123 2001-12-09 Nathan Sidwell <nathan@codesourcery.com>
125 * Makefile.in (.po.gmo): Use POSIXLY_CORRECT argument ordering.
127 Sun Dec 9 21:57:24 2001 Douglas B. Rupp <rupp@gnat.com>
129 * config/alpha/t-vms (EXTRA_PARTS): Append $(VMS_EXTRA_PARTS)
130 Add rules for building [vp]crt0.o
131 * config/alpha/vms.h (START_FILE_SPEC): Define.
132 * config/alpha/x-vms (VMS_EXTRA_PARTS): Define
133 * config/alpha/vms-crt0.c, config/alpha/vms-psxcrt0.c: New files.
134 * doc/invoke.texi: Document special Alpha/VMS options.
136 Sun Dec 9 20:25:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
138 * hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.
139 * vmsdbg.h (DST_SRC_COMMAND): Test for type of long long or __int64,
142 Sun Dec 9 20:19:32 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
143 Douglas B. Rupp <rupp@gnat.com>
145 * tree.c (append_random_char): Conditionalize INO for VMS.
147 2001-12-09 Richard Henderson <rth@redhat.com>
149 * cfgcleanup.c (label_is_jump_target_p): New function.
150 (try_optimize_cfg): Use label_is_jump_target_p to check if label is
151 target of a JUMP_INSN from the preceding block.
153 Sun Dec 9 18:40:07 2001 Douglas B. Rupp <rupp@gnat.com>
155 * vmsdbgout.c (lookup_filename): Assign null string instead
156 of null pointer to fnam.
158 2001-12-09 Richard Henderson <rth@redhat.com>
160 * config/alpha/alpha.c (alpha_align_insns): Suppress realignment
161 immediately after a call; insert nops before a call.
163 2001-12-09 Richard Henderson <rth@redhat.com>
165 * config/alpha/alpha.c (alpha_align_insns): Use align_functions,
166 not FUNCTION_BOUNDARY.
167 * config/alpha/alpha.h (TRAMPOLINE_ALIGNMENT): New.
168 * config/alpha/alpha32.h, config/alpha/vms.h: Likewise.
169 * config/alpha/unicosmk.h (FUNCTION_BOUNDARY): Remove.
171 2001-12-09 Hans-Peter Nilsson <hp@bitrange.com>
173 * config/mmix/mmix.c (mmix_function_block_profiler,
174 mmix_block_profiler, mmix_function_block_profiler_exit): Delete
176 * config/mmix/mmix-protos.h (mmix_function_block_profiler,
177 mmix_block_profiler, mmix_function_block_profiler_exit): Delete
180 * config/cris/cris.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER):
181 Delete obsoleted macros.
183 2001-12-09 Joseph S. Myers <jsm28@cam.ac.uk>
185 * doc/cpp.texi, doc/cppinternals.texi, doc/invoke.texi,
186 doc/md.texi, doc/rtl.texi, doc/tm.texi: Use American spelling.
188 * ChangeLog.2, ChangeLog.3, ChangeLog.5, ChangeLog, alias.c,
189 cfgbuild.c, expmed.c, expr.c, final.c, flow.c, fold-const.c,
190 function.c, config/alpha/alpha.md, config/alpha/vms-ld.c,
191 config/arm/arm.c, config/arm/arm.h, config/c4x/libgcc.S,
192 config/i370/i370.c, config/i386/i386.c,
193 config/i386/i386-interix.h, config/i386/i386.md,
194 config/i386/i386.h, config/i386/netbsd-elf.h, config/ia64/ia64.c,
195 config/m32r/m32r-protos.h, config/mcore/mcore.h,
196 config/rs6000/rs6000.h, config/sparc/linux64.h,
197 config/sparc/sparc.c, config/v850/v850-protos.h,
198 config/cris/cris.h, config/s390/s390.md, config/elfos.h: Fix
201 2001-12-09 Daniel Berlin <dan@cgsoftware.com>
203 * config/rs6000/rs6000.h (enum rs6000_builtins): Add remaining
204 altivec builtins (VCF?X, VCT?XS, VSEL, V*EFP, VRFI*).
206 * config/rs6000/rs6000.c: Ditto.
208 * config/rs6000/rs6000.md: Ditto.
210 2001-12-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
212 * 1750a.md: Add default case in switch.
213 * alpha/vms.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
215 * dsp16xx.c (print_operand_address): Likewise.
216 * i386/osf1elf.h (FUNCTION_PROFILER): Const-ify.
217 * ia64.md: Add missing braces.
218 * rs6000-protos.h (s8bit_cint_operand): Prototype.
219 * s390.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
221 * stormy16.h (REG_CLASS_CONTENTS): Add missing braces.
222 * v850.h (OUTPUT_ADDR_CONST_EXTRA): Don't issue a `return'.
223 * dbxout.c (dbxout_source_file): Move a variable into the scope
225 * final.c (profile_function): Mark parameter with
227 * genemit.c (gen_expand): Likewise for generated file.
228 * insn-addr.h (INSN_ADDRESSES_NEW): Avoid undefined behavior.
230 * vmsdbg.h: Delete spurious close-comment.
231 (DST_HEADER): Fix typo in ENUM_BITFIELD parameter.
232 * vmsdbgout.c (write_modbeg): Define return type.
234 * m68k/3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
235 * m68k/amix.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
236 * m68k/atari.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
237 * m68k/hp320.h (ASM_OUTPUT_ALIGN): Likewise.
238 * m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Likewise.
239 * m68k/sgs.h (ASM_OUTPUT_ALIGN): Likewise.
240 * m68k/tower-as.h (ASM_OUTPUT_ALIGN): Likewise.
242 2001-12-08 Tom Rix <trix@redhat.com>
244 * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete MASK_STRING.
245 * config/rs6000/aix51.h (NON_POWERPC_MASKS): Same.
246 * config/rs6000/rs6000.md (load_multiple, store_multiple): Do not use
248 * config/rs6000/rs6000.md (movstrsi_8reg, movstrsi_6reg,
249 movstrsi_4reg, movstrsi_1_reg): Add powerpc64.
250 * config/rs6000/rs6000.c (expand_block_move): Do not use
251 gen_movstrsi_2reg and powerpc64.
253 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
255 * c-common.h (rid): Add RID_CHOOSE_EXPR and
256 RID_TYPES_COMPATIBLE_P.
258 * c-parse.in (reswords): Add __builtin_choose_expr.
259 Add __builtin_types_compatible_p.
260 Add CHOOSE_EXPR token.
261 Add TYPES_COMPATIBLE_P token.
262 Add production for CHOOSE_EXPR.
263 Add production for TYPES_COMPATIBLE_P.
265 * doc/extend.texi (__builtin_choose_expr): Add documentation.
266 (__builtin_types_compatible_p): Likewise.
268 2001-12-08 David Edelsohn <edelsohn@gnu.org>
270 * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
273 2001-12-08 Neil Booth <neil@daikokuya.demon.co.uk>
275 * c-parse.in: Take string literals in assembler constructs,
277 * c-typeck.c (build_asm_stmt, simple_asm_stmt): No need to
278 check the strings are STRING_CSTs.
280 2001-12-08 Neil Booth <neil@daikokuya.demon.co.uk>
282 * c-lex.c (c_lex): Peek a token ahead for a string to concatenate,
283 using combine_strings to do the concatenation.
284 * c-parse.in: Replace uses of the string non-terminal with STRING.
285 Don't attempt string concatenation.
286 (OBJC_STRING): New terminal.
287 (string): Remove non-terminal.
288 (_yylex): Call combine_strings on function names. Generate
289 OBJC_STRING terminals; don't pass '@' on to yacc.
290 * c-typeck.c (simple_asm_stmt): Don't concatenate strings here.
291 (build_asm_stmt): Similarly.
293 2001-12-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
295 * rtlanal.c (get_jump_table_offset): Delete unused variable.
297 2001-12-08 Richard Earnshaw <rearnsha@arm.com>
299 * arm.md (VUNSPEC_PREFETCH): Delete constant definition.
300 (prefetch): Rewrite using PREFETCH RTL primitive.
301 * arm.h (arm_builtins): Delete ARM_BUILTIN_PREFETCH).
302 * arm.c (arm_init_builtins): Don't initialize a builtin for
303 __builtin_prefetch here.
304 (arm_expand_builtin): Don't expand __builtin_prefetch here.
306 2001-12-08 Richard Earnshaw <rearnsha@arm.com>
308 * final.c (cleanup_subreg_operands): Use recog_data.operand_loc
309 in test for a subreg.
311 2001-12-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
313 * rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
316 2001-12-07 Richard Henderson <rth@redhat.com>
318 * doc/extend.texi: Fix typo last change.
320 * c-decl.c (c_language): Remove duplicate.
322 2001-12-07 Dale Johannesen <dalej@apple.com>
324 * config/rs6000/darwin.h: Set MAX_LONG_TYPE_SIZE to 32.
325 * config/rs6000/rs6000.c (rs6000_emit_move): In Darwin-
326 specific codegen, eliminate a register copy.
327 (print_operand_address): Add support for Darwin's lo16(constant)
329 (rs6000_machopic_legitimize_pic_address): Fix darwin-specific
330 generation of addresses within very large data objects.
331 (s8bit_cint_operand): New.
332 * config/rs6000/rs6000.md: Remove "iu" reference for 750/7400.
333 Move "mtjmpr" to correct functional unit for 750/7400/7450.
334 Add imul2 and imul3 insn types for multiplication by 16- and
336 Change tablejump patterns to strongly discourage using LR
338 Add %lo16 patterns for Darwin loads and stores.
340 2001-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
342 * alpha.md: Use (HOST_WIDE_INT)1<<63 in lieu of 0x8000000000000000.
344 2001-12-07 Stephane Carrez <Stephane.Carrez@sun.com>
346 * config/sparc/sparc.c (epilogue_renumber): Do not replace %fp
347 with %sp because it can cause the delayed instruction to load
350 2001-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
352 * alpha.c (alpha_expand_unaligned_store,
353 alpha_expand_unaligned_store_words): Use constm1_rtx in place of
354 call to immed_double_const.
356 2001-12-07 Aldy Hernandez <aldyh@redhat.com>
358 * doc/extend.texi (Variable Attributes): Document vector_size.
360 * attribs.c (c_common_attribute_table): Add vector_size.
361 (handle_vector_size_attribute): New.
362 (vector_size_helper): New.
363 (decl_attributes): Relayout the decl after calculating attribs.
365 2001-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
367 * doc/gcc.texi: Don't include install-old.texi. Adjust menu
368 description for Trouble section.
369 * doc/install-old.texi: Adjust for inclusion as chapter of new
371 * doc/install.texi, doc/include/fdl.texi, doc/install.texi2html:
372 Adjust to include old installation chapter as chapter of new
375 Fri Dec 7 11:07:35 EST 2001 John Wehle (john@feith.com)
377 * rtl.h (get_jump_table_offset): Declare.
378 * rtlanal.c (get_jump_table_offset): Implement.
380 Fri Dec 7 07:06:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
382 * final.c (bb_head, bb_tail, bb_file_label_num, bb_func_label_num):
383 Deleted; were used only by BB profiler code.
384 (sbb_head, sbb_tail, sbb_label_num): Likewise.
385 (end_final): Delete now-unused vars I, PTR, and SPTR.
387 * expr.c (store_field): Remove warning.
388 (expand_expr, case COMPONENT_REF, case VIEW_CONVERT_EXPR): Likewise.
389 (highest_pow2_factor, case MIN_EXPR, case MAX_EXPR): Add cases.
390 (highest_pow2_factor, case *_DIV_EXPR): Only can do something if
391 divisor constant power of 2.
392 (highest_pow2_factor, case COMPOUND_EXPR): Look at operand 1.
394 2001-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
396 * alpha.c (function_arg): Cast value to HOST_WIDE_INT before
399 2001-12-06 Aldy Hernandez <aldyh@redhat.com>
401 * rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.
402 (DWARF_FRAME_REGISTERS): Delete.
404 2001-12-06 Janis Johnson <janis187@us.ibm.com>
406 * builtin-types.def (BT_FN_VOID_PTR_VAR): New.
407 * builtins.def (BUILT_IN_PREFETCH): Change arguments.
408 * builtins.c (expand_builtin_prefetch): Two arguments are now optional,
409 with defaults for read prefetch with high degree of locality.
410 * doc/extend.texi (__builtin_prefetch): Update documentation.
411 * doc/md.texi (prefetch): Add documentation.
413 2001-12-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
415 * fixinc/inclhack.def (stdio_va_list): Handle __VA_LIST__ in Tru64
417 * fixinc/fixincl.x: Regenerate.
418 Fixes PR libf2c/4826.
420 2001-12-06 Aldy Hernandez <aldyh@redhat.com>
421 Richard Henderson <rth@redhat.com>
423 * doc/tm.texi (DWARF_FRAME_REGISTERS): Add documentation.
424 (PRE_GCC3_DWARF_FRAME_REGISTERS): Same.
426 * unwind-dw2.c (__frame_state_for): Change DWARF_FRAME_REGISTERS
427 to PRE_GCC3_DWARF_FRAME_REGISTERS.
429 (PRE_GCC3_DWARF_FRAME_REGISTERS): Define if not already defined.
431 2001-12-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
433 * langhooks.c (lhd_staticp): Mark parameter with
436 2001-12-06 H.J. Lu <hjl@gnu.org>
438 * Makefile.in (.po.gmo): Use "-test -d po || mkdir po" to
441 (o/$(PACKAGE).pot): Likewise.
443 2001-12-06 Alexandre Oliva <aoliva@redhat.com>
445 * tree.c (get_callee_fndecl): Move DECL_ABSTRACT_ORIGIN-following...
446 * tree-inline.c (expand_call_inline): ... here.
448 2001-12-06 H.J. Lu <hjl@gnu.org>
450 * Makefile.in (.po.gmo): Use "-mkdir po" for parallel build.
452 (o/$(PACKAGE).pot): Likewise.
454 2001-12-06 David O'Brien <obrien@FreeBSD.org>
456 * config.gcc: Include dbxelf.h before elfos.h.
457 * elfos.h: Don't include dbxelf.h, let config.gcc handle it.
459 2001-12-06 Zack Weinberg <zack@codesourcery.com>
461 * cppfiles.c (open_file): If we've opened a directory by
463 (find_include_file): Avoid turning / into // or // into ///.
465 2001-12-06 Nick Clifton <nickc@cambridge.redhat.com>
467 * config/arm/arm.h (STRUCT_VALUE): Suppress definition.
468 (STRUCT_VALUE_REGNUM): Restore definition.
470 2001-12-06 Andrew MacLeod <amacleod@redhat.com>
472 * flow.c (find_regno_partial): Return register, not the expression
475 Thu Dec 6 09:24:12 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
477 * function.c (handle_epilogue_set): Check for FP setting case when
478 SP is set from FP in same insn.
480 2001-12-06 Nick Clifton <nickc@cambridge.redhat.com>
482 * config/arm/arm.c (load_multiple_sequence): Pass pointer to
483 RTX when calling alter_subreg().
484 (store_multiple_sequence): Pass pointer to RTX when calling
487 Thu Dec 6 06:55:13 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
489 * function.c (assing_parms): Fix typo in last change.
490 * config/clipper.c (clipper_builtin_saveregs): Remove Checker code.
491 * config/m88k/m88k.c (m88k_builtin_saveregs): Likewise.
492 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
493 * config/sparc/sparc.c (sparc_builtin_saveregs): Likewise.
495 2001-12-06 Alan Modra <amodra@bigpond.net.au>
497 * config/rs6000/rs6000.c (rs6000_unique_section): Simplify and
498 correct code selecting section.
500 Thu Dec 6 12:45:33 CET 2001 Jan Hubicka <jh@suse.cz>
502 * final.c (count_basic_block, add_bb, add_bb_string):
504 (end_final, final_start_function, final, final_scan_insn,
505 leaf_function_p): Kill BB profiler related code.
506 * flags.h (profile_block_flag): Kill.
507 * libgcc2.c (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE,
508 BB_BUCKETS, BBINBUFSIZE, bb_edge, bb_func_mode, bb_func,
509 __bb, bb_src, bb_dst, bb_tracefile, bb_hashbuckets,
510 bb_func_head, bb_callcount, bb_mode, bb_stack, bb_stacksize
511 reported, GOPENDECOMPRESS, GOPENCOMPRESS, gopen, gclose,
512 __bb_exit_trace_func, __bb_init_prg, __bb_trace_func,
513 __bb_trace_func_ret, __bb_init_file, __bb_trace_ret,
514 __bb_init_trace_func): Kill.
515 * toplev.c (profile_block_flag): Kill.
516 (indepdendent_decode_option, process_options): Kill -a related code.
517 * alpha.c (direct_call_operand): Likewise.
518 * arm.c (arm_expand_prologue, thumb_expand_prologue,
519 thumb_expand_epilogue): Likewise.
520 * c4x.c (c4x_expand_prologue, c4x_null_epilogue_p): Likewise.
521 * c4x.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
522 FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
523 MACHINE_STATE_RESTORE): Kill.
524 * d30v.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
525 FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
526 MACHINE_STATE_RESTORE): Kill.
527 * fr30.c (fr30_expand_prologue): Kill BB profiler related code.
528 * i386.c (ix86_can_use_return_insn_p, ix86_expand_prologue,
529 ix86_expand_epilogue, ix86_expand_epilogue): Kill BB profiler related
531 (ix86_output_function_block_profiler, ix86_output_block_profiler): Kill.
532 * i386.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
533 FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
534 MACHINE_STATE_RESTORE): Kill.
535 * fr30.c (fr30_expand_prologue): Kill BB profiler related code.
536 * i960.c (i960_output_function_prologue): Kill BB profiler related
538 * ia64.c (ia64_compute_frame_size): Likewise.
539 * ia64.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
540 FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
541 MACHINE_STATE_RESTORE): Kill.
542 * m32r.c (m32r_expand_prolofue): Kill BB profiler related code.
543 * m68hc11.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
544 FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
545 MACHINE_STATE_RESTORE): Kill.
546 * m68k.c (m68k_output_function_epilogue): Kill BB profiler related code.
547 * m68k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
548 FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
549 MACHINE_STATE_RESTORE): Kill.
550 * m88k.c (output_options, m88k_layout_frame, m88k_expand_prologue):
551 Kill BB profiler related code.
552 * m88k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
553 FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
554 MACHINE_STATE_RESTORE): Kill.
555 * mips.c (mips_expand_prologue): Kill BB profiler related code.
556 * mmix.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
557 FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
558 MACHINE_STATE_RESTORE): Kill.
559 * rs6000.c (rs6000_override_options): Kill BB profiler related code.
560 * s960.c (s390_function_prologue): Kill BB profiler related code.
561 * s960.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
562 FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
563 MACHINE_STATE_RESTORE): Kill.
564 * linux-aout.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
565 * linux.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
566 * linux64.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
567 * sol2.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
568 * sparc.c (sparc_override_options, eligible_for_sibcall_delay,
569 sparc_nonflat_function_epilogue): Kill BB profiler related code.
570 (sparc_function_block_profiler, sparc_block_profiler,
571 sparc_function_block_profiler_exit): Kill.
572 * sparc.h (OVERRIDE_OPTIONS): Kill BB profiler related code.
573 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
574 FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
575 MACHINE_STATE_RESTORE): Kill.
576 * sun4o3.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
577 * sunos4.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
578 * stormy16.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
579 FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
580 MACHINE_STATE_RESTORE): Kill.
581 * doc/invoke.texi: Kill documentation of -a and -ax.
582 * tm.texi (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
583 FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
584 MACHINE_STATE_RESTORE): Kill.
586 2001-10-26 Steve Christiansen <smc@us.ibm.com>
588 * doc/rtl.texi: Use a table to display RTL format characters.
590 2001-12-06 Bo Thorsen <bo@suse.co.uk>
592 * config/i386/linux64.h (LINK_SPEC): Correct name of dynamic linker.
594 Wed Dec 5 19:18:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
596 * function.c (keep_stack_depressed): Check global_live_at_start
597 of EXIT_BLOCK for temp register and verify it isn't in equiv_reg_src.
599 2001-12-05 David O'Brien <obrien@FreeBSD.org>
601 * config.gcc (powerpc-*-freebsd*): Use the proper tmake_file files,
602 as set by the generic FreeBSD configure framework.
604 2001-12-04 Jason Merrill <jason@redhat.com>
606 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
607 start_inlining, end_inlining.
608 * tree-inline.c (expand_call_inline): Call them.
609 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
610 (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
611 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Add them.
612 * langhooks.c (lhd_tree_inlining_start_inlining): New fn.
613 (lhd_tree_inlining_end_inlining): New fn.
615 2001-12-05 Neil Booth <neil@daikokuya.demon.co.uk>
617 * c-common.c (shadow_warning): New function, moved from cp/decl.c.
618 * c-common.h (shadow_warning): New.
619 * c-decl.c: Include c-common.h.
620 (warn_if_shadowing): New, broken out of pushdecl.
621 (pushdecl): Use warn_if_shadowing.
622 (store_parm_decls): Prevent duplicate -Wshadow warnings.
624 Wed Dec 5 17:59:19 2001 Douglas B. Rupp <rupp@gnat.com>
626 * config/alpha/vms.h (SIZE_TYPE, PTRDIFF_TYPE): Remove, were disabled.
627 (DOLLARS_IN_IDENTIFIERS, LINK_SPEC): Remove duplicate.
630 Wed Dec 5 16:03:04 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
632 * doc/c-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition.
633 (QUAL_UNION_TYPE): New type.
635 * varasm.c (output_constant, case ERROR_MARK): New case.
637 * attribs.c (handle_no_check_memory_usage_atribute): Deleted.
638 (c_com): Delete its reference.
639 * builtins.c: Delete memory checking code.
640 * calls.c, expr.c, function.c, stmt.c: Likewise.
641 * builtins.c (expand_builtin_arg_info): Remove reference to
642 EXPAND_MEMORY_USE_* modifiers.
643 * explow.c (expr_size): Likewise.
644 * expr.c (expand_expr, expand_increment): Likewise.
645 * expr.h (ARGS_SIZE_RTX): Likewise.
646 * function.c (assign_parms, expand_pending_sizeso): Likewise.
647 * c-decl.c (duplicate_decls): Don't handle DECL_NO_CHECK_MEMORY_USAGE.
648 * expr.c (in_check_memory_usage): Delete.
649 (get_push_address, get_memory_usage_from_modifier): Delete.
650 (expand_assigment): Use EXPAND_WRITE on destination.
651 (expand_expr): Delete ro_modifier.
652 * expr.h (expand_modifier): Delete EXPAND_MEMORY_* entries and
654 (memory_use_mode): Delete.
655 * flags.h (flag_check_memory_usage): Deleted.
656 (flag_prefix_function_name): Likewise.
657 * function.c (expand_function_start): Don't set
658 current_function_check_memory_usage.
659 * function.h (check_memory_usage): Delete.
660 * libfuncs.h, optabs.c: Delete chkr_* stuff.
661 * stmt.c (expand_asm_opernd): Change EXPAND_MEMORY_USE_WO to
663 * toplev.c (flag_check_memory_usage): Deleted.
664 (flag_prefix_function_name): Likewise.
665 (f_options, process_options): Delete references to above.
666 * tree.h (DECL_NO_CHECK_MEMORY_USAGE): Deleted.
667 * varasm.c (CHKR_PREFIX): Deleted.
668 (make_decl_rtl): Remove flag_prefix_function_name handling.
669 (assemble_name): Likewise.
670 * doc/extend.texi: Remove no_check_memory_usage attribute.
671 * doc/invoke.texi: Remove -fcheck-memory-usage
672 and -fprefix-function-name.
674 2001-12-05 Andreas Schwab <schwab@suse.de>
676 * Makefile.in (STMP_FIXPROTO, STMP_FIXINC): Use substituted values
679 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
681 * config.gcc: Include arm/xscale-coff.h before arm/arm.h.
683 2001-12-05 William Cohen <wcohen@redhat.com>
685 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Correct typo in
688 2001-12-05 Daniel Berlin <dan@cgsoftware.com>
690 * config/rs6000/rs6000.h (enum rs6000_builtins): Add more altivec
693 * config/rs6000/rs6000.md: Modeling of 7450 altivec changed to
694 better reflect reality (change from Apple's tree).
695 Add more of altivec instructions.
696 Add ftruncv4sf2 pattern.
697 Remove more unspecs (vector merge instructions, etc).
699 * config/rs6000/rs6000.c (bdesc_3arg): New, for 3 argument altivec
701 (bdesc_1arg): New, for 1 argument altivec builtins.
702 (altivec_expand_builtin): Handle unary and ternary ops.
703 (altivec_init_builtins): Ditto.
705 Wed Dec 5 09:33:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
707 * config/alpha/vms.h (ADA_LONG_TYPE_SIZE): New macro.
708 * doc/tm.texi (ADA_LONG_TYPE_SIZE): Document it.
710 2001-12-05 Jakub Jelinek <jakub@redhat.com>
712 * gcse.c (store_killed_in_insn): Consider pure calls
713 as potential store killers in addition to normal calls.
715 2001-12-05 Jakub Jelinek <jakub@redhat.com>
717 * expr.c (expand_expr): When checking promoted value, use
718 DECL_MODE (exp) and not mode.
720 2001-12-05 Jakub Jelinek <jakub@redhat.com>
722 * c-typeck.c (output_init_element): Call digest_init
723 just once, not in each if branch and check its return value for
726 2001-12-05 Jakub Jelinek <jakub@redhat.com>
728 * c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's
729 type is RECORD_TYPE, UNION_TYPE or ARRAY_TYPE thereof.
730 (finish_struct): Break the loop if n_incomplete went to 0.
731 For ARRAY_TYPE, if it is not TYPE_DECL, layout the decl too.
733 Wed Dec 5 07:41:13 2001 Douglas B. Rupp <rupp@gnat.com>
735 * config/alpha/alpha.c (alpha_va_start): Update VMS case.
737 Wed Dec 5 07:27:42 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
738 Douglas B. Rupp <rupp@gnat.com>
740 * vmsdbg.h, vmsdbgout.c: Add documentation and minor cleanups.
741 * doc/invoke.texi: Add -gvms.
742 * doc/passes.texi: Add mention of vmsdbgout.c.
743 * doc/tm.texi: Document VMS debugging output.
745 Wed Dec 5 06:26:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
747 * function.h (tree, rtx): Remove no-longer-needed definitions.
749 * function.c (keep_stack_depressed): Refine check for register
752 * expr.c (store_expr): When copying string constant into array,
753 use functions that update memrefs instead of computations on
754 addresses to better track MEMs. Also properly handle 32/64 pointers.
755 (expand_expr): Use TARGET even if not reg for multi-word CONSTRUCTOR.
756 (expand_expr, case CONSTRUCTOR): Fix errors in parms to assign_temp.
758 * emit-rtl.c (component_ref_for_mem_expr): Try harder to find decl
759 underneath COMPONENT_REFs.
760 (set_mem_attributes): Also strip VIEW_CONVERT_EXPR.
762 2001-12-05 Neil Booth <neil@daikokuya.demon.co.uk>
764 * toplev.c (display_target_options): Don't print twice.
766 Wed Dec 5 00:42:16 EST 2001 John Wehle (john@feith.com)
768 * emit-rtl.c (set_unique_reg_note): Don't set
769 a REG_EQUAL or REG_EQUIV note if multiple sets
772 2001-12-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
774 * cfgrtl.c (verify_flow_info): Allow jump table data in fallthru if
777 2001-12-04 Andrew MacLeod <amacleod@redhat.com>
779 * rtl.h (initialize_uninitialized_subregs): New prototype.
780 * toplev.c (rest_of_compilation): Call initialize_uninitialized_subregs
781 when optimization is on.
782 * flow.c (find_regno_partial): Find subregs within an expression.
783 (initialize_uninitialized_subregs): Initialize live on entry registers
784 which are used in subreg expressions.
786 2001-12-04 Phil Edwards <pme@gcc.gnu.org>
788 * Makefile.in: Add INSTALL_SCRIPT using INSTALL definition.
790 2001-12-04 DJ Delorie <dj@redhat.com>
792 * fixinc/fixincl.c (initialize): Avoid problemsome macro
793 parameter names (PR 3388).
795 2001-12-05 Alan Modra <amodra@bigpond.net.au>
797 * config/rs6000/rs6000.c (rs6000_legitimize_address): Fix typo.
798 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Here too.
800 2001-12-04 Joseph S. Myers <jsm28@cam.ac.uk>
802 * c-common.def (COMPOUND_LITERAL_EXPR): New.
803 * c-common.c (c_expand_expr): Handle COMPOUND_LITERAL_EXPR.
804 (c_staticp): New function.
805 * c-common.h (COMPOUND_LITERAL_EXPR_DECL): New.
806 (c_staticp): Declare.
807 * c-typeck.c (default_function_array_conversion, build_unary_op):
808 Don't handle CONSTRUCTOR specially.
809 (lvalue_p, mark_addressable): Handle COMPOUND_LITERAL_EXPR.
810 * c-decl.c (build_compound_literal): New function.
811 * c-tree.h (build_compound_literal): Declare.
812 * c-parse.in (primary): Use build_compound_literal.
813 * c-lang.c (LANG_HOOKS_STATICP): Define.
814 * objc/objc-lang.c (LANG_HOOKS_STATICP): Likewise.
815 * doc/c-tree.texi: Document COMPOUND_LITERAL_EXPR.
816 * doc/extend.texi: Update documentation of compound literals.
819 2001-12-04 Joseph S. Myers <jsm28@cam.ac.uk>
821 * langhooks.h (struct lang_hooks): Add staticp.
822 * langhooks-def.h (lhd_staticp, LANG_HOOKS_STATICP): New.
823 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_STATICP.
824 * langhooks.c (lhd_staticp): New function.
825 * tree.c (staticp): Call lang_hooks.staticp for language-specific
828 2001-12-04 Neil Booth <neil@daikokuya.demon.co.uk>
830 * cppspec.c (lang_specific_driver): Set is_cpp_driver.
831 * gcc.c (process_command): Ensure the cpp driver sees
832 --help and --target-help, and that the help is printed
835 2001-12-04 David Edelsohn <edelsohn@gnu.org>
837 * config/elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.
839 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
841 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Don't unset
842 flag_strict_aliasing. Use separate assignment statements.
844 2001-12-04 Zack Weinberg <zack@codesourcery.com>
846 * build-make, cross-make: Delete file.
847 * configure.in: Set and substitute CROSS, ALL,
848 SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_PREFIX_1, HOST_CC,
849 HOST_CFLAGS, STMP_FIXINC, and STMP_FIXPROTO depending on
850 whether build == host and host == target. Do not
851 AC_SUBST_FILE build_overrides or cross_overrides. Do not
852 AC_SUBST cross_defines or extra_c_flags.
853 * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): New.
854 (SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_CC, HOST_PREFIX,
855 HOST_PREFIX_1, HOST_CFLAGS, ALL, INTERNAL_CFLAGS): Set
856 partially or completely with autoconf-substituted @variable@
858 (INSTALL_TARGET, @cross_defines@, @cross_overrides@,
859 @build_overrides@, @extra_c_flags@, all.build, install-build,
860 install-cross-rest, install-float-h-cross): Deleted.
861 (install-normal): Rename to install. Delete old "install"
864 2001-12-04 Andrew MacLeod <amacleod@redhat.com>
866 * stmt.c (expand_return): Clear destination instead of clobbering it
867 when setting a return value via bitsets.
869 2001-12-04 Alexandre Oliva <aoliva@redhat.com>
871 * tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if
872 it has DECL_SAVED_TREE.
874 * c-decl.c (duplicate_decls): Revert rth's patch. If newdecl
875 is in a different binding level, get its abstract origin to be
877 * tree-inline.c (expand_call_inline): Move DECL_INITIAL sanity
879 * tree.c (get_callee_fndecl): Follow DECL_ABSTRACT_ORIGIN if
880 DECL_INITIAL is NULL.
882 2001-12-04 Jakub Jelinek <jakub@redhat.com>
884 * flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.
885 Return correct value if one of the subexpressions was optimized to
886 0 resp. 1. Optimize (x | A) | x and (x & A) | x.
887 (and_reg_cond): Similarly.
889 2001-12-04 Jakub Jelinek <jakub@redhat.com>
891 * function.c (assign_parms): Set last_named only for last named
894 2001-12-04 Joseph S. Myers <jsm28@cam.ac.uk>
896 * doc/install.texi: Use the GFDL. Include years from old install
897 manual in copyright notice. Include copyright and GFDL notice on
898 HTML index page. Include usual footer on testing.html.
899 * doc/install.texi2html: Build gfdl.html. Use -I
901 * doc/include/fdl.texi: Adapt for use in the install manual.
903 2001-12-04 Joseph S. Myers <jsm28@cam.ac.uk>
905 * doc/install.texi: Document that installed native compiler for
906 building cross compilers should be GCC 2.95 or later.
908 2001-12-03 Eric Christopher <echristo@redhat.com>
910 * config/mips/mips.h (CALL_REALLY_USED_REGISTERS): New macro.
911 * config/mips/mips.md: Check TARGET_DEBUG_D_MODE before split
914 2001-12-03 Janis Johnson <janis187@us.ibm.com>
916 * rtl.def (PREFETCH): New rtx code.
917 * doc/rtl.texi (PREFETCH): Add documentation.
918 * function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx.
919 * rtlanal.c (reg_referenced_p): Ditto.
920 * sched-vis.c (print_exp): Ditto.
921 * ssa-dce.c (find_inherently_necessary): Ditto.
923 * config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
924 (PREFETCH_BLOCK): Define.
925 * config/ia64/ia64.md (itanium_class): Add lfetch.
926 (prefetch, prefetch_internal): New.
928 * builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
929 * builtins.def (BUILT_IN_PREFETCH): New.
930 * builtins.c (expand_builtin_expect): New.
931 (expand_builtin): Call it.
932 * doc/extend.texi: Document __builtin_prefetch.
934 * config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid
935 conflicts with new generic prefetch functionality.
936 * config/i386/i386.c (ix86_expand_builtin): Use new name for
939 2001-12-02 Ziemowit Laski <zlaski@apple.com>
941 * objc/Make-lang.in: Update copyright.
942 (OBJC_OBJS): Add objc-lang.o.
943 (objc-lang.o): New rule.
944 * objc/config-lang.in: Fix file description and update
946 * objc/objc-act.c: Do not include langhooks.h and
948 (lang_hooks): Move (along with LANG_HOOKS...) to objc-lang.c.
949 (objc_post_options): Move to objc-lang.c.
950 (objc_init_options): Move to objc-lang.c.
951 (objc_init): Make non-static.
952 (objc_decode_option): Make non-static.
953 (HASHFUNCTION): Remove macro.
954 (hash_func): New function.
955 (hash_enter): Replace HASHFUNCTION with hash_func.
956 (hash_lookup): Replace HASHFUNCTION with hash_func.
957 (maybe_objc_tree_codes): New function.
958 (init_objc): Move ObjC tree code initialization to
959 maybe_objc_tree_codes().
960 * objc/objc-act.h (GCC_OBJC_ACT_H): New include guard.
961 (objc_init): New public prototype.
962 (objc_decode_option): New public prototype.
963 (maybe_add_objc_tree_codes): New public prototype.
964 * objc/objc-lang.c: New file.
965 (lang_hooks): Moved from objc-act.c.
966 (objc_post_options): Moved from objc-act.c.
967 (objc_init_options): Moved from objc-act.c.
969 2001-12-03 Geoff Keating <geoffk@redhat.com>
971 * emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension
974 2001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
977 * gcc.c (process_command): Don't add a preprocessor option for
978 --help and --target-help; cc1 is enough.
980 2001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
982 * c-decl.c (grokdeclarator): Use ISO word.
983 * cppinit.c: Remove leading capital from diagnostic messages, as
984 per GNU coding standards.
985 * emit-rtl.c: Similarly.
986 * final.c: Similarly.
988 * tradcpp.c: Similarly.
989 * config/arm/arm.c: Similarly.
990 * config/arm/arm.h: Similarly.
991 * config/avr/avr.c: Similarly.
992 * config/avr/avr.h: Similarly.
993 * config/c4x/c4x.c: Similarly.
994 * config/cris/cris.c: Similarly.
995 * config/cris/cris.h: Similarly.
996 * config/d30v/d30v.c: Similarly.
997 * config/dsp16xx/dsp16xx.c: Similarly.
998 * config/dsp16xx/dsp16xx.h: Similarly.
999 * config/h8300/h8300.c: Similarly.
1000 * config/i386/i386.c: Similarly.
1001 * config/i386/xm-djgpp.h: Similarly.
1002 * config/i960/i960.h: Similarly.
1003 * config/m32r/m32r.c: Similarly.
1004 * config/m68hc11/m68hc11.c: Similarly.
1005 * config/m88k/m88k.c: Similarly.
1006 * config/m88k/m88k.h: Similarly.
1007 * config/mcore/mcore.c: Similarly.
1008 * config/mcore/mcore.h: Similarly.
1009 * config/mips/mips.c: Similarly.
1010 * config/mmix/mmix.c: Similarly.
1011 * config/pa/pa.c: Similarly.
1012 * config/rs6000/rs6000.c: Similarly.
1013 * config/rs6000/sysv4.h: Similarly.
1014 * config/s390/s390.c: Similarly.
1015 * config/sparc/sparc.c: Similarly.
1016 * config/v850/v850-c.c: Similarly.
1017 * config/v850/v850.c: Similarly.
1019 2001-12-03 Zack Weinberg <zack@codesourcery.com>
1021 * rs6000.h (RETURN_IN_MEMORY): Cast result of
1022 int_size_in_bytes to unsigned HOST_WIDEST_INT so that -1 > 8.
1024 Mon Dec 3 09:18:34 2001 Jeffrey A Law (law@cygnus.com)
1026 * mn10200.md (negsf2): Use -0x8000 instead of 0x8000 for
1027 bit twiddling constant.
1029 Mon Dec 3 16:16:37 CET 2001 Jan Hubicka <jh@suse.cz>
1031 * gcse.c (delete_null_pointer_checks_1): Do not use delete_list;
1032 call purge_dead_edges after removing.
1033 (delete_null_pointer_checks): Do not handle delete_list.
1035 * cfgbuild.c (inside_basic_block_p, control_flow_insn_p): Break out from ...
1036 (count_basic_blocks): ... here.
1037 (find_basic_blocks, find_bb_boundaries): Cleanup.
1039 * stor-layout.c (fixup_signed_type, fixup_unsigned_type): Avoid
1040 overflow for types greater then 2 * HOST_WIDE_INT.
1042 * reload.c (find_reloads): Update the duplicates after swapingg.
1044 Mon Dec 3 13:52:19 CET 2001 Jan Hubicka <jh@suse.cz>
1046 * i386.md (movabsqi*): Use 'b' prefix instead of 'q'.
1048 2001-12-02 Zack Weinberg <zack@codesourcery.com>
1050 * config/rs6000/rs6000.h (MASK_ALTIVEC_ABI,
1051 MASK_LONG_DOUBLE_128): Delete.
1052 (MASK_AIX_STRUCT_RET, MASK_AIX_STRUCT_RET_SET,
1053 TARGET_AIX_STRUCT_RET): New flags.
1054 (TARGET_SWITCHES): Remove entries for -mlong-double-128 and
1055 -mlong-double-64. Add entries for -m(no-)aix-struct-return
1056 and -m(no-)svr4-struct-return.
1057 (TARGET_OPTIONS): Add entry for -mlong-double-.
1058 (rs6000_long_double_size_string, rs6000_long_double_type_size,
1059 rs6000_altivec_abi): Declare.
1060 (TARGET_LONG_DOUBLE_128, TARGET_ALTIVEC_ABI,
1061 LONG_DOUBLE_TYPE_SIZE): Change definitions to match.
1062 (RETURN_IN_MEMORY): If !TARGET_AIX_STRUCT_RET, return
1063 structures of size <= 8 bytes in registers.
1064 (PRINT_OPERAND_PUNCT_VALID_P): Take out '$' and '*'.
1066 * config/rs6000/rs6000.c (rs6000_long_double_size_string,
1067 rs6000_long_double_type_size, rs6000_altivec_abi): New
1069 (rs6000_override_options): Set rs6000_long_double_type_size
1070 from rs6000_long_double_size_string, if nonzero. Set the
1071 MASK_AIX_STRUCT_RET bit in target_flags from DEFAULT_ABI, if
1073 (rs6000_parse_abi_options): Set rs6000_altivec_abi, not a
1075 (rs6000_init_builtins): This hook now takes no arguments.
1077 * config/rs6000/netbsd.h, config/rs6000/linux.h: Define
1078 DRAFT_V4_STRUCT_RET to 1.
1080 2001-12-03 Joseph S. Myers <jsm28@cam.ac.uk>
1082 * c-typeck.c (really_start_incremental_init, push_init_level):
1083 Avoid constructor_max_index being other than an INTEGER_CST.
1085 2001-12-02 David Edelsohn <edelsohn@gnu.org>
1087 * config/rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count
1089 (ASM_GENERATE_INTERNAL_LABEL): Same.
1090 (UNIQUE_SECTION): Fix typo.
1092 2001-12-02 Richard Henderson <rth@redhat.com>
1094 * c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
1096 2001-12-02 Richard Henderson <rth@redhat.com>
1098 * rtl.h (mem_attrs): Rename decl to expr; adjust all users.
1099 (MEM_EXPR): Rename from MEM_DECL; adjust all users.
1100 * emit-rtl.c (set_mem_expr): Rename from set_mem_decl.
1101 * expr.h, final.c, reload1.c: Adjust users.
1103 * alias.c (nonoverlapping_component_refs_p): New.
1104 (decl_for_component_ref, adjust_offset_for_component_ref): New.
1105 (nonoverlapping_memrefs_p): Use them.
1106 * emit-rtl.c (component_ref_for_mem_expr): New.
1107 (set_mem_attributes): Use it.
1108 (set_mem_offset): New.
1109 * expr.c (expand_assignment): Call set_mem_attributes for
1110 inner references; adjust the memory offset as needed.
1111 * print-rtl.c (print_mem_expr): New.
1112 (print_rtx): Use it.
1114 Sun Dec 2 09:22:25 2001 Douglas B. Rupp <rupp@gnat.com>
1116 * config/x-interix3 (SYSTEM_HEADER_DIR): Put back default.
1118 * config/alpha/vms.h (VMS_DEBUGGING_INFO): New macro.
1119 (PREFERRED_DEBUGGING_TYPE): Define as VMS_AND_DWARF2_DEBUG.
1120 (ASM_SPEC): Don't redefine.
1121 (OPTIMIZATION_OPTIONS, OVERRIDE_OPTIONS, LINK_SPEC): Define.
1122 * config/alpha/t-vms (EXTRA_PARTS): Use; add rule for vms-dwarf2.asm.
1123 * config/alpha/vms-dwarf2.asm: New file.
1125 * Makefile.in (OBJS): Add vmsdbgout.c and its rule.
1126 * c-lex.c (init_c_lex): Test for VMS_AND_DWARF2_DEBUG.
1127 * debug.h (gcc_debug_hooks): Add vmsdbg_debug_hooks.
1128 (vmsdbgout_after_prologue): New declaration.
1129 * defaults.h (VMS_DEBUGGING_INFO): Add to PREFERRED_DEBUGGING_TYPE.
1130 * dwarf2.h (dwarf_attribute): New DW_AT_VMS_rtnbeg_pd_address.
1131 * dwarf2out.c (dwarf2out_do_frame): Test for VMS_AND_DWARF2_DEBUG.
1132 (dwarf2out_frame_finish): Test for VMS_AND_DWARF2_DEBUG.
1133 (dwarf_attr_name): Use DW_AT_VMS_rtnbeg_pd_address.
1134 (add_name_and_src_coords_attributes): Test VMS_DEBUGGING_INFO
1135 * final.c (final_start_function): Test for VMS_AND_DWARF2_DEBUG.
1136 Test VMS_DEBUGGING_INFO.
1137 (final_end_function): Test for VMS_AND_DWARF2_DEBUG.
1138 (final_scan_insn): Test for VMS_AND_DWARF2_DEBUG and VMS_DEBUG.
1139 * flags.h (debug_info_type): Add VMS_DEBUG and VMS_AND_DWARF2_DEBUG.
1140 * toplev.c (compile_file): Test VMS_DEBUGGING_INFO, VMS_DEBUG, and
1141 VMS_AND_DWARF2_DEBUG.
1142 (rest_of_type_compilation): Test for VMS_AND_DWARF2_DEBUG.
1143 (decode_g_option): Add "vms" to debug_type_names.
1144 (process_options): Set vmsdbg_debug_hooks if -gvms.
1145 (lang_independent_init): Emit line number for VMS unless -g0.
1146 * tree.c: (build_complex_type): Test for VMS_AND_DWARF2_DEBUG.
1147 * vmsdbg.h, vmsdbgout.c: New files.
1149 Sun Dec 2 09:03:06 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1151 * cfgbuild.c (SET_STATE): Add cast to eliminate warning.a
1153 2001-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1155 * cfgrtl.c (purge_all_dead_edges): Initialize variable.
1156 * dwarf2out.c (is_cxx): Prototype.
1157 * local-alloc.c (block_alloc): Avoid 'unsigned>=0 is always true'
1159 * objc/objc-act.c (defer_fn): Avoid signed/unsigned warning.
1161 Sun Dec 2 07:12:30 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1163 * libgcc2.c (__bb_exit_func): Fix line wrap problems.
1165 2001-12-02 Geoff Keating <geoffk@redhat.com>
1167 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Simplify.
1168 * config/rs6000/rs6000.c (rs6000_emit_move): Use adjust_address
1169 rather than simplify_subreg. Check for volatile-ness. Check that
1170 we're not splitting one slow operation into two slow operations.
1172 2001-12-02 David Edelsohn <edelsohn@gnu.org>
1174 * emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT
1177 2001-12-02 Neil Booth <neil@daikokuya.demon.co.uk>
1179 * c-decl.c (duplicate_decls, push_parm_decl): Remove leading
1180 capital from diagnostics.
1181 * c-lex.c (cb_file_change): Similarly.
1182 * c-parse.in : Similarly.
1183 * cfgrtl.c (verify_flow_info): Similarly.
1184 * collect2.c: Similarly.
1185 * cppfiles.c (find_include_file): Similarly.
1186 * cppinit.c (cpp_handle_option): Similarly.
1187 * cpplex.c (cpp_spell_token): Similarly.
1188 * cppmain.c (do_preprocessing): Similarly.
1189 * gcc.c (translate_options, process_command, do_spec1,
1190 main, pfatal_execute): Similarly.
1191 * genattr.c (main): Similarly.
1192 * genattrtab.c (check_attr_test, operate_exp, simplify_test_exp,
1193 write_test_expr, main): Similarly.
1194 * gencodes.c (main): Similarly.
1195 * genconfig.c (main): Similarly.
1196 * genconstants.c (main): Similarly.
1197 * genemit.c (main): Similarly.
1198 * genextract.c (main): Similarly.
1199 * genflags.c (main): Similarly.
1200 * genopinit.c (main): Similarly.
1201 * genoutput.c (process_template, main): Similarly.
1202 * genpeep.c (main): Similarly.
1203 * genrecog.c (main): Similarly.
1204 * gensupport.c (is_predicable, identify_predicable_attribute,
1205 alter_predicate_for_insn, init_md_reader_args, main): Similarly.
1206 * ggc-page.c (alloc_anon): Similarly.
1207 * mips-tfile.c (add_string, add_procedure, add_file, read_line,
1208 parse_begin, parse_bend, parse_def, parse_end, parse_file,
1209 parse_stabs_common, parse_stabs, write_varray, write_object,
1210 read_seek, copy_object, main, error): Similarly.
1211 * profile.c (compute_branch_probabilities): Similarly.
1212 * reg-stack.c (check_asm_stack_operands): Similarly.
1213 * reload.c (find_reloads): Similarly.
1214 * reload1.c (spill_failure, failed_reload): Similarly.
1215 * rtl-error.c (_fatal_insn_not_found): Similarly.
1216 * toplev.c (read_integral_parameter, crash_signal,
1217 decode_f_option, set_target_switch, parse_options_and_default_flags)
1219 * tradcif.y (parse_number, yylex): Similarly.
1220 * tradcpp.c (main, fancy_abort): Similarly.
1221 * tree.c (tree_check_failed): Similarly.
1222 * varray.c (varray_check_failed): Similarly.
1223 * xcoffout.c (xcoff_output_standard_types): Similarly.
1225 * objc-act.c (get_object_ref, lookup_and_install_protocols,
1226 build_objc_string_object, objc_declare_alias, build_ivar_chain,
1227 finish_message_expr, build_protocol_expr, is_public,
1228 start_class): Similarly.
1230 2001-12-01 Neil Booth <neil@daikokuya.demon.co.uk>
1232 * c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
1233 trailing period from diagnostics.
1234 * c-lex.c (cb_file_change): Similarly.
1235 * cppmacro.c (check_trad_stringification): Similarly.
1236 * gcc.c (do_spec_1): Similarly.
1237 * genattr.c (main): Similarly.
1238 * genattrtab.c (main, operate_exp, make_length_attrs): Similarly.
1239 * gencodes.c (main): Similarly.
1240 * genconfig.c (main): Similarly.
1241 * genconstants.c (main): Similarly.
1242 * genemit.c (main): Similarly.
1243 * genextract.c (main): Similarly.
1244 * genopinit.c (main): Similarly.
1245 * genoutput.c (main): Similarly.
1246 * genpeep.c (main): Similarly.
1247 * genrecog.c (main): Similarly.
1248 * mips-tfile.c (add_file, error): Similarly.
1249 * profile.c (init_branch_prob): Similarly.
1250 * reload1.c (spill_failure): Similarly.
1251 * stmt.c (parse_output_constraint): Similarly.
1252 * varasm.c (assemble_variable): Similarly.
1254 2001-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1256 * m68k.c (init_FPA_table): Provide static prototype.
1257 * mips/abi64.h (mips_function_value): Move prototype to ...
1258 * mips-protos.h (mips_function_value): ... here.
1259 * mips.c: Include halfpic.h.
1260 * output.h (rdata_section): Prototype.
1262 * h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
1263 * m88k.c (m88k_svr3_asm_out_constructor,
1264 m88k_svr3_asm_out_destructor): Wrap with CTOR_LIST_BEGIN &&
1266 * mcore.c (mcore_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
1267 * sh.c (sh_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
1268 * sparc.c (sparc_elf_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
1270 2001-12-01 Geoff Keating <geoffk@redhat.com>
1272 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Complex
1273 LO_SUM addresses less than word size are not legitimate,
1274 because they lead to invalid SUBREGs.
1275 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
1277 2001-12-01 Olivier Hainque <hainque@act-europe.fr>
1279 * unroll.c (loop_iterations): Give up on jumps with null JUMP_LABEL
1280 while scanning for multiple back edges.
1282 2001-12-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1284 * ginclude/ppc-asm.h (JUMP_TARGET): New macro.
1285 * config/rs6000/tramp.asm: Use it.
1287 2001-12-01 Zack Weinberg <zack@codesourcery.com>
1289 * gencheck.c, gengenrtl.c: Don't define xmalloc.
1290 * gensupport.c: Don't define xstrdup, xcalloc, xrealloc,
1293 2001-11-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
1295 * pa.c (output_ascii): Cast `p' to unsigned char.
1297 2001-11-30 Daniel Berlin <dan@cgsoftware.com>
1299 * config/rs6000/rs6000.c (altivec_expand_builtin): add
1300 ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf,
1301 *_16qi,_8hi, rename existing V4SI ones to *_4si.
1302 (altivec_init_builtins): Ditto.
1303 (bdesc_2arg): Rename CODE_FOR_* to match changes in MD file.
1305 * config/rs6000/rs6000.md: Add attribute types vecsimple,
1306 veccomplex, vecfloat, and vecperm, for altivec instructions.
1307 Modify altivec patterns to use appropriate attribute type.
1308 Modify altivec patterns to match RTL operations where appropriate
1309 (IE no unspec where we can avoid it).
1310 Add vector unit scheduling for ppc7450.
1311 Rename patterns to what they are where appropriate
1312 (altivec_vaddfp->addv4sf3, etc)
1314 * config/rs6000/rs6000.h (enum rs6000_builtins): Change VRS->VSR.
1315 Pass -mppc, and define _ARCH_PPC, if -mcpu=7450 is used.
1317 * config/rs6000/sysv4.h: Add -mcpu=7450.
1319 * testsuite/gcc.dg/altivec-1.c: Update test to take into account renamed
1320 _builtin_altivec_ld_interal function.
1322 2001-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1324 * configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen,
1325 strchr, strrchr, isascii, gettimeofday.
1326 * config.in, configure: Regenerate.
1328 2001-11-30 Zoltan Hidvegi <hzoli@hzoli.2y.net>
1330 * unroll.c (unroll_loop): Correct special exit cases.
1332 2001-11-30 Stephane Carrez <Stephane.Carrez@sun.com>
1334 * config/sparc/sparc.c (DF_MODES_NO_S): Fix pr/3623, define to
1335 accept DFmode and DImode only.
1337 2001-11-30 Aldy Hernandez <aldyh@redhat.com>
1339 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
1340 (STACK_DYNAMIC_OFFSET): Same.
1342 2001-11-30 Richard Henderson <rth@redhat.com>
1344 * c-decl.c (duplicate_decls): Copy DECL_SAVED_TREE.
1346 2001-11-30 Aldy Hernandez <aldyh@redhat.com>
1348 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): New.
1349 (CONDITIONAL_REGISTER_USAGE): Set call_really_used_registers to
1350 the values in call_used_registers.
1352 Fri Nov 30 12:48:26 2001 Jeffrey A Law (law@cygnus.com)
1354 * gthr-dce.h: If _DCE_THREADS is not defined, then just include
1357 2001-11-30 Jason Merrill <jason@redhat.com>
1359 * dwarf2out.c (is_cxx): New fn.
1360 (add_data_member_location_attribute): Check it.
1361 * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++.
1363 Fri Nov 30 08:26:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1365 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Handle const1_rtx.
1367 2001-11-30 Daniel Berlin <dan@cgsoftware.com>
1369 * genopinit.c (gen_insn): Handle MODE_VECTOR_INT and
1370 MODE_VECTOR_FLOAT as allowed.
1372 2001-11-29 Zack Weinberg <zack@codesourcery.com>
1374 Purge cruft now we have build libiberty.
1376 * Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR,
1377 HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR,
1378 USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT,
1379 USE_HOST_STRSTR): Delete variables.
1380 (vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o,
1381 hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o,
1382 $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
1383 $(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules.
1384 (LIBIBERTY, BUILD_LIBIBERTY): New variables.
1385 (LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY).
1386 (LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY).
1387 (HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY).
1389 (HOST_RTL): Remove hashtab.o safe-ctype.o.
1390 (OBJS): Remove splay-tree.o.
1391 (gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a.
1392 (distclean): No need to delete splay-tree.c obstack.c
1393 hashtab.c safe-ctype.c.
1394 (mostlyclean): Delete build copies of print-rtl.c bitmap.c
1395 errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1).
1396 * aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR):
1398 * configure.in: Don't use them.
1399 Set and substitute @FORBUILD@.
1400 * config.in, configure: Regenerate.
1401 * doprint.c: Move to libiberty/_doprnt.c.
1402 * doc/configterms.texi: Document that libiberty is now built
1403 up to three times. Fix typo.
1405 2001-11-30 Jason Merrill <jason@redhat.com>
1407 * dwarf2out.c (add_data_member_location_attribute): Do the
1408 right thing for virtual bases.
1409 * dbxout.c (dbxout_type): For a virtual base, print the offset
1412 2001-11-29 Zoltan Hidvegi <hzoli@hzoli.2y.net>
1414 * doloop.c (doloop_valid_p): Check for LTU and GTU as well.
1416 2001-11-29 Aldy Hernandez <aldyh@redhat.com>
1418 * config/rs6000/rs6000.c (function_arg): Unnamed vector arguments
1420 Remove unused attribute for named.
1422 2001-11-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1424 * genattrtab.c (attr_rtx_1): New function containing the
1425 majority of `attr_rtx'. Move variable declarations into the
1426 scope where they are used. Eliminate unnecessary gotos.
1427 (attr_rtx): Now just a wrapper for `attr_rtx_1' using VA_OPEN,
1428 VA_FIXEDARG, and VA_CLOSE.
1430 2001-11-30 Hans-Peter Nilsson <hp@axis.com>
1432 * config/cris/cris.c (cris_notice_update_cc): Check first
1433 destination also against overlap with cc_status.value2 and second
1434 destination against overlap with cc_status.value1. For overlaps,
1435 clear overlapped value, don't just CC_STATUS_INIT.
1437 * config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix spacing and FIXME.
1438 Fix typo in comment.
1439 (LINK_SPEC): Remove whitespace at end of line.
1441 2001-11-29 Jakub Jelinek <jakub@redhat.com>
1443 * c-lex.c (init_c_lex): Canonicalize "-" filename to "".
1445 2001-11-29 Jakub Jelinek <jakub@redhat.com>
1447 * gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
1448 macros for the supported debugging types.
1450 2001-11-29 Craig Rodrigues <rodrigc@gcc.gnu.org>
1453 * config/i386/i386.c (print_operand): Verify that the
1454 argument to %c is a constant and not a conditional which
1455 needs to be reversed.
1457 Thu Nov 29 11:12:59 2001 Geoffrey Keating (geoffk@redhat.com)
1459 * emit-rtl.c (gen_lowpart_common): Fix conversion of
1460 REAL_VALUE_TYPEs to an array of target integers. Fix extraction
1461 of low part of those arrays for 32bit and 64bit hosts.
1463 2001-11-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1465 * Makefile.in (insn-output.o): Depend on insn-codes.h.
1467 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
1469 * configure.in (target_list): Add generated-manpages.
1470 * configure: Regenerate.
1471 * Makefile.in (generated-manpages): Depend on
1472 lang.generated-manpages.
1473 * objc/Make-lang.in (objc.generated-manpages): New dummy target.
1475 2001-11-29 Nick Clifton <nickc@cambridge.redhat.com>
1477 * config/arm/crti.asm (_init): Add .thumb_func if compiled
1479 (_fini): Add .thumb_func if compiled with -mthumb.
1481 2001-11-28 Eric Christopher <echristo@redhat.com>
1483 * config/mips/mips.c (override_options): Fix thinko in mips_tune
1484 for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.
1486 Thu Nov 29 00:24:15 EST 2001 John Wehle (john@feith.com)
1488 * alpha.md (tablejump): Use pic_offset_table_rtx
1489 instead of gen_rtx_REG.
1491 Wed Nov 28 15:36:13 2001 Jeffrey A Law (law@cygnus.com)
1493 * expr.c (store_expr): When copying a string constant into an
1494 array, reset the known alignment of the MEM for the section to
1495 be cleared to BITS_PER_UNIT.
1497 2001-11-28 Hans-Peter Nilsson <hp@axis.com>
1499 * config/cris/cris.c: Remove whitespace at end of line.
1501 Wed Nov 28 14:51:23 2001 Douglas B. Rupp <rupp@gnat.com>
1503 * config.gcc (i[34567]86-*-interix3*): New case.
1504 * config/x-interix3, config/interix3.h, config/i386/i386-interix3.h:
1507 2001-11-28 Richard Henderson <rth@redhat.com>
1509 * config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
1510 symbolic_operand as the predicate.
1512 2001-11-28 Richard Henderson <rth@redhat.com>
1514 * doloop.c (doloop_modify_runtime): Properly select induction
1515 variable; skip late entry test if biv initializer created by loop.
1517 Wed Nov 28 08:21:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1519 * tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
1520 EXPR_WITH_FILE_LOCATION, so change checks and documentation.
1522 * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
1524 * tree.h: Add missing checks on some macros; make formatting more
1527 * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
1528 level; only add to pending_sizes if find it.
1530 * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
1532 * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
1533 Add casts to remove warnings.
1535 * Makefile.in (OBJS): Sort alphabetically.
1537 * print-rtl.c (print_rtx): If RTX code is bad, just say so.
1538 Also minor cleanups.
1540 Wed Nov 28 06:52:27 2001 Arnaud Charlet <charlet@ACT-Europe.FR>
1542 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
1543 (FLAGS_TO_PASS): Add STAGE_PREFIX.
1544 (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
1547 Wed Nov 28 10:42:19 CET 2001 Jan Hubicka <jh@suse.cz>
1549 * cse.c (true_dependence_in_rtx): New function.
1550 (invalidate): Use it.
1552 * c-common.h (GOTO_FAKE_P): New macro.
1553 * tree-inline.c (GOTO_FAKE_P): Set.
1554 * c-tree.texi (GOTO_FAKE_P): Document.
1556 * varasm.c (assemble_variable): Set reloc to 3 for error_mark
1557 containing pointers.
1558 (output_addressed_constants): Check for local/external relocations.
1559 * elfos.h (SELECT_SECTION): Classify data section.
1560 * tm.texi (SELECT_SECTION): Update documentation.
1562 * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
1563 (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
1565 2001-11-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1567 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
1568 UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
1571 2001-11-28 Hans-Peter Nilsson <hp@axis.com>
1573 * config/cris/cris.c: Tweak spacing for prototypes.
1574 (LOSE_AND_RETURN): New macro.
1575 (cris_operand_lossage): New function.
1576 (cris_print_index, cris_print_base): Use cris_operand_lossage
1577 rather than fatal_insn.
1578 (cris_print_operand, cris_print_operand_address): Use
1579 LOSE_AND_RETURN rather than fatal_insn and internal_error.
1580 (cris_output_addr_const): Use LOSE_AND_RETURN and
1581 output_operand_lossage rather than fatal_insn and internal_error
1582 for valid but unexpected rtx expressions.
1584 * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
1585 for a SUBREG in src or dest, abort instead.
1587 2001-11-28 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1589 * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
1592 2001-11-27 Jakub Jelinek <jakub@redhat.com>
1594 * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
1595 preprocessor define. If only DBX_DEBUGGING_INFO or only
1596 DWARF2_DEBUGGING_INFO is supported for the target, provide
1597 appropriate definitions.
1599 2001-11-27 Neil Booth <neil@daikokuya.demon.co.uk>
1601 * Makefile.in: Update, and add c-objc-common.o dependencies.
1602 * c-lang.c: Remove unnecessary includes.
1603 (c_init): Move bulk of code to c_objc_common_init, and call it.
1604 (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
1605 inline_forbidden_p, c_cannot_inline_tree_fn): Move to
1607 * c-objc-common.c: New. Mostly pulled from c-lang.c.
1608 * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
1609 c_objc_common_init, c_missing_noreturn_ok_p): New.
1610 * toplev.c: Update comment.
1611 * doc/passes.texi: Update.
1613 * objc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
1614 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
1615 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
1616 (objc_init): Update to use c_objc_common_init.
1618 2001-11-27 Neil Booth <neil@daikokuya.demon.co.uk>
1620 * cpphash.c (_cpp_init_hashtable): Update.
1621 * cpphash.h (struct spec_nodes): Remove n_L.
1622 * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
1624 2001-11-17 Richard Henderson <rth@redhat.com>
1626 * unroll.c (loop_iterations): Move last change ...
1627 * doloop.c (doloop_modify_runtime): ... here.
1629 2001-11-17 Corey Minyard <minyard@acm.org>
1630 Richard Henderson <rth@redhat.com>
1632 * unroll.c (loop_iterations): Detect one situation in which we
1633 overestimate the number of iterations.
1635 2001-11-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1637 * gcc.c (set_input): Export.
1638 Move declaration ...
1639 gcc.h (set_input): ... here.
1641 2001-11-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1643 * gcc.c (set_collect_gcc_options): New function, split out from
1645 Ignore elided switches.
1646 (do_spec): Invoke before executing command.
1647 (do_spec_1): Likewise.
1648 Fixes PR other/3968.
1650 2001-11-27 Hans-Peter Nilsson <hp@axis.com>
1652 * config/cris/cris.h (INT_ASM_OP): Remove.
1654 2001-11-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1656 * config/i386/sol2.h (WINT_TYPE): Redefine.
1657 (WINT_TYPE_SIZE): Likewise.
1659 2001-11-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1661 * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
1662 (dup2): Make static and add prototype.
1663 * m68k/plexus.h: Don't define NO_DUP2.
1664 * configure.in (AC_CHECK_FUNCS): Add dup2.
1665 * config.in, configure: Regenerate.
1667 * ia64/aix.h (REG_SIZE): Don't #undef.
1668 * sparc.h (REG_SIZE): Delete.
1669 * flow.c (mark_used_regs): Don't use REG_SIZE.
1670 * regs.h (REG_SIZE): Delete.
1672 2001-11-27 Andreas Schwab <schwab@suse.de>
1674 * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
1675 PREFERRED_DEBUGGING_TYPE.
1677 Tue Nov 27 08:21:47 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1679 * Makefile.in (c-lang.o): Depends on langhooks-def.h.
1680 (expr.o, varasm.o): Depends on langhooks.h.
1681 * c-common.c (c_safe_from_p): Always declare.
1682 (c_expand_expr): Refine when declared.
1683 * c-lang.c (c-common.h): Now include.
1684 (LANG_HOOKS_SAFE_FROM_P): Define new hook.
1685 (c_init): Don't set lang_safe_from_expr.
1686 * expr.c (langhooks.h): Now include.
1687 (lang_safe_from_p): No longer define.
1688 (safe_from_p): Use lang hook.
1689 (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
1690 (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
1691 * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
1692 * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
1693 (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
1694 * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
1695 * langhooks.h (struct lang_hooks): New fields expand_constant
1697 * output.h (output_constant): Size arg is HOST_WIDE_INT.
1698 * stmt.c (expand_decl_init): No longer need to expand constant
1700 * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
1701 * toplev.c (lang_expand_constant): Delete var.
1702 * tree.c (save_expr): Don't put another SAVE_EXPR around simple
1703 operations on SAVE_EXPR.
1704 * varasm.c (langhooks.h): Now include.
1705 (compare_constant_1): Use lang_hooks, not lang_expand_constant.
1706 (record_constant_1, output_addressed_constants): Likewise.
1707 (initializer_constant_valid_p, output_constant): Likewise.
1708 (output_constant_def): Process no-defer of string constant.
1709 (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
1710 (output_constant): Strip more conversions.
1711 Track our size and pad for the rest.
1712 (array_size_for_constructor): Remove code for non-byte STRING_CST.
1713 (output_constructor): SIZE now HOST_WIDE_INT.
1715 2001-11-27 Richard Henderson <rth@redhat.com>
1717 * ifcvt.c (noce_try_store_flag_constants): Test for overflow
1720 2001-11-27 Zack Weinberg <zack@codesourcery.com>
1722 * cppfiles.c (read_include_file): Add comment.
1724 2001-11-26 Richard Henderson <rth@redhat.com>
1726 * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
1728 2001-11-26 Richard Henderson <rth@redhat.com>
1730 * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
1731 * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
1732 commented out override.
1734 2001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
1736 * cppfiles.c (stack_include_file): Don't optimize zero-length
1738 (read_include_file): NUL-terminate read files.
1739 * cpplex.c (handle_newline, skip_escaped_newlines,
1740 get_effective_char, skip_whitespace, parse_identifier,
1741 parse_identifier_slow, parse_number, parse_string,
1742 _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
1744 * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
1745 Be sure buffers are NUL terminated.
1746 * cppmacro.c (warn_of_redefinition): Kill compile warning.
1748 2001-11-26 Neil Booth <neil@daikokuya.demon.co.uk>
1750 * c-common.c: Include tree-inline.h.
1751 (c_language): Move separate definitions here.
1752 (c_common_init_options, c_common_post_options): New.
1753 (c_common_lang_init): Rename c_common_init.
1754 * c-common.h (c_common_lang_init): Similarly.
1755 (c_common_init_options, c_common_post_options): New.
1756 * c-lang.c (c_post_options): Move body to c_common_post_options.
1757 (c_init_options): Use c_common_init_options.
1759 * langhooks.def: Rearrange.
1760 * langhooks.h: Rearrange, and improve comments.
1761 * toplev.c (do_compile): New function.
1762 (toplev_main): Use it.
1763 (lang_independent_f_options, parse_options_and_default_flags,
1764 process_options): Remove trailing periods.
1765 * Makefile.in: Update.
1766 objc: * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
1768 (ojbc_init): Update.
1770 2001-11-26 Richard Henderson <rth@redhat.com>
1772 * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
1774 2001-11-26 DJ Delorie <dj@redhat.com>
1776 * expr.c (store_constructor): Actually use the value computed
1777 if WORD_REGISTER_OPERATIONS.
1779 2001-11-26 Richard Henderson <rth@redhat.com>
1781 * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
1784 2001-11-26 David Edelsohn <edelsohn@gnu.org>
1786 * rs6000.c (output_mi_thunk): Handle minimal-toc and call
1787 correct function on AIX.
1789 2001-11-26 Alexandre Oliva <aoliva@redhat.com>
1791 * toplev.c (process_options): Don't force
1792 flag_optimize_sibling_calls to zero just because exceptions are
1795 Mon Nov 26 12:37:05 2001 Jeffrey A Law (law@cygnus.com)
1797 * df.h (transfer_function_sbitmap): Use PARAMS around argument
1798 list in function prototypes.
1799 (transfer_function_bitmap): Likewise.
1801 2001-11-26 Loren J. Rittle <ljrittle@acm.org>
1803 * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
1804 * config/i386/netbsd-elf.h: Likewise.
1806 2001-11-26 David Edelsohn <edelsohn@gnu.org>
1808 * doc/trouble.texi: Remove outdated RS/6000 comments.
1810 Mon Nov 26 13:49:41 CET 2001 Jan Hubicka <jh@suse.cz>
1812 * final.c (walk_alter_subreg): Fix return value.
1814 Mon Nov 26 11:36:20 CET 2001 Jan Hubicka <jh@suse.cz>
1816 * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
1818 * sparc.md (post-reload splitters): Do not call alter_subreg.
1819 * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
1821 2001-11-25 Aldy Hernandez <aldyh@redhat.com>
1823 * regclass.c (choose_hard_reg_mode): Handle vector arguments.
1825 2001-11-26 Alan Modra <amodra@bigpond.net.au>
1827 * final.c: (insn_lengths): Make it an int *, so that large jump
1828 tables don't overflow.
1830 2001-11-25 Joseph S. Myers <jsm28@cam.ac.uk>
1832 * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
1833 (format_types): Use it for scanf.
1834 (dollar_arguments_pointer_p): New.
1835 (init_dollar_format_checking): Store details of which arguments
1837 (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
1838 (finish_dollar_format_checking): Take extra parameter
1839 pointer_gap_ok. Treat unused arguments differently if
1840 pointer_gap_ok and the unused arguments are pointers.
1841 (check_format_info_main): Pass extra argument to
1842 finish_dollar_format_checking.
1843 * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
1844 unused arguments are present between used arguments with operand
1847 2001-11-25 Daniel Berlin <dan@cgsoftware.com>
1849 * df.c: Add prototypes for hybrid_search_bitmap and
1850 hybrid_search_sbitmap.
1851 (hybrid_search_bitmap): New function.
1852 (hybrid_search_sbitmap): New function.
1853 (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
1854 (iterative_dataflow_bitmap): Ditto.
1856 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1858 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1859 address computations.
1861 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1863 * config/m68hc11/m68hc11.c (d_register_operand): Must accept
1864 register b (low part of d).
1866 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1868 * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
1871 Sun Nov 25 06:22:09 2001 Douglas B. Rupp <rupp@gnat.com>
1873 * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
1874 * config/alpha/x-vms: New file, to compile the above.
1875 * config.gcc (alpha*-dec-vms*): Add x-vms.
1877 2001-11-24 Hans-Peter Nilsson <hp@axis.com>
1879 * genextract.c (main): Set ro_loc for peepholes.
1881 Sat Nov 24 17:04:10 2001 Douglas B. Rupp <rupp@gnat.com>
1883 * fix-header.c (main): Move inf_buffer termination and inf_limit
1884 calculation to after read.
1886 * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
1887 (__UNIX_FOPEN): Define.
1889 Sat Nov 24 16:11:00 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1891 * function.c (assign_stack_temp_for_type): Clear alias set before
1894 2001-11-23 David Edelsohn <edelsohn@gnu.org>
1896 * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
1898 * rs6000.md (cmptf): Fix typo.
1900 2001-11-23 Richard Sandiford <rsandifo@redhat.com>
1902 * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
1903 * varasm.c (output_constructor): Use assemble_integer rather
1904 than ASM_OUTPUT_BYTE.
1906 2001-11-23 Andreas Jaeger <aj@suse.de>
1908 * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
1911 2001-11-23 Nick Clifton <nickc@cambridge.redhat.com>
1913 * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
1915 (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
1916 (MULTILIB_DEFAULTS): Remove previous definition.
1918 2001-11-23 Neil Booth <neil@daikokuya.demon.co.uk>
1920 * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
1921 * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
1923 2001-11-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1925 * cris.h: Revert thinko in last patch.
1927 2001-11-23 Joseph S. Myers <jsm28@cam.ac.uk>
1929 * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
1930 FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
1931 cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
1932 dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
1933 explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
1934 sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
1936 * predict.c, reg-stack.c: Fix spelling errors.
1938 2001-10-09 Andrew Haley <aph@redhat.com>
1940 * calls.c (check_sibcall_argument_overlap): Use slot_offset for
1941 start of stack slot.
1943 2001-11-22 Graham Stott <grahams@redhat.com>
1945 * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
1946 replacement jump after original jump.
1948 (verify_flow_info): Remove redundent initialisation.
1949 Handle reaching end of insn list before finding a BARRIER.
1950 Only issue one missing barrier diagnostic.
1952 2001-11-22 Graham Stott <grahams@redhat.com>
1954 * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
1956 Thu Nov 22 06:49:14 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1958 * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
1961 2001-11-22 Nick Clifton <nickc@cambridge.redhat.com>
1963 * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
1964 Fix typo -mm32rx=> -m32rx.
1966 * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
1969 * config.gcc (xscale-coff): Add necessary header files to
1972 2001-11-20 Zack Weinberg <zack@codesourcery.com>
1974 * rs6000.c (output_cbranch): Use $, not %$, in output template.
1976 2001-11-21 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1978 * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
1979 (lang_type_quals): Declare.
1980 (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
1981 retrieve language-specific qualifiers for a type node, instead of
1982 C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
1984 * tree-dump.h: Rename from c-dump.h.
1985 * c-common.h (C_TYPE_QUALS): Removed.
1986 Move declarations for tree-dump.c interface to...
1987 * tree.h: ... here. Remove lang_dump_tree.
1988 * langhooks.h (struct lang_hooks_for_tree_dump): New.
1989 (struct lang_hooks): Add tree_dump hooks.
1990 * langhooks.c (lhd_tree_dump_dump_tree): New function.
1991 (lhd_tree_dump_type_quals): New function.
1992 * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
1994 (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
1995 * Makefile.in: Move tree-dump.o to language-independent back-end.
1997 2001-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1999 * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
2000 * alpha.h (DBX_REGISTER_NUMBER): Likewise.
2001 * arc.h (DBX_REGISTER_NUMBER): Likewise.
2002 * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
2003 * avr.h (DBX_REGISTER_NUMBER): Likewise.
2004 * c4x.h (DBX_REGISTER_NUMBER): Likewise.
2005 * clipper.h (DBX_REGISTER_NUMBER): Likewise.
2006 * convex.h (DBX_REGISTER_NUMBER): Likewise.
2007 * cris.h (DBX_REGISTER_NUMBER): Likewise.
2008 * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
2009 * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
2010 * fr30.h (DBX_REGISTER_NUMBER): Likewise.
2011 * h8300.h (DBX_REGISTER_NUMBER): Likewise.
2012 * i370.h (DBX_REGISTER_NUMBER): Likewise.
2013 * i860.h (DBX_REGISTER_NUMBER): Likewise.
2014 * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
2015 * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
2016 * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
2017 * m32r.h (DBX_REGISTER_NUMBER): Likewise.
2018 * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
2019 * m88k.h (DBX_REGISTER_NUMBER): Likewise.
2020 * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
2021 * mcore.h (DBX_REGISTER_NUMBER): Likewise.
2022 * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
2023 * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
2024 * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
2025 * romp.h (DBX_REGISTER_NUMBER): Likewise.
2026 * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
2027 * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
2028 * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
2029 * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
2030 * v850.h (DBX_REGISTER_NUMBER): Likewise.
2031 * vax.h (DBX_REGISTER_NUMBER): Likewise.
2032 * we32k.h (DBX_REGISTER_NUMBER): Likewise.
2034 * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
2035 * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
2037 2001-11-21 H.J. Lu <hjl@gnu.org>
2039 * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
2041 2001-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2043 * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
2044 emit_cmp_and_jump_insns.
2046 * stormy16.c (xstormy16_expand_builtin_va_arg,
2047 xstormy16_expand_casesi): Likewise.
2049 Wed Nov 21 17:37:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2051 * function.c (keep_stack_depressed): Major rework.
2052 (handle_epilogue_set, emit_equiv_load): New functions.
2053 (thread_prologue_and_epilogue_insns): keep_stack_depressed now
2055 * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
2056 * rtl.h (SET_IS_RETURN_P): New macro.
2058 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
2059 and also support TREE_ADDRESSABLE.
2060 * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
2062 2001-11-21 David Edelsohn <edelsohn@gnu.org>
2064 * rs6000.md (cmptf_internal1): Replace %$ with $.
2066 Wed Nov 21 16:44:01 2001 Douglas B. Rupp <rupp@gnat.com>
2068 * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
2069 (read_include_file): Use STAT_SIZE_TOO_BIG.
2071 * cppinit.c (INO_T_COPY): Define.
2072 (INO_T_EQ): Uppercase parameters.
2073 (append_include_chain): Use INO_T_COPY.
2075 2001-11-21 Richard Sandiford <rsandifo@redhat.com>
2077 * cfg.c: Fix typos and formatting in the introductory comment.
2079 Wed Nov 21 12:38:37 CET 2001 Jan Hubicka
2081 * profile.c (compute_branch_probabilites): Compute probabilities
2082 for entry/exit edges; estimate probabilities for zero counts.
2084 2001-11-21 Jakub Jelinek <jakub@redhat.com>
2086 * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
2087 to emit_library_call.
2088 * function.c (expand_main_function, expand_function_start,
2089 expand_function_end): Likewise.
2090 * profile.c (output_func_start_profiler): Likewise.
2091 * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
2092 second argument to emit_library_call.
2093 * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
2094 as second argument to emit_library_call.
2095 * calls.c (emit_library_call): Update fn_type description.
2097 2001-11-21 Jakub Jelinek <jakub@redhat.com>
2099 * c-decl.c (c_expand_deferred_function): Only call c_expand_body
2100 if fndecl is still DECL_INLINE and has DECL_RESULT.
2102 2001-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2104 * clipper.c (clipper_movstr): Avoid uninitialized warning.
2105 * i960.c (is_mask, legitimize_address): Likewise.
2106 * m88k.c (m88k_expand_prologue): Likewise.
2107 * m88k.md: Likewise.
2108 * mcore.c (emit_new_cond_insn): Likewise.
2109 * stormy16.c (xstormy16_emit_cbranch): Likewise.
2111 2001-11-20 Zack Weinberg <zack@codesourcery.com>
2113 * config.gcc: Delete powerpcle-*-solaris2* stanza.
2114 * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
2115 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
2116 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2117 config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
2118 config/rs6000/t-ppcos: Expunge all references to Solaris.
2120 * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
2122 * config/rs6000/rs6000.md: Replace '%$' with '$' in all
2124 * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
2125 and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
2127 2001-11-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2129 * sh.md: Avoid uninitialized warnings.
2130 * vax.c (vax_rtx_cost): Likewise.
2132 2001-11-15 Aldy Hernandez <aldyh@redhat.com>
2134 * rs6000.c (direct_return): Check if we are saving altivec
2136 (first_altivec_reg_to_save): New.
2137 Updated stack frame layout comments.
2138 (rs6000_stack_info): Calculate altivec register save size.
2139 Save link register if we saved some altivec registers.
2140 (rs6000_stack_info): Align save size to 16 if altivec abi or
2142 (rs6000_stack_info): Calculate altivec register offsets.
2143 (rs6000_stack_info): Add altivec info to save_size.
2144 (debug_stack_info): Add altivec debug info.
2145 (rs6000_emit_prologue): Save altivec registers and vrsave.
2146 (compute_vrsave_mask): New.
2147 (altivec_expand_builtin): Remove unused variables.
2148 (rs6000_parse_abi_options): Add static qualifier.
2149 (rs6000_expand_builtin): Remove unused parameters.
2150 (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
2151 (altivec_init_builtins): Same.
2152 (is_altivec_return_reg): New.
2153 (vrsave_operation): New.
2154 (ALTIVEC_REG_BIT): New.
2155 (generate_set_vrsave): New.
2157 * rs6000.md (get_vrsave): New.
2159 (*set_vrsave_internal): New.
2161 * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
2162 altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
2163 altivec_padding_size, vrsave_mask.
2164 (TOTAL_ALTIVEC_REGS): New.
2165 (EPILOGUE_USES): Add VRSAVE_REGNO.
2167 2001-11-20 Jeff Law <law@redhat.com>
2169 * unroll.c (copy_loop_body): Update LABEL_NUSES for the
2170 exit label as necessary.
2172 2001-11-20 Brad Kaiser <bkaiser@acelink.net>
2174 * reload1.c (elimination_effects): Use function_invariant_p
2175 instead of CONSTANT_P when considering register equivalences.
2177 2001-11-20 David O'Brien <obrien@FreeBSD.org>
2179 * config.gcc: Add FreeBSD/PowerPC target.
2180 (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
2181 powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
2182 powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
2183 powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
2184 powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
2185 powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
2186 freebsd-spec.h to tm_file.
2187 (rs6000-*-lynxos*): Add lynx.h to tm_file.
2188 * config/freebsd.h: Tidy up.
2189 (USING_CONFIG_FREEBSD): Define.
2190 (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
2191 FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
2192 FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
2193 (TARGET_HAS_F_SETLKW): Define.
2194 (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
2195 * config/freebsd-spec.h: New file.
2196 * config/rs6000/freebsd.h: New file.
2197 * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
2198 * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
2199 USING_SVR4_H to know when to turn on ELF support.
2200 * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
2201 define only if not already defined.
2202 Add FreeBSD support.
2203 * config/rs6000/aix.h (TARGET_VERSION): Define.
2204 * config/rs6000/beos.h: Likewise.
2205 * config/rs6000/darwin.h: Likewise.
2206 * config/rs6000/mach.h: Likewise.
2207 * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
2208 Don't include lynx.h directly.
2210 2001-11-20 Graham Stott <grahams@redhat.com>
2212 * unwind-dw2-fde.c (__deregister_frame_info_bases):
2213 Fix lossage in last change return OB.
2215 Tue Nov 20 11:56:12 2001 Douglas B. Rupp <rupp@gnat.com>
2217 * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
2218 Remove unneeded exit related macros.
2220 2001-11-20 David Edelsohn <edelsohn@gnu.org>
2222 * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
2224 * rs6000.c (rs6000_emit_move): Add TFmode case.
2225 * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
2226 LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
2227 LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
2228 * rs6000.h: ... to here.
2229 * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
2230 trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
2231 fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
2233 Tue Nov 20 06:41:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2235 * emit-rtl.c (get_mem_attrs): Fix typo.
2237 2001-11-20 Jakub Jelinek <jakub@redhat.com>
2239 * c-lang.c (finish_file): Backout 2001-11-16
2240 changes, instead set DECL_DEFER_OUTPUT for static inline functions
2241 before calling c_expand_deferred_function.
2243 2001-11-20 Jakub Jelinek <jakub@redhat.com>
2245 * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
2246 Don't register empty .eh_frame sections.
2247 (__deregister_frame_info_bases, __deregister_frame): Don't
2248 unregister them either.
2250 2001-11-19 Geoffrey Keating <geoffk@redhat.com>
2252 * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
2253 (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
2254 * configure: Regenerate.
2255 * config.in: Add dummy definitions of new flags.
2256 * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
2257 * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
2258 * gcc.c (ASM_DEBUG_SPEC): New macro.
2259 (asm_debug): New static variable.
2260 (default_compilers): Add asm_debug when assembling from
2262 (static_specs): Add asm_debug.
2264 2001-11-20 Loren J. Rittle <ljrittle@acm.org>
2266 * config.gcc (*-*-freebsd*): Remove configuration block.
2268 2001-11-19 Loren J. Rittle <ljrittle@acm.org>
2271 * configure.in: Setup ability to run ./stage[1234]/xgcc in
2272 fixinc *as if* it were a proper lang subdirectory.
2273 * configure: Rebuilt.
2275 2001-11-19 Loren J. Rittle <ljrittle@acm.org>
2277 * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
2279 2001-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2281 * 1750a.md: Don't use hex format for a const_int.
2283 2001-11-19 Geoffrey Keating <geoffk@redhat.com>
2285 * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
2287 2001-11-19 Zack Weinberg <zack@codesourcery.com>
2289 * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
2290 defined (prevents link errors when gettext isn't in the system
2293 2001-11-19 DJ Delorie <dj@redhat.com>
2295 * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
2296 (validate_const_int): New.
2297 (read_rtx): Validate constant integers.
2298 * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
2300 2001-11-19 Jakub Jelinek <jakub@redhat.com>
2302 * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
2304 Mon Nov 19 16:57:44 2001 Douglas B. Rupp <rupp@gnat.com>
2306 * toplev.c (DUMPFILE_FORMAT): Define default.
2307 (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
2308 (close_dump_file, compile_file): Likewise.
2309 * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
2310 * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
2312 2001-11-19 Jeff Law <law@redhat.com>
2314 * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
2317 2000-11-19 Neil Booth <neil@daikokuya.demon.co.uk>
2319 * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
2320 Don't fall off the base token run.
2322 2001-11-19 Jason Wilkins <fenix@io.com>
2324 * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
2326 Mon Nov 19 15:13:43 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2328 * tree.def (VIEW_CONVERT_EXPR): New tree code.
2329 * tree.h (handled_component_p): New declaration.
2330 * alias.c (handled_component_p): Move function from here ...
2331 * expr.c (handled_component_p): ... to here and non longer static.
2332 (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
2333 (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
2334 (get_inner_reference): Handle VIEW_CONVERT_EXPR.
2335 (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
2336 (expand_expr, case VIEW_CONVERT_EXPR): New case.
2337 (expand_expr, cse ADDR_EXPR): No need to copy if already
2339 * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
2340 * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
2341 (output_constant): Handle VIEW_CONVERT_EXPR.
2342 * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
2343 Add new case for VIEW_CONVERT_EXPR.
2345 2001-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2347 * a29k/unix.h (ASM_FILE_START): Const-ify.
2348 * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
2349 * i386/isc.h (ASM_FILE_START): Const-ify.
2350 * i386/sun386.h (ASM_FILE_START): Likewise.
2351 * m32r.md: Likewise.
2352 * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
2353 * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
2354 * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
2355 * mn10200.md: Initialize variable.
2357 Mon Nov 19 18:06:21 CET 2001 Jan Hubicka <jh@suse.cz>
2359 * gcse.c (try_replace_reg): Copy RTX before creating note.
2361 * df.h (df_ref_flags): New uenum.
2362 (DF_REF_FLAGS): New macro.
2363 (struct ref): Add field "flags".
2364 * df.c (HANDLE_SUBREG): Remove.
2365 (df_ref_create): Likewise; set flags field of ref.
2366 (df_def_record_1): Strip down read_write subreg; remove
2367 commented out code; set READ_WRITE flag.
2368 (read_modify_subreg_p): New static function.
2369 (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
2370 new argument "flags".
2371 (df_insn_refs_record): Update call of df_uses_record.
2372 (df_insn_modify): Avoid #if 0 around comment.
2373 (df_dump): Dump the read/write flag.
2375 * predict.c (propagate_freq): Make cyclic_probability and frequency
2378 * i386.c (ix86_cc_mode): Accept USE.
2380 * cfgrtl.c (purge_dead_edges): Cleanup EDGE_ABNORMAL flag if computed
2381 jump is turned into simplejump.
2383 2001-11-19 Joseph S. Myers <jsm28@cam.ac.uk>
2385 * doc/fragments.texi, doc/trouble.texi: Remove links to old
2386 installation chapter.
2387 * doc/gcc.texi: Don't claim that this manual documents
2388 installation. Mark Installation menu entry as being out of date.
2390 Mon Nov 19 07:21:35 2001 Douglas B. Rupp <rupp@gnat.com>
2392 * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
2393 (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
2394 * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
2396 2001-11-19 Jason Merrill <jason@redhat.com>
2398 * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
2399 cur_token, not after.
2401 * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
2402 Lose ASM_OUTPUT_CONSTRUCTOR.
2403 * system.h: Poison it and INT_ASM_OP.
2404 * c-lang.c (finish_file): Don't check for it.
2405 * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
2407 2001-11-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2409 * mmix.c (mmix_cc1_ignored_option): Const-ify.
2410 (mmix_init_machine_status): Make static to match declaration.
2411 (mmix_unique_section): Const-ify.
2412 (mmix_output_quoted_string): Avoid automatic aggregate
2414 (mmix_output_register_setting): Likewise.
2415 (mmix_output_shiftvalue_op_from_str): Likewise.
2417 * mmix.h (mmix_cc1_ignored_option): Const-ify.
2418 (ASM_OUTPUT_BYTE): Fix format specifier warning.
2419 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2421 2001-11-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
2424 * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
2425 name __objc_thread_exit_status so that it matches the
2426 variable defined in objc/thr.h.
2428 2001-11-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
2431 * mklibgcc.in: Add missing semi-colons.
2432 * Makefile.in: Same.
2434 Sun Nov 18 16:47:00 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2436 * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
2437 after re-laying out decl in incomplete case.
2438 (expand_expr, case ADDR_EXPR): Fix typo in copy case.
2440 2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
2442 * doc/install-old.texi: Move some sections out to ...
2443 * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
2444 ... here. New files. Make into chapters rather than sections.
2445 * doc/gcc.texi: Include the new files and add menu entries for
2447 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2449 Sun Nov 18 14:13:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2451 * tree.h (TYPE_ALIGN_OK): New flag.
2452 * emit-rtl.c (set_mem_attributes): Handle it.
2453 * expr.c (emit_single_push_insn): Only set to alias set 0 if
2454 doing sibcall optimization.
2455 (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
2456 when make temporary.
2457 (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
2458 (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
2460 * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
2462 2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
2464 * c-decl.c (c_decode_option): Give deprecation warning for
2466 * doc/invoke.texi (-traditional): Note that this option is
2469 Sun Nov 18 07:40:07 2001 Douglas B. Rupp <rupp@gnat.com>
2471 * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
2472 arg to HOST_WIDE_INT, not long.
2474 * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
2475 (HAS_INIT_SECTION): Define.
2476 (REAL_ARITHMETIC): Don't undefine.
2478 2001-11-18 Egor Duda <deo@logos-m.ru>
2480 * config/i386/cygwin.h: Strip leading '*' from name, if any.
2482 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
2484 * Makefile.in (c-parse.o, c-common.o): Update dependencies.
2485 * c-common.c: Include diagnostic.h.
2486 (c_common_finish): New.
2487 * c-common.h (c_common_finish): New.
2488 * c-lang.c (LANG_HOOKS_FINISH): Override.
2489 * c-parse.in: Don't include diagnostic.h.
2490 (finish_parse): Remove.
2491 * langhooks.h: Update comments.
2492 * toplev.c (lang_dependent_init): New prototype.
2494 (compile_file): Split cleanup code out to finalize.
2495 (lang_dependent_init): Stop if lang_hooks.init fails.
2496 (toplev_main): Update.
2497 * tree.h (finish_parse): Remove.
2499 * objc-act.c (LANG_HOOKS_FINISH): Override.
2501 Sat Nov 17 23:30:44 2001 Douglas B. Rupp <rupp@gnat.com>
2503 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
2504 * config/alpha/vms_tramp.asm: New file.
2505 * config/alpha/vms-tramp.asm: Removed.
2507 2001-11-18 Joseph S. Myers <jsm28@cam.ac.uk>
2509 * c-common.c (struct disabled_builtin, disabled_builtins,
2510 disable_builtin_function, builtin_function_disabled_p): New.
2511 (builtin_function_2): Check for disabled built-in functions.
2512 * c-common.h (disable_builtin_function): Declare.
2513 * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
2514 * doc/invoke.texi: Document -fno-builtin-FUNCTION.
2515 * doc/extend.texi: Mention -fno-builtin-FUNCTION.
2517 2001-11-17 Craig Rodrigues <rodrigc@gcc.gnu.org>
2520 * config.gcc: Remove reference to va-clipper.h.
2522 2001-11-17 Stan Shebs <shebs@apple.com>
2524 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
2525 AltiVec-related bitfields.
2527 Sat Nov 17 12:06:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2529 * except.c (enum eh_region_type): Add ERT_UNKNOWN.
2530 (mark_eh_region, case ERT_UKNONW): New case.
2532 2001-11-17 Christopher Faylor <cgf@redhat.com>
2533 Corinna Vinschen <vinschen@redhat.com>
2535 * config/i386/cygwin.h: Search target specific include directory for
2536 w32api stuff, if appropriate.
2538 Sat Nov 17 08:20:44 2001 Douglas Rupp <rupp@gnat.com>
2540 * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
2542 2001-11-16 Aldy Hernandez <aldyh@redhat.com>
2544 * config/rs6000/rs6000.md: Change all ldvx to lvx.
2546 2001-11-16 Alexandre Oliva <aoliva@redhat.com>
2548 * gensupport.c (process_rtx): Don't assume filename is the first
2549 argument of any rtl.
2551 2001-11-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
2553 * vax-protos.h (reg_was_0_p): New prototype.
2554 * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
2555 * vax.c (follows_p, reg_was_0_p): New functions.
2557 2001-11-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
2559 * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
2560 (casesi1): Likewise. Define new pattern which arises by simplification
2561 when operand 1 is a constant int. Correct pattern which arises by
2562 simplification when operand 1 is zero.
2564 2001-11-16 David O'Brien <obrien@FreeBSD.org>
2566 * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
2567 arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
2568 arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
2569 arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
2570 arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
2571 arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
2572 xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
2573 * config/arm/aof.h: Don't include arm.h.
2574 * config/arm/aout.h: Likewise.
2575 * config/arm/coff.h: Don't include semi.h and aout.h.
2576 * config/arm/elf.h: Don't include aout.h.
2577 * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
2578 (TARGET_VERSION): Undef before defining.
2579 (ARM_OS_NAME): Likewise
2580 (TARGET_DEFAULT): Likewise
2581 (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
2582 * config/arm/pe.h: Don't include arm/coff.h.
2583 * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
2584 SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
2585 * config/arm/riscix1-1.h: Likewise.
2586 * config/arm/rix-gas.h: Don't include riscix.h.
2587 (DBX_CONTIN_LENGTH): Undef before defining.
2588 * config/arm/semi.h: Don't include aout.h.
2589 * config/arm/semiaof.h: Don't include aof.h.
2590 * config/arm/strongarm-coff.h: Don't include coff.h.
2591 * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
2592 * config/arm/vxarm.h: Don't include arm/coff.h.
2593 * config/arm/xscale-coff.h: Don't include coff.h.
2595 Fri Nov 16 15:22:35 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2597 * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
2600 2001-11-16 Andreas Jaeger <aj@suse.de>
2602 * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
2604 (fixup_fallthru_exit_predecessor): ... this.
2605 Change callers and prototype.
2607 2001-11-16 Bernd Schmidt <bernds@redhat.com>
2609 * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
2610 hand; don't use gen_setcc_2.
2611 (ix86_expand_builtin): Fix pshufw.
2612 * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
2613 case UNORDERED to emit the right assembler instruction.
2614 (mmx_pshufw): Lose operand 2.
2615 (cvtsi2ss): Fix representation.
2617 (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
2619 2001-11-16 Joseph S. Myers <jsm28@cam.ac.uk>
2621 * doc/include/linux-and-gnu.texi: Remove.
2622 * doc/gnu.texi: New.
2623 * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
2624 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2626 2001-11-16 Kazu Hirata <kazu@hxi.com>
2628 * config/a29k/a29k.c: Fix comment formatting.
2629 * config/a29k/a29k.h: Likewise.
2630 * config/arc/arc.c: Likewise.
2631 * config/arc/arc.h: Likewise.
2632 * config/vax/vax.c: Likewise.
2633 * config/vax/vax.h: Likewise.
2634 * config/we32k/we32k.c: Likewise.
2635 * config/we32k/we32k.h: Likewise.
2637 2001-11-16 Jeff Law <law@redhat.com>
2639 * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
2640 creating a new jump insn.
2642 Fri Nov 13 09:06:25 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2644 * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
2645 copy misaligned data.
2646 * varasm.c (assemble_variable): Set alignment into MEM when changed.
2648 2001-11-16 Graham Stott <grahams@redhat.com>
2650 * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
2653 2001-11-16 Olivier Hainque <hainque@act-europe.fr>
2655 * except.c: Support for catching a list of types with a single handler
2656 (struct eh_region): Change type and filter to lists for catch regions.
2657 (mark_eh_region): Mark the filter list for GC also.
2658 (expand_start_catch): Always build a list if argument not NULL and
2659 register each type of the list through add_type_for_runtime.
2660 (duplicate_eh_region_1): Change type into type_list for catch regions.
2661 (assign_filter_values): Assign a filter to each type associated with a
2662 catch region. Assign filter for NULL types in a unique entry in the
2664 (build_post_landing_pads): Emit compare and jump for each filter of
2665 the list associated with a catch region.
2666 (reachable_next_level): When the type thrown is known, stop the search
2667 as soon as one type within a catch list matches. Also, a handler is
2668 potentially reachable only if at least one of the types it catches
2669 has not been previously caught.
2670 (collect_one_action_chain): Retrieve the filter for a NULL type list
2671 from the first filter list entry. For non NULL type lists, add an
2672 action record for every filter assigned.
2673 * except.h: Reflect changes in comment before expand_start_catch.
2675 Fri Nov 16 07:12:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2677 * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
2680 Fri Nov 16 06:37:05 2001 Andreas Tobler <a.tobler@schweiz.ch>
2682 * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
2684 2001-11-16 Jakub Jelinek <jakub@redhat.com>
2686 * c-lang.c (finish_file): Don't emit static inline functions if
2687 they weren't referenced.
2689 2001-11-15 Stan Shebs <shebs@apple.com>
2691 * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
2693 2001-11-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2695 * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
2697 * config/i386/i386.md: Likewise.
2699 Thu Nov 15 21:40:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2701 * timevar.c (rtl.h): Include so get fancy abort.
2703 2001-11-15 Dale Johannesen <dalej@apple.com>
2705 * config/darwin.h (SELECT_RTX_SECTION): Force address
2706 initializers into 'const' section
2707 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fix mode of
2708 if_then_else to match result, not operands
2710 Thu Nov 15 17:57:48 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2712 * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
2713 * emit-rtl.c (change_address): Fix typo in default alignment.
2714 (adjust_address_1): Use mode of NEW, not MODE, when setting size.
2715 * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
2716 * rtl.h (REGNO_PTR_FRAME_P): New macro.
2718 * expr.c (store_field): Pass tree instead of max size; callers changed.
2719 Change handling of alignment.
2720 Only copy to_rtx if is TARGET.
2721 (expand_expr_unaligned): Delete; callers now use expand_expr.
2722 (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
2723 (expand_assignment): Change handling of alignment.
2724 Only copy to_rtx if was original.
2725 (get_inner_reference): No longer return alginment; callers changed.
2726 (expand_expr, case COMPONENT_REF): Change handling of alignment.
2727 (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
2728 (compare_from_rtx): Delete ALIGN parm; all callers changed.
2729 (do_compare_rtx_and_jump): Likewise.
2730 * expr.h: Reflect above changes.
2732 * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
2733 to get_inner_reference.
2734 * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
2735 * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
2736 * optabs.c: Likewise.
2737 (prepare_cmp_insn): Now static; remove ALIGN parm. Callers changed.
2738 (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
2739 * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
2740 compare_rtx_and_jump, and emit_cmp_jump_insns.
2741 * fold-const.c: Remove PALIGN in calls to get_inner_reference.
2742 * function.c (assign_stack_temp_for_type): No longer static.
2743 * optabs.h (emit_cmp_insn): Remove ALIGN parm.
2744 (prepare_cmp_insn): Delete declaration.
2745 * rtl.h (assign_stack_temp_for_type): Add declaration.
2746 * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
2747 * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
2748 * config/i386/i386.c,config/mips/mips.c: Likewise.
2749 * config/i860/i860.c, config/ia64/ia64.c: Likewise.
2750 * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
2752 2001-11-15 Stan Shebs <shebs@apple.com>
2754 * config/rs6000/rs6000.h: Fix a comment typo.
2755 (RTX_COSTS): Sort processor versions better.
2757 2001-11-15 Kazu Hirata <kazu@hxi.com>
2759 * config/h8300/h8300.md: Fix insn length of bit insns.
2761 2001-11-15 Jason Merrill <jason@redhat.com>
2763 * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
2764 DIEs if there were errors in the source.
2766 * config/alpha/alpha-interix.h, config/alpha/elf.h,
2767 config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
2768 config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
2769 config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
2770 config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
2771 config/elfos.h, config/lynx.h, config/netware.h,
2772 config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
2773 config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
2774 uses to use ASM_LONG.
2776 2001-11-15 Alan Matsuoka <alanm@redhat.com>
2778 * gensupport.c process_include : Change call to alloca to
2781 2001-11-15 Aldy Hernandez <aldyh@redhat.com>
2783 * config/rs6000/rs6000.md: Use spaces instead of tabs in output
2786 Thu Nov 15 08:36:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2788 * final.c (alter_subreg): If simplify_subreg can't do anything,
2789 handle REG ourselves and abort for others.
2791 2001-11-15 Richard Hodson <hodsonr@dionecorp.com>
2793 * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
2796 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
2798 * fix-header.c (read_scan_file): Update.
2800 Thu Nov 15 08:36:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2802 * toplev.c (toplev_main): Don't start timing until after
2803 command-line options are parsed.
2805 2001-11-15 Andreas Schwab <schwab@suse.de>
2807 * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
2808 makefile frag, not host makefile frag.
2809 (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
2810 (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
2812 (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
2813 * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
2814 * config/m88k/t-dgux (STMP_FIXPROTO): Define.
2815 * config/i386/t-cygwin (STMP_FIXPROTO): Define.
2816 * config/i386/t-dgux (STMP_FIXPROTO): Define.
2817 * config/x-interix: Don't define STMP_FIXPROTO and
2819 * config/t-interix: New file, define STMP_FIXPROTO.
2820 * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
2821 * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
2822 * config/t-svr4 (FIXPROTO_DEFINES): Define.
2823 * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
2824 * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
2825 * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
2826 * config/m68k/t-hp3200: Renamed from x-hp3200.
2827 * config/i370/t-oe: Renamed from x-oe.
2828 * config/mips/t-iris: Renamed from x-iris.
2829 * config/pa/t-bsd: Renamed from x-pa.
2830 * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
2831 * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
2832 config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
2833 config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
2834 config/rs6000/x-cygwin: Remove files.
2836 * configure.in: Check for target objdump and use that in eh_frame
2838 * configure: Regenerated.
2840 2001-11-15 Jakub Jelinek <jakub@redhat.com>
2842 * jump.c (squeeze_notes): Return true if no real insns were found.
2843 * rtl.h (squeeze_notes): Adjust prototype.
2844 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
2845 squeeze_notes finds no real instructions, abort.
2846 (merge_blocks_move_successor_nojumps): Likewise.
2847 * loop.c (find_and_verify_loops): Likewise.
2848 * stmt.c (expand_end_case): Likewise.
2849 * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
2850 find any real instructions.
2852 * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
2854 * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
2855 conditional jump, request updating life into for the block
2856 containing it. Fix a typo which prevented life info update.
2857 Clear blocks bitmap before using it.
2859 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
2861 * c-common.c: Include c-lex.h.
2862 (c_common_lang_init): Change prototype. Call init_c_lex and
2863 init_pragma from here.
2864 * c-common.h (c_common_lang_init): Change prototype.
2865 * c-decl.c (init_decl_processing): Rename. Call c_parse_init.
2866 * c-lang.c (c_init): Change prototype. Update.
2867 (c_init_options): Update.
2868 * c-lex.c (cpp_filename): Remove.
2869 (init_c_lex): Update. Read the main file, and get the original
2871 (yyparse): Finish the command line options.
2872 * c-parse.in (c_parse_init): Call init_reswords here.
2873 (init_parse): Remove.
2874 * c-tree.h (c_init_decl_processing): New.
2875 * cpphash.c (_cpp_init_hashtable): After initializing the hash
2877 * cppinit.c (read_original_filename, cpp_finish_options): New.
2878 (cpp_create_reader): New prototype. Defer hash table initialization.
2879 (cpp_start_read): Rename cpp_read_main_file. Initialize the
2880 hash table. Get the original filename.
2881 * cpplib.h (cpp_create_reader): Update.
2882 (cpp_start_read): Remove.
2883 (cpp_read_main_file, cpp_finish_options): New.
2884 * cppmain.c (main, do_preprocessing): Update.
2885 * langhooks.h (struct langhooks): Update init prototype.
2886 * toplev.c (general_init, parse_options_and_default_flags,
2887 process_options, lang_indpendent_init, lang_dependent_init,
2888 init_asm_output): New; perform the bulk of initialization.
2889 (compile_file): Move most of initialization to above functions.
2890 (debug_hooks): Initialize statically.
2891 (set_Wunused): Relocate.
2892 (toplev_main): Move most of initialization to other init functions.
2893 Have a clear logic flow.
2894 * tree.h (init_parse, init_decl_processing): Remove.
2896 * objc-act.c (objc_init): Update prototype, combine with old
2898 (objc_init_options): Update.
2901 2001-11-15 Andreas Jaeger <aj@suse.de>
2903 * cfgrtl.c (purge_all_dead_edges): Use int as argument for
2905 * basic-block.h: Adjust prototype.
2907 2001-11-15 Kazu Hirata <kazu@hxi.com>
2909 * config/rs6000/aix31.h: Fix comment formatting.
2910 * config/rs6000/beos.h: Likewise.
2911 * config/rs6000/darwin.h: Likewise.
2912 * config/rs6000/eabi.asm: Likewise.
2913 * config/rs6000/linux.h: Likewise.
2914 * config/rs6000/linux64.h: Likewise.
2915 * config/rs6000/lynx.h: Likewise.
2916 * config/rs6000/netbsd.h: Likewise.
2917 * config/rs6000/rs6000.c: Likewise.
2918 * config/rs6000/rs6000.h: Likewise.
2919 * config/rs6000/rs6000.md: Likewise.
2920 * config/rs6000/sol2.h: Likewise.
2921 * config/rs6000/tramp.asm: Likewise.
2922 * config/rs6000/xcoff.h: Likewise.
2923 * config/rs6000/xm-beos.h: Likewise.
2925 2001-11-14 Alan Matsuoka <alanm@redhat.com>
2927 * rtl.def (INCLUDE) : Define.
2928 * gensupport.c (init_include_reader, process_include,
2929 save_string) : New functions to implement an include facility
2931 * gensupport.h : Add prototype for init_md_reader_args.
2932 * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
2933 genextract.c genflags.c genopinit.c genoutput.c
2934 genpeep.c genrecog.c: Change call to init_md_reader to
2935 init_md_reader_args.
2936 * md.texi: Document (include "path") and -I directives for RTL
2939 2001-11-14 DJ Delorie <dj@redhat.com>
2941 * integrate.c (get_hard_reg_initial_reg): New.
2942 * integrate.h (get_hard_reg_initial_reg): Prototype.
2943 * local-alloc.c (block_alloc): Don't tie pseudos that
2944 represent call-saved hard regs' initial values.
2946 2001-11-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2948 * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
2951 2001-11-14 Roger Sayle <roger@eyesopen.com>
2953 * fold-const.c (fold): Optimize strlen comparisons against zero.
2955 2001-11-14 David O'Brien <obrien@FreeBSD.org>
2957 * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
2958 sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
2959 sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
2960 sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
2961 sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
2962 sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
2963 sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
2964 Include various CPU headers via tm_file. a.out based platforms now
2965 properly include sparc/aout.h. sol2.h usage now implies including
2966 elfos.h, svr4.h, and sparc/sysv4.h.
2967 * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
2969 * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
2970 SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
2971 DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
2972 Remove. They are a.out specific and belong in sparc/aout.h.
2973 * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
2974 ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2975 DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define. Moved here from
2977 * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
2978 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
2979 Moved here from sparc/sparc.h.
2980 * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
2982 * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
2983 * config/sparc/lynx.h: Don't include lynx.h.
2984 (SELECT_SECTION): Do not undef.
2985 * config/sparc/openbsd.h: Don't include sparc/sparc.h.
2986 * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
2988 * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
2989 * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define. Get from
2991 * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
2992 Don't undef, there is no need.
2993 * config/sparc/splet.h (CPP_PREDEFINES): Define.
2994 * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
2995 * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
2996 Don't include sparc/sparc.h.
2997 * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
2998 SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
2999 DATA_SECTION_ASM_OP): Don't undef, there is no need now. Don't include
3001 (TARGET_VERSION): Define.
3002 * config/sparc/vxsim.h (TARGET_VERSION): Define.
3004 Wed Nov 14 19:46:08 CET 2001 Jan Hubicka <jh@suse.cz>
3006 * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
3007 (cfg_layout_finalize): Use it.
3008 * bb-reorder.c (HAVE_epilogue): Remove.
3009 (make_reorder_chain): Do not care special placement of
3012 * predict.c (expected_value_to_br_prob): Delete the note
3015 * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
3016 measure integration time separately.
3018 Wed Nov 14 12:30:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3020 * function.c (struct temp_slot): ALIGN now unsigned.
3022 2001-11-14 Kazu Hirata <kazu@hxi.com>
3024 * config/dsp16xx/dsp16xx.c: Fix comment formatting.
3025 * config/dsp16xx/dsp16xx.h: Likewise.
3026 * config/dsp16xx/dsp16xx.md: Likewise.
3028 2001-11-14 Kazu Hirata <kazu@hxi.com>
3030 * config/h8300/h8300.c (get_shift_alg): Reorganize the code
3031 that deals with 7-bit shifts in HImode.
3033 Wed Nov 14 14:17:05 CET 2001 Jan Hubicka <jh@suse.cz>
3035 * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
3036 * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
3037 (final_scan_insn): Update call of alter_subreg.
3038 (cleanup_subreg_operands): Likewise.
3039 (alter_subreg): Rewrite using simplify_subreg.
3040 (output_address, output_operand): Update call of alter_subreg.
3041 * output.h (alter_subreg): Update prototype.
3042 * sdbout.c (sdbout_symbol): Update call of alter_subreg.
3043 * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
3044 * Makefile.in (final.o): Add dependency on expr.h
3046 Wed Nov 14 06:37:54 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3048 * c-lang.c (finish_file): Make I unsigned to eliminate warning.
3050 2001-11-13 Jeff Sturm <jsturm@one-point.com>
3052 * doc/install.texi (sparc-*-linux*): Mention requirements for
3055 2001-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
3057 * Makefile.in (POD2MAN): Don't include --section=1.
3058 (manext): Rename to man1ext. All users changed.
3061 (generated-manpages): Also depend on $(docdir)/gfdl.7,
3062 $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
3063 ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
3064 --section=1 in calls to $(POD2MAN).
3065 ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
3066 (maintainer-clean, install, uninstall): Handle the new man pages.
3067 ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
3068 (installdirs): Create man7dir.
3069 * doc/cpp.texi: Include GFDL in this manual. In the man page,
3070 refer to gfdl(7) for the GFDL. Apply Front Cover and Back Cover
3071 texts to man page. Include gpl(7), gfdl(7) and fsf-funding(7) in
3072 the SEE ALSO man page section.
3073 * doc/gcov.texi: Apply GFDL to man page. Include gpl(7), gfdl(7)
3074 and fsf-funding(7) in the SEE ALSO man page section.
3075 * doc/invoke.texi: Apply GFDL to man page. Include gpl(7),
3076 gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
3077 * doc/include/fdl.texi, doc/include/funding.texi,
3078 doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
3079 * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
3081 2001-11-13 Richard Henderson <rth@redhat.com>
3083 * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
3084 as appropriate for the artificial decl.
3086 2001-11-13 Richard Henderson <rth@redhat.com>
3088 * loop.c (combine_movables): Turn off combination until
3089 move_movables validation bugs are fixed.
3091 2001-11-13 DJ Delorie <dj@redhat.com>
3093 * config.gcc (powerpc|rs6000): Set default cpp options based
3094 on --with-cpu settings.
3095 * config/rs6000/softfloat.h: New.
3097 2001-11-13 Kazu Hirata <kazu@hxi.com>
3099 * config/h8300/h8300.c (shift_alg_si): Use special code for
3100 25-bit shifts on H8/S.
3101 (get_shift_alg): Generate special code for 25-bit shifts on
3104 2001-11-13 Jakub Jelinek <jakub@redhat.com>
3106 * emit-rtl.c (adjust_address_1): Add ADJUST argument.
3107 (adjust_automodify_address_1): New.
3108 * expr.h (adjust_address, adjust_address_nv): Adjust.
3109 (adjust_automodify_address, adjust_automodify_address_nv): Define.
3110 (adjust_address_1): Update prototype.
3111 (adjust_automodify_address_1): Add prototype.
3112 * expr.c (move_by_pieces_1): Use adjust_automodify_address.
3113 (store_by_pieces_2): Likewise.
3115 Tue Nov 13 05:45:40 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3117 * Makefile.in (explow.o): Now depends on ggc.h.
3118 * explow.c (ggc.h): Include.
3119 (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
3121 * Makefile.in (expr.o): Depends on insn-attr.h.
3122 * expr.c (insn-attr.h): New include.
3123 (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
3125 (highest_pow2_factor, case INTEGER_CST): Handle negative values.
3126 (expand_expr): Remove unneeded mark_temp_addr_taken calls and
3127 clean up related usage in ADDR_EXPR.
3128 (expand_expr_unaligned): Likewise.
3130 * emit-rtl.c (change_address): Fix typo in alias setting.
3132 2001-11-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3134 * Makefile.in (cfgcleanup.o): Depend on insn-config.h
3136 2001-11-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
3139 * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
3140 GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
3142 2001-11-12 David O'Brien <obrien@FreeBSD.org>
3144 * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
3145 sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
3146 sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
3147 sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
3148 sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
3149 sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
3150 sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
3151 sparc64-*-linux*): Include various CPU headers via tm_file.
3152 * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
3153 (SELECT_SECTION): Likewise.
3154 (SELECT_RTX_SECTION): Likewise.
3155 * config/sparc/sparc_bi.h: New file.
3156 * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
3157 * config/sparc/linux-aout.h: Likewise.
3158 * config/sparc/linux.h: Don't include sparc/sysv4.h.
3159 * config/sparc/linux64.h: Likewise.
3160 (SPARC_BI_ARCH): Don't define. sparc_bi.h will do it instead.
3161 * config/sparc/lite.h: Don't include sparc/sparc.h and gofast.h.
3162 * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
3164 (ASM_OUTPUT_IDENT): Do not #undef.
3165 (SELECT_SECTION): Likewise.
3166 (SELECT_RTX_SECTION): Likewise.
3167 * config/sparc/liteelf.h: Don't include gofast.h.
3168 * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
3169 * config/sparc/lynx.h: Don't include sparc/sparc.h.
3170 * config/sparc/pbd.h: Likewise.
3171 * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
3172 * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
3173 * config/sparc/rtemself.h: Don't include rtems.h.
3174 * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
3175 * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
3177 * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
3178 * config/sparc/sol2.h: Include sparc/sparc.h directly.
3179 * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
3180 * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
3181 * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
3182 * config/sparc/sp86x-elf.h: Don't include gofast.h.
3183 * config/sparc/splet.h: Don't include sparc/aout.h.
3184 * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
3185 * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
3186 * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
3187 * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
3188 * config/sparc/vxsparc64.h: Don't include gofast.h.
3189 (SPARC_BI_ARCH): Don't define. sparc_bi.h will do it instead.
3191 2001-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
3193 * doc/standards.texi: Mention C99 TC1.
3195 2001-11-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3197 * mips-protos.h (mips_output_conditional_branch): Const-ify.
3198 * mips.c (mips_output_conditional_branch): Likewise.
3200 2001-11-12 Kazu Hirata <kazu@hxi.com>
3202 * config/h8300/h8300.c (shift_alg_si): Use special code for
3203 15-bit logical shifts and 31-bit logical shifts.
3204 (get_shift_alg): Generate special code for 15-bit and 31-bit
3207 2001-11-12 Kazu Hirata <kazu@hxi.com>
3209 * config/h8300/h8300.c (shift_alg_qi): Use rotations when
3210 doing 6-bit logical shifts on H8/S.
3211 (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
3212 (get_shift_alg): Generate special code for 21-bit shifts on
3215 2001-11-12 Kazu Hirata <kazu@hxi.com>
3217 * config/h8300/h8300.c (get_shift_alg): Remove a redundant
3220 Mon Nov 12 11:58:26 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3222 * alias.c (nonoverlapping_memrefs_p): Only update size from memref
3223 if both size and offset known.
3225 2001-11-12 David O'Brien <obrien@FreeBSD.org>
3227 * config/ia64/freebsd.h: Fix misspelling.
3229 2001-11-12 Joseph S. Myers <jsm28@cam.ac.uk>
3231 * doc/gcc.texi: Move several chapters out to ...
3232 * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
3233 doc/include/linux-and-gnu.texi, doc/interface.texi,
3234 doc/makefile.texi, doc/passes.texi, doc/portability.texi:
3235 ... here. New files.
3236 * doc/gcc.texi, doc/contrib.texi: Move section headings into
3238 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
3240 2001-11-12 Kazu Hirata <kazu@hxi.com>
3242 * config/alpha/alpha-interix.h: Fix comment formatting.
3243 * config/alpha/alpha.c: Likewise.
3244 * config/alpha/alpha.h: Likewise.
3245 * config/alpha/alpha32.h: Likewise.
3246 * config/alpha/freebsd.h: Likewise.
3247 * config/alpha/unicosmk.h: Likewise.
3248 * config/alpha/vms.h: Likewise.
3250 2001-11-12 Kazu Hirata <kazu@hxi.com>
3252 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
3254 2001-11-12 Jakub Jelinek <jakub@redhat.com>
3256 * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
3259 Mon Nov 12 05:18:42 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3261 * emit-rtl.c (set_mem_attributes): If making object, can set alignment
3263 (replace_equiv_address): Call update_temp_slot_address.
3265 * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
3267 * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
3269 2001-11-12 Kazu Hirata <kazu@hxi.com>
3271 * config/h8300/h8300.c (shift_alg_qi): New.
3272 (shift_alg_hi): Likewise.
3273 (shift_alg_si): Likewise.
3274 (get_shift_alg): Change the type of count to unsigned int.
3277 2001-11-11 Alexandre Oliva <aoliva@redhat.com>
3279 * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
3280 * c-decl.c (c_expand_body): Take argument can_defer_p. Use it
3281 to decide whether to defer a function.
3282 (finish_function): Adjust.
3283 (c_expand_deferred_function): New function.
3284 * c-lang.c (deferred_fns): New variable.
3285 (c_init): Initialize it, and mark it as a root.
3286 (defer_fn): New function.
3287 (finish_file): Expand all deferred functions.
3288 * c-tree.h (defer_fn): Declare.
3289 (c_expand_deferred_function): Likewise.
3290 * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
3291 * objc-act.c (deferred_fns): New variable.
3292 (objc_init): Initialize it, and mark it as a root.
3293 (defer_fn): New function.
3294 (finish_file): Expand all deferred functions.
3296 2001-11-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3298 * alpha.c (unicosmk_special_name): Prototype.
3299 (unicosmk_ssib_name): Delete unused variable.
3300 * alpha/unicosmk.h (common_section, ssib_section): Prototype.
3301 * alpha/vms.h (PREFIX): Undef before defining.
3302 * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
3303 * i370/i370.c (mvs_hash_alias): Prototype. Wrap with macro
3304 controlling usage. Const-ify.
3305 (alias_number): Delete unused variable.
3306 * m32r/m32r.c (m32r_sched_init): Add missing argument.
3307 (m32r_expand_block_move): Fix uninitialized warnings.
3308 * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
3309 always true' warnings.
3310 * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
3311 * sh/sh.c: Include "integrate.h".
3312 (output_far_jump): Fix uninitialized warning.
3313 * final.c (shorten_branches): Avoid automatic aggregate
3315 * integrate.c (subst_constants): Likewise.
3317 2001-11-11 Kazu Hirata <kazu@hxi.com>
3319 * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
3320 (get_shift_alg): Remove redundant code.
3322 2001-11-11 Kazu Hirata <kazu@hxi.com>
3324 * config/pa/milli64.S: Fix comment formatting.
3325 * config/pa/pa-64.h: Likewise.
3326 * config/pa/pa-linux.h: Likewise.
3327 * config/pa/pa-protos.h: Likewise.
3328 * config/pa/pa.c: Likewise.
3329 * config/pa/pa.h: Likewise.
3330 * config/pa/pa32-linux.h: Likewise.
3331 * config/pa/pa32-regs.h: Likewise.
3332 * config/pa/pa64-hpux.h: Likewise.
3333 * config/pa/pa64-regs.h: Likewise.
3334 * config/pa/som.h: Likewise.
3336 2001-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
3338 * doc/gcc.texi: Move several chapters out to ...
3339 * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
3340 doc/service.texi, doc/standards.texi, doc/trouble.texi,
3341 doc/vms.texi: ... here. New files.
3342 * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
3344 2001-11-11 Joseph S. Myers <jsm28@cam.ac.uk>
3346 * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
3347 cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
3348 collect2.c, combine.c, config.in, configure, configure.in,
3349 conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
3350 genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
3351 reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
3354 Sun Nov 11 05:56:01 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3356 * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
3357 Adjust operand number in CONST_DOUBLE.
3359 * expmed.c (extract_bit_field): No longer pass in alignment.
3360 (extract_fixed_bit_field, extract_split_bit_field): Likewise.
3361 (store_bit_field, store_fixed_bit_field, store_split_bit_field):
3363 * expr.c (store_constructor, store_constructor_field): Likewise.
3364 (store_field, emit_group_load, emit_group_store): Likewise.
3365 * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
3366 (store_bit_field, extract_bit_field): Likewise.
3367 * calls.c, expr.c, function.c: Change calls to above functions.
3368 * ifcvt.c, stmt.c: Likewise.
3370 * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
3371 constant and one is on frame.
3372 If know memref offset, adjust size from decl.
3374 2001-11-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3376 * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
3377 format specifier warning.
3378 * convex.h (ASM_OUTPUT_BYTE): Likewise.
3379 * elfos.h (ALIGN_ASM_OP): Undef before defining.
3380 * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
3382 * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3383 * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3384 * i386-interix.h (gen_stdcall_suffix): Prototype.
3385 * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3386 * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
3387 ASM_OUTPUT_LONG_DOUBLE): Likewise.
3388 * i386/interix.c (gen_stdcall_suffix): Const-ify.
3389 * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
3390 ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
3392 * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3393 * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
3394 ASM_OUTPUT_LONG_DOUBLE): Likewise.
3395 * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3396 * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3397 * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3398 * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3399 * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
3400 ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
3401 * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
3402 * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
3404 * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
3406 * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
3407 * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
3408 ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
3410 * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
3412 * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
3414 * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
3415 * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3416 * m68k/news.h (PRINT_OPERAND): Likewise.
3417 * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
3418 ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
3419 * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
3420 * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
3422 * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
3423 ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
3424 ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
3425 * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
3426 * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
3427 ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
3428 PRINT_OPERAND): Likewise.
3429 * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
3431 * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
3432 * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
3433 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
3434 * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3435 * mips.c (mips_output_external_libcall): Mark parameter with
3437 (mips_asm_file_start): Move variable into the scope where it's
3439 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
3440 * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3441 * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
3442 * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3443 * ns32k.c (print_operand): Likewise.
3444 * pa.c (print_operand, output_div_insn): Likewise.
3445 * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
3446 ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
3447 * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
3448 * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
3450 * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3451 * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3452 (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
3453 * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
3455 * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3457 * sdbout.c (sdbout_end_epilogue): Mark parameter with
3459 * varasm.c (assemble_global): Likewise.
3461 2001-11-11 H.J. Lu <hjl@gnu.org>
3463 * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
3465 Sun Nov 11 01:26:00 CET 2001 Jan Hubicka <jh@suse.cz>
3467 * final.c (*_MAX_SKIP): Use *_max_skip variables.
3468 * flags.h (align_loops_max_skip, align_jumps_max_skip,
3469 align_labels_max_skip): New global variables.
3470 * toplev.c (align_loops_max_skip, align_jumps_max_skip,
3471 align_labels_max_skip): New global variables.
3472 (toplev_main): Set new variables.
3473 * i386.c (override_options): Set max_skip values.
3475 2001-11-10 Geoffrey Keating <geoffk@redhat.com>
3477 * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
3478 * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
3479 * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
3480 don't print an @fptr for labels either.
3481 (xstormy16_output_addr_vec): Don't print @fptr here.
3482 * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
3484 Sat Nov 10 08:50:50 2001 Jeffrey A Law (law@cygnus.com)
3486 * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
3487 an ANSI/ISO definitino.
3488 (ssa_const_prop): Likewise.
3490 2001-11-10 Aldy Hernandez <aldyh@redhat.com>
3492 * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
3495 2001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3497 * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
3498 * cpplex.c (hex_digit_value): Use hex_p/hex_value.
3499 * cppmain.c (general_init): Call hex_init.
3500 * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
3502 * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
3504 * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
3505 of dgux.c:output_file_start().
3507 * i386/dgux.c: Delete file.
3509 2001-11-09 Richard Henderson <rth@redhat.com>
3511 * config/alpha/alpha.c (decl_in_text_section): New.
3512 (current_file_function_operand): Use it.
3513 (alpha_encode_section_info, alpha_end_function): Likewise.
3515 2001-11-07 David O'Brien <obrien@FreeBSD.org>
3517 * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
3518 * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
3519 they are OS specific. Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
3520 so OS specific files and use CPP_PREDEFINES for their needs.
3521 * config/i64/elf.h (TARGET_VERSION): Add. Also, move inclusion of
3522 target headers to tm_file.
3523 * config/ia64/aix.h (TARGET_VERSION): Likewise.
3524 * config/ia64/hpux.h (TARGET_VERSION): Likewise.
3525 * config/ia64/linux.h (TARGET_VERSION): Likewise.
3526 (FUNCTION_PROFILER): Remove.
3527 * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
3528 version in config/ia64/linux.h.
3529 * config/ia64/freebsd.h: New file.
3530 * config/freebsd.h: Tidy up.
3531 (_USING_CONFIG_FREEBSD): Define.
3532 (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
3533 (FBSD_CPP_SPEC): Define generic FreeBSD spec.
3534 (FBSD_STARTFILE_SPEC): Likewise.
3535 (FBSD_ENDFILE_SPEC): Likewise.
3536 (FBSD_LIB_SPEC): Likewise.
3537 (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
3538 (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
3539 set an ELF-improper one.
3541 2001-11-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
3543 * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
3544 constant can be loaded in a single instruction to a register. When
3545 loading immediate constants, use PLUS instead of HIGH/LO_SUM. Use
3546 depdi for insertion of most significant 32-bits on 64-bit hosts.
3547 * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
3548 with ldil/ldo/depdi instruction sequence on 64-bit hosts.
3549 * pa.md: New addmove pattern for adding constant_int to HImode
3550 register and moving result to HImode register. Remove HImode HIGH
3551 and LO_SUM patterns.
3553 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
3555 * Makefile.in: Update.
3556 * c-decl.c (print_lang_decl, print_lang_type): Remove.
3557 (print_lang_identifier): Rename c_print_identifier.
3558 * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
3559 (print_lang_statistics, lang_print_xnode): Remove.
3560 * c-parse.in (set_yydebug): Rename c_set_yydebug.
3561 * c-tree.h (c_set_yydebug, c_print_identifier): New.
3562 * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
3563 LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
3564 LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
3565 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
3566 (LANG_HOOKS_INITIALIZER): Update.
3567 * langhooks.h (struct lang_hooks): New members.
3568 (lang_print_tree_hook): New.
3569 * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
3570 * print-tree.c: Include langhooks.h.
3571 (print_node): Update.
3572 * toplev.c (decode_d_option): Update.
3573 * tree.c: Include langhooks.h.
3574 (dump_tree_statistics): Update.
3575 * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
3576 print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
3578 * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
3579 LANG_HOOKS_SET_YYDEBUG): Override.
3580 (lang_print_xnode, print_lang_statistics): Remove.
3582 2001-11-09 Richard Henderson <rth@redhat.com>
3584 * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
3585 on the symbol string.
3587 2001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3589 * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
3590 ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
3591 * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
3593 * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
3595 * tlink.c (recompile_files): Copy strings passed to `putenv'.
3597 2001-11-09 Geoffrey Keating <geoffk@redhat.com>
3599 * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
3600 (TYPE_READONLY): Likewise.
3602 * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
3604 * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
3605 don't pass --gdwarf2 to the assembler if the compiler will also
3608 * config/stormy16/stormy16.c (xstormy16_expand_casesi):
3611 Fri Nov 9 17:51:09 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3613 * alias.c (nonoverlapping_memrefs_p): New function.
3614 (true_dependence, canon_true_depenence, write_dependence_p): Call it.
3616 * emit-rtl.c (set_mem_attributes): Get alignments for constants.
3618 2001-11-09 Aldy Hernandez <aldyh@redhat.com>
3620 * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
3621 (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
3622 generating altivec code.
3623 (FIXED_REGISTERS): VRSAVE is fixed.
3624 (CALL_USED_REGISTERS): VRSAVE is call used.
3626 2001-11-09 Jason Eckhardt <jle@rice.edu>
3628 * config/mips/mips.c (mips_output_conditional_branch): Do not hard
3629 code the branch target as ".+16/.+12", but rather use labels.
3631 Fri Nov 9 11:27:42 2001 Jeffrey A Law (law@cygnus.com)
3633 * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
3634 to work around limitations of certain versions of GAS.
3636 * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
3637 (muldi3): Update due to SUBREG_BYTE changes.
3638 (casesi): Similarly.
3640 2001-11-09 Zack Weinberg <zack@codesourcery.com>
3642 * doc/invoke.texi: Remove comment referring to -xf77-version.
3644 2001-11-09 Kazu Hirata <kazu@hxi.com>
3646 * config/convex/convex.c: Fix comment formatting.
3647 * config/convex/convex.h: Likewise.
3649 2001-11-08 Zack Weinberg <zack@codesourcery.com>
3651 * Makefile.in (.po.pox): Look both in srcdir and builddir
3653 (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
3654 to the source directory.
3656 2001-11-09 Ben Elliston <bje@redhat.com>
3657 Michael Meissner <meissner@redhat.com>
3658 Andrew MacLeod <amacleod@redhat.com>
3659 Richard Henderson <rth@redhat.com>
3660 Nick Clifton <nickc@redhat.com>
3661 Catherine Moore <clm@redhat.com>
3663 * m32r.c: Add support for m32rx processor.
3667 * m32r-protos.h: Add prototypes for m32rx functions.
3668 * doc/invoke.texi: Document -m32rx option.
3670 2001-11-09 Jakub Jelinek <jakub@redhat.com>
3672 * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
3675 2001-11-09 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3677 * doc/install.texi2html: Use $MAKEINFO --no-split.
3679 2001-11-09 Andreas Schwab <schwab@suse.de>
3681 * Makefile.in ($(HOST_PREFIX_1)rtl.o,
3682 $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
3683 $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
3684 $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
3685 $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
3687 2001-11-09 H.J. Lu <hjl@gnu.org>
3689 * config/mips/mips.c (mips_output_function_prologues): Cast
3690 `tsize' to long for output.
3692 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
3694 * c-lang.c (LANG_HOOKS_NAME): New.
3695 (lang_hooks): Constify.
3696 (c_init_options): Update.
3697 (lang_identify): Remove.
3698 * c-parse.in (language_string): Remove.
3699 * dbxout.c: Include langhooks.h.
3700 (dbxout_symbol_location): Update.
3701 * dwarf2out.c: Include langhooks.h.
3702 (gen_compile_unit_die): Update.
3703 * dwarfout.c: Include langhooks.h.
3704 (prototyped_attribute, output_compile_unit_die): Update.
3705 * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
3706 (LANG_HOOKS_INITIALIZER): Update.
3707 * langhooks.h (struct lang_hooks): New members. Constify.
3708 * stringpool.c: Don't include toplev.h.
3709 (set_identifier_size): Remove.
3710 * toplev.c (toplev_main): Initialize identifier size.
3711 (print_version): Update.
3712 * tree.h (language_string, init_lex, lang_identify,
3713 set_identifier_size): Remove.
3714 * Makefile.in: Update dependencies.
3715 * config/darwin.c: Include langhooks.h.
3716 (func_name_maybe_scoped): Update.
3717 * config/darwin.h (ASM_END_FILE): Update.
3718 * config/nextstep.h (ASM_END_FILE): Update.
3719 * config/nextstep21.h (ASM_END_FILE): Update.
3720 * config/i386/sun386.h (ASM_END_FILE): Update.
3721 * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
3722 (rs6000_output_function_epilogue): Update.
3724 * objc-act.c (LANG_HOOKS_NAME): Override.
3725 (struct lang_hooks): Constify.
3726 (objc_init_options): Update.
3727 (lang_identify): Remove.
3729 Fri Nov 9 00:25:18 EST 2001 John Wehle (john@feith.com)
3731 * fold-const.c (lshift_double): Honor PREC.
3732 (rshift_double): Likewise.
3734 2001-11-08 Kazu Hirata <kazu@hxi.com>
3736 * config/1750a/1750a.c: Fix comment formatting.
3737 * config/1750a/1750a.h: Likewise.
3739 2001-11-08 Phil Edwards <pedwards@disaster.jaj.com>
3741 * configure.in (--enable-languages): Be more permissive about
3742 syntax. Check for empty lists better. Warn about $LANGUAGES.
3743 * configure: Regenerated.
3745 2001-11-08 Richard Henderson <rth@redhat.com>
3747 * dwarf2asm.c (dw2_force_const_mem): Fix typo.
3749 2001-11-08 Geoffrey Keating <geoffk@redhat.com>
3751 * config.gcc: Rename stormy16 to xstormy16.
3752 * config/stormy16/stormy-abi: Likewise.
3753 * config/stormy16/stormy16-protos.h: Likewise.
3754 * config/stormy16/stormy16.c: Likewise.
3755 * config/stormy16/stormy16.h: Likewise.
3756 * config/stormy16/stormy16.md: Likewise.
3758 2001-11-06 Geoffrey Keating <geoffk@redhat.com>
3760 * tree.h (TYPE_VOLATILE): Add enable-checking code.
3761 (TYPE_READONLY): Likewise.
3763 Thu Nov 8 18:00:55 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3765 * reload1.c (reload): Don't delete equiv insn if can throw.
3767 * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
3768 (clear_storage): Likewise, for OBJECT.
3770 Thu Nov 8 16:23:51 2001 Jeffrey A Law (law@cygnus.com)
3772 * pa.c (emit_move_sequence): Fix SUBREG expression to
3773 use proper byte offset when extending a constant from
3776 2001-11-09 Jakub Jelinek <jakub@redhat.com>
3778 * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
3781 Thu Nov 8 18:00:55 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3783 * explow.c (convert_memory_address, case SUBREG): Only return
3784 inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
3786 2001-11-08 Richard Henderson <rth@redhat.com>
3788 * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
3789 (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
3790 (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
3792 2001-11-08 Aldy Hernandez <aldyh@redhat.com>
3794 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
3796 2001-11-08 Jakub Jelinek <jakub@redhat.com>
3798 * dwarf2out.c (debug_str_hash): New.
3799 (struct indirect_string_node): New.
3800 (struct dw_val_struct): Change type of val_str to it.
3801 (DEBUG_STR_SECTION_FLAGS): Define.
3802 (add_AT_string): Push string into hashtable, increment reference
3804 (AT_string): Return string from ht_identifier.
3805 (AT_string_form): New.
3806 (free_AT): For dw_val_class_str, just decrement reference counter.
3807 (size_of_string): Remove.
3808 (size_of_die): Use AT_string_form to decide what size the string
3810 (size_of_pubnames): Use strlen instead of size_of_string.
3811 (value_format): Use AT_string_form for dw_val_class_str.
3812 (output_die): Output DW_FORM_strp strings using
3813 dw2_asm_output_offset.
3814 (indirect_string_alloc, output_indirect_string): New.
3815 (dwarf2out_finish): Emit .debug_str strings if there are any.
3817 2001-11-08 Andreas Franck <afranck@gmx.de>
3819 * configure.in: Add AC_ARG_PROGRAM to support program name
3820 transformation with --program-prefix, --program-suffix and
3821 --program-transform-name.
3822 * configure: Regenerated.
3823 * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
3824 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
3825 GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
3826 PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
3827 program_transform_name the way suggested by autoconf.
3828 (GCC_TARGET_INSTALL_NAME): Define.
3829 (install-driver): Use the transformed target alias name.
3831 2001-11-08 Richard Henderson <rth@redhat.com>
3833 * config/mips/mips.c (save_restore_insns): Remove GP from the
3834 restore registers mask early instead of special casing it inside
3837 2001-11-08 Neil Booth <neil@daikokuya.demon.co.uk>
3839 * cp/decl.c (shadow_warning): New function.
3840 (pushdecl): Improve -Wshadow warnings. Don't give both a warning
3841 and an error when a block scope decl shadows a parameter.
3843 2001-11-08 Richard Henderson <rth@redhat.com>
3845 * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
3848 2001-11-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3850 * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
3851 to implement floating negation on processors prior to PA 2.0.
3853 2001-11-08 Jakub Jelinek <jakub@redhat.com>
3855 * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
3856 (USE_LINKONCE_INDIRECT): Define.
3857 (dw2_output_indirect_constant_1): Try to output indirect constants
3858 into linkonce sections if possible.
3859 (dw2_force_const_mem): Likewise. Register indirect_pool with GGC.
3860 (dw2_output_indirect_constants): Likewise.
3862 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
3864 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
3866 2001-11-07 Neil Booth <neil@daikokuya.demon.co.uk>
3868 * c-decl.c (pushdecl): Remove file and line.
3869 * c-typeck.c (pop_init_level): Remove size.
3871 2001-11-07 Aldy Hernandez <aldyh@redhat.com>
3873 * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
3876 * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
3877 (TARGET_ALTIVEC): New.
3878 (TARGET_SWITCHES): Add altivec.
3879 (FIRST_PSEUDO_REGISTER): Change to 109.
3880 (CALL_USED_REGISTERS): Same.
3881 (FIRST_ALTIVEC_REGNO): New.
3882 (LAST_ALTIVEC_REGNO): New.
3883 (ALTIVEC_REGNO_P): New.
3884 (UNITS_PER_ALTIVEC_WORD): New.
3885 (ALTIVEC_VECTOR_MODE): New.
3886 (FIXED_REGISTERS): Add altivec registers.
3887 (REG_ALLOC_ORDER): Same.
3888 (HARD_REGNO_NREGS): Adjust for altivec registers.
3889 (HARD_REGNO_MODE_OK): Same.
3890 (MODES_TIEABLE_P): Same.
3891 (REGISTER_MOVE_COST): Same.
3892 (REGNO_REG_CLASS): Same.
3893 (reg_class): Add ALTIVEC_REGS.
3894 (REG_CLASS_NAMES): Same.
3895 (REG_CLASS_CONTENTS): Same.
3896 (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
3897 (ALTIVEC_ARG_RETURN): New.
3898 (FUNCTION_VALUE): Handle VECTOR_TYPE.
3899 (LIBCALL_VALUE): Handle altivec vector modes.
3900 (VECTOR_MODE_SUPPORTED_P): New.
3901 (ALTIVEC_ARG_MIN_REG): New.
3902 (ALTIVEC_ARG_MAX_REG): New.
3903 (ALTIVEC_ARG_NUM_REG): New.
3904 (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
3905 (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
3906 (REGISTER_NAMES): Add altivec regs.
3907 (DEBUG_REGISTER_NAMES): Same.
3908 (ADDITIONAL_REGISTER_NAMES): Same.
3909 (rs6000_builtins): New.
3910 (MD_EXPAND_BUILTIN): New.
3911 (MD_INIT_BUILTINS): New.
3912 (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
3913 for AltiVec instructions.
3914 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
3915 (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
3917 (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
3918 (TARGET_SWITCHES): Add no-altivec.
3919 (DATA_ALIGNMENT): Align vectors to 128 bits.
3920 (TARGET_OPTIONS): Add abi= option.
3921 Add rs6000_abi_string extern.
3922 (LOCAL_ALIGNMENT): New.
3923 (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
3924 (MASK_ALTIVEC_ABI): New.
3925 (TARGET_ALTIVEC_ABI): New.
3926 (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
3928 (STACK_BOUNDARY): Adjust for altivec.
3929 (BIGGEST_ALIGNMENT): Same.
3930 (rs6000_args): Add vregno.
3931 (USE_ALTIVEC_FOR_ARG_P): New.
3932 (FIXED_REGISTERS): Add vrsave register.
3933 (CALL_USED_REGISTERS): Same.
3934 (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
3935 (VRSAVE_REGNO): New.
3936 (reg_class): Add VRSAVE_REGS.
3937 (REG_CLASS_NAMES): Same.
3938 (REG_CLASS_CONTENTS): Same.
3939 (REGNO_REG_CLASS): Same.
3941 * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
3942 (ABI_STACK_BOUNDARY): Same.
3943 (BIGGEST_ALIGNMENT): Same.
3944 (ADJUST_FIELD_ALIGN): Remove undef. Define anew.
3945 (ROUND_TYPE_ALIGN): Same.
3947 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
3950 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
3953 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
3956 * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
3957 (altivec_expand_builtin): New.
3958 (altivec_init_builtins): New.
3959 (TARGET_EXPAND_BUILTIN): New.
3960 (TARGET_INIT_BUILTINS): New.
3961 (rs6000_init_builtins): New.
3962 (struct builtin_description): New.
3964 (rs6000_reg_names): Add altivec registers.
3965 (alt_reg_names): Same.
3966 (secondary_reload_class): Altivec regs can hold altivec regs and
3968 (rs6000_emit_move): Force constants into memory for AltiVec moves.
3969 (print_operand): Add 'y' case for printing altivec memory
3971 (rs6000_legitimize_address): Legitimize vector addresses into
3973 (altivec_expand_binop_builtin): New.
3974 New string rs6000_current_abi.
3975 (rs6000_override_options): Call rs6000_parse_abi_options.
3976 (rs6000_parse_abi_options): New.
3977 (function_arg_boundary): Vector arguments must be 16
3979 (function_arg_advance): Handle vector arguments.
3980 (function_arg_partial_nregs): Same.
3981 (init_cumulative_args): Same.
3982 (function_arg): Same.
3984 * config/rs6000/rs6000.md (altivec_lvx): New.
3985 (type): Add altivec attribute.
3987 (*movv4si_internal): New.
3989 (*movv16qi_internal): New.
3991 (*movv8hi_internal1): New.
3993 (*movv4sf_internal1): New.
3994 (altivec_stvx): New.
4110 2001-11-07 Daniel Berlin <dan@cgsoftware.com>
4112 * Makefile.in (df.o): Add fibheap.h to dependencies.
4114 * df.h: Add prototypes for transfer functions, iterative_dataflow
4116 (enum df_flow_dir): New enum.
4117 (enum df_confluence_op): New enum.
4118 (struct df): Add inverse_rts_map.
4120 * df.c: Add sbitmap.h to the list of includes.
4121 (df_rd_global_compute): Removed.
4122 (df_ru_global_compute): Removed.
4123 (df_lr_global_compute): Removed.
4124 (df_rd_transfer_function): New function.
4125 (df_ru_transfer_function): New function.
4126 (df_lr_transfer_function): New function.
4127 (df_analyse_1): allocate/compute/free df->inverse_rts_map.
4128 Use iterative_dataflow_bitmap instead of df_*_global_compute.
4129 (iterative_dataflow_sbitmap): New function.
4130 (iterative_dataflow_bitmap): New function.
4132 2001-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
4134 * doc/gcc.texi: Move terminology and spelling conventions to
4135 htdocs/codingconventions.html.
4137 2001-11-07 Graham Stott <grahams@redhat.com>
4139 * cse.c (cse_insn): Emit BARRIER after unconditional jump.
4141 Wed Nov 7 13:33:34 CET 2001 Jan Hubicka <jh@suse.cz>
4143 * expmed.c (expand_mult): Force operand to register before computing
4145 * i386.c (x86_decompose_lea): New global vairable.
4146 * i386.h (x86_decompose_lea): Declare.
4147 (TARGET_DECOMPOSE_LEA): New macro.
4148 (RTX_COST): Handle leas properly.
4150 2001-11-06 Richard Henderson <rth@redhat.com>
4152 * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
4153 defined for a CONSTRUCTOR; don't check it.
4155 2001-11-06 Danny Smith <dannysmith@users.sourceforge.net>
4157 * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
4158 test for absolute pathnames.
4160 2001-11-06 Olivier Hainque <hainque@act-europe.fr>
4162 * unwind-dw2.c (execute_cfa_program): Evaluate call frame
4163 instructions up to the target pc inclusive.
4165 2001-11-06 Steve Christiansen <smc@us.ibm.com>
4167 * loop.c (loop_regs_scan): Don't invalidate PIC register.
4169 2001-11-06 Eric Christopher <echristo@redhat.com>
4171 * config/mips/mips.md(movdf_internal2): Add constraints for float
4172 to general register move.
4173 * config/mips/elf64.h: Add default ABI.
4175 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4177 * alias.c:: Include langhooks.h.
4178 * emit-rtl.c: Similarly.
4179 * toplev.c: Similarly.
4180 * tree-inline.c: Similarly.
4181 * langhooks-def.h: New, the old langhooks.h. Give the default
4182 hooks a common prefix.
4183 * langhooks.h: Contents extracted from toplev.h.
4184 * toplev.h: Move langhook stuff to langhooks.h.
4185 * langhooks.c: Give default hooks a common prefix.
4187 * c-lang.c: Include langhooks-def.h.
4188 * objc/objc-act.c: Similarly.
4189 * Makefile.in: Update.
4190 * objc/Make-lang.in: Update.
4192 2001-11-06 Joseph S. Myers <jsm28@cam.ac.uk>
4194 * doc/install.texi: Document that configure options not listed in
4195 this file are unsupported. Document --with-system-zlib.
4197 Tue Nov 6 09:21:34 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4199 * rtl.h (mem_for_const_double): New declaration.
4200 * varasm.c (mem_for_const_double): New function.
4201 * config/convex/convex.md (movdf): Use it.
4202 * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
4203 * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
4204 * config/m68k/m68kv4.h: Likewise.
4206 * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
4207 of new GP reg classes.
4209 * expr.c (store_field): When making temp object for unaligned
4210 component, set it to alias set 0.
4212 2001-11-06 Joseph S. Myers <jsm28@cam.ac.uk>
4214 * c-common.c (c_expand_expr_stmt): Apply default conversions to
4215 non-lvalue arrays if C99.
4216 * c-typeck.c (default_conversion): Split out code handling
4217 array-to-pointer and function-to-pointer conversions into a
4218 separate default_function_array_conversion function.
4219 (default_function_array_conversion): New function. Keep track of
4220 whether any NON_LVALUE_EXPRs were stripped. Return non-lvalue
4221 arrays unchanged outside C99 mode instead of giving an error for
4223 (build_component_ref): Use pedantic_non_lvalue when handling
4224 COMPOUND_EXPR. Don't handle COND_EXPR specially.
4225 (convert_arguments): Use default_function_array_conversion.
4226 (build_unary_op): For ADDR_EXPR, take a flag indicating whether
4228 (unary_complex_lvalue): Likewise.
4229 (internal_build_compound_expr): Use
4230 default_function_array_conversion. Apply default conversions to
4231 function in compound expression.
4232 (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
4233 Use default_function_array_conversion.
4234 * doc/extend.texi: Update documentation of subscripting non-lvalue
4238 2001-11-05 Zack Weinberg <zack@codesourcery.com>
4240 * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
4241 (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
4242 corresponding to the complete set of .po and .gmo files in
4243 the source directory's po subdir, modified by LINGUAS. Don't
4244 look at ALL_LINGUAS.
4245 * configure.in: Don't set ALL_LINGUAS.
4246 * configure: Regenerate.
4248 * Makefile.in (.po.gmo): Don't move into source directory.
4249 (.po.pox): Clarify comments.
4250 (install-po): Look for .gmo files in both srcdir and objdir;
4251 don't fail if a file is totally missing.
4252 (distclean): rmdir ada subdirectory too.
4254 2001-11-05 Geoffrey Keating <geoffk@redhat.com>
4256 * config/rs6000/rs6000.c (rs6000_select_section): Handle
4257 CONSTRUCTORs _correctly_.
4259 2001-11-05 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4261 * c-decl.c (delete_block): Remove.
4262 * c-tree.h (delete_block): Remove.
4264 2001-11-05 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4266 * cppexp.c (lex, parse_defined): Update warning about defined.
4268 2001-11-05 Geoffrey Keating <geoffk@redhat.com>
4270 * config/rs6000/rs6000.c (rs6000_select_section): Handle
4273 2001-11-05 Nick Clifton <nickc@cambridge.redhat.com>
4275 * config/arm/arm.c (arm_return_in_memory): Cope with
4276 int_size_in_bytes returning -1.
4278 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
4281 Mon Nov 5 16:15:25 CET 2001 Jan Hubicka <jh@suse.cz>
4283 * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
4284 remove unneeded dependencies;
4286 * cfglayout.c, cfglayout.h: New files; break out from ...
4287 * bb-reorder.c: ... here; Remove unneeded includes;
4289 2001-11-04 Alan Modra <amodra@bigpond.net.au>
4291 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
4293 2001-11-04 David Edelsohn <edelsohn@gnu.org>
4295 * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
4296 mode as well. Do not explicitly create intermediate regs.
4298 2001-11-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4300 * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
4301 (common_section): Delete unused variable.
4302 (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
4303 (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
4304 * arm-protos.h (arm_poke_function_name, aof_add_import,
4305 aof_delete_import): Const-ify.
4306 * arm.c (legitimize_pic_address): Wrap variables in the macro
4307 controlling their usage.
4308 (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
4309 (arm_poke_function_name, pic_chain, import, aof_add_import,
4310 aof_delete_import): Const-ify.
4311 * i386.c (ix86_osf_output_function_prologue): Const-ify.
4312 * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
4313 ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
4314 * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
4315 * i860/sysv3.h: Add missing comment closure.
4316 * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
4317 * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
4318 to symbolic_operand.
4320 * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
4321 (i960-*-*): Set tmake_file.
4322 (sparc86x-*-elf*): Fix typo in header name.
4324 * sched-rgn.c (schedule_insns): Delete unused variable.
4326 2001-11-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
4329 * c-typeck.c (lookup_field): Rework to return a chain down to
4330 the looked-up field.
4331 (build_component_ref): Use the new lookup_field to handle
4332 nested anonymous entities correctly.
4334 Sun Nov 4 11:53:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4336 * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
4337 Change parameters to gen_rtx_CONST_DOUBLE.
4338 (GEN_INT64, sparc_emit_set_const64): Likewise.
4339 * config/sparc/sparc.md (movdf split): Likewise.
4341 2001-11-03 Geoffrey Keating <geoffk@redhat.com>
4343 * unroll.c (calculate_giv_inc): Use find_last_value rather
4344 than just hoping the last instruction is the right SET.
4345 [Fixes 990604-1.c on stormy16.]
4347 * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
4348 library at all if -T is used.
4350 * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
4351 some uses of uninitialized variables in error cases.
4353 * config/stormy16/stormy16.c (stormy16_output_shift): Don't
4354 look at 'temp' if we won't be using it.
4356 * config/stormy16/stormy16.h (CONST_COSTS): Define.
4357 (RTX_COSTS): Define.
4358 (ADDRESS_COST): Define.
4359 (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
4361 * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
4363 * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
4364 stormy16_asm_output_mi_thunk.
4365 * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
4367 * config/stormy16/stormy16-protos.h
4368 (stormy16_asm_output_mi_thunk): New prototype.
4370 2001-11-04 Joseph S. Myers <jsm28@cam.ac.uk>
4372 * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
4373 FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
4374 caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
4375 cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
4376 sched-int.h, toplev.c, config/alpha/alpha.c,
4377 config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
4378 config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
4379 config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
4380 config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
4381 config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
4382 config/ns32k/ns32k.md, config/rs6000/rs6000.c,
4383 config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
4385 2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4387 * Makefile.in (dbxout.o): Depend on function.h.
4388 * collect2.c (is_in_list): Hide unused function.
4389 * dbxout.c: Include function.h.
4390 (source_label_number, dbxout_source_line, dbxout_source_file,
4391 dbxout_function_end, dbxout_begin_function): Wrap/move inside
4392 macros controlling usage.
4393 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
4394 * output.h (exports_section): Prototype.
4396 * convex.c (convex_output_function_prologue): Fix format specifier
4398 (asm_declare_function_name): Fix signed/unsigned warning.
4399 (print_operand): Fix format specifier warning.
4400 * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
4401 * dsp16xx-protos.h (uns_comparison_operator,
4402 num_1600_core_shifts): Prototype.
4403 * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
4404 (frame_size, frame_pointer_offset): Delete.
4405 (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
4406 Make static. Fix format specifier warnings.
4407 * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
4408 (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
4409 * dsp16xx.md: Add default case in switches.
4410 * fr30.h (IN_RANGE): Delete.
4411 * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
4412 * mcore-protos.h (mcore_output_cmov): Const-ify.
4413 * mcore.c (mcore_output_cmov): Likewise.
4414 * mcore.h (switch_to_section): Make static and prototype.
4415 * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
4416 unsigned>=0 warnings.
4417 * mn10300.h (REGNO_IN_RANGE_P): Likewise.
4418 * rs6000-protos.h (read_only_data_section,
4419 read_only_private_data_section): Prototype.
4420 * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
4421 * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
4422 * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
4424 2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4426 * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
4428 * final.c (final_scan_insn): Add brackets around body of if-stmt.
4429 * gcc.c (convert_filename): Add static prototype. Const-ify.
4430 Wrap variable in macros controlling its use.
4431 * output.h (sdata_section): Add prototype.
4433 * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
4434 (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
4435 * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
4436 (ASM_FILE_START): Const-ify.
4437 (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
4439 * c4x.md: Don't use the 'U' integer suffix.
4440 * clipper.md (clipper_movstr): Delete declaration.
4441 * d30v-protos.h (d30v_move_2words): Const-ify.
4442 (debug_stack_info): Add prototype.
4443 * d30v.c: Include "integrate.h".
4444 (d30v_function_arg_boundary, d30v_function_arg,
4445 d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
4446 signed/unsigned warnings.
4447 (d30v_print_operand_memory_reference, d30v_move_2words):
4449 * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
4450 * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
4451 * fr30.md: Const-ify.
4452 * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
4453 * i370.c (i370_label_scan, mvs_get_label): Make definition static.
4454 (mvs_get_label_page): Hide unused static function.
4455 * i860.c (current_function_original_name): Const-ify.
4456 * i860/sysv3.h (current_function_original_name): Likewise.
4457 * i860/sysv4.h (current_function_original_name): Likewise.
4458 * i960.md: Add default case in switches. Remove unused variable.
4459 * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
4460 * m32r.md: Const-ify.
4461 * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
4462 * m68hc11.c: Include "reload.h".
4463 (static_chain_reg, print_options, m68hc11_asm_file_start):
4465 * m68hc11.md: Delete unused variable. Const-ify. Add parens
4466 around & in comparison.
4467 * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
4468 * mn10200.c (shift_mode): Remove trailing comma.
4469 * mn10300-protos.h (output_tst): Const-ify.
4470 * mn10300.c (output_tst): Likewise.
4471 * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
4473 * pa-protos.h (output_ascii): Use regular char *, not unsigned.
4474 * pa.c (output_ascii): Likewise.
4475 * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
4476 * pdp11.md (expand_unop): Delete declarations.
4477 * pj-protos.h (pj_output_addsi3): Const-ify.
4478 * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
4479 pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
4480 unique_src_operand): Add prototypes.
4481 (pj_output_store_into_lval): Make definition static.
4482 (pj_function_incoming_arg): Don't use unary plus.
4483 (pj_output_addsi3): Const-ify.
4484 * romp.md (get_symref): Delete declarations.
4485 * v850-c.c (mark_current_function_as_interrupt): Don't return
4486 value from void function.
4487 * v850.c: Include "integrate.h".
4488 * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
4489 * vax-protos.h (const_section): Add prototype.
4491 2001-11-03 Aldy Hernandez <aldyh@redhat.com>
4493 * machmode.def: Add documentation for the seventh argument in
4496 2001-11-04 Hans-Peter Nilsson <hp@bitrange.com>
4498 * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
4500 <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
4501 <-melf>: Don't have markup for ELF acronym.
4503 2001-11-03 Hans-Peter Nilsson <hp@bitrange.com>
4505 * config.gcc (mmix-*-*): New target.
4506 * doc/invoke.texi: Document MMIX options.
4507 * doc/contrib.texi: Add note about MMIX port to my entry.
4508 * config/mmix/t-mmix: New file.
4509 * config/mmix/mmix.h: New file.
4510 * config/mmix/mmix-protos.h: New file.
4511 * config/mmix/mmix.c: New file.
4512 * config/mmix/mmix.md: New file.
4513 * config/mmix/crti.asm: New file.
4514 * config/mmix/crtn.asm: New file.
4516 2001-11-03 Kazu Hirata <kazu@hxi.com>
4518 * config/sparc/linux-aout.h: Fix comment formatting.
4519 * config/sparc/linux.h: Likewise.
4520 * config/sparc/linux64.h: Likewise.
4521 * config/sparc/lynx.h: Likewise.
4522 * config/sparc/pbd.h: Likewise.
4523 * config/sparc/sol2-sld-64.h: Likewise.
4524 * config/sparc/sol2.h: Likewise.
4525 * config/sparc/sparc.c: Likewise.
4526 * config/sparc/sparc.h: Likewise.
4527 * config/sparc/sparc.md: Likewise.
4528 * config/sparc/sunos4.h: Likewise.
4529 * config/sparc/vxsim.h: Likewise.
4530 * config/sparc/vxsparc.h: Likewise.
4531 * config/sparc/vxsparc64.h: Likewise.
4533 Sat Nov 3 10:37:56 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4535 * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
4536 reference to CONST_DOUBLE_MEM in comment.
4537 * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
4538 (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
4539 (init_emit_once): Don't clear CONST_DOUBLE_MEM.
4540 * function.c (pop_function_context_from): Don't call
4541 restore_varasm_status.
4542 * function.h (restore_varasm_status): Delete declaration.
4543 * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
4545 * rtl.def (CONST_DOUBLE): Update comment.
4546 * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
4547 (CONST_DOUBLE_CHAIN): Likewise.
4548 (CONST_DOUBLE_MEM): Delete.
4549 (gen_rtx_CONST_DOUBLE): Update parameters.
4550 * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
4551 Remove reference to CONST_DOUBLE_MEM.
4552 (const_alias_set): New variable.
4553 (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
4554 (immed_real_const_1): Adjust tests for 0, 1, and 2.
4555 Don't set CONST_DOUBLE_MEM.
4556 (clear_const_double_mem): Don't do anything with const_tiny_rtx.
4557 (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
4558 Put constant in const_alias_set.
4559 (struct pool_constant): ALIGN now unsigned.
4560 OFFSET now HOST_WIDE_INT.
4562 (restore_varasm_status): Deleted.
4563 (mark_pool_constant): Mark desc->rtl.
4564 (force_const_mem): Rework to store rtl in hash table,
4565 not CONST_DOUBLE_MEM.
4566 Put constant in const_alias_set.
4567 (find_pool_constant): Check desc->rtl.
4568 (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
4569 (init_varasm_once): Initialize const_alias_set.
4571 * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
4574 * reload.c (combine_reloads): Don't combine an output reload if there
4575 are other reloads around for part of the output.
4577 * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
4578 constant expression.
4579 (set_mem_decl): New function.
4580 * expr.h (set_mem_decl): New declaration.
4581 * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
4582 (output_asm_operand_names): Add tab.
4583 * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
4585 * builtins.c (get_memory_rtx): Properly set MEM alias set and
4588 2001-11-03 Joseph S. Myers <jsm28@cam.ac.uk>
4590 * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
4591 Use "invalid" instead of "illegal". Use @r in comments in
4594 2001-11-02 Neil Booth <neil@daikokuya.demon.co.uk>
4596 * c-decl.c (pushdecl): Move block inside if conditional to remove
4597 possibility of a segfault. Lookup block-level extern
4598 variables in enclosing scopes correctly.
4600 * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
4602 2001-11-02 Aldy Hernandez <aldyh@redhat.com>
4604 * expmed.c (store_bit_field): Use simplify_gen_subreg to make
4605 SUBREG so we avoid SUBREGing memory.
4607 * expmed.c (store_bit_field): Same.
4609 2001-11-02 DJ Delorie <dj@redhat.com>
4611 * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
4612 using FP registers for DImode mem-mem moves is acceptable.
4614 2001-11-02 Aldy Hernandez <aldyh@redhat.com>
4616 * builtins.c (apply_args_size): Handle vector arguments.
4617 (apply_result_size): Same.
4619 * machmode.def: Set WIDER mode field for all vector entries.
4621 2001-11-02 Graham Stott <grahams@redhat.com>
4623 * recog.c (decode_asm_operands): Check that the SRC is ASM_OPERANDS.
4625 2001-11-01 Eric Christopher <echristo@redhat.com>
4627 * config.gcc: Revert part of earlier patch.
4628 * config/mips/linux.h: Ditto.
4629 * df.c: Include tm_p.h to avoid warnings.
4630 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults. Adjust
4632 * config/mips/mips.c: Define mips_abi regardless.
4633 (mips_output_function_prologues): Add long casts for .frame
4635 (override_options): Allow use of ABI_32.
4637 2001-11-01 Kazu Hirata <kazu@hxi.com>
4639 * config/m68hc11/m68hc11.c: Fix comment formatting.
4640 * config/m68hc11/m68hc11.h: Likewise.
4641 * config/m68hc11/m68hc11.md: Likewise.
4643 2001-11-01 Neil Booth <neil@daikokuya.demon.co.uk>
4645 * c-typeck.c (default_conversion): Retain the original expression
4647 * gcc.dg/Wparentheses.c: New tests.
4649 2001-11-01 David S. Miller <davem@redhat.com>
4651 * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
4652 64-bit Sparc description more in line with reality.
4654 2001-11-01 Joseph S. Myers <jsm28@cam.ac.uk>
4656 * Makefile.in (GCOV_OBJS): Add version.o.
4657 * gcov.c: Include "version.h" and <getopt.h>.
4658 (gcov_version_string): Remove.
4659 (print_usage): Take a parameter to determine whether this is a
4660 call from --help or an error message. Give fuller output that
4661 follows the GNU Coding Standards for --help.
4662 (print_version): New function.
4664 (process_args): Use getopt_long. Support long options. Follow
4665 GNU Coding Standards for --help and --version.
4666 * doc/gcov.texi: Document long options.
4667 Addresses part of PR other/704.
4669 2001-11-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
4671 * pa.c (output_move_double): Fix typo in double load.
4673 2001-11-01 Kazu Hirata <kazu@hxi.com>
4675 * config/h8300/h8300.c (h8300_encode_label): Compute a string
4676 before passing it to ggc_alloc_string.
4678 2001-11-01 Kazu Hirata <kazu@hxi.com>
4680 * config/m68k/3b1.h: Fix comment formatting.
4681 * config/m68k/3b1g.h: Likewise.
4682 * config/m68k/a-ux.h: Likewise.
4683 * config/m68k/amix.h: Likewise.
4684 * config/m68k/apollo68.h: Likewise.
4685 * config/m68k/atari.h: Likewise.
4686 * config/m68k/aux-exit.c: Likewise.
4687 * config/m68k/ccur-GAS.h: Likewise.
4688 * config/m68k/crds.h: Likewise.
4689 * config/m68k/dpx2.h: Likewise.
4690 * config/m68k/dpx2g.h: Likewise.
4691 * config/m68k/hp310.h: Likewise.
4692 * config/m68k/hp320.h: Likewise.
4693 * config/m68k/isi.h: Likewise.
4694 * config/m68k/linux.h: Likewise.
4695 * config/m68k/lynx.h: Likewise.
4696 * config/m68k/m68k-psos.h: Likewise.
4697 * config/m68k/m68k.c: Likewise.
4698 * config/m68k/m68k.h: Likewise.
4699 * config/m68k/m68k.md: Likewise.
4700 * config/m68k/m68kelf.h: Likewise.
4701 * config/m68k/m68kv4.h: Likewise.
4702 * config/m68k/mot3300.h: Likewise.
4703 * config/m68k/news.h: Likewise.
4704 * config/m68k/next.h: Likewise.
4705 * config/m68k/pbb.h: Likewise.
4706 * config/m68k/plexus.h: Likewise.
4707 * config/m68k/sgs.h: Likewise.
4708 * config/m68k/sun3.h: Likewise.
4709 * config/m68k/tower.h: Likewise.
4710 * config/m68k/vxm68k.h: Likewise.
4712 2001-10-31 DJ Delorie <dj@redhat.com>
4714 * config/mips/mips.h (mips_cache_flush_func): Prototype.
4715 (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
4716 (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
4717 * config/mips/mips.c (mips_cache_flush_func): New.
4718 * doc/invoke.texi: Document the new options.
4720 2001-10-31 Hans-Peter Nilsson <hp@axis.com>
4722 * config.gcc (cris-*-linux*, tm_file): Rearrange order.
4723 * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
4725 * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
4727 * config/cris/cris.c: Include output.h after tree.h but before
4730 2001-10-31 Zack Weinberg <zack@codesourcery.com>
4732 * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
4733 (INTL_SUBDIRS): Just intl.
4734 (.SUFFIXES): Add .gmo .po .pox.
4735 (native): Also depend on build-@POSUB@.
4736 (intl.all, intl.install): Depend on config.h and things it includes.
4737 (po-generated): New target; depend on c-parse.c and tradcif.c.
4738 (install-normal): Also depend on install-@POSUB@.
4739 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
4740 (build-, install-, build-po, update-po, install-po,
4741 .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
4743 * aclocal.m4: Prefix each entry in CATALOGS with "po/"
4744 * configure.in: Don't munge XGETTEXT. Don't generate
4746 * configure: Regenerate.
4748 * exgettext: Delete.
4749 * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
4750 * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
4752 2001-10-31 Kazu Hirata <kazu@hxi.com>
4754 * config/h8300/h8300.md (two anonymous patterns): New.
4756 2001-10-31 Aldy Hernandez <aldyh@redhat.com>
4758 * tree.h (tree_index): Add support for V16QI and V8HI.
4759 (V8HI_type_node): New.
4760 (V16QI_type_node): New.
4762 * tree.c (build_common_tree_nodes_2): Same.
4764 * c-common.c (type_for_mode): Same.
4766 2001-10-31 Kazu Hirata <kazu@hxi.com>
4768 * config/i386/att.h: Fix comment formatting.
4769 * config/i386/beos-elf.h: Likewise.
4770 * config/i386/bsd.h: Likewise.
4771 * config/i386/bsd386.h: Likewise.
4772 * config/i386/crtdll.h: Likewise.
4773 * config/i386/cygwin.asm: Likewise.
4774 * config/i386/cygwin.h: Likewise.
4775 * config/i386/djgpp.h: Likewise.
4776 * config/i386/freebsd-aout.h: Likewise.
4777 * config/i386/freebsd.h: Likewise.
4778 * config/i386/gas.h: Likewise.
4779 * config/i386/i386-interix.h: Likewise.
4780 * config/i386/i386-protos.h: Likewise.
4781 * config/i386/i386.c: Likewise.
4782 * config/i386/i386.h: Likewise.
4783 * config/i386/i386.md: Likewise.
4784 * config/i386/i386elf.h: Likewise.
4785 * config/i386/interix.c: Likewise.
4786 * config/i386/isc.h: Likewise.
4787 * config/i386/isccoff.h: Likewise.
4788 * config/i386/iscdbx.h: Likewise.
4789 * config/i386/linux.h: Likewise.
4790 * config/i386/lynx.h: Likewise.
4791 * config/i386/mingw32.h: Likewise.
4792 * config/i386/netbsd-elf.h: Likewise.
4793 * config/i386/next.h: Likewise.
4794 * config/i386/osf1elf.h: Likewise.
4795 * config/i386/osfrose.h: Likewise.
4796 * config/i386/sco5.h: Likewise.
4797 * config/i386/seq-gas.h: Likewise.
4798 * config/i386/seq-sysv3.h: Likewise.
4799 * config/i386/sequent.h: Likewise.
4800 * config/i386/sol2.h: Likewise.
4801 * config/i386/sun386.h: Likewise.
4802 * config/i386/uwin.asm: Likewise.
4803 * config/i386/uwin.h: Likewise.
4804 * config/i386/vxi386.h: Likewise.
4805 * config/i386/win32.h: Likewise.
4806 * config/i386/winnt.c: Likewise.
4807 * config/i386/xm-cygwin.h: Likewise.
4808 * config/i386/xm-mingw32.h: Likewise.
4810 2001-10-31 Kazu Hirata <kazu@hxi.com>
4812 * builtins.def: Fix comment typos.
4813 * config/alpha.c: Likewise.
4814 * config/arm/arm.c: Likewise.
4815 * config/avr/avr.h: Likewise.
4816 * config/d30v/d30v.c: Likewise.
4817 * config/d30v/d30v.h: Likewise.
4818 * config/d30v/d30v.md: Likewise.
4819 * config/dsp16xx/dsp16xx.c: Likewise.
4820 * config/fr30/fr30.c: Likewise.
4821 * config/fr30/fr30.md: Likewise.
4822 * config/i386/i386.c: Likewise.
4823 * config/i860/i860.c: Likewise.
4824 * config/i960/i960.c: Likewise.
4825 * config/ia64/ia64.c: Likewise.
4826 * config/mips/mips.c: Likewise.
4827 * config/pa/pa.c: Likewise.
4828 * config/rs6000/rs6000.c: Likewise.
4829 * config/s390/s390.c: Likewise.
4830 * config/sparc/sparc.c: Likewise.
4832 2001-10-30 Kazu Hirata <kazu@hxi.com>
4834 * config/mips/elf.h: Fix comment formatting.
4835 * config/mips/elf64.h: Likewise.
4836 * config/mips/iris5.h: Likewise.
4837 * config/mips/iris5gas.h: Likewise.
4838 * config/mips/iris6.h: Likewise.
4839 * config/mips/isa3264.h: Likewise.
4840 * config/mips/linux.h: Likewise.
4841 * config/mips/mips.c: Likewise.
4842 * config/mips/mips.h: Likewise.
4843 * config/mips/mips.md: Likewise.
4844 * config/mips/mips16.S: Likewise.
4845 * config/mips/netbsd.h: Likewise.
4846 * config/mips/osfrose.h: Likewise.
4847 * config/mips/r3900.h: Likewise.
4848 * config/mips/sni-svr4.h: Likewise.
4849 * config/mips/svr4-t.h: Likewise.
4850 * config/mips/ultrix.h: Likewise.
4852 2001-10-30 Daniel Berlin <dan@cgsoftware.com>
4854 * bitmap.c (bitmap_element_free): Don't forget to update head->indx
4855 when we update head->current.
4857 2001-10-30 Neil Booth <neil@daikokuya.demon.co.uk>
4859 * tree.c (id_string_size): Remove.
4860 (dump_tree_statistics): Update.
4861 * toplev.c (compile_file): If dumping stats, dump tree stats too.
4863 Tue Oct 30 19:00:43 CET 2001 Jan Hubicka <jh@suse.cz>
4865 * sched-rgn.c (schedule_insns): Fix comment.
4867 2001-10-30 Zack Weinberg <zack@codesourcery.com>
4869 * configure.in: Correct previous change: don't assume that
4870 gas's version number _isn't_ the last thing on the line, or
4871 isn't the only number on the line, either.
4872 * configure: Regenerate.
4874 2001-10-30 Kazu Hirata <kazu@hxi.com>
4876 * cfgcleanup.c: Fix a comment typo.
4878 2001-10-30 Kazu Hirata <kazu@hxi.com>
4880 * alias.c: Fix comment formatting.
4881 * recog.c: Likewise.
4882 * config/cris/cris.c: Likewise.
4883 * config/cris/cris.h: Likewise.
4884 * config/i960/i960.c: Likewise.
4885 * config/i960/i960.h: Likewise.
4887 2001-10-30 Kazu Hirata <kazu@hxi.com>
4889 * config/arm/arm.c: Fix a comment typo.
4890 * config/arm/arm.h: Likewise.
4891 * config/ia64/ia64.c: Likewise.
4893 2001-10-30 Jakub Jelinek <jakub@redhat.com>
4895 * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
4896 REG_EQUIV notes for ASM_OPERANDS. Return the new note (if any).
4897 * rtl.h (set_unique_reg_note): Change return value.
4898 * gcse.c (try_replace_reg): Use set_unique_reg_note.
4899 * cse.c (cse_insn): Likewise.
4900 * expr.c (emit_move_insn): Likewise.
4901 * explow.c (force_reg): Likewise.
4902 * local-alloc (update_equiv_regs): Likewise.
4903 * loop.c (move_moveables, load_mems): Likewise.
4904 * reload (find_reloads): Likewise.
4906 2001-10-30 Paolo Bonzini <bonzini@gnu.org>
4909 * c-decl.c (parmlist_tags_warning, start_struct,
4910 check_for_loop_decls): Separate messages for struct, union and
4911 enum cases to allow for languages in which they have different
4913 * c-format.c (scanf_flag_specs): Separate short and long name of
4914 the assignment suppression feature.
4915 (check_format_types): Localize "pointer" and "different types"
4917 * c-lex.c (lex_number): Localize "an unsigned long int" and
4919 (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
4921 * c-typeck.c (build_unary_up): Separate messages for increment and
4922 decrement cases to allow for languages in which they use different
4923 articles. Localize the strings "increment" and "decrement" in one
4926 Tue Oct 30 11:08:11 CET 2001 Jan Hubicka <jh@suse.cz>
4928 * lcm.c (optimize_mode_switching): Do not rebuild liveness information
4929 when no changes has been made.
4931 * gcse.c (reg_set_bitmap): Turn into reg_set.
4932 (modify_mem_list_set, canon_modify_mem_list_set)
4933 (clear_modify_mem_tables, free_modify_mem_tables): New.
4934 (gcse_main); Use free_modify_mem_tables.
4935 (free_gcse_mem): Likewise; free the bitmaps.
4936 (alloc_gcse_main): Initialize the bitmaps.
4937 (canon_list_insert): Set canon_modify_mem_list_set.
4938 (record_last_mem_set_info): Likewise; set modify_mem_list_set.
4939 (compute_hash_table): Use clear_modify_mem_tables.
4940 (reset_opr_set_tables): Likewise.
4941 (oprs_not_set_p): reg_set_bitmap is regset.
4942 (mark_set, mark_clobber): Likewise.
4944 * df.h (DF_EQUIV_NOTES): New constant.
4945 (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
4948 * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
4949 (init_regions, schedule_insns): Conditionalize the checking
4950 code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
4952 Tue Oct 30 11:02:31 CET 2001 Jan Hubicka <jh@suse.cz>
4954 * i386.md (movti_rex64 splitter): Fix condition.
4956 2001-10-29 Zack Weinberg <zack@codesourcery.com>
4958 * configure.in: Do not assume that gas's version number is the
4959 last thing on the first line of as --version output.
4960 * configure: Regenerate.
4962 * tradcpp.c: Include intl.h. Rename WARNING, ERROR, FATAL to
4963 MT_WARNING, MT_ERROR, MT_FATAL.
4964 (main): Call gcc_init_libintl.
4965 (v_message): Call gettext on msgid and "warning: "
4966 * tradcif.y: Include intl.h.
4967 (yyerror): Make parameter definition consistent with
4968 prototype. Call gettext on msgid argument.
4970 2001-10-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4972 * combine.c (num_sign_bit_copies): Avoid signed/unsigned
4975 * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
4977 Mon Oct 29 19:22:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4979 * reload1.c (eliminate_regs): Test for reg_renumber being allocated
4980 before referencing it.
4982 2001-10-26 DJ Delorie <dj@redhat.com>
4984 * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
4985 override -G, and force -G0.
4987 2001-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
4989 * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
4990 FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
4991 c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
4992 timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
4994 * loop.h (struct induction): Rename ext_dependant to
4996 * loop.c: Change all uses.
4997 (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
4998 All callers changed.
4999 * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
5001 2001-10-29 Joseph S. Myers <jsm28@cam.ac.uk>
5003 * c-parse.in (expr_no_commas, primary), c-typeck.c
5004 (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
5006 2001-10-29 David Edelsohn <edelsohn@gnu.org>
5008 Undo assemble_name change in earlier patch.
5010 Mon Oct 29 21:11:40 2001 Nicola Pero <n.pero@mi.flashnet.it>
5012 * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
5013 determining the type of the receiver, do not check that TREE_CODE
5014 of receiver is CALL_EXPR before calling receiver_is_class_object().
5015 (receiver_is_class_object): For the GNU runtime: recognize
5016 the case that the receiver is self in a class method context.
5017 Check that TREE_CODE of receiver is CALL_EXPR when checking that
5018 the receiver is a call to objc_get_class.
5020 2001-10-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
5022 * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
5024 Mon Oct 29 07:23:33 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5026 * Makefile.in (OBJS): Put all files in alphabetical order.
5028 * dwarf2out.c (add_const_value_attribute): Fix error in last
5031 Mon Oct 29 12:43:06 CET 2001 Jan Hubicka <jh@suse.cz>
5033 * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
5034 * cfgcleanup.c (merge_blocks): Update the life flag after merging;
5036 * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
5037 (life_analysis): call purge_all_dead_edges after deleting noops.
5038 (delete_noop_move): Do not purge CFG.
5039 * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
5041 2001-10-28 David Edelsohn <edelsohn@gnu.org>
5043 * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
5044 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
5045 (ASM_GLOBALIZE_LABEL): Use assemble_name.
5046 (ASM_OUTPUT_COMMON): Likewise.
5047 * config/rs6000/rs6000.c (print_operand): Use assemble_name.
5048 (rs6000_output_function_epilogue): Likewise.
5049 (output_mi_thunk): Fix typo.
5050 (rs6000_output_symbol_ref): Use assemble_name.
5051 (output_toc): Likewise.
5052 * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
5053 * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
5054 assemble_name calls STRIP_NAME_ENCODING.
5055 (ASM_OUTPUT_LABEL): Use assemble_name.
5056 (ASM_GLOBALIZE_LABEL): Likewise.
5057 (ASM_DECLARE_FUNCTION_NAME): Likewise.
5058 (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op. Use assemble_name.
5059 (ASM_OUTPUT_LOCAL): Likewise.
5061 Sun Oct 28 15:45:16 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5063 * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
5064 (expand_builtin_apply, expand_builtin_return): Likewise.
5065 (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
5067 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
5069 * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
5070 ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
5071 c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
5072 configure, configure.in, except.c, except.h, flow.c, function.c,
5073 gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
5074 predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
5075 sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
5076 unroll.c: Fix spelling errors.
5078 * doc/extend.texi, doc/invoke.texi: Fix spelling.
5080 * doc/gcc.texi: Document use of "dependent" and American spelling.
5082 Sun Oct 28 17:05:36 CET 2001 Jan Hubicka <jh@suse.cz>
5084 * expr.c (emit_group_load): Support CONCATs by storing them to memory
5087 Sun Oct 28 09:59:54 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5089 * expr.c (store_constructor_field): Only call adjust_address on MEM.
5091 Sun Oct 28 16:48:09 CET 2001 Jan Hubicka <jh@suse.cz>
5093 * genrecog.c (write_switch): Output if before switch for
5094 DT_elt_zero_wide_safe.
5096 2001-10-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5098 * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
5099 * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
5100 (FUNCTION_PROFILER): Const-ify.
5101 * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
5102 (eliminate_constant_term, assemble_name, output_addr_const):
5103 Remove declarations.
5104 (ptr_half_pic_address_p, half_pic_hash): Prototype.
5105 (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
5106 half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
5107 * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
5108 (half_pic_declare, half_pic_external): Const-ify.
5109 * toplev.c: Include "halfpic.h".
5111 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
5113 * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
5114 config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
5115 config/i386/i386.c, config/i386/i386-interix.h,
5116 config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
5117 config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
5118 config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
5119 config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
5120 config/sparc/sparc.c, config/m68hc11/m68hc11.c,
5121 config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
5122 config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
5125 * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
5126 ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
5127 c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
5128 collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
5129 haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
5130 regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
5131 system.h, toplev.c: Fix spelling errors.
5133 Sat Oct 27 17:32:04 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5135 * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
5137 * dwarf2out.c (reg_number): Abort if pseudo.
5138 (reg_loc_descriptor): Return 0 if pseudo.
5139 (is_based_loc): Return 0 if pseudo.
5140 (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
5142 (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
5143 (loc_descriptor): Return 0 if can't find location and handle 0
5144 return from recursive calls.
5145 (loc_descriptor_from_tree): Likewise.
5146 Fix handling of indirect.
5147 Also return 0 for PLACEHOLDER_EXPR.
5148 Clean up COMPONENT_REF cases.
5149 (add_AT_location_descriptor): Simplify, but handle 0 return from
5151 (add_const_value_attribute): Avoid shift count warning.
5152 (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
5153 Set comp_unit_die as context if not in function.
5155 * config/mips/mips-protos.h: Break up long lines.
5156 Remove needless #ifdef/#endif blocks.
5157 Don't declare functions declared in file made by genpreds or recog.h.
5158 * config/mips/mips.c (mips_output_function_prologue): TSIZE
5159 is now HOST_WIDE_INT; delete unneeded casts.
5160 * config/mips/mips.h: Don't use #elif.
5162 * expr.c (stor_constructor_field): Always call adjust_address.
5163 Copy TARGET before changing its alias set.
5164 (store_field): Likewise, for TO_RTX.
5165 (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
5167 (safe_from_p, case ADDR_EXPR): Properly check for conflict.
5168 (find_placeholder): Return 0 if can't find object.
5169 (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
5172 Sat Oct 27 16:31:23 CEST 2001 Jan Hubicka <jh@suse.cz>
5174 * ifcvt.c (if_convert): Call clear_aux_for_blocks.
5176 Sat Oct 27 12:12:09 CEST 2001 Jan Hubicka <jh@suse.cz>
5178 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
5179 merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
5180 (merge_blocks): Properly udpate life after making edge nonfallthru.
5181 * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
5183 2001-10-26 Kazu Hirata <kazu@hxi.com>
5185 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
5187 2001-10-26 Neil Booth <neil@daikokuya.demon.co.uk>
5189 * c-typeck.c (convert_arguments): When comparing for enumeral
5190 type equality, use TYPE_MAIN_VARIANT.
5191 * gcc.dg/Wconversion.c: New tests.
5193 2001-10-26 Kazu Hirata <kazu@hxi.com>
5195 * s390/s390.c: Fix comment typos.
5196 * s390/s390.h: Likewise.
5197 * s390/s390.md: Likewise.
5199 2001-10-26 Alexandre Oliva <aoliva@redhat.com>
5201 * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
5202 (walk_tree): Use it for tail calls where appropriate.
5204 2001-10-26 Alexandre Oliva <aoliva@redhat.com>
5206 * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
5207 non-local label_refs.
5209 2001-10-26 Kazu Hirata <kazu@hxi.com>
5211 * config/h8300/h8300.md (4 anonymous patterns): New.
5213 2001-10-26 Kazu Hirata <kazu@hxi.com>
5215 * config/h8300/h8300.c (get_shift_alg): Clean up. Return the
5216 algorithm through the shift_info structure.
5217 (emit_a_shift): Update the use of get_shift_alg.
5219 2001-10-27 Daniel Berlin <dan@cgsoftware.com>
5221 * sched-rgn.c: Remove bitset typedef.
5222 Change bitset to sbitmap in prototypes / variable types.
5224 Remove edgeset_bits.
5225 Remove edgeset_size.
5226 s/BITSET_ADD/SET_BIT/g
5227 s/BITSET_INVERT/sbitmap_ones/g
5228 s/BITSET_INTER/sbitmap_a_and_b/g
5229 s/BITSET_UNION/sbitmap_a_or_b/g
5230 s/BITSET_DIFFER/sbitmap_difference/g
5231 s/bitset_member/TEST_BIT/g
5232 (BITSET_*): Removed.
5233 (bitset_member): Removed.
5234 (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
5235 EXECUTE_IF_SET_IN_SBITMAP.
5236 (split_edges): Rewrite, use sbitmap functions instead of bitset
5238 (schedule_region): Allocate/free sbitmaps, rather than bitsets.
5240 2001-10-26 Andreas Schwab <schwab@suse.de>
5242 * reload1.c (emit_input_reload_insns): Fix parens in last
5243 (undocumented) change that was supposed to change only whitespace.
5245 Fri Oct 26 07:18:08 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5247 * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
5249 * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
5252 2001-10-26 Andreas Jaeger <aj@suse.de>
5254 * flow.c (clear_log_links): Remove unused variable.
5255 * cfgcleanup.c (cleanup_cfg): Likewise.
5257 2001-10-26 Alexandre Oliva <aoliva@redhat.com>
5259 * tree-inline.c (remap_decl): Don't copy size and size_unit here.
5260 (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
5262 2001-10-26 Richard Henderson <rth@redhat.com>
5264 * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
5265 rename PV_REG to R27_REG.
5266 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
5267 (REG_CLASS_FROM_LETTER): Update.
5268 (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
5269 * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
5270 (udivsi3, modsi3, umodsi3): Likewise.
5271 (divdi3, udivdi3, moddi3, umoddi3): Likewise.
5273 2001-10-26 Richard Henderson <rth@redhat.com>
5275 * cfg.c (clear_aux_for_blocks): Split out of ...
5276 (free_aux_for_blocks): here.
5277 (clear_aux_for_edges): Split from ...
5278 (free_aux_for_edges): here.
5279 * basic-block.h: Declare them.
5280 * lcm.c (compute_antinout_edge): Use them.
5281 (compute_laterin, compute_available, compute_nearerout): Likewise.
5282 (optimize_mode_switching): Likewise.
5284 2001-10-26 Richard Henderson <rth@redhat.com>
5286 * Makefile.in (unstage*): Remove as, ld, collect-ld before
5287 moving everything back to the main build directory.
5289 2001-10-26 Christopher Faylor <cgf@redhat.com>
5291 * config/i386/cygwin.h: Search target specific include directory, if
5294 2001-10-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5296 * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
5297 of macro guards. Fix #endif comment.
5299 * output.h (default_exception_section, default_eh_frame_section):
5300 Move prototypes outside of macro guard.
5302 * crtstuff.c: Fix #endif comment.
5304 Thu Oct 25 12:21:58 2001 Jeffrey A Law (law@cygnus.com)
5306 * doc/md.texi (movMM): Clarify semantics of storing into a
5307 non-paradoxical SUBREG.
5309 2001-10-25 Zack Weinberg <zack@codesourcery.com>
5311 * langhooks.c (lang_hook_default_clear_binding_stack): New.
5312 (lang_hook_default_get_alias_set): Move next to other alias
5314 * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
5315 (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
5316 (LANG_HOOKS_INITIALIZER): Add it.
5317 * toplev.h (struct lang_hooks): Add clear_binding_stack.
5318 * toplev.c (compile_file): Call lang_hooks.clear_binding_stack
5319 instead of a loop calling poplevel.
5321 2001-10-25 Nick Clifton <nickc@cambridge.redhat.com>
5323 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
5324 occurrences of #elif with #if...#endif.
5326 2001-10-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5328 * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
5330 Thu Oct 25 08:46:06 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5332 * alias.c (can_address_p): No longer static.
5333 * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
5334 Return 0 if all parameters are default values.
5335 (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
5336 (adjust_address_1): Try harder to compute a size.
5337 * expr.c (expand_assignment, store_constructor): If can't address,
5338 set MEM_KEEP_ALIAS_SET_P.
5339 (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
5340 (store_field): Likewise.
5341 (store_constructor): Simplify call to store_constructor_field.
5342 * expr.h (can_address_p): New declaration.
5343 * gensupport.c (gen_rtx_CONST_INT): New function.
5344 * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
5345 (MEM_SIZE): Get size from mode, if not set and not BLKmode.
5346 (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
5348 * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
5350 2001-10-24 Christopher Faylor <cgf@redhat.com>
5352 * config/i386/cygwin.h: Use proper path for mingw crt files when
5355 Wed Oct 24 18:43:42 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5357 * dwarf2out.c (file_info_cmp): Always return consistent results.
5359 2001-10-24 Roger Sayle <roger@eyesopen.com>
5361 * stmt.c (expand_end_case): Index jumptables from zero for
5362 suitably small values of minval.
5364 2001-10-24 Jakub Jelinek <jakub@redhat.com>
5366 * stor-layout.c (place_union_field): If any field was aligned with
5367 attribute aligned, set record type's TYPE_USER_ALIGN.
5368 (place_field): Likewise.
5369 (finalize_record_size): Don't clear TYPE_USER_ALIGN.
5370 (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
5372 2001-10-24 Zack Weinberg <zack@codesourcery.com>
5374 * c-common.h (struct c_common_identifier): Remove rid_code field.
5375 (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
5377 * c-typeck.c (constructor_designated): New local flag.
5378 (struct constructor_stack): Add "designated" field to match.
5379 (start_init): Clear it.
5380 (really_start_incremental_init, push_init_level): Push and
5382 (pop_init_level): Pop it.
5383 (set_designator): Set it.
5385 (pop_init_level): Suppress "missing initializer" warnings if
5386 constructor_designated is true.
5387 (process_init_element): Suppress warning about union
5388 initialization under traditional C, if constructor_designated
5391 Wed Oct 24 15:35:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5393 * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
5396 Wed Oct 24 13:26:12 2001 Jeffrey A Law (law@cygnus.com)
5398 * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
5400 2001-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5402 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
5403 the node was already a set to a constant.
5405 Wed Oct 24 12:41:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5407 * emit-rtl.c (set_mem_attributes): Fix typo in last change.
5408 * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
5410 2001-10-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5412 * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
5413 (ASM_OUTPUT_ASCII): Const-ify. Fix signed/unsigned warning.
5414 (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
5415 * s390.c (s390_final_chunkify): Don't use string concatenation.
5416 (s390_function_prologue, s390_function_epilogue): Const-ify.
5417 * s390.h (FUNCTION_PROFILER): Remove unused variable.
5419 2001-10-24 Jakub Jelinek <jakub@redhat.com>
5421 * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
5424 2001-10-23 Stan Shebs <shebs@apple.com>
5426 * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
5427 -traditional-cpp in first-stage compilation.
5429 Tue Oct 23 21:45:40 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5431 * gensupport.c (target_flags): Add.
5433 Tue Oct 23 13:05:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.
5435 * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
5437 (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
5438 * except.c (expand_builtin_frob_return_addr): Likewise.
5439 (expand_builtin_eh_return): Likewise.
5440 * stmt.c (expand_computed_goto): Likewise.
5441 * explow.c (memory_address): Likewise.
5442 (allocate_dynamic_stack_space): Clean up predicate testing.
5443 (probe_stack_range): Convert SIZE to Pmode.
5444 * calls.c (rtx_for_function_call): Only call convert_memory_address
5446 Pass function call operand as ptr_mode, not Pmode.
5447 * expr.c (expand_assignment): Clean up calls to convert_memory
5448 address by only doing so when needed and making offsets Pmode.
5449 (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
5450 * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
5451 is in Pmode, not ptr_mode.
5453 2001-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5455 * darwin-protos.h (constructor_section, destructor_section,
5456 mod_init_section, mod_term_section): Prototype.
5457 * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
5459 * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
5461 (SECTION_FUNCTION): Prototype `FUNCTION'. Delete
5462 objc_section_init declaration.
5463 (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
5464 (objc_section_init, try_section_alias): Make static.
5465 (alias_section): Make static and hide unused function.
5466 (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
5468 Tue Oct 23 13:05:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5470 * alias.c (can_address_p): Compnonents are not addressable if
5471 the containing type has alias set 0.
5472 (get_alias_set): Rework to use STRIP_NOPS.
5473 Only call front-end routine on object, type, or object with
5474 NOPs stripped, not inner values.
5475 Use language hook to call front-end routine.
5476 * builtins.c (get_memory_rtx): Always call set_mem_attributes.
5477 (expand_builtin_apply): Call set_mem_align on MEMs we make.
5478 Don't pass alignment to emit_block_move.
5479 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
5480 (expand_builtin_memset): Likewise, but for clear_storage.
5481 * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
5482 and remove C++ specific parts.
5483 * c-common.h (c_common_get_alias_set): Add declaration.
5484 * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
5485 * calls.c (emit_call_1): Fix typo in sibcall_pop case.
5486 (save_fixed_argument_area): Call set_mem_align.
5487 Remove alignment in call to emit_block_move.
5488 (emit_library_call_value_1, store_one_arg): Likewise.
5489 (target_for_arg): Remove; disabled long ago.
5490 * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
5491 once and similar cleanups.
5492 (offset_address): Use proper introductory comment.
5493 * expr.c (emit_block_move): Use alignment from that of MEM args, not
5494 from explicit operand; all callers changed.
5495 (clear_storage): Likewise.
5496 (expand_assignment): Don't call set_mem_alias_set on to_rtx.
5497 (store_field): Remove kludge on alias set used for to_rtx.
5498 (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
5499 (expand_expr_unaligned): Call set_mem_attributes instead of
5501 * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
5502 * function.c (assign_stack_temp_for_type): Set MEM alignment.
5503 (expand_function_end): Track MEM attributes of trampolines.
5504 * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
5505 * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
5506 attributes from original.
5507 * langhooks.c (lang_hook_default_get_alias_set): New function.
5508 (hook_get_alias_set_0): New function.
5509 * langhooks.h (hook_get_alias_set_0): New declaration.
5510 (lang_hook_default_get_alias_set): Likewise.
5511 (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
5512 * reload1.c (alter_reg): Use adjust_address_nv.
5513 * rtl.c (get_mode_alignment): Moved to here.
5514 * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
5515 change default if unknown from 1 to BITS_PER_UNIT.
5516 * stor-layout.c (get_mode_alignment): Remove from here.
5517 * toplev.h (struct lang_hoks): Add get_alias_set field.
5518 * tree.h (lang_get_alias_set): Delete declaration.
5519 * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
5520 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
5521 (ix86_va_arg): Likewise.
5522 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
5523 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
5524 * config/sparc/sparc.c (sparc_va_arg): Likewise.
5525 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
5526 (expand_block_move_mem): Remove dead code.
5528 2001-10-22 Neil Booth <neil@daikokuya.demon.co.uk>
5530 * c-common.c (warn_div_by_zero): New.
5531 * c-common.h (warn_div_by_zero): New.
5532 * c-decl.c (c_decode_option): Take it on the command line.
5533 * c-typeck.c (build_binary_op): Warn about division by zero.
5534 * doc/invoke.texi: Document the new command line option, fix
5535 documentation of -Wmultichar.
5536 * testsuite/gcc.dg/divbyzero.c: New tests.
5537 * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
5539 Tue Oct 23 15:30:23 CEST 2001 Jan Hubicka <jh@suse.cz>
5541 * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
5543 * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
5544 to avoid update_life_info call.
5545 * basic-block.h (CLEANUP_UPATE_LIFE): Define.
5546 * cfgcleanup.c (bb_flags): New enum.
5547 (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
5548 (notice_new_block, update_forwarder_flag): New functions.
5549 (try_simplify_condjump): Use FORWARDER_BLOCK_P.
5550 (try_forward_edges): Likewise; update flags.
5551 (merge_blocks): Likewise.
5552 (outgoing_edges_match): Likewise.
5553 (try_crossjump_to_edge): Likewise.
5554 (try_optimize_cfg): Likewise; initialize and clear the flags;
5555 recompute life info if needed.
5556 (cleanup_cfg): No need to clear aux pointers.
5558 2001-10-23 Alexandre Oliva <aoliva@redhat.com>
5560 * config/i386/i386.c (override_options): Default to minimum
5561 stack alignment when optimizing for code size.
5562 * doc/invoke.texi (-mpreferred-stack-boundary): Document the
5565 * config/i386/i386.c (override_options): Set upper limit of
5566 -mpreferred-stack-boundary to 12.
5568 2001-10-22 Zack Weinberg <zack@codesourcery.com>
5570 * recog.c (peephole2_optimize): Add default case to switch.
5572 2001-10-23 Joseph S. Myers <jsm28@cam.ac.uk>
5574 * doc/gcc.texi (Sending Patches): Remove.
5576 2001-10-22 Hans-Peter Nilsson <hp@bitrange.com>
5578 * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
5579 fields when comparing.
5581 2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5583 * arm.h (HOST_INT, HOST_UINT): Delete. Remove all uses.
5584 * arm.c (HOST_INT, HOST_UINT): Likewise.
5586 2001-10-22 Stan Shebs <shebs@apple.com>
5588 * config/darwin-protos.h (darwin_exception_section): Declare.
5589 (darwin_eh_frame_section): Declare.
5591 Mon Oct 22 18:21:25 CEST 2001 Jan Hubicka <jh@suse.cz>
5593 * i386.md (movti_rex64): Fix mode.
5595 2001-10-22 Stan Shebs <shebs@apple.com>
5597 * target.h (struct gcc_target): Add asm_out.exception_section,
5598 asm_out.eh_frame_section.
5599 * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
5600 (TARGET_ASM_EH_FRAME_SECTION): New.
5601 (TARGET_INITIALIZER): Update.
5602 * output.h (default_exception_section): Declare.
5603 (default_eh_frame_section): Declare.
5604 * dwarf2out.c: Include target.h.
5605 (output_call_frame_info): Call target hook for eh frames.
5606 (default_eh_frame_section): New function.
5607 * except.c: Include target.h.
5608 (output_function_exception_table): Call target hook for exception
5610 * varasm.c (default_exception_section): Rename from
5611 exception_section, remove EXCEPTION_SECTION macro.
5613 * config/darwin.h (darwin_eh_frame_section): New function.
5614 (EXCEPTION_SECTION): Remove.
5615 (TARGET_ASM_EXCEPTION_SECTION): Define.
5616 * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
5617 (nextstep_exception_section): New function.
5618 (nextstep_eh_frame_section): New function.
5619 (TARGET_ASM_EXCEPTION_SECTION): Define.
5620 (TARGET_ASM_EH_FRAME_SECTION): Define.
5622 * config/pa/som.h (EXCEPTION_SECTION): Remove.
5623 (TARGET_ASM_EXCEPTION_SECTION): Define.
5624 * config/rs6000/sysv4.h, config/rs6000/xcoff.h
5625 (EXCEPTION_SECTION): Remove.
5626 (TARGET_ASM_EXCEPTION_SECTION): Define.
5627 * config/stormy16/stormy16.h: Remove comments referencing
5628 EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
5630 * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
5631 TARGET_ASM_EH_FRAME_SECTION.
5633 2001-10-22 Nick Clifton <nickc@cambridge.redhat.com>
5635 * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
5638 * c-format.c: Fix spelling typo in comment.
5640 * sched-int.h: Fix typo in GCC preamble.
5642 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
5645 * doc/invoke.texi: Remove references to -fdump-translation-unit.
5647 2001-10-22 Richard Henderson <rth@redhat.com>
5649 * config/i386/i386.c (ix86_expand_clear): New.
5650 * config/i386/i386-protos.h: Declare it.
5651 * config/i386/i386.md (setcc peep2s): Use it.
5652 (movsi_xor): Unexport.
5654 2001-10-22 Richard Henderson <rth@redhat.com>
5656 * flow.c (clear_log_links): Use free_INSN_LIST_list, not
5657 free_EXPR_LIST_list for LOG_LINKS.
5659 2001-10-21 Robert Lipe <robertlipe@usa.net>
5661 * config/i386/i386.c (sco_asm_named_section): Delete.
5662 (sco_asm_out_constructor): Delete.
5663 * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
5664 (ASM_OUTPUT_DOUBLE_INT): Likewise.
5665 (TARGET_ASM_CONSTRUCTOR): Delete. Use default.
5666 (TARGET_ASM_NAMED_SECTION): Use default for ELF.
5667 (EXCEPTION_SECTION): Delete EH scn renaming hack.
5669 2001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5671 * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
5672 and/or fold extra calls into fewer ones.
5673 * collect2.c (dump_file): Likewise.
5674 * cppexp.c (parse_number): Likewise.
5675 * cpplex.c (_cpp_lex_direct): Likewise.
5676 * final.c (output_asm_insn, asm_fprintf): Likewise.
5677 * fix-header.c (inf_scan_ident, main): Likewise.
5678 * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
5680 * fold-const.c (real_hex_to_f): Likewise.
5681 * gen-protos.c (parse_fn_proto): Likewise.
5682 * genattrtab.c (check_attr_test, check_attr_value): Likewise.
5683 * genrecog.c (change_state, write_action): Likewise.
5684 * gensupport.c (shift_output_template): Likewise.
5685 * local-alloc.c (requires_inout): Likewise.
5686 * mips-tfile.c (IS_ASM_IDENT): Likewise.
5687 * protoize.c (is_id_char, main): Likewise.
5688 * real.c (asctoeg): Likewise.
5689 * recog.c (asm_operand_ok): Likewise.
5690 * reload.c (find_reloads): Likewise.
5691 * scan.c (scan_identget_token): Likewise.
5692 * sched-vis.c (print_value): Likewise.
5693 * stringpool.c (ggc_alloc_string): Likewise.
5694 * toplev.c (read_integral_parameter, decode_g_option): Likewise.
5695 * tradcif.y (parse_number, yylex, parse_escape): Likewise.
5696 * tradcpp.c (rescan): Likewise.
5697 * tree.c (clean_symbol_name): Likewise.
5698 * varasm.c (decode_reg_name): Likewise.
5700 * alpha.h (ASM_OUTPUT_ASCII): Likewise.
5701 * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
5702 * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
5703 * m88k.c (output_ascii): Likewise.
5704 * m88k.h (OVERRIDE_OPTIONS): Likewise.
5705 * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
5706 * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
5707 * sh.h (REG_CLASS_FROM_LETTER): Likewise.
5709 2001-10-21 Neil Booth <neil@daikokuya.demon.co.uk>
5711 * langhooks.c (lang_hook_default_do_nothing,
5712 lang_hook_default_decode_option): New defaults.
5713 * langhooks.h: Make hooks unconditional and non-NULL.
5714 * toplev.c (compile_file, toplev_main): Update.
5715 * toplev.h: Update comments.
5716 * objc/objc-act.c (lang_hooks): Update to new paradigm.
5718 2001-10-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5720 * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
5722 * system.h (IN_RANGE): New macro.
5724 2001-10-21 Zack Weinberg <zack@codesourcery.com>
5726 * aclocal.m4 (AM_WITH_NLS): Also create and substitute
5727 INTLDEPS variable, which does not include $LIBICONV.
5728 * Makefile.in: Use INTLDEPS in LIBDEPS.
5729 * configure: Regenerate.
5731 2001-10-21 Neil Booth <neil@daikokuya.demon.co.uk>
5733 * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
5734 * cpplex.c (lex_percent, lex_dot): Remove.
5735 (get_effective_char, skip_block_comment, skip_line_comment,
5736 parse_identifier_slow, parse_number, parse_string, save_comment,
5737 _cpp_lex_direct): Update to do lookback freely.
5738 (IF_NEXT_IS, BACKUP): New macros.
5739 * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
5740 * cppmacro.c (paste_tokens): Update.
5742 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
5744 * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
5746 2001-10-20 Hans-Peter Nilsson <hp@axis.com>
5748 * reload1.c (reload): Check CONSTANT_P before calling
5749 LEGITIMATE_PIC_OPERAND_P.
5750 * config/cris/cris.c (cris_legitimate_pic_operand): Revert
5751 workaround of 2001-10-13.
5753 Sat Oct 20 15:16:10 CEST 2001 Jan Hubicka <jh@suse.cz>
5755 * i386.c (split_di): Handle splitting of DFmode.
5757 Sat Oct 20 07:27:14 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5759 * emit-rtl.c (set_mem_attributes): Alignment is in bits.
5760 (adjust_address_1, offset_address): Likewise.
5762 * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
5763 (output_asm_insn): Call it for each line output.
5764 Don't record an operand more than once.
5766 * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
5767 * main.c: Include config.h and system.h, but not ansidecl.h.
5768 * Makefile.in (main.o): Update accordingly.
5770 Sat Oct 20 12:05:31 CEST 2001 Jan Hubicka <jh@suse.cz>
5772 * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
5774 Sat Oct 20 12:01:07 CEST 2001 Jan Hubicka <jh@suse.cz>
5776 * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
5777 * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
5779 (find_sub_basic_blocks): ... here;
5780 (find_many_sub_basic_blocks): New.
5781 * recog.c (split_all_insns): Update find_sub_basic_blocks call.
5783 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
5785 * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
5787 * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
5789 * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
5790 * flow.c (update_life_info): Measure time.
5791 * c-decl.c: Include timevar.h
5792 (c_expand_body): Measure time.
5793 * toplev.c (rest_of_compilation): Measure time of mode switching
5795 * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
5797 * toplev.c (flag_asynchronous_unwind_tables): New global variable.
5798 (lang_independent_options): Add asynchronous-unwind-tables
5799 (toplev_main): flag_asynchronous_unwind_tables implies
5801 * flags.h (flag_asynchronous_unwind_tables): Declare.
5802 * dwarf2out.c (dwarf2out_stack_adjust): Take into account
5803 flag_asynchronous_unwind_tables.
5804 (output_call_frame_info): Likewise.
5805 * invoke.texi (-fasynchronous-unwind-tables): Document.
5806 * i386.c (optimization_options): Enable
5807 flag_asynchronous_unwind_tables.
5809 * i386.c (ix86_expand_setcc): Always expect target to be QImode.
5810 * i386.md (s* expanders): Destination is QImode.
5812 * toplev.c (rest_of_compilation): Do not call clear_log_links.
5813 * rtl.h (clear_log_links): Kill.
5814 * flow.c (clear_log_links): Make static; accept blocks parameter;
5815 do no clear life info.
5816 (update_life_info): Call clear_log_links.
5818 * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
5820 2001-10-20 Neil Booth <neil@daikokuya.demon.co.uk>
5822 * cpplex.c (handle_newline, skip_escaped_newlines,
5823 get_effective_char, skip_block_comment, skip_line_comment,
5824 parse_identifier_slow, parse_number, parse_string,
5825 _cpp_lex_direct): Update to do more stepping back.
5826 (trigraph_ok): Similarly. Rename trigraph_p.
5827 (SAVE_STATE, RESTORE_STATE): Remove.
5828 (BUFF_SIZE_UPPER_BOUND): Tweak. Add sanity check.
5830 * cpplib.c (destringize): Rename destringize_and_run, and
5831 call run_directive directly.
5832 (_cpp_do__Pragma): Simplify.
5834 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5836 * pe.c (arm_pe_unique_section): Const-ify.
5837 * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
5838 (switch_to_section): Add static prototype.
5840 * output.h (drectve_section): Prototype.
5842 2001-10-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5844 * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
5845 fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
5846 parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
5847 i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
5848 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
5849 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
5850 i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
5851 i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
5852 i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
5853 i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
5854 i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
5855 i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
5856 ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
5857 mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
5858 powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
5859 powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
5860 powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
5861 powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
5862 powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
5863 powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
5864 rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
5865 sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
5866 v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
5867 cris-*-none, cris-*-linux*: Update ${tmfile} list.
5868 (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
5869 i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
5870 mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
5871 powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
5872 v850-*-*): Delete superflous ${cpu_type} setting.
5873 * config/linux.h: Delete svr4.h include.
5874 (SET_ASM_OP): Delete.
5875 * config/netware.h (INT_ASM_OP): Undef before define.
5876 * config/ptx4.h: Delete elfos.h include.
5877 (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
5878 * config/svr4.h: Delete elfos.h include. Update commentary.
5879 * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
5880 config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
5881 config/mn10200/mn10300.h, config/stormy16/stormy16.h,
5882 config/v850/v850.h: Delete svr4.h include.
5883 * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
5884 config/m68k/m68kv4.h, config/m88k/sysv4.h,
5885 config/sparc/sysv4.h: Update includes.
5886 * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
5887 config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
5888 config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
5889 config/m88k/dguxbcs.h: Delete includes.
5890 * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
5891 (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
5892 * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
5894 * config/m88k/dgux.h: Delete include.
5895 (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Undef before
5897 * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
5898 ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
5899 * config/sh/elf.h: Update include.
5900 (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
5901 DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
5903 2001-10-19 Catherine Moore <clm@redhat.com>
5905 * config/stormy16/stormy-abi: Updates to varargs descriptions.
5906 * config/stormy16/stormy16.c (stormy16_build_va_list): Reverse
5907 base and count fields.
5908 (stormy16_expand_builtin_va_start): last_reg_count changed to
5909 size_of_reg_args. Use count + size in first comparison.
5911 Fri Oct 19 15:24:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5913 * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
5914 * toplev.h (struct lang_hooks): New field HONOR_READONLY.
5915 * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
5916 TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
5917 Set alignment from type if INDIRECT_REF.
5918 (adjust_address_1, offset_address): Simplify alignment compuitation.
5919 * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
5920 here; done by set_mem_attributes.
5922 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5924 * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
5925 * arm-protos.h (rdata_section, zero_init_section, common_section):
5927 * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
5928 * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
5929 traditional mode stringification.
5930 * function.c (thread_prologue_and_epilogue_insns): Wrap variable
5931 in macros controling its use.
5932 * rtlanal.c: Include tm_p.h.
5933 * varasm.c (asm_output_aligned_bss): Mark parameter with
5935 (assemble_constant_align, assemble_start_function, assemble_align,
5936 assemble_variable, assemble_trampoline_template,
5937 output_constant_def_contents): Wrap potentially empty if-stmt body
5940 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5942 * a29k-protos.h (literal_section): Prototype.
5943 * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
5944 * a29k.md: Ensure function pointers are prototyped.
5945 * genattrtab.c (write_eligible_delay): Mark parameter with
5948 2001-10-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5950 * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
5951 * 1750a.c (print_operand): Fix format specifier warning.
5952 * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
5953 * 1750a.md: Likewise.
5954 * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
5955 * genemit.c (output_add_clobbers): Mark parameter with
5957 * genrecog.c (write_subroutine): Likewise.
5958 * integrate.c (expand_inline_function): Delete unused variable.
5959 * varasm.c (remove_from_pending_weak_list): Wrap with
5962 2001-10-19 Jakub Jelinek <jakub@redhat.com>
5964 * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
5965 field is different to previous argument's neg field.
5967 * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
5969 Fri Oct 19 15:24:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5971 * final.c (get_decl_from_op): New function.
5972 (output_asm_insn): Call it; write "*" when item with decl is address.
5974 2001-10-19 Janis Johnson <janis187@us.ibm.com>
5976 * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
5977 about 64-bit support from the 3.0_branch version.
5979 2001-10-19 Zack Weinberg <zack@codesourcery.com>
5981 * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
5982 USE_INCLUDED_LIBINTL when appropriate.
5983 * configure, config.in: Regenerate.
5984 * Makefile.in (datadir): Set to @datadir@.
5985 (intl.o): Also depend on $(CONFIG_H) and system.h.
5987 * intl.c: Factor out common gettext initialization sequence.
5988 (gcc_init_libintl): New function.
5989 * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
5990 otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
5991 off NLS. Add multiple include guard. No need to #ifdef-guard
5992 an #undef. Prototype gcc_init_libintl here.
5994 * collect2.c (main), cppmain.c (general_init), gcc.c (main),
5995 gcov.c (main), protoize.c (main), toplev.c (toplev_main):
5996 Use gcc_init_libintl.
5998 2001-10-19 Catherine Moore <clm@redhat.com>
6000 * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
6002 * config/stormy16/stormy16.c (stormy16_split_move): Make
6003 sure that REG_INC notes are present for auto_inc operands.
6005 2001-10-19 Andreas Jaeger <aj@suse.de>
6007 * configure: Regenerated.
6008 * configure.in: Add x86_64 to switch statements.
6010 2001-10-18 Richard Henderson <rth@redhat.com>
6012 * config/alpha/alpha.md (sibcall_osf_1): Load destination
6013 address into $27 explicitly.
6014 (sibcall_value_osf_1): Likewise.
6016 Thu Oct 18 16:07:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6018 * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
6019 (offset_address): New function.
6020 (free_emit_status): Free regno_decl.
6021 (init_emit): Pass proper number of elements to xcalloc.
6022 Allocate regno_decl.
6023 (mark_emit_status): Mark regno_decl values.
6024 * expr.c (highest_pow2_factor): New function.
6025 (expand_assigment): Use it and offset_address.
6026 Properly handle ptr_mode vs. Pmode in offset calculation.
6027 (store_constructor, expand_expr_unaligned): Likewise.
6028 (expand_expr, case COMPONENT_EXPR): Likewise.
6029 * expr.h (offset_address): New decl.
6030 * function.h (struct emit_status): Add regno_decl.
6031 (REGNO_DECL): New macro.
6032 * final.c (output_asm_name): Move in file and don't conditionalize
6033 on flag_print_asm_name.
6034 (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
6035 Output names of operands, if known.
6036 * function.c (assign_parms): Set REGNO_DECL.
6037 * integrate.c (integrate_decl_tree): Likewise.
6038 * stmt.c (expand_decl): Likewise.
6039 * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
6041 2001-10-18 Alexandre Oliva <aoliva@redhat.com>
6043 * attribs.c (handle_noinline_attribute): New function.
6044 (handle_used_attribute): Likewise.
6045 (c_common_attribute_table): Added noinline and used.
6046 * doc/extend.texi (Function Attributes): Document them.
6047 * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
6048 Warn when merging inline with attribute noinline.
6049 (start_decl, start_function): Warn if inline and attribute
6050 noinline appear in the same declaration.
6052 2001-10-17 Neil Booth <neil@daikokuya.demon.co.uk>
6054 * config.gcc: Update c4x and i370 for C front end-specific
6056 * config/c4x/c4x-c.c: New.
6057 * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
6058 (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
6060 * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
6061 (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
6063 (c4x_init_pragma): Remove.
6064 (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
6065 c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
6066 c4x_pr_ignored): Move to c4x-c.c.
6067 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
6068 * config/c4x/t-c4x: Update.
6069 * config/i370/i370-c.c: New.
6070 * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
6071 (i370_pr_map): Move to i370-c.c.
6072 * config/i370/t-i370: New.
6074 * doc/tm.texi: Update.
6076 2001-10-17 Stan Shebs <shebs@apple.com>
6078 * config/rs6000/rs6000.c: Make assorted mechanical formatting and
6079 typo fixes throughout.
6080 (machopic_output_stub): Remove some dead code.
6082 2001-10-17 Richard Earnshaw <rearnsha@arm.com>
6084 * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
6087 Wed Oct 17 05:26:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6089 * Makefile.in (print-rtl.o): Depend on TREE_H.
6090 * alias.c (get_alias_set): Make two passes over objects to first
6091 see if inner object is access via restricted pointer.
6092 Defer allocating alias set for restricted pointer until here.
6093 Call find_placeholder with second arg nonzero.
6095 * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
6096 set for restricted pointer types.
6097 * emit-rtl.c (set_mem_attributes): Set more attributes.
6098 (set_mem_align, change_address, adjust_address_1): New functions.
6099 (change_address_1): Now static.
6100 (adjust_address, adjust_address_nv): Deleted.
6101 (replace_equiv_address): Call change_address_1.
6102 * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
6103 (find_placeholder): Get starting point from PLIST arg.
6104 (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
6105 * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
6106 (adjust_address, adjust_address_nv): New macros.
6107 * print-rtl.c (tree.h): New include.
6108 (print_rtx, case MEM): Print all memory attributes.
6110 2001-10-17 Richard Henderson <rth@redhat.com>
6112 * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
6114 2001-10-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
6116 * c-tree.texi: Eliminate duplicated word.
6117 * cpp.texi: Likewise.
6118 * install.texi: Likewise.
6119 * invoke.texi: Likewise.
6120 * tm.texi: Likewise.
6122 2001-10-17 Michael Collison <collison@isisinc.net>
6124 * dsp16xx.c: Fix comment formatting to match GNU standards.
6125 (dsp16xx_output_function_prologue): Change type of 'size'
6126 parameter from 'int' to HOST_WIDE_INT.
6127 (dsp16xx_output_function_epilogue): Change type of 'size'
6128 parameter from 'int' to HOST_WIDE_INT.
6130 2001-10-16 Richard Henderson <rth@redhat.com>
6132 * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
6133 * configure, config.in: Rebuild.
6135 * config/i386/i386.c (ix86_output_addr_vec_elt): New.
6136 (ix86_output_addr_diff_elt): New.
6137 * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
6138 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6139 (JUMP_TABLES_IN_TEXT_SECTION): New.
6140 * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
6141 * config/i386/i386-protos.h: Update.
6143 * config/i386/386bsd.h, config/i386/beos-elf.h,
6144 config/i386/freebsd-aout.h, config/i386/freebsd.h,
6145 config/i386/i386-interix.h, config/i386/i386elf.h,
6146 config/i386/linux.h, config/i386/netbsd-elf.h,
6147 config/i386/netbsd.h, config/i386/openbsd.h,
6148 config/i386/ptx4-i.h, config/i386/rtemself.h,
6149 config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
6150 (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
6152 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
6154 * stmt.c (expand_asm_operands): Update commentary.
6156 2001-10-16 Stan Shebs <shebs@apple.com>
6158 * config/darwin.h (GCC_NAME): Remove, no longer used.
6159 (NO_MATH_LIBRARY): Ditto.
6160 (MATH_LIBRARY): Define to emptiness.
6161 (DWARF2_DEBUGGING_INFO): Define.
6162 (PREFERRED_DEBUGGING_TYPE): Define.
6163 (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
6164 (EXCEPTION_SECTION): Define.
6165 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6166 * config/darwin.c (darwin_encode_section_info): Handle case of
6167 DECL_INITIAL being error_mark_node.
6169 2001-10-16 Richard Henderson <rth@redhat.com>
6171 * alpha.c (current_file_function_operand): Don't fail for profiling.
6172 (direct_call_operand): New.
6173 * alpha-protos.h: Declare it.
6174 * alpha.h (EXTRA_CONSTRAINT): Use it.
6175 (PREDICATE_CODES): Add it.
6176 (ASM_OUTPUT_MI_THUNK): Remove.
6177 * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
6178 * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
6180 2001-10-16 Krister Walfridsson <cato@df.lth.se>
6182 * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
6183 (JUMP_TABLES_IN_TEXT_SECTION): Define.
6185 Wed Oct 17 00:21:31 CEST 2001 Jan Hubicka <jh@suse.cz>
6187 * cfg.c (free_edge): Break out from ....
6188 (remove_edge): ... here.
6189 (clear_edges): Use free_edge.
6191 * att.h (ASM_QUAD): Add comment.
6192 * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
6194 Wed Oct 17 00:01:02 CEST 2001 Jan Hubicka <jh@suse.cz>
6196 * i386.c (split_ti): New function.
6197 (ix86_split_to_parts): Support TImodes.
6198 * i386.h (VALID_INT_MODE_P): Add TImode.
6199 * i386.md (movdi splitter): Fix.
6200 (movti): Support 64bit integer registers.
6201 (movti_rex64): New function and splitter.
6203 * i386.c (*_cost): Add movsx/movzx cost.
6204 * i386.h (struct processor_costs): Add movsx/movzx fields.
6205 (RTX_COSTS): Handle zero/sign extend + avoid believing that
6206 64bit operations require split on 64bit machine.
6207 (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
6209 * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
6210 (ix86_expand_move): Avoid pushes of memory if size does not match;
6211 move long constants to register.
6212 (x86_initialize_trampoline): Fix mode.
6213 * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
6214 Use ASM_QUAD on 64bit.
6215 * i386.md (test pattern): Disallow impossible constants.
6216 (tablejump PIC expander): Fix emitting of sum.
6217 (movdicc_rex64): Rename to movdicc.
6218 * linux64.h (LINK_SPEC): Add missing '%'.
6220 2001-10-16 Alexandre Oliva <aoliva@redhat.com>
6222 * tree-inline.c (inlinable_function_p): Leave it up to the
6223 front-end to turn -finline-functions into DECL_INLINE set for all
6226 2001-10-16 Stan Shebs <shebs@apple.com>
6228 * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
6230 2001-10-16 Alan Modra <amodra@bigpond.net.au>
6232 * recog.c: Formatting and comment typo fixes.
6234 * configure.in (gcc_cv_as_bfd_srcdir): New. Use it to find gas
6235 version in single tree build.
6236 * configure: Regenerate.
6238 2001-10-15 David Edelsohn <edelsohn@gnu.org>
6240 * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
6241 MODE arguments to gen_rtx and compare operand with const0_rtx.
6243 2001-10-15 Neil Booth <neil@daikokuya.demon.co.uk>
6245 * system.h: Poison old unused target macros.
6246 * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
6247 * config/stormy16/stormy16.c: Update references to obsolete macros.
6248 * config/stormy16/stormy16.h: Similarly.
6249 * config/stormy16/stormy16.md: Similarly.
6250 * config/cris/cris.h: Similarly.
6252 2001-10-15 Neil Booth <neil@daikokuya.demon.co.uk>
6254 * cpplib.c (struct pragma_entry): Store the name as a hashnode.
6255 (lookup_pragma_entry, insert_pragma_entry, do_pragma,
6256 cpp_register_pragma): Update accordingly.
6258 2001-10-14 Neil Booth <neil@daikokuya.demon.co.uk>
6260 * c-pragma.h (cpp_register_pragma_space): Remove.
6261 * cpplib.h (cpp_register_pragma_space): Remove.
6262 * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
6263 (cpp_register_pragma_space): Remove.
6264 (cpp_register_pragma): Simplify using lookup_pragma_entry,
6266 (do_pragma): Similarly.
6267 (_cpp_init_internal_pragmas): Don't register namespaces.
6269 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
6270 Don't register namespaces.
6271 * cp/lex.c (init_cp_pragma): Similarly.
6272 * doc/tm.texi: Update.
6274 2001-10-10 Craig Rodrigues <rodrigc@gcc.gnu.org>
6277 * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
6279 2001-10-13 Michael Collison <collison@dhcp-12-114.townisp.com>
6281 * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
6282 add scheduling support.
6283 * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
6284 * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
6285 * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
6288 2001-10-13 Hans-Peter Nilsson <hp@axis.com>
6290 * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
6291 missing CONSTANT_P test in core GCC.
6293 2001-10-12 Neil Booth <neil@daikokuya.demon.co.uk>
6295 * cppmain.c (struct printer): New member source.
6296 (scan_translation_unit): Fix spacing at start of lines.
6297 (cb_line_change): Update.
6299 * gcc.dg/cpp/spacing2.c: New test.
6301 2001-10-12 Hans-Peter Nilsson <hp@axis.com>
6303 * config/cris/arit.c: Use __builtin_labs, not abs.
6305 * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
6307 * config/cris/cris.c (cris_target_asm_function_epilogue): Move
6308 misplaced sprintf and fprintf argument.
6310 2001-10-12 Zack Weinberg <zack@codesourcery.com>
6312 * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
6313 * configure.in, Makefile.in: Take out obsolete check-po logic.
6314 * configure, config.in: Regenerate.
6316 2001-10-12 Ziemowit Laski <zlaski@apple.com>
6318 * objc/objc-act.c (finish_objc): Correct precondition for emitting
6319 symtab declarations.
6321 2001-10-12 Stan Shebs <shebs@apple.com>
6323 * config/rs6000/rs6000.c: Remove uses of "register" specifier in
6324 declarations of arguments and local variables.
6326 2001-10-12 Christopher Faylor <cgf@redhat.com>
6328 * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
6329 ENDFILE_SPEC definition.
6331 2001-10-12 Kazu Hirata <kazu@hxi.com>
6333 * gthr-dce.h: Fix comment formatting.
6334 * gthr-posix.h: Likewise.
6335 * gthr-single.h: Likewise.
6336 * gthr-solaris.h: Likewise.
6337 * gthr-vxworks.h: Likewise.
6338 * gthr-win32.h: Likewise.
6340 2001-10-12 Jakub Jelinek <jakub@redhat.com>
6342 * final.c (output_asm_insn): Make sure assembly dialects are
6343 terminated, not nested. Output `|' and `}' characters if they
6344 don't appear inside assembly dialect selection.
6345 * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
6346 rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
6347 rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
6348 strsetsi_rex_1): Add {} braces.
6350 2001-10-11 Zack Weinberg <zack@codesourcery.com>
6352 * toplev.c (compile_file): Ignore return value from yyparse.
6353 Always pop any nested binding levels after yyparse returns.
6355 2001-10-11 Richard Henderson <rth@redhat.com>
6357 * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
6359 2001-10-11 Richard Henderson <rth@redhat.com>
6361 * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
6362 fall back to add_AT_long_long for large CONST_INT.
6364 2001-10-11 Richard Henderson <rth@redhat.com>
6366 * config/i386/i386.md (setcc splitters): Add four splitters to
6367 simplify compound compares that simplify_comparison can't handle.
6369 2001-10-11 Zack Weinberg <zack@codesourcery.com>
6371 * cpplex.c (digraph_spellings, token_spellings): Make static.
6373 2001-10-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6375 * unroll.c (loop_iterations): Fixup last patch.
6377 2001-10-11 Richard Henderson <rth@redhat.com>
6379 * rtl.h (REG_VTABLE_REF): New.
6380 * rtl.c (reg_note_name): Add it.
6381 * combine.c (distribute_notes): Handle it.
6382 * final.c (final_scan_insn): Handle it.
6383 * tree.def (VTABLE_REF): New.
6384 * expr.c (expand_expr): Handle it.
6385 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
6386 * output.h: Declare them.
6388 2001-10-11 Richard Henderson <rth@redhat.com>
6390 * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
6393 2001-10-11 David Edelsohn <edelsohn@gnu.org>
6395 * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
6396 available in 64-bit mode.
6398 2001-10-11 Hans-Peter Nilsson <hp@axis.com>
6400 * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
6401 cris-*-linux* cases.
6402 * config/cris/cris-protos.h: New file.
6403 * config/cris/cris.c: New file.
6404 * config/cris/cris.h: New file.
6405 * config/cris/cris.md: New file.
6406 * config/cris/linux.h: New file.
6407 * config/cris/aout.h: New file.
6408 * config/cris/arit.c: New file.
6409 * config/cris/cris_abi_symbol.c: New file.
6410 * config/cris/mulsi3.asm: New file.
6411 * config/cris/t-aout: New file.
6412 * config/cris/t-cris: New file.
6413 * config/cris/t-elfmulti: New file.
6414 * config/cris/t-linux: New file.
6415 * doc/invoke.texi: Add CRIS options.
6416 * doc/install.texi (Specific): Add blurb for CRIS.
6418 2001-10-10 Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
6420 * config/float-i128.h: Make sure __STDC__VERSION__ is defined
6422 * config/float/i32.h: Likewise.
6423 * config/float-i386.h: Likewise.
6424 * config/float-i64.h: Likewise.
6425 * config/float-m68k.h: Likewise.
6426 * config/float-sh.h: Likewise.
6427 * config/float-sparc.h: Likewise.
6429 2001-10-11 Hans-Peter Nilsson <hp@axis.com>
6431 * doc/contrib.texi: Add note about CRIS port to my entry.
6433 2001-10-11 Kazu Hirata <kazu@hxi.com>
6435 * basic-block.h: Fix formatting.
6436 * bitmap.h: Likewise.
6437 * cpplib.h: Likewise.
6438 * c-tree.h: Likewise.
6439 * diagnostic.h: Likewise.
6440 * flags.h: Likewise.
6442 * longlong.h: Likewise.
6444 * reload.h: Likewise.
6448 2001-10-10 Richard Henderson <rth@redhat.com>
6450 * c-parse.in (asm_operand): Allow named operands.
6451 * genconfig.c (max_recog_operands): Set to 29.
6452 * local-alloc.c (requires_inout): Skip multiple digits.
6453 * recog.c (asm_operand_ok): Likewise.
6454 (preprocess_constraints): Use strtoul for matching constraints.
6455 (constrain_operands): Likewise.
6456 * regmove.c (find_matches): Likewise.
6457 * reload.c (find_reloads): Likewise.
6458 * stmt.c (parse_output_constraint): Don't reject in-out
6459 constraint on operands > 9. Reject '[' in constraint.
6460 (expand_asm_operands): Handle named operands. Use strtoul
6461 for matching constraints.
6462 (check_operand_nalternatives): Split out from expand_asm_operands.
6463 (check_unique_operand_names): New.
6464 (resolve_operand_names, resolve_operand_name_1): New.
6466 * doc/extend.texi (Extended Asm): Document named operands.
6467 * doc/md.texi (Simple Constraints): Document matching constraints
6470 2001-10-10 Richard Henderson <rth@redhat.com>
6472 * combine.c (try_combine): Handle a SEQUENCE of one insn.
6474 * i386.c (test splitter): Narrow tests vs paradoxical subregs.
6475 (jcc splitters): Add two splitters to simplify compound compares
6476 that simplify_comparison can't handle.
6478 2001-10-10 Richard Henderson <rth@redhat.com>
6480 * langhooks.c: Include langhooks.h.
6481 * Makefile.in (langhooks.o): Depend on it.
6483 Wed Oct 10 23:49:06 EDT 2001 John Wehle (john@feith.com)
6485 * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
6486 should not be considered as a no-op.
6487 * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
6489 2001-10-10 Stan Shebs <shebs@apple.com>
6491 * alias.c: Remove uses of "register" specifier in declarations
6492 of arguments and local variables.
6493 * c-common.c: Ditto.
6494 * c-convert.c: Ditto.
6496 * c-format.c: Ditto.
6497 * c-semantics.c: Ditto.
6498 * c-typeck.c: Ditto.
6499 * caller-save.c: Ditto.
6502 * cfgbuild.c: Ditto.
6504 * collect2.c: Ditto.
6508 * cppfiles.c: Ditto.
6511 * defaults.h: Ditto.
6513 * dwarf2out.c: Ditto.
6514 * dwarfout.c: Ditto.
6515 * emit-rtl.c: Ditto.
6520 * fix-header.c: Ditto.
6521 * floatlib.c: Ditto.
6523 * fold-const.c: Ditto.
6524 * function.c: Ditto.
6527 * gen-protos.c: Ditto.
6528 * genattrtab.c: Ditto.
6529 * gencheck.c: Ditto.
6530 * genconfig.c: Ditto.
6532 * genextract.c: Ditto.
6533 * genflags.c: Ditto.
6534 * gengenrtl.c: Ditto.
6535 * genoutput.c: Ditto.
6537 * genrecog.c: Ditto.
6538 * gensupport.c: Ditto.
6542 * haifa-sched.c: Ditto.
6543 * hard-reg-set.h: Ditto.
6545 * integrate.c: Ditto.
6548 * local-alloc.c: Ditto.
6550 * mips-tdump.c: Ditto.
6551 * mips-tfile.c: Ditto.
6554 * print-rtl.c: Ditto.
6555 * read-rtl.c: Ditto.
6558 * reg-stack.c: Ditto.
6559 * regclass.c: Ditto.
6564 * resource.c: Ditto.
6568 * sched-deps.c: Ditto.
6569 * sched-rgn.c: Ditto.
6571 * simplify-rtx.c: Ditto.
6573 * stor-layout.c: Ditto.
6580 * xcoffout.c: Ditto.
6582 2001-10-10 Richard Henderson <rth@redhat.com>
6584 * rtl.h (can_reverse_comparison_p): Remove.
6586 2001-10-10 Christopher Faylor <cgf@redhat.com>
6588 * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
6591 2001-10-10 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6593 * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
6594 (Thanks to Chris Faylor for suggesting macro name).
6595 (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
6597 (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
6598 (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
6599 (MATH_LIBRARY): Undef before definition.
6600 (OUTPUT_QUOTED_STRING): Likewise.
6601 * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
6603 2001-10-10 Richard Henderson <rth@redhat.com>
6605 * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
6606 (fde_unencoded_compare): Likewise. Don't use subtraction to get
6607 a tristate comparison value.
6608 (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
6610 2001-10-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6613 * unroll.c (loop_iterations): Ignore insns generated by loop
6616 * config.gcc (mips*-*-gnu*): Delete support.
6617 * config/mips/gnu.h: Remove.
6619 2001-10-10 Kazu Hirata <kazu@hxi.com>
6621 * calls.c: Fix formatting.
6622 * c-decl.c: Likewise.
6623 * cfgcleanup.c: Likewise.
6624 * combine.c: Likewise.
6625 * cppfiles.c: Likewise.
6626 * cpplib.c: Likewise.
6627 * cppmacro.c: Likewise.
6628 * crtstuff.c: Likewise.
6630 * dwarf2out.c: Likewise.
6631 * expmed.c: Likewise.
6633 * fold-const.c: Likewise.
6634 * function.c: Likewise.
6636 * genattrtab.c: Likewise.
6637 * ggc-page.c: Likewise.
6638 * integrate.c: Likewise.
6639 * libgcc2.c: Likewise.
6641 * optabs.c: Likewise.
6642 * profile.c: Likewise.
6643 * protoize.c: Likewise.
6645 * recog.c: Likewise.
6646 * reload1.c: Likewise.
6647 * reload.c: Likewise.
6648 * reorg.c: Likewise.
6649 * resource.c: Likewise.
6650 * sched-rgn.c: Likewise.
6651 * sdbout.c: Likewise.
6653 * toplev.c: Likewise.
6654 * varasm.c: Likewise.
6656 2001-10-10 Janis Johnson <janis187@us.ibm.com>, Alexandre Oliva <aoliva@redhat.com>
6658 * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
6659 * Makefile.in (langhooks.o): Add dependencies.
6661 Wed Oct 10 00:41:29 EDT 2001 John Wehle (john@feith.com)
6663 * rs6000.c (rs6000_emit_load_toc_table): Don't
6664 strdup the toc label.
6665 (create_TOC_reference): Likewise.
6667 2001-10-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6669 * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
6672 2001-10-09 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
6674 * config/i386/i386.c (ix86_attribute_table): Correct
6675 min_len, max_len fields for dllimport, dllexport and shared.
6677 2001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
6679 * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
6680 doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
6681 Consistently use "nonzero" instead of "non-zero".
6683 2001-10-09 Kazu Hirata <kazu@hxi.com>
6685 * acconfig.h: Fix comment formatting.
6686 * c-dump.h: Likewise.
6687 * c-tree.h: Likewise.
6688 * conditions.h: Likewise.
6690 * function.h: Likewise.
6692 * hwint.h: Likewise.
6693 * integrate.h: Likewise.
6696 * optabs.h: Likewise.
6698 2001-10-09 Kazu Hirata <kazu@hxi.com>
6700 * c-common.h: Fix comment formatting.
6701 * c-dump.c: Likewise.
6703 * diagnostic.h: Likewise.
6704 * except.c: Likewise.
6706 * gcov-io.h: Likewise.
6707 * genattrtab.c: Likewise.
6708 * output.h: Likewise.
6709 * predict.h: Likewise.
6710 * reload1.c: Likewise.
6711 * reload.h: Likewise.
6712 * resource.h: Likewise.
6714 * system.h: Likewise.
6716 * tree-inline.c: Likewise.
6717 * tsystem.h: Likewise.
6718 * varasm.c: Likewise.
6719 * xcoffout.h: Likewise.
6721 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
6723 * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
6725 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
6727 * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
6728 config/i386/i386elf.h, config/i386/netbsd-elf.h,
6729 config/i386/netware.h, config/mcore/gfloat.h,
6730 config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
6731 config/netware.h, gccbug.in: Update FSF address.
6733 2001-10-09 Kazu Hirata <kazu@hxi.com>
6735 * c-common.c: Fix comment typos.
6736 * cfgrtl.c: Likewise.
6737 * collect2.c: Likewise.
6738 * cpplex.c: Likewise.
6739 * doloop.c: Likewise.
6740 * dwarf2out.c: Likewise.
6741 * dwarfout.c: Likewise.
6743 * fold-const.c: Likewise.
6747 * global.c: Likewise.
6748 * ifcvt.c: Likewise.
6750 * optabs.c: Likewise.
6751 * protoize.c: Likewise.
6752 * regclass.c: Likewise.
6753 * reorg.c: Likewise.
6757 * doc/cpp.texi: Likewise.
6758 * doc/c-tree.texi: Likewise.
6759 * doc/extend.texi: Likewise.
6760 * doc/invoke.texi: Likewise.
6761 * doc/objc.texi: Likewise.
6762 * doc/tm.texi: Likewise.
6764 2001-10-08 Richard Henderson <rth@redhat.com>
6766 * varasm.c (set_named_section_flags): Initialize "declared".
6768 2001-10-08 Robert Lipe <robertlipe@usa.net>
6770 * varasm.c (struct in_named_entry): Add declared.
6771 (named_section_first_declaration): New function.
6772 (default_elf_asm_named_section): Use it.
6773 * output.h (named_section_first_declaration): New.
6775 2001-10-08 Richard Henderson <rth@redhat.com>
6777 * i386.md (movsi_xor): Export.
6778 (setcc peep2): Use it when available; add an alternative to
6779 match zero_extendhisi2_and.
6781 2001-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6783 * romp-protos.h (romp_initialize_trampoline): New function.
6784 * romp.c (romp_initialize_trampoline): Likewise.
6785 * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
6786 romp_initialize_trampoline.
6788 2001-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6790 * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
6791 * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
6792 * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
6793 * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
6795 2001-10-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6797 * unroll.c (loop_iterations): Extend check for multiple back edges.
6799 2001-10-08 Alexandre Oliva <aoliva@redhat.com>
6801 * langhooks.h: New file.
6802 * Makefile.in (OBJS): Added langhooks.o.
6803 (c-lang.o): Depend on langhooks.h.
6804 (c-common.o): Don't depend on tree-inline.h.
6805 (tree-inline.o): Depend on toplev.h.
6806 (langhooks.o): New rule.
6807 * c-common.c: Don't include tree-inline.h.
6808 (c_mark_lang_decl): Mark argument c as unused.
6809 (c_common_lang_init): Don't initialize hooks here.
6810 * c-lang.c: Include langhooks.h, then override some macros.
6811 (lang_hooks): Initialize with macros in langhooks.h.
6812 (c_init): Don't initialize hooks here.
6813 * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
6814 (struct lang_hooks): Add tree_inlining. Refer to langhooks.h.
6815 * tree-inline.c: Include toplev.h. Don't define hook variables.
6816 * tree-inline.h: Don't define hook types nor declare hook
6817 variables. Move macros to...
6818 * langhooks.c: ... new file, as functions. Adjust all callers.
6820 2001-10-08 Jeffrey A Law <law@cygnus.com>
6822 * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
6823 purge_mem_unchanging_flag on all instructions, not just on those
6824 before NOTE_INSN_FUNCTION_BEG.
6826 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
6828 * cppmacro.c (_cpp_create_definition): Leave comments off.
6830 * doc/cpp.texi: Update.
6832 2001-10-08 DJ Delorie <dj@redhat.com>
6834 * c-decl.c (grokfield): Make sure the only unnamed fields
6835 we're allowing are either structs or unions.
6836 * doc/extend.texi: Add documentation for the unnamed field
6839 2001-10-08 Zack Weinberg <zack@codesourcery.com>
6841 * aclocal.m4 (gcc_AC_PROG_GNAT): New.
6842 * configure.in: Use it.
6843 * configure: Regenerated.
6844 * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
6845 config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
6847 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
6849 * cppfiles.c (open_file): Don't mark zero-length files
6850 never-reread here. Don't output diagnostics here either.
6851 (stack_include_file): Mark them never-reread here.
6852 (_cpp_read_file): Update.
6854 2001-10-08 Richard Henderson <rth@redhat.com>
6856 * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6858 2001-10-08 Richard Henderson <rth@redhat.com>
6860 * expr.c (store_expr): When converting a CONST_INT for storage
6861 in a SUBREG, convert it to both SUBREG modes before stripping
6864 2001-10-08 Richard Henderson <rth@redhat.com>
6866 * varasm.c (restore_varasm_status): New.
6867 * function.h: Declare it.
6868 * function.c (pop_function_context_from): Call it.
6870 2001-10-08 Richard Henderson <rth@redhat.com>
6872 * c-common.h (struct c_lang_decl): Add declared_inline.
6873 * c-tree.h (DECL_DECLARED_INLINE_P): New.
6874 * c-lang.c (c_disregard_inline_limits): Use it.
6875 * c-decl.c (duplicate_decls): Likewise.
6876 (pushdecl, redeclaration_error_message): Likewise.
6877 (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
6878 (grokdeclarator): Likewise. Set DECL_DECLARED_INLINE_P.
6879 Set DECL_INLINE if -finline-functions.
6880 (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
6882 2001-10-08 Neil Booth <neil@daikokuya.demon.co.uk>
6884 * cppmacro.c (funlike_invocation_p): Move some logic to caller
6885 in enter_macro_context. Create a padding token in its own context
6886 if necessary when the search for '(' fails.
6887 (enter_macro_context): Update.
6889 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
6891 * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
6892 genmultilib, toplev.c: Fix spelling errors of "separate" as
6893 "seperate", and corresponding spelling errors of related words.
6895 2001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6897 * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
6898 * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
6900 * c-dump.c (dump_option_value_info): Likewise.
6901 * c-format.c (format_length_info, format_char_info,
6902 format_flag_spec, format_flag_pair, format_kind_info): Likewise.
6903 * collect2.c (names): Likewise.
6904 * cppdefault.h (default_include): Likewise.
6905 * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
6906 * flow.c (life_analysis): Likewise.
6907 * gcc.c (dir_separator_str, modify_target, option_map,
6908 target_option_translations, spec_list_1, extra_specs_1,
6909 init_spec): Likewise.
6910 * gcov.c (gcov_version_string): Likewise.
6911 * genattr.c (write_units): Likewise.
6912 * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
6913 * gengenrtl.c (rtx_definition, defs): Likewise.
6914 * genrecog.c (pred_table): Likewise.
6915 * global.c (global_alloc): Likewise.
6916 * lcm.c (optimize_mode_switching): Likewise.
6917 * local-alloc.c (find_free_reg): Likewise.
6918 * params.h (param_info): Likewise.
6919 * predict.c (predictor_info): Likewise.
6920 * protoize.c (unexpansion_struct): Likewise.
6921 * real.c (bmask): Likewise.
6922 * recog.h (insn_operand_data, insn_data): Likewise.
6923 * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
6924 * stmt.c (expand_nl_goto_receiver): Likewise.
6925 * toplev.c (da, debug_args, lang_opt, documented_lang_options,
6926 target_switches, target_options): Likewise.
6927 * tradcif.y (token, tokentab2, yylex): Likewise.
6928 * tree.h (attribute_spec): Likewise.
6930 * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
6932 * arc.c (arc_output_function_epilogue): Likewise.
6933 * arm.c (processors, all_cores, all_architectures,
6934 arm_override_options, isr_attribute_arg, isr_attribute_args,
6935 arm_isr_value): Likewise.
6936 * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
6938 * c4x.c (c4x_int_reglist): Likewise.
6939 * d30v.c (override_options): Likewise.
6940 * h8300.c (shift_insn): Likewise.
6941 * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
6942 pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
6943 ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
6944 builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
6945 ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
6946 * i386.h (processor_costs, ix86_cost): Likewise.
6947 * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
6948 * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
6949 * m68k.c (codes_68881, codes_FPA): Likewise.
6950 * m88k.c (mode_from_align, max_from_align, all_from_align,
6951 best_from_align, m_options): Likewise.
6952 * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
6953 * mcore.c (mode_from_align): Likewise.
6954 * mips/elf64.h (UNIQUE_SECTION): Likewise.
6955 * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
6956 * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
6957 * mips.h (mips_regno_to_class): Likewise.
6958 * ns32k.c (scales): Likewise.
6959 * pa.c (import_string, magic_milli): Likewise.
6960 * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
6961 * sparc.c (leaf_reg_remap, sparc_override_options,
6962 reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
6964 * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
6966 2001-10-07 Dale Johannesen <dalej@apple.com>
6968 * reload1.c (reload_reg_free_p): Teach register interference
6969 checking that multiple output reloads are emitted in
6971 reload1.c (reload_reg_reaches_end_p): Ditto.
6972 reload1.c (reloads_conflict): Ditto.
6974 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
6976 * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
6977 NULL_TREE inside @code.
6979 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
6981 * doc/gcc.texi: Document consistent style of "32-bit",
6982 "Objective-C", and "@code{NULL}".
6984 2001-10-06 Zack Weinberg <zack@codesourcery.com>
6986 * cpplex.c (enum spell_type): Add SPELL_NUMBER.
6987 (cpp_token_len, cpp_spell_token, cpp_output_token,
6988 _cpp_equiv_tokens): Handle it.
6989 * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
6990 CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
6991 * cppexp.c (_cpp_parse_expr): Use the correct operator code in
6994 Sat Oct 6 07:42:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6996 * gcc.c (default_compilers): Remove .ada.
6998 2001-10-06 Neil Booth <neil@daikokuya.demon.co.uk>
7000 * doc/cppinternals.texi: Update.
7002 2001-10-06 Zack Weinberg <zack@codesourcery.com>
7004 * gcc.c (main): Set this_file_error if the appropriate
7005 compiler for a language has not been installed.
7007 2001-10-06 Ulrich Weigand <uweigand@de.ibm.com>
7009 * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
7011 2001-10-05 Joseph S. Myers <jsm28@cam.ac.uk>
7013 * gccbug.in (CATEGORIES): Add ada.
7015 2001-10-05 Catherine Moore <clm@redhat.com>
7017 * config/stormy16/stormy-abi: Document abi changes.
7018 * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
7019 (ICALL_REGS): New register class.
7020 (NUM_ARGUMENT_REGISTERS): Now 6.
7021 (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
7023 (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
7024 * config/stormy16.md (call_internal, call_value_internal,
7025 indirect_jump): Use new 'z' constraint.
7027 2001-10-05 Neil Booth <neil@daikokuya.demon.co.uk>
7029 * doc/cppinternals.texi: Update.
7031 2001-10-05 Richard Henderson <rth@redhat.com>
7033 * dwarf2out.c (FRAME_BEGIN_LABEL): New.
7034 (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
7035 the gas section-name-as-label feature.
7037 2001-10-05 Neil Booth <neil@daikokuya.demon.co.uk>
7039 * doc/cppinternals.texi: Update.
7041 Fri Oct 5 08:17:46 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7043 * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
7044 to ensure valid SImode constants.
7046 2001-10-05 Alexandre Oliva <aoliva@redhat.com>
7048 * Makefile.in (c-decl.o): Depend on tree-inline.h.
7049 (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
7050 * c-decl.c: Include tree-inline.h.
7051 (c_expand_body): Call optimize_inline_calls. Determine whether
7052 a function is inlinable upfront, and only clear
7053 DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
7054 * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
7055 (c_disregard_inline_limits): New function.
7056 (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
7057 (c_post_options): Enable tree inlining if inlining is enabled.
7058 Don't inline trees when instrumenting functions.
7059 (c_init): Initialize lang_disregard_inline_limits and
7060 lang_cannot_inline_tree_fn.
7061 * tree-inline.c (initialize_inlined_parameters): Handle calls
7062 with fewer arguments than declared parameters, and fewer
7063 parameters than passed arguments. Don't assume value is a
7065 (declare_return_variable): Convert return value back to the
7066 original type, if it was promoted.
7067 (tree_inlinable_function_p): New function.
7068 (inlinable_function_p): Don't look at DECL_INLINE if we're
7069 inlining all functions. Make it work with a NULL id.
7070 Re-check DECL_UNINLINABLE after language-specific checks.
7071 * tree-inline.h (tree_inlinable_function_p): Declare it.
7072 * integrate.c (save_for_inline): Don't bother to prepare argvec
7074 * cse.c (check_for_label_ref): Don't check deleted labels.
7076 * Makefile.in (tree-inline.o): Depend on newly-included headers.
7077 * tree-inline.c: Include headers needed for the functions moved in.
7078 (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
7079 (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
7080 (copy_body, initialize_inlined_parameters): Likewise.
7081 (declare_return_variable, inlinable_function_p): Likewise.
7082 (expand_call_inline, expand_calls_inline): Likewise.
7083 (optimize_inline_calls, clone_body): Likewise.
7084 (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
7085 (copy_tree_r, remap_save_expr): Likewise.
7087 2001-10-04 Alexandre Oliva <aoliva@redhat.com>
7089 * Makefile.in (OBJS): Added tree-inline.o.
7090 (c-common.o): Depend on tree-inline.h.
7091 (tree-inline.o): New target.
7092 * c-common.c: Include tree-inline.h.
7093 (c_mark_lang_decl): Don't mark saved_tree.
7094 (c_common_lang_init): Set lang_anon_aggr_type_p.
7095 * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
7096 (struct c_lang_decl): Moved saved_tree to tree_decl.
7097 * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
7098 * integrate.h (function_attribute_inlinable_p): Declare it.
7099 * integrate.c (function_attribute_inlinable_p): Export it.
7100 * tree-inline.c: New file. Define variables declared in...
7101 * tree-inline.h: New file. Declare functions to be moved to
7102 tree-inline.c. Define macros and declare types and hooks for
7103 language-specific tree inlining.
7104 (flag_inline_trees): Moved definition from cp/decl2.c.
7105 * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
7106 (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
7107 (struct tree_decl): Moved saved_tree from c_lang_decl and
7108 inlined_fns from C++'s lang_decl.
7110 2001-10-04 Loren J. Rittle <ljrittle@acm.org>
7112 * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
7113 propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
7115 2001-10-04 Neil Booth <neil@daikokuya.demon.co.uk>
7117 * doc/cppinternals.texi: Update.
7119 2001-10-04 Eric Christopher <echristo@redhat.com>
7121 * config/mips/mips.c (init_cumulative_args): Remember to set
7123 * config.gcc: Redo linux configuration. Add target_cpu_default
7124 of soft-float to all mipsisa32 combinations and tx39.
7125 * config/mips/linux.h: Remove include of mips.h.
7127 2001-10-03 Loren J. Rittle <ljrittle@acm.org>
7129 * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
7130 HOST_LDFLAGS and HOST_CPPFLAGS.
7132 2001-10-03 Ziemowit Laski <zlaski@apple.com>
7134 * c-parse.in (objc_inherit_code, objc_pq_context,
7135 objc_public_flag): Make static.
7136 (objc_interface_context, objc_implementation_context,
7137 objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
7138 global tree array in objc/objc-act.[ch].
7139 (methoddef): Remove unnecessary code.
7141 * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
7142 Hoist struct definitions to objc-act.h.
7143 (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
7144 cat_count): Place declaration in objc-act.h.
7145 (objc_tree_index): Move enumeration to objc-act.h.
7146 (objc_global_trees): Place declaration and macro accessors in
7148 (implementation_context): Remove duplicate; use
7149 objc_implementation_context instead:
7150 (method_context): Remove duplicate; use objc_method_context
7152 (objc_ellipsis_node, objc_method_prototype_template,
7153 implemented_classes, function_type): Move global vars to
7155 (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
7156 (build_message_expr): Move actual construction of ObjC message
7157 send nodes to finish_message_expr.
7158 (finish_message_expr): New routine, contains code formerly in
7160 * objc/objc-act.h (finish_message_expr): New prototype.
7161 (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
7162 declarations; these vars are now part of objc_global_trees.
7163 (objc_tree_index, objc_global_trees): Move definitions from
7165 * objc/objc-tree.def: Update copyright info.
7167 Wed Oct 3 12:22:11 EDT 2001 John Wehle (john@feith.com)
7169 * dwarf2asm.c (unaligned_integer_asm_op): Abort if
7171 * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
7172 only if TARGET_ARCH64.
7174 2001-10-02 Bernd Schmidt <bernds@redhat.com>
7176 * doc/extend.texi: Fix some problems with previous checkin.
7177 * doc/invoke.texi: Likewise.
7179 2001-10-02 Neil Booth <neil@daikokuya.demon.co.uk>
7181 * cpphash.h: Update comments.
7182 (cpp_context): Update.
7183 (spec_nodes): Remove n__Pragma.
7184 * cppinit.c (cpp_create_reader): Update.
7185 (builtin_array): Add _Pragma.
7186 * cpplib.h: Update comments.
7187 (NODE_DISABLED, BT_PRAGMA): New.
7188 (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
7189 * cppmacro.c (struct cpp_macro): Remove disabled.
7190 (builtin_macro): Return int, handle _Pragma, push the new token
7191 on the context stack.
7192 (funlike_invocation_p): Unconstify, update.
7193 (enter_macro_context): Handle builtins here.
7194 (replace_args, push_token_context, push_ptoken_context):
7195 Update for prototype changes.
7196 (_cpp_pop_context): Update.
7197 (cpp_get_token): Don't handle buitins, nor _Pragma here.
7198 (cpp_sys_macro_p): Update.
7199 (_cpp_free_definition): Clear disabled flag.
7200 (_cpp_create_definition): Upate.
7201 * cppmain.c: Update comments.
7203 Tue Oct 2 12:46:01 CEST 2001 Bo Thorsen <bo@suse.co.uk>,
7204 Andreas Jaeger <aj@suse.de>,
7205 Jan Hubicka <jh@suse.cz>
7207 * doc/invoke.texi (i386 Options): Document x86-64 options.
7208 (i386 and x86-64 Options): Rename i386 options section.
7210 * config/i386/i386.h (TARGET_UNWIND_INFO): New.
7211 (TARGET_SWITCHES): Add -munwind-info.
7212 (MASK_NO_UNWIND_INFO): New.
7213 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
7215 (ASM_OUTPUT_DOUBLE_INT): New.
7217 * config/i386/linux64.h: New spec file for Linux x86-64 support.
7218 * config.gcc: Fix tm_file settings for x86-64.
7219 * config/i386/x86-64.h: New file with OS independent x86-64
7221 * config/i386/biarch64.h: New file used to configure compiler
7222 to biarch/64bit compilation.
7224 * config/i386/i386.c: (override_options): Set flags default
7225 for 64bit compilation.
7227 Tue Oct 2 12:46:01 CEST 2001 Jan Hubicka <jh@suse.cz>
7229 * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
7230 (ix86_expand_int_movcc): Optimize DImode conditional moves with
7231 constants on x86_64.
7232 (ix86_attr_length_immediate_default): Support MODE_DI.
7233 * i386.md (fixdi splitter): Add missing "&& 1" in splitter
7235 (indirect_jump, tablejump): Turn into expander.
7237 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
7239 * c-common.c (c_format_attribute_table): Make format and
7240 format_arg attributes apply to function types rather than to
7242 (is_valid_printf_arglist): Construct an attribute list and pass
7243 that to check_function_format rather than a name.
7244 * c-common.h (check_function_format): Adjust prototype.
7245 * c-decl.c (duplicate_decls): Preserve attributes from type of
7246 built-in decl when allowing for harmless conflict in types.
7247 * c-format.c (record_function_format,
7248 record_international_format, function_format_list,
7249 international_format_info, international_format_list): Remove.
7250 (function_format_info): Remove next, name and assembler_name.
7251 Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
7252 (decode_format_attr): New.
7253 (handle_format_attribute): Handle receiving a type rather than a
7254 decl. Call decode_format_attr. Store format information in a
7255 function_format_info.
7256 (handle_format_arg_attribute): Correct comment. Handle receiving
7257 a type rather than a decl. Use unsigned HOST_WIDE_INT for
7259 (check_format_info_recurse, check_format_info_main): Take argument
7260 numbers as unsigned HOST_WIDE_INT.
7261 (check_function_format): Take a list of attributes from the
7262 function type rather than a name or assembler name. Check for
7263 format attributes in that list and the attributes on the type of
7264 the current function rather than looking through
7265 function_format_list.
7266 (check_format_info): Use unsigned HOST_WIDE_INT for argument
7268 (check_format_info_recurse): Take format_arg attributes from the
7269 type of the function calls rather than using
7270 international_format_list. Allow for multiple format_arg
7272 * c-typeck.c (build_function_call): Pass type attributes to
7273 check_function_format rather than name or assembler name. Don't
7274 require there to be a name or assembler name to check formats.
7276 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
7278 * attribs.c (decl_attributes): Possibly call
7279 insert_default_attributes to insert default attributes on
7280 functions in a lazy manner.
7281 * builtin-attrs.def: New file; define the default format and
7282 format_arg attributes.
7283 * c-common.c (c_format_attribute_table): Move to earlier in the
7285 (c_common_nodes_and_builtins): Initialize format_attribute_table.
7286 (enum built_in_attribute, built_in_attributes,
7287 c_attrs_initialized, c_init_attributes,
7288 c_common_insert_default_attributes): New.
7289 (c_common_lang_init): Don't initialize format_attribute_table. Do
7290 call c_init_attributes.
7291 * Makefile.in (c-common.o): Depend on builtin-attrs.def.
7292 * c-common.h (init_function_format_info): Don't declare.
7293 (c_common_insert_default_attributes): Declare.
7294 * c-decl.c (implicitly_declare, builtin_function): Call
7296 (init_decl_processing): Don't call init_function_format_info.
7297 (insert_default_attributes): New.
7298 * c-format.c (handle_format_attribute,
7299 handle_format_arg_attribute): Be quiet about inappropriate
7300 declaration when applying default attributes.
7301 (init_function_format_info): Remove.
7302 * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
7303 (insert_default_attributes): Declare.
7305 2001-10-02 Joseph S. Myers <jsm28@cam.ac.uk>
7307 * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
7309 2001-10-01 Jim Wilson <wilson@redhat.com>
7311 * sched-deps.c (add_dependence): When elide conditional dependence,
7312 check that insn doesn't modify cond2.
7314 2001-10-01 Dale Johannesen <dalej@apple.com>
7316 * config/rs6000/rs6000.h (enum processor_type): Add support
7317 for 7400 (G4) and 7450.
7319 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
7320 (rs6000_issue_rate): Ditto.
7321 (rs6000_adjust_cost): Fix cycle counts for compares.
7322 (debug_stack_info): Fix an obvious typo.
7323 * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
7324 * doc/invoke.texi: Document.
7325 * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
7327 (PROCESSOR_DEFAULT): Ditto.
7329 2001-10-01 Loren J. Rittle <ljrittle@acm.org>
7331 * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
7332 (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
7333 later recursive make invocation.
7335 2001-10-01 Hans Boehm <boehm@acm.org>
7337 * optabs.c (emit_libcall_block): When using non-call exceptions,
7338 don't add REG_LIBCALL reg notes to trapping calls.
7340 2001-10-01 David Billinghurst <David.Billinghurst@riotinto.com>
7342 * flow.c (propagate_block_delete_libcall): Remove unused first arg
7343 (propagate_one_insn): Update for above change
7345 2001-10-01 David Billinghurst <David.Billinghurst@riotinto.com>
7347 * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
7348 _Unwind_GetTextRelBase): Argument is unused.
7350 Mon Oct 1 19:20:57 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7352 * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
7353 Loop through NOPs, placeholders, and components.
7354 Don't go through NOPs if change mode.
7355 (record_alias_subset): Do nothing if SUBSET and SET are the same.
7356 * emit-rtl.c (set_mem_alias_set): Enable check.
7357 * expr.c (find_placeholder): New function.
7358 (expand_expr, case PLACEHOLDER_EXPR): Use it.
7359 (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
7360 to modify it and avoid unneeded copies.
7361 * expr.h (expand_expr): Always define.
7362 (find_placeholder): New declaration.
7364 2001-10-01 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7366 * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
7367 operand 2 is the stack pointer.
7368 ("addr-peephole"): Fix address computation peephole when operand 2
7369 is the stack pointer.
7371 Mon Oct 1 09:26:41 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7373 * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
7374 (ix86_setup_incoming_varargs): Likewise.
7376 2001-10-01 Jason Merrill <jason_merrill@redhat.com>
7378 * stor-layout.c (layout_type): Don't complain about too-large
7381 Mon Oct 1 06:43:41 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7383 * function.c (keep_stack_depressed): Don't use delete_insn.
7385 * expr.h (set_mem_alias_set): Move decl to here.
7386 * rtl.h (mem_attrs): New typedef and struct.
7387 (union rtunion_def): Add field for mem_attrs.
7388 (X0MEMATTR, MEM_ATTRS): New macros.
7389 (MEM_ALIAS_SET): Use MEM_ATTRS.
7390 (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
7391 (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
7392 (set_mem_alias_set): Delete decl from here.
7394 * alias.c (set_mem_alias_set): Delete from here.
7395 * emit-rtl.c (mem_attrs_htab): New variable.
7396 (rtx_htab_mark, rtx_htab_mark_1): Deleted.
7397 (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
7398 (mem_attrs_mark, get_mem_attrs): Likewise.
7399 (gen_rtx_MEM): Clear MEM_ATTRS.
7400 (set_mem_attributes): Move to here.
7401 (set_mem_alias_set): Likewise, and call get_mem_attrs.
7402 (init_emit_once): const_int_htab now deletable htab.
7403 Initialize mem_attrs_htab.
7404 * explow.c (set_mem_attributes): Delete from here.
7405 * function.c (put_var_into_stack): Clear MEM_ATTRS.
7406 (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
7407 * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
7408 * reload1.c (reload): Rework changing REG to MEM.
7410 2001-09-30 H.J. Lu <hjl@gnu.org>
7412 * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
7413 * config.in: Rebuild.
7415 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7417 * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
7418 ("tsthi_1"): Avoid allocation in register y.
7419 ("*movqi_68hc12"): Reorganize and fix constraints.
7420 ("zero_extendqisi2"): Prefer d over x and y for operand 1.
7421 ("addqi3"): Likewise.
7422 ("addhi3"): Fix constraints.
7423 ("*logicalhi3_zexthi"): Disparage soft registers.
7425 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7427 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
7430 2001-09-30 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7432 * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
7433 that we use setjmp/longjmp exceptions.
7435 2001-09-30 Neil Booth <neil@daikokuya.demon.co.uk>
7437 * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
7438 POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
7439 struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
7440 _cpp_pool_alloc, _cpp_next_chunk): Remove.
7441 (_cpp_extend_buff, BUFF_ROOM): Update.
7442 (_cpp_append_extend_buff): New.
7443 (struct cpp_reader): Remove macro_pool, add a_buff.
7444 * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
7446 (cpp_destroy): Free a_buff instead of macro_pool.
7447 * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
7448 new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
7449 _cpp_pool_alloc, ): Remove.
7450 (parse_number, parse_string): Update use of _cpp_extend_buff.
7451 (_cpp_extend_buff): Update.
7452 (_cpp_append_extend_buff, cpp_aligned_alloc): New.
7453 * cpplib.c (glue_header_name, parse_answer):
7454 Update use of _cpp_extend_buff.
7455 (cpp_register_pragma, cpp_register_pragma_space): Use
7457 (do_assert, do_unassert): Check for EOL, update.
7458 * cppmacro.c (stringify_arg, collect_args): Update to use
7459 _cpp_extend_buff and _cpp_append_extend_buff.
7460 (save_parameter, parse_params, alloc_expansion_token,
7461 _cpp_create_definition): Rework memory management.
7463 2001-09-29 Andris Pavenis <pavenis@lanet.lv>
7465 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
7466 update md_exec_prefix.
7467 (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
7470 2001-09-30 Ulrich Weigand <uweigand@de.ibm.com>
7472 * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
7473 (SELECT_CC_MODE): Use s390_select_ccmode.
7474 * config/s390/s390-protos.h (s390_select_ccmode): Add.
7475 * config/s390/s390.c (s390_select_ccmode): New.
7476 (s390_match_ccmode): Add CCLmode.
7477 (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
7478 (output_branch_condition, output_inverse_branch_condition): Removed.
7479 (print_operand): Use s390_branch_condition_mnemonic.
7480 * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
7481 subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
7482 (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
7484 * config/s390/s390.c (check_and_change_labels): Preserve CC mode
7485 when converting conditional branches to far branches.
7486 * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
7487 cmpint_di): Use CCSmode instead of CCUmode.
7489 * config/s390/s390.c (legitimate_la_operand_p): New.
7490 * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
7491 * config/s390/s390.md (movsi): Convert load address patterns to
7492 arithmetic operations when necessary.
7493 (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
7494 (do_la): Renamed to *do_la and use legitimate_la_operand_p.
7495 (*do_la_reg_0): Don't use before reload.
7497 * config/s390/s390.c (legitimize_address): Make more efficient
7498 use of two-register addressing mode.
7500 * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
7501 with -mno-backchain in some corner cases.
7503 * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
7505 2001-09-29 Alexandre Oliva <aoliva@redhat.com>
7507 * reload.c (find_reloads): Mark new USE insns with QImode.
7508 (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
7509 find_reloads_subreg_address): Likewise.
7510 * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
7512 * reload1.c (reload_combine_note_use): Likewise, inside USEs and
7514 (reload): Make sure there are no USEs with mode other than
7515 VOIDmode. At the end, remove those marked with QImode.
7517 2001-09-29 Per Bothner <per@bothner.com>
7519 * cppdefault.c (cpp_include_defaults): Also search PREFIX_INCLUDE_DIR.
7520 * Makefile.in (includedir): Rename to local_includedir.
7521 (includedir): Define as $(prefix)/include.
7522 * config.in (PREFIX_INCLUDE_DIR): New variable.
7523 * configure.in (PREFIX_INCLUDE_DIR): Test for new variable.
7525 2001-09-29 Bernd Schmidt <bernds@redhat.com>
7527 * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
7529 * doc/extend.texi (Vector Extensions): New node.
7530 * doc/invoke.texi (Machine Dependent Options): Add documentation for
7531 i386 -mmmx, -msse, -m3dnow.
7533 Sat Sep 29 15:08:16 CEST 2001 Jan Hubicka <jh@suse.cz>
7535 * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
7537 2001-09-29 Hans-Peter Nilsson <hp@axis.com>
7539 * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
7541 * doc/invoke.texi (Optimize Options): Delete spurious @table.
7543 2001-09-28 Richard Henderson <rth@redhat.com>
7545 * varasm.c (assemble_integer): Bound alignment check by
7548 * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
7550 2001-09-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7552 * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
7554 2001-09-25 Bernd Schmidt <bernds@redhat.com>
7556 Mostly from Graham Stott <grahams@redhat.com>
7557 * c-common.c (type_for_mode): Add support for V2SFmode.
7558 * tree.c (build_common_tree_nodes_2): Likewise.
7559 * tree.h (enum tree_index, global_trees): Likewise.
7560 * config/i386/i386.c (x86_3dnow_a): New variable.
7561 (override_options): Support 3Dnow extensions.
7562 (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
7563 Athlon's version of 3Dnow.
7564 (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
7565 (ix86_expand_builtin): Handle them.
7566 (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
7567 * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
7568 TARGET_3DNOW_A): New macros.
7569 (TARGET_SWITCHES): Add 3Dnow switches.
7570 (VALID_MMX_REG_MODE_3DNOW): New macro.
7571 (VECTOR_MODE_SUPPORTED_P): Use it.
7572 (enum ix86_builtins): Add entries for 3Dnow builtins.
7573 * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
7574 pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
7575 pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
7576 pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
7577 pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
7578 pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
7579 (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
7580 mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
7581 mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
7582 sfence_insn, prefetch): Make these available if TARGET_SSE or
7585 Fri Sep 28 19:18:40 CEST 2001 Jan Hubicka <jh@suse.cz>
7587 * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
7588 ix86_va_start, ix86_build_va_list): Declare.
7589 * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
7590 ix86_va_start, ix86_build_va_list): New global functions.
7591 * i386.md (sse_prologue_save_insn): New insn.
7592 (sse_prologue_save): New expander.
7593 * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
7594 BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
7596 2001-09-28 Neil Booth <neil@daikokuya.demon.co.uk>
7598 * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
7599 Use size_t everywhere, make definitions consistent with
7602 Fri Sep 28 14:59:34 CEST 2001 Jan Hubicka <jh@suse.cz>
7604 * gcse.c (replace_store_insn): Use delete_insn.
7605 * loop.c (move_movables): Likewise; avoid delete_insn
7606 from clobbering notes moved elsewhere.
7607 (check_dbra_loop): Use delete_insn.
7608 * ssa.c (convert_from_ssa): Likewise.
7609 * cse.c (cse_insn): Use delete_insn.
7611 2001-09-28 Neil Booth <neil@daikokuya.demon.co.uk>
7613 * cpphash.h (struct cpp_buff): Make unsigned.
7614 (_cpp_get_buff): Take length of size_t.
7615 (_cpp_unaligned_alloc): New.
7616 (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
7617 (struct cpp_reader): Remove ident_pool. Add u_buff.
7618 * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
7619 (cpp_destroy): Destroy u_buff, not ident_pool.
7620 * cpplex.c (parse_number, parse_string, save_comment,
7621 cpp_token_as_text): Update to use the unaligned buffer.
7622 (new_buff): Make unsigned.
7623 (_cpp_unaligned_alloc): New.
7624 * cpplib.c (glue_header_name): Update to use the unaligned buffer.
7625 * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
7627 (collect_args): Make unsigned.
7629 2001-09-27 Zack Weinberg <zack@codesourcery.com>
7631 * cpplex.c (cpp_output_token): Use a putc loop for
7632 SPELL_OPERATOR, and fwrite for SPELL_IDENT.
7634 * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
7635 * configure, config.in: Regenerate.
7636 * system.h: Replace fwrite and fprintf with their unlocked
7637 variants if available.
7639 2001-09-27 Richard Henderson <rth@redhat.com>
7641 * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
7642 in favour of .eh_frame.
7644 2001-09-27 Aldy Hernandez <aldyh@redhat.com>
7646 * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
7648 (LIBCALL_VALUE): Likewise.
7650 2001-09-27 Neil Booth <neil@daikokuya.demon.co.uk>
7652 * cpphash.h: Update comment.
7653 * cpplex.c: Update comments.
7654 (_cpp_can_paste): Remove.
7655 * cpplib.h (_cpp_can_paste): Remove.
7656 * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
7657 lexer rather than _cpp_can_paste.
7659 2001-09-27 Neil Booth <neil@daikokuya.demon.co.uk>
7661 * doc/cppinternals.texi: Update.
7663 2001-09-26 Neil Booth <neil@daikokuya.demon.co.uk>
7665 * cpphash.h (struct cpp_pool): Remove locks and locked.
7666 (struct cpp_context): Add member buff.
7667 (struct cpp_reader): Remove member argument_pool.
7668 (_cpp_lock_pool, _cpp_unlock_pool): Remove.
7669 * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
7670 * cpplex.c (chunk_suitable): Remove pool argument.
7671 (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
7672 (new_buff, _cpp_extend_buff): Update.
7673 (_cpp_get_buff): Fix silly pointer bug. Be more selective about
7674 which buffer is returned.
7675 (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
7676 (_cpp_lock_pool, _cpp_unlock_pool): Remove.
7677 * cppmacro.c (lock_pools, unlock_pools): Remove.
7678 (push_ptoken_context): Take a _cpp_buff.
7679 (enter_macro_context): Pool locking removed.
7680 (replace_args): Use a _cpp_buff for the replacement list with
7682 (push_token_context): Clear buff.
7683 (expand_arg): Use _cpp_pop_context.
7684 (_cpp_pop_context): Free a context's buffer, if any.
7686 2001-09-26 DJ Delorie <dj@redhat.com>
7688 * c-typeck.c (digest_init): Check for sizeless arrays.
7690 2001-09-26 Richard Henderson <rth@redhat.com>
7692 * optabs.c (init_one_libfunc): Create a dummy function type
7693 instead of using error_mark_node.
7695 2001-09-26 Neil Booth <neil@daikokuya.demon.co.uk>
7697 * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
7698 _cpp_extend_buff, _cpp_free_buff): New.
7699 (struct cpp_reader): New member free_buffs.
7700 * cppinit.c (cpp_destroy): Free buffers.
7701 * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
7702 _cpp_extend_buff, _cpp_free_buff): New.
7703 * cpplib.h (struct cpp_options): Remove unused member.
7704 * cppmacro.c (collect_args): New. Combines the old parse_arg
7705 and parse_args. Use _cpp_buff for memory allocation.
7706 (funlike_invocation_p, replace_args): Update.
7708 Wed Sep 26 13:20:51 CEST 2001 Jan Hubicka <jh@suse.cz>
7710 * final.c (final_scan_insn): Use delete_insn instead of delete_note.
7712 2001-09-25 Andrew Haley <aph@cambridge.redhat.com>
7714 * except.c (sjlj_mark_call_sites): Change address inside sequence.
7716 2001-09-24 Andrew Haley <aph@cambridge.redhat.com>
7718 * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
7721 2001-09-25 Janis Johnson <janis187@us.ibm.com>
7722 Jim Wilson <wilson@redhat.com>
7724 * doc/install.texi (Specific, ia64-*-linux): Document.
7726 Tue Sep 25 17:13:56 CEST 2001 Jan Hubicka <jh@suse.cz>
7728 * Makefile.in (cfgrtl.o): Add.
7729 * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
7730 free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
7731 free_aux_for_edge): Declare.
7733 (HAVE_return): Undefine.
7734 * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
7735 free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
7736 free_aux_for_edge): New global functions.
7737 (first_delete_block): New static variable.
7738 (init_flow): Clear first_delete_block.
7739 (basic_block_for_insn, label_value_list, tail_recursion_label_list,
7740 can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
7741 try_redirect_by_replacing_jump, last_loop_beg_note,
7742 back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
7743 delete_insn, delete_insn_chain, create_basic_block_structure,
7744 create_basic_block, flow_delete_block, compute_bb_for_insn,
7745 free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
7746 set_block_for_new_insns, split_block, merge_blocks_nomove,
7747 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
7748 redirect_edge_and_branch, force_nonfallthru_and_redirect,
7749 force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
7750 tidy_fallthru_edges, split_edge, insert_insn_on_edge,
7751 commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
7752 debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
7753 purge_all_dead_edges): Move to ....
7754 * cfgrtl.c: New file; .... Here.
7756 * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
7757 (reroder_basic_block): Use alloc_aux_for_blocks.
7758 * predict.c (estimate_bb_frequencies): Likewise; use
7759 alloc_aux_for_edges.
7760 * profile.c (compute_branch_probabilities): Likewise.
7761 (branch_prob): Likewise.
7762 * reg-stack.c (reg_to_stack): Likewise.
7764 * emit-rtl.c (emit_insns_after): Never return NULL.
7766 * basic-block.h (set_block_for_new_insns): Delete.
7767 * cfgrtl.c (set_block_for_new_insns): Delete.
7769 * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
7770 calls when crossjumping.
7772 * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
7773 * unroll.c (copy_loop_body): Use delete_insn.
7775 * final.c (final, final_scan_insn): Use delete_insn/delete_note.
7776 * function.c (fixup_var_refs_insn, fixup_var_refs_1,
7777 keep_stack_depressed): Likewise.
7778 * gcse.c (cprop_cc0_jump): Likewise.
7779 * local-alloc.c (update_equiv_regs): Likewise.
7780 * loop.c (scan_loop, loop_delete_insns): Likewise.
7781 * regmove.c (try_auto_increment, fixup_match_1): Likewise.
7782 * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
7783 delete_output_reload, delete_address_reloads_1,
7784 reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
7786 * sibcall.c (replace_call_placeholder): Likewise.
7787 * cse.c (cse_insn): Likewise.
7789 2001-09-25 Bernd Schmidt <bernds@redhat.com>
7791 From Graham Stott <grahams@redhat.com>
7792 (def_builtin): Only define builtins appropriate for target_flags. All
7794 (builtin_decsription): Add new field mask which is used to determine
7795 when to define the builtin via the macro def_builtin.
7797 (bdesc_comi): Initialise new mask fields.
7798 (bdesc_2srg): Likewise.
7799 (bdesc_1arg): Likewise.
7801 * config/i386/i386.c (ix86_init_builtins): Correct return type
7802 building v4hi_ftype_v4hi_int_int tree node.
7803 (ix86_expand_sse_comi): Fix typo swapping operands.
7804 Don't swap comparision condition, it is already swapped.
7805 (ix86_expand_sse_compare): Before swapping operands
7806 move operand 1 into new rtx and not the target rtx.
7807 Don't swap comparison condition, it is already swapped.
7808 Always check whether we need to create a new TARGET.
7810 * config/i386/i386.md: (sse_comi) Fix typos.
7811 (sse_ucomi): Likewise.
7812 (cvtss2si): Fix operand 0 contraint.
7813 (cvttss2si): Likewise.
7814 (sse_unpckhps): Fix mode for operand 2.
7815 (sse_unpcklps): Likewise.
7817 2001-09-25 Graham Stott <grahams@redhat.com>
7819 * sibcall.c (skip_copy_to_return_value): Tighten return value
7822 2001-09-24 David Edelsohn <edelsohn@gnu.org>
7824 * rs6000.c (lwa_operand): Address must be word aligned.
7826 Mon Sep 24 18:57:59 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7828 * tree.c (type_hash_marked_p): Consider as marked if debug symbol
7829 number has been set.
7830 (type_hash_mark): Mark type itself.
7832 2001-09-24 Neil Booth <neil@daikokuya.demon.co.uk>
7834 * c-lex.c (cb_def_pragma): Update.
7835 (c_lex): Update, and skip padding.
7836 * cppexp.c (lex, parse_defined): Update, remove unused variable.
7837 * cpphash.h (struct toklist): Delete.
7838 (union utoken): New.
7839 (struct cpp_context): Update.
7840 (struct cpp_reader): New members eof, avoid_paste.
7841 (_cpp_temp_token): New.
7842 * cppinit.c (cpp_create_reader): Update.
7843 * cpplex.c (_cpp_temp_token): New.
7844 (_cpp_lex_direct): Add PREV_WHITE when parsing args.
7845 (cpp_output_token): Don't print leading whitespace.
7846 (cpp_output_line): Update.
7847 * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
7848 do_include_common, do_line, do_ident, do_pragma,
7849 do_pragma_dependency, _cpp_do__Pragma, parse_answer,
7850 parse_assertion): Update.
7851 (get_token_no_padding): New.
7852 * cpplib.h (CPP_PADDING): New.
7853 (AVOID_LPASTE): Delete.
7854 (struct cpp_token): New union member source.
7855 (cpp_get_token): Update.
7856 * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
7857 (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
7858 replace_args, quote_string, stringify_arg, parse_arg, next_context,
7859 enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
7860 _cpp_backup_tokens, _cpp_create_definition): Update.
7861 (push_arg_context): Delete.
7862 (padding_token, push_token_context, push_ptoken_context): New.
7863 (make_string_token, make_number_token): Update, rename.
7864 (cpp_get_token): Update to handle tokens as pointers to const,
7865 and insert padding appropriately.
7866 * cppmain.c (struct printer): New member prev.
7867 (check_multiline_token): Constify.
7868 (do_preprocessing, cb_line_change): Update.
7869 (scan_translation_unit): Update to handle spacing.
7870 * scan-decls.c (get_a_token): New.
7871 (skip_to_closing_brace, scan_decls): Update.
7872 * fix-header.c (read_scan_file): Update.
7874 * doc/cpp.texi: Update.
7876 2001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7878 * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC. Avoid
7879 leak by passing malloc'ed pointer to reconcat, not concat.
7881 2001-09-24 DJ Delorie <dj@redhat.com>
7883 * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
7885 2001-09-24 Ulrich Weigand <uweigand@de.ibm.com>:
7887 * flow.c (delete_dead_jumptables): Delete jumptable if the only
7888 reference is from the literal pool.
7890 2001-09-24 Janis Johnson <janis187@us.ibm.com>
7892 * doc/install.texi (Final install): Request additional information
7893 in mail about successful builds.
7895 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
7897 * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero. Use
7898 initial value of return pointer register instead of value in frame-20.
7901 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
7903 * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
7904 (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
7905 the libcall if there isn't a referenced identifier for the symbol.
7907 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
7909 * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
7910 non 64-bit machines. Use these as a plabel for the trampoline.
7911 (TRAMPOLINE_SIZE): Adjust size for new words.
7912 (INITIALIZE_TRAMPOLINE): Initialize new words.
7913 (TRAMPOLINE_ADJUST_ADDRESS): New. Adjust address to make it a
7914 pointer to the plabel in the trampoline.
7916 2001-09-24 John David Anglin <dave@hiauly1.hia.nrc.ca>
7918 * pa.c (function_arg): Pass floating arguments in both general and
7919 floating registers in indirect (dynamic) calls when generating code
7920 for the 32 bit ABI and the HP assembler.
7922 2001-09-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7924 * doc/install.texi: Markup fixes.
7925 Use Solaris 2, SunOS 4 as appropriate.
7926 (Specific, *-*-solaris2*): Explain this.
7927 Unconditionally warn against /usr/ucb tools.
7928 Remove Sun as warning, obsolete.
7929 Move X11 header bug workaround here, update patches.
7930 (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
7931 (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
7933 2001-09-23 Zack Weinberg <zack@codesourcery.com>
7935 * errors.h (warning, error, fatal, internal_error): Don't mark
7936 with ATTRIBUTE_PRINTF_n.
7937 * toplev.h (internal_error, fatal_io_error, warning, error,
7938 pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
7939 error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
7942 Sun Sep 23 18:19:48 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7944 * function.c (pop_function_context_from): var_refs_queue
7945 and temp slots now in GC memory.
7946 (mark_function_status, free_after_compilation): Likewise;
7947 also struct function now in GC memory.
7948 (assign_stack_temp_for_type): struct temp_slot now in GC memory.
7949 (combine_temp_slots): Likewise.
7950 (schedule_fixup_var_refs): var_refs_queue now in GC memory.
7951 (prepare_function_start): Use GC memory for struct function.
7952 (mark_temp_slot): Deleted.
7953 (gcc_mark_struct_function): struct function now in GC memory.
7955 * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
7956 code for division, not modulus.
7958 * rtl.def (MEM): Remove obsolete part of comment.
7960 2001-09-22 Joseph S. Myers <jsm28@cam.ac.uk>
7962 * c-format.c (init_function_format_info): Check __builtin_printf
7963 and __builtin_fprintf even if -ffreestanding. Check C99 functions
7966 Sat Sep 22 09:09:32 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7968 * c-common.c (format_attribute_table): Remove decl.
7969 * tree.h (format_attribute_table, lang_attribute_table): New decls.
7970 (lang_attribute_common): Likewise.
7972 * function.c (fix_lexical_address): Use set_mem_alias_set.
7973 (expand_function_start): Likewise.
7974 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
7976 * varasm.c (output_constant): Fix unused variable warning.
7978 * attribs.c: New file, from c-common.c.
7979 (attribute_tables): Now four elements.
7980 (format_attribute_table, lang_attribute_common): New variables.
7981 (init_attributes): Reflect above changes.
7982 (handle_mode_attribute): Delete check for wider than uintmax.
7983 * c-common.c: Delete parts moved to attribs.c.
7984 (enum attrs): Deleted; unused.
7985 (c_format_attribute_table): New variable.
7986 (c_common_lang_init): Initialize format_attribute_table with it.
7987 * c-common.h (decl_attributes): Remove decl.
7988 * tree.h (decl_attribute): Move it to here.
7989 * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
7990 (attribs.o): New rule.
7992 2001-09-22 Andreas Jaeger <aj@suse.de>
7994 * builtins.c (c_getstr): Remove unused variable.
7996 2001-09-21 Richard Henderson <rth@redhat.com>
7998 * reload1.c (reload): Use delete_insn instead of splatting
8001 2001-09-21 Richard Henderson <rth@redhat.com>
8003 * reload.c (push_secondary_reload): Don't check for "=" in output
8004 constraint after ""->ALL_REGS check.
8006 2001-09-21 Richard Henderson <rth@redhat.com>
8008 * predict.c (expected_value_to_br_prob): Use pc_set.
8010 * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
8011 ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
8013 2001-09-21 Richard Henderson <rth@redhat.com>
8015 * rtl.h (LCT_RETURNS_TWICE): New.
8016 * calls.c (emit_call_1): Set current_function_calls_setjmp for
8018 (emit_library_call_value_1): Map LCT_RETURNS_TWICE
8019 to ECF_RETURNS_TWICE.
8020 * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
8023 * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
8025 * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
8026 (JMP_BUF_SIZE): New.
8028 2001-09-21 Richard Henderson <rth@redhat.com>
8030 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
8033 2001-09-21 Richard Henderson <rth@redhat.com>
8035 * tree.def (FDESC_EXPR): New.
8036 * expr.c (expand_expr): Handle it.
8037 * varasm.c (initializer_constant_valid_p): Likewise.
8038 (output_constant): Likewise.
8039 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
8040 * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
8041 (ASM_OUTPUT_FDESC): New.
8042 * doc/tm.texi: Document the new macros.
8044 21-09-2001 Richard Earnshaw (reanrsha@arm.com)
8046 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
8047 ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
8048 once merging is complete.
8050 Fri Sep 21 11:20:12 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8052 * integrate.c (allocate_initial_values): Eliminate unused arg warning.
8054 21-09-2001 Richard Earnshaw (reanrsha@arm.com)
8056 * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
8057 that would be invalid after a merge.
8059 Fri Sep 21 14:24:29 CEST 2001 Jan Hubicka <jh@suse.cz>
8061 * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
8062 * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
8064 (flow_delete_insn): This one.
8065 (delete_insn_chain): Rename from ...; do not care labels.
8066 (flow_delete_insn_chain): ... this one.
8067 (flow_delete_block): Remove the insns one BB has been expunged.
8068 (merge_blocks_nomove): Likewise.
8069 (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
8070 updating BB boundaries.
8071 (tidy_fallthru_edge): Likewise.
8072 (commit_one_edge_insertion): Likewise.
8073 * cfgbuild.c (find_basic_block): Likewise.
8074 (find_basic_blocks_1): Likewise.
8075 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
8076 (try_crossjump_to_edge): Likewise.
8077 (try_optimize_cfg): Likewise.
8078 * cse.c (delete_trivially_dead_insns): Likewise.
8079 * df.c (df_insn_delete): Likewise.
8080 * doloop.c (doloop_modify): Use delete_related_insns.
8081 * emit-rtl.c (try_split): Likewise.
8082 (remove_insn): Update BB boundaries.
8083 * expect.c (connect_post_landing_pads): Use delete_related_insns.
8084 * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
8085 updating BB boundaries.
8086 (propagate_block_delete_insn): Likewise.
8087 (propagate_block_delete_libcall): Likewise.
8088 * function.c (delete_handlers): Use delete_related_insns.
8089 (thread_prologue_and_epilogue_insns): Likewise.
8090 * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
8091 * genpeep.c (gen_peephole): Use delete_related_insns.
8092 * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
8094 (find_cond_trap): Likewise.
8095 * integrate.c (save_for_inline): Use delete_related_insns.
8096 (copy_insn_list): Likewise.
8097 * jump.c (pruge_linie_number_notes): Likewise.
8098 (duplicate_loop_exit_test): Likewise.
8099 (delete_computation): Likewise.
8100 (delete_related_insn): Rename from ...; use delete_insn
8101 (delete_insn): ... this one.
8102 (redirect_jump): Use delete_related_insns.
8103 * loop.c (scan_loop): Likewise.
8104 (move_movables): Likewise.
8105 (find_and_verify_loops): Likewise.
8106 (check_dbra_loop): Likewise.
8107 * recog.c (peephole2_optimize): Likewise.
8108 * reg-stack.c (delete_insn_for_stacker): Remove.
8109 (move_for_stack_reg): Use delete_insn.
8110 * regmove.c (combine_stack_adjustments_for_block): Likewise.
8111 * reload1.c (delete_address_reloads): Use delete_related_insns.
8112 (fixup_abnormal_edges): Use delete_insn.
8113 * recog.c (emit_delay_sequence): Use delete_related_insns.
8114 (delete_from-delay_slot): Likewise.
8115 (delete_scheduled_jump): likewise.
8116 (optimize_skip): Likewise.
8117 (try_merge_delay_insns): Likewise.
8118 (full_simple_delay_slots): Likewise.
8119 (fill_slots_from_thread): Likewise.
8120 (relax_delay_slots): Likewise.
8121 (make_return_insns): Likewise.
8122 (dbr_schedule): Likewise.
8123 * rtl.h (delete_insn): Rename to delete_related_insns.
8124 (delete_insn, delete_insn_chain): New prototypes.
8125 * ssa-ccp (sse_fast_dce): Remove deleting of DEF, as it is done
8126 by df_insn_delete already.
8127 * ssa-dce.c (delete_insn_bb): Use delete_insn.
8128 * ssa.c (convert_from_ssa): Use delete_related_insns.
8129 * unroll.c (unroll_loop): Likewise.
8130 (calculate_giv_inc): Likewise.
8131 (copy_loop_body): Likewise.
8133 * i386-protos.h (ix86_libcall_value, ix86_function_value,
8134 ix86_function_arg_regno_p, ix86_function_arg_boundary,
8135 ix86_return_in_memory, ix86_function_value): Declare.
8136 * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
8137 new static valurables.
8138 (x86_64_reg_class): New enum
8139 (x86_64_reg_class_name): New array.
8140 (classify_argument, examine_argument, construct_container,
8141 merge_classes): New static functions.
8142 (optimization_options): Enable flag_omit_frame_pointer and disable
8143 flag_pcc_struct_return on 64bit.
8144 (ix86_libcall_value, ix86_function_value,
8145 ix86_function_arg_regno_p, ix86_function_arg_boundary,
8146 ix86_return_in_memory, ix86_function_value): New global functions.
8147 (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
8148 (function_arg_advance): Handle x86_64 passing conventions.
8149 (function_arg): Likewise.
8150 * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
8151 (RETURN_IN_MEMORY): Move offline.
8152 (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
8153 (FUNCTION_VALUE_REGNO_P): New macro.
8154 (FUNCTION_ARG_REGNO_P): Move offline.
8155 (struct ix86_args): Add maybe_vaarg.
8156 * next.h (FUNCTION_VALUE_REGNO_P): Delete.
8157 * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
8159 2001-09-21 Hartmut Penner <hpenner@de.ibm.com>
8161 * s390.md: Changed attributes for scheduling.
8162 * s390.c: (s390_adjust_cost, s390_adjust_priority)
8165 2001-09-21 Joseph S. Myers <jsm28@cam.ac.uk>
8167 Table-driven attributes.
8168 * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
8169 config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
8170 config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
8171 config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
8172 config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
8173 config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
8174 doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
8175 tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
8176 * tree.h (struct tree_decl): Change machine_attributes to
8178 * doc/c-tree.texi: Document that all attributes are now attached
8180 * c-common.c (add_attribute, attrtab, attrtab_idx,
8181 default_valid_lang_attribute, valid_lang_attribute): Remove.
8182 (attribute_tables, attributes_initialized,
8183 c_common_attribute_table, default_lang_attribute_table): New
8185 (handle_packed_attribute, handle_nocommon_attribute,
8186 handle_common_attribute, handle_noreturn_attribute,
8187 handle_unused_attribute, handle_const_attribute,
8188 handle_transparent_union_attribute, handle_constructor_attribute,
8189 handle_destructor_attribute, handle_mode_attribute,
8190 handle_section_attribute, handle_aligned_attribute,
8191 handle_weak_attribute, handle_alias_attribute,
8192 handle_no_instrument_function_attribute,
8193 handle_no_check_memory_usage_attribute, handle_malloc_attribute,
8194 handle_no_limit_stack_attribute, handle_pure_attribute): New
8196 (init_attributes, decl_attributes): Rewrite to implement
8197 table-driven attributes.
8198 * c-common.h (enum attribute_flags): Move to tree.h.
8199 * c-format.c (decl_handle_format_attribute,
8200 decl_handle_format_arg_attribute): Rename to
8201 handle_format_attribute and handle_format_arg_attribute. Update
8202 for table-driven attributes.
8203 * c-common.h (decl_handle_format_attribute,
8204 decl_handle_format_arg_attribute): Remove prototypes.
8205 (handle_format_attribute, handle_format_arg_attribute): Add
8207 * c-decl.c (grokdeclarator): Handle attributes nested inside
8209 * c-parse.in (setattrs, maybe_setattrs): Remove.
8210 (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
8211 Update to handle nested attributes properly.
8212 (maybe_resetattrs, after_type_declarator,
8213 parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
8214 absdcl1_ea, direct_absdcl1): Update to handle nested attributes
8216 (make_pointer_declarator): Update to handle nested attributes
8218 * doc/extend.texi: Update documentation of limits of attributes
8219 syntax. Warn about problems with attribute semantics in C++.
8220 * target.h (struct target): Remove valid_decl_attribute and
8221 valid_type_attribute. Add attribute_table and
8222 function_attribute_inlinable_p.
8223 * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
8224 TARGET_VALID_TYPE_ATTRIBUTE): Remove.
8225 (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
8227 (TARGET_INITIALIZER): Update.
8228 * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
8230 (function_attribute_inlinable_p): New function. Check for the
8231 presence of any machine attributes before using
8232 targetm.function_attribute_inlinable_p.
8233 (function_cannot_inline_p): Update.
8234 * Makefile.in (integrate.o): Update dependencies.
8235 * doc/tm.texi: Update documentation of target attributes and
8236 example definition of TARGET_VALID_TYPE_ATTRIBUTE.
8237 * tree.c (default_valid_attribute_p, valid_machine_attribute):
8239 (default_target_attribute_table,
8240 default_function_attribute_inlinable_p): New.
8241 (lookup_attribute): Update comment to clarify handling of multiple
8242 attributes with the same name.
8243 (merge_attributes, attribute_list_contained): Allow multiple
8244 attributes with the same name but different arguments to appear in
8245 the same attribute list.
8246 * tree.h (default_valid_attribute_p): Remove prototype.
8247 (struct attribute_spec): New.
8248 (default_target_attribute_table): Declare.
8249 (enum attribute_flags): Move from c-common.h. Add
8250 ATTR_FLAG_TYPE_IN_PLACE.
8251 (default_function_attribute_inlinable_p): Declare.
8252 * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
8253 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8254 (TARGET_ATTRIBUTE_TABLE): Define.
8255 (vms_attribute_table): New.
8256 * config/arc/arc.c (arc_valid_decl_attribute): Remove.
8257 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8258 (TARGET_ATTRIBUTE_TABLE): Define.
8259 (arc_attribute_table, arc_handle_interrupt_attribute): New.
8260 * config/arm/arm.c (arm_valid_type_attribute_p,
8261 arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
8263 (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
8265 (TARGET_ATTRIBUTE_TABLE): Define.
8266 (arm_attribute_table, arm_handle_fndecl_attribute,
8267 arm_handle_isr_attribute): New.
8268 * config/avr/avr.c (avr_valid_type_attribute,
8269 avr_valid_decl_attribute): Remove.
8270 (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
8272 (TARGET_ATTRIBUTE_TABLE): Define.
8273 (avr_attribute_table, avr_handle_progmem_attribute,
8274 avr_handle_fndecl_attribute): New.
8275 * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
8276 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8277 (TARGET_ATTRIBUTE_TABLE): Define.
8278 (c4x_attribute_table, c4x_handle_fntype_attribute): New.
8279 * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
8280 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8281 (TARGET_ATTRIBUTE_TABLE): Define.
8282 (h8300_attribute_table, h8300_handle_fndecl_attribute,
8283 h8300_handle_eightbit_data_attribute,
8284 h8300_handle_tiny_data_attribute): New.
8285 * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
8286 i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
8288 (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
8290 * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
8291 (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
8293 (TARGET_ATTRIBUTE_TABLE): Define.
8294 (ix86_attribute_table, ix86_handle_cdecl_attribute,
8295 ix86_handle_regparm_attribute): New.
8296 * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
8297 i386_pe_valid_type_attribute_p): Remove.
8298 (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
8299 * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
8300 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8301 (TARGET_ATTRIBUTE_TABLE): Define.
8302 (ia64_attribute_table): New.
8303 * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
8304 interrupt_ident2, model_ident1, model_ident2): Remove.
8305 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8306 (TARGET_ATTRIBUTE_TABLE): Define.
8307 (init_idents): Update.
8308 (m32r_attribute_table, m32r_handle_model_attribute): New.
8309 * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
8311 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8312 (TARGET_ATTRIBUTE_TABLE): Define.
8313 (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
8314 * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
8315 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8316 (TARGET_ATTRIBUTE_TABLE): Define.
8317 (mcore_attribute_table, mcore_handle_naked_attribute): New.
8318 * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
8319 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8320 (TARGET_ATTRIBUTE_TABLE): Define.
8321 (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
8322 * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
8323 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8324 (TARGET_ATTRIBUTE_TABLE): Define.
8325 (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
8326 * config/sh/sh.c (sh_valid_decl_attribute): Remove.
8327 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8328 (TARGET_ATTRIBUTE_TABLE): Define.
8329 (sh_attribute_table, sh_handle_interrupt_handler_attribute,
8330 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
8332 * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
8334 (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
8335 (TARGET_ATTRIBUTE_TABLE): Define.
8336 (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
8338 * config/v850/v850.c (v850_valid_decl_attribute): Remove.
8339 (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8340 (TARGET_ATTRIBUTE_TABLE): Define.
8341 (v850_attribute_table, v850_handle_interrupt_attribute,
8342 v850_handle_data_area_attribute): New.
8343 * config/v850/v850-c.c (mark_current_function_as_interrupt):
8344 Return void. Call decl_attributes instead of
8345 valid_machine_attribute.
8347 Fri Sep 21 01:49:41 2001 J"orn Rennecke <amylaar@redhat.com>
8349 * sh-protos.h (sh_pr_n_sets): Declare.
8350 * sh.c (calc_live_regs): If the initial value for PR has been copied,
8351 look at the copy to determine if PR needs to be saved.
8352 sh_pr_n_sets: New function.
8353 * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
8354 (ALLOCATE_INITIAL_VALUE): Define.
8356 * sh.c (initial_elimination_offset):
8357 Fix RETURN_ADDRESS_POINTER_REGNUM case.
8359 Fri Sep 21 01:13:56 2001 J"orn Rennecke <amylaar@redhat.com>
8361 * integrate.c (allocate_initial_values): New function.
8362 * integrate.h (allocate_initial_values): Declare.
8363 * local-alloc.c (local_alloc): Move call to allocate_reg_info from
8365 * reload1.c (reload): And initialization of reg_equiv_memory_loc
8367 * toplev.c (rest_of_compilation): To here.
8368 Call allocate_initial_values.
8369 * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
8371 Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8373 * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
8375 2001-09-20 DJ Delorie <dj@redhat.com>
8377 * c-typeck.c (really_start_incremental_init): Discriminate
8378 between zero-length arrays and flexible arrays.
8379 (push_init_level): Detect zero-length arrays and handle them
8380 like fixed-sized arrays.
8381 * expr.c (store_constructor): Handle zero-length arrays and
8382 flexible arrays correctly.
8383 * doc/extend.texi: Update zero-length array notes.
8385 2001-09-20 Jim Wilson <wilson@redhat.com>
8387 * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
8388 (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
8389 for issue port conflicts.
8390 (cycle_end_fill_slots): TYPE_L instructions take two slots.
8392 2001-09-20 Andrew MacLeod <amacleod@redhat.com>
8394 * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
8397 Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8399 * fold-const.c (hashtab.h): Include.
8400 (int_const_binop): Remove FORSIZE arg and compute from type; all
8402 Call size_int_type_wide for all single-word constants.
8403 (size_htab_hash, size_htab_eq): New functions.
8404 (size_int_type_wide): Rework to use hash table.
8405 * ggc-common.c (hashtab.h): Include.
8406 (struct d_htab_root): New struct.
8407 (d_htab_roots): New variable.
8408 (ggc_add_deletable_htab, ggc_htab_delete): New functions
8409 (ggc_mark_roots): Handle deletable htabs.
8410 * ggc-page.c (ggc_marked_p): New function.
8411 * ggc-simple.c (ggc_marked_p): Likewise.
8412 * ggc.h: Reformatting throughout.
8413 (ggc_marked_p, ggc_add_deletable_htab): New declarations.
8414 * tree.c (init_obstacks): Make type_hash_table a deletable root.
8415 (type_hash_add): Allocate struct type_hash from GC memory.
8416 (mark_hash_entry, mark_type_hash): Deleted.
8417 (type_hash_marked_p, type_hash_mark): New functions.
8418 * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
8420 Thu Sep 20 12:49:34 2001 J"orn Rennecke <amylaar@redhat.com>
8422 * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
8425 Thu Sep 20 09:00:27 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8427 * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
8428 array-too-large test for signed sizetype.
8430 Thu Sep 20 12:19:36 CEST 2001 Jan Hubicka <jh@suse.cz>
8432 * i386.md (indirect_jump): Allow Pmode operand.
8433 (tablejump): LIkewise; perform expansion to 64bit mode.
8434 * i386.c (symbolic_operand): Allow 64bit PIC references.
8435 (pic_symbolic_operand): Likewise.
8436 (ix86_find_base_term): Strip the 64bit PIC references.
8437 (legitimate_pic_address_disp_p): Handle 64bit PIC.
8438 (legitimize_pic_address): Likewise.
8439 (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
8440 * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
8442 2001-09-19 Alexandre Petit-Bianco <apbianco@redhat.com>
8444 * stringpool.c (get_identifier_with_length): New function.
8445 * tree.h (get_identifier_with_length): New prototype.
8447 2001-09-19 Alan Modra <amodra@bigpond.net.au>
8448 David Edelsohn <edelsohn@gnu.org>
8451 * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
8452 already sign-extended.
8454 * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
8455 * config/rs6000/rs6000.c (logical_operand): Always compare op as
8457 (rs6000_emit_set_long_const): Avoid unnecessary shift.
8458 (output_profile_hook): Declare label_name const.
8459 * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
8460 to match constraints.
8462 2001-09-19 Stan Shebs <shebs@apple.com>
8464 * alias.c: Fix typos in comments.
8465 * sched-rgn.c (init_ready_list): Ditto.
8466 * unwind-dw2.c (uw_frame_state_for): Ditto.
8467 * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
8468 * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
8469 * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
8471 2001-09-19 Richard Henderson <rth@redhat.com>
8473 * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
8475 * Makefile.in (cfg.o): Depend on TM_P_H.
8477 2001-09-19 Richard Henderson <rth@redhat.com>
8479 * config/alpha/alpha.c (local_symbol_p): Split out from ...
8480 (local_symbolic_operand): ... here.
8481 (small_symbolic_operand): Check mode.
8482 (global_symbolic_operand): New.
8483 (input_operand): Reject symbolics if explicit relocs.
8484 (call_operand): Tidy.
8485 (alpha_legitimize_address): Use movdi_er_high_g.
8486 (alpha_expand_mov): Likewise.
8487 * config/alpha/alpha-protos.h: Update.
8488 * config/alpha/alpha.h (PREDICATE_CODES): Update.
8489 * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
8490 (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
8491 (UNSPECV_LDGP2): Remove.
8492 (all call patterns): Use 's' not 'i' for symbolic constraint.
8493 (call_osf call_value_osf): Use call_operand.
8494 (all osf call patterns): Use $gp. New peepholes for explicit relocs.
8495 (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
8496 (prologue_ldgp_1_er): Remove.
8497 (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
8498 (builtin_setjmp_receiver_er patterns): Use them.
8499 (exception_receiver_er): Likewise.
8501 2001-09-19 Richard Henderson <rth@redhat.com>
8503 * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
8505 * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
8506 and NON_LOCAL_GOTO notes.
8507 * recog.c (peephole2_optimize): Likewise. Handle EH_REGION;
8508 copy over CALL_INSN_FUNCTION_USAGE.
8510 2001-09-18 Catherine Moore <clm@redhat.com>
8512 * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
8515 2001-09-18 Ulrich Weigand <uweigand@de.ibm.com>:
8517 * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
8518 new-style tm_file specification. Specify correct tm_p_file,
8519 md_file, and out_file for s390x.
8521 * config/s390/linux.h, linux64.h: Don't include other target
8522 macro header files. Now handled via tm_file.
8524 * config/s390/linux.h, s390.h: (IEEE_FLOAT, TARGET_IEEE_FLOAT,
8525 TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
8526 are defined before use.
8528 Tue Sep 18 09:51:11 2001 Eric Christopher <ecechristo@redhat.com>
8530 * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
8531 code generation only for Gnu assembler.
8533 2001-09-18 Catherine Moore <clm@redhat.com>
8535 * config/stormy16 (LIB_SPEC): Remove -lnosys.
8537 2001-09-18 Richard Sandiford <rsandifo@redhat.com>
8539 * config/mips/mips.c (mips_frame_set): New.
8540 (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
8541 a parallel frame-related expression with a set for each register.
8543 2001-09-18 Philip Blundell <philb@gnu.org>
8545 * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
8548 2001-09-17 Dale Johannesen <dalej@apple.com>
8550 * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
8551 * config/rs6000/aix.h (FIXED_R2): Define.
8552 * config/rs6000/darwin.h (FIXED_R2): Define.
8553 * config/rs6000/sysv4.h (FIXED_R2): Define.
8555 2001-09-17 Jeff Sturm <jsturm@one-point.com>
8557 * except.c (dw2_build_landing_pads): New local
8558 clobbers_hard_regs. Emit an ASM_INPUT as a scheduling
8559 barrier after clobbers. Fixes c++/4012.
8561 2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8563 * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
8565 2001-09-17 Joseph S. Myers <jsm28@cam.ac.uk>
8567 * dostage2, dostage3, listing, make-l2.com, makefile.vms,
8568 patch-apollo-includes, vmsconfig.com: Remove obsolete files.
8570 2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8572 * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
8575 2001-09-17 Neil Booth <neil@daikokuya.demon.co.uk>
8577 * cpphash.h (_cpp_lex_direct): New.
8578 * cpplex.c (_cpp_lex_token): Update.
8579 (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
8580 and increment that pointer.
8581 * cppmacro.c (alloc_expansion_token): New.
8582 (lex_expansion_token): Lex macro expansion directly into
8585 2001-09-16 Brad Lucier <lucier@math.purdue.edu>
8587 * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
8589 Sun Sep 16 21:59:46 CEST 2001 Jan hubicka <jh@suse.cz>
8591 * basic-block.h (free_bb_for_insn): Declare.
8592 * bb-reorder.c (label_for_bb): Use block_label.
8593 (emit_jump_to_block_after): Remove.
8594 (insert_intra_1): Do not update block_for_insn.
8595 (insert_inter_bb_scope_notes): Likewise; update bb->end
8596 * cfg.c (free_bb_for_insn): New.
8597 (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
8598 (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
8599 (commit_one_edge_insertion): Likewise.
8600 (commit_one_edge_insertion): Do not update BB boundary.
8601 (commit_edge_insertions): Do not call compute_bb_for_insn.
8602 * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
8603 * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
8604 (merge_blocks_move_successor_nojumps): Likewise.
8605 (try_crossjump_to_edge): Do not update block_for_insn.
8606 * combine.c (combine_instructions): Remove compute_bb_for_insn call.
8607 * df.c (df_pattern_emit_later): Do not update BB boundary.
8608 (df_jump_pattern_emit_after): Likewise.
8609 (df_insn_move_before): Use emit_insn_before.
8610 * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
8612 (add_insn_after, add_insn_before, emit_insns_after): Update BB
8613 boundaries and basic_block_for_insn.
8614 (reorder_insns_nobb): Rename from reorder_insns.
8615 (reorder_insns): New.
8616 (emit_block_insn_before, emit_block_insn_after): Kill.
8617 * flow.c (check_function_return_warnings): Do not call
8618 compute_bb_for_insn; Do not free basic_block_for_insn.
8619 (attempt_auto_inc): Do not update basic_block_for_insn.
8620 * function.c (emit_return_into_block): Likewise;
8621 do not update BB boundaries.
8622 * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
8623 (insert_insn_end_bb): Use emit_insn_before; Likewise.
8624 (pre_insert_copy_insn): Likewise.
8625 (update_ld_motion_notes): Likewise.
8626 (insert_insn_start_bb): Likewise.
8627 (replace_store_insn): Likewise.
8628 * ifcvt.c (noce_process_if_block): Likewise.
8629 (if_convert): Do not call compute_bb_for_insn.
8630 * lcm.c (optimize_mode_switching): Do not update BB boundaries.
8631 Use emit_insn_before and emit_insn_after.
8632 * recog.c (split_all_insns): Do not update BB boundaries;
8633 Do not call compute_bb_for_insn.
8634 (peephole2_optimize): Do not update BB boundaries.
8635 * reg-stack.c (emit_pop_insn): Use emit_insn_after and
8637 (emit_swap_insn): Likewise.
8638 (convert_regs_1): Likewise.
8639 * reload1.c (reload): Call compute_bb_for_insn.
8640 * rtl.h (reorder_insns_nobb): Declare.
8641 * ssa.c (rename_equivalent_regs): Use emit_insn_before.
8642 * toplev.c (rest_of_compilation): Call free_bb_for_insn
8643 at places CFG is invalidated; do not call compute_bb_for_insn.
8645 * cfg.c (expunge_block): Invalidate BB structure.
8647 * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
8650 * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
8652 2001-09-16 Neil Booth <neil@daikokuya.demon.co.uk>
8654 * cpphash.h (_cpp_lex_token): Update prototype.
8655 * cpplex.c (_cpp_lex_token): New prototype.
8656 * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
8657 lex_macro_node, read_flag, do_pragma_poison): Update.
8658 * cppmacro.c (cpp_get_token, parse_params,
8659 lex_expansion_token): Update.
8661 2001-09-16 Neil Booth <neil@daikokuya.demon.co.uk>
8663 * cppmain.c (scan_translation_unit): Don't worry about
8664 putting a space after hashes.
8665 * cpplib.c (directive_diagnostics): New.
8666 (_cpp_handle_directive): Update to use directive_diagnostics.
8667 (run_directive): Don't toggle prevent_expansion.
8668 (do_line): Backup in case of the line extension.
8669 * cpplib.h (cpp_lexer_pos): Remove.
8670 * cppmacro.c (_cpp_create_definition): Precede a leading #
8673 2001-09-15 Richard Henderson <rth@redhat.com>
8675 * c-typeck.c (comptypes): Handle zero-length arrays properly.
8677 2001-09-15 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8679 * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
8681 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
8683 PR preprocessor/3571
8684 * tradcpp.c (handle_directive): Skip non-vertical space.
8686 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
8688 * cppmain.c (setup_callbacks): Set line callback only
8689 if outputting preprocessed source.
8691 2001-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8693 * collect2.c (main): Const-ification.
8694 * gcc.c (translate_options, process_command): Use xstrdup in
8695 lieu of xmalloc/strcpy.
8696 (main): Use concat in lieu of xmalloc/strcpy/strcat.
8698 2001-09-14 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8700 * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
8703 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
8705 * scan-decls.c (scan_decls): Fix typo.
8707 2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
8709 * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
8710 Split mlstring_pos into mls_line and mls_col.
8711 * cppinit.c (cpp_create_reader): Initialize line to 1.
8712 (cpp_destroy): Free tokenruns.
8713 (push_include): Don't update lexer_pos.
8714 * cpplex.c (unterminated, parse_string): Update.
8715 (lex_token): Don't update lexer_pos, update.
8716 * cpplib.c (if_stack): Save line instead of line + col.
8717 (start_directive, _cpp_do__Pragma, do_else, do_elif,
8718 push_conditional, _cpp_pop_buffer): Update.
8719 * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
8720 (_cpp_create_definition): Update.
8722 2001-09-15 Eric Christopher <echristo@redhat.com>
8724 * config/mips/abi64.h: Add support for MEABI.
8726 2001-09-15 Eric Christopher <echristo@redhat.com>
8728 * config/mips/mips.md: Add unspec #2.
8730 (reload_outdi): Ditto.
8731 (reload_outsi): Ditto.
8734 2001-09-15 Eric Christopher <echristo@redhat.com>
8735 Jason Eckhardt <jle@redhat.com>
8737 * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
8738 * config/mips/isa32-linux.h: New file.
8739 * config/mips/isa3264.h: Ditto.
8740 * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
8741 * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
8742 (output_block_mode): Support MEABI.
8743 (function_arg): Ditto. Fix floating point arg passing.
8744 (mips_va_start): Ditto.
8745 (override_options): Add isas 32 and 64, meabi, mips32 and mips64
8747 (mips_asm_file_start): Add new section to pass abi to gdb.
8748 (function_arg_pass_by_reference): Support MEABI.
8749 (mips_parse_cpu): Support mips32 and mips64 processors.
8750 * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
8751 TARGET_MIPS5KC. Support isa32 and isa64.
8752 (processor_type): Add r4kc, r5kc, r20kc.
8753 (GENERATE_MULT3_SI): New.
8754 (GENERATE_MULT3_DI): Ditto.
8755 (GENERATE_MULT3): Remove.
8756 (ISA_HAS_64BIT_REGS): Add isa == 64.
8757 (ISA_HAS_8CC): Add mips_isa = 32 and 64.
8758 (ISA_HAS_MADD_MSUB): New.
8759 (ISA_HAS_CLZ_CLO): Ditto.
8760 (ISA_HAS_DCLZ_DCLO): Ditto.
8761 (ABI_GAS_ASM_SPEC): New.
8762 (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
8765 (SUBTARGET_CC1_SPEC): Ditto.
8766 (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8767 (PAD_VARARGS_DOWN): Support MEABI.
8768 (HARD_REGNO_NREGS): Move to mips.c.
8769 (ASM_OUTPUT_IDENT): Add #undef.
8770 * config/mips/mips.md: Add r4kc, r5kc, r20kc.
8771 (mulsi3): Use GENERATE_MULT3_SI.
8772 (mulsi3_mult3): Ditto. Support mips32, mips64.
8773 (mul_acc_si): Use ISA_HAS_MADD_MSUB.
8774 (mul_sub_si): New pattern.
8775 (unnamed splitters): New.
8776 (muldi3): Use GENERATE_MULT3_DI.
8777 (muldi3_internal2): Ditto.
8778 (movdicc): Support mips32.
8779 * config/mips/t-isa3264: New file.
8781 2001-09-15 Hans-Peter Nilsson <hp@axis.com>
8783 * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
8784 || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
8785 || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
8787 * reorg.c (fill_slots_from_thread): After call to
8788 steal_delay_list_from_target, update own_thread as new_thread may
8791 2001-09-14 Neil Booth <neil@daikokuya.demon.co.uk>
8793 * cpperror.c (print_location): Take line and column, for
8794 default positioning use the previously lexed token.
8795 (_cpp_begin_message): Take line and column.
8796 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
8797 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
8798 * cpphash.h (_cpp_begin_message): Update prototype.
8799 * cppinit.c (push_include): Don't set output line.
8800 * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
8801 * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
8802 (do_pragma): Kludge for front ends. Don't expand macros at all.
8803 * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
8804 (struct cpp_token): Remove output_line.
8805 (struct cpp_callbacks): New member line_change.
8806 * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
8807 cpp_get_token): Preserve BOL flag.
8808 (cpp_get_line): Remove.
8809 (_cpp_backup_tokens): Remove useless abort().
8810 * cppmain.c (cb_line_change): New.
8811 (scan_translation_unit): Don't worry about starting new lines here.
8812 * scan-decls.c (scan_decls): Update.
8813 * c-lex.c (c_lex, init_c_lex): Update.
8814 (cb_line_change, src_lineno): New.
8816 Fri Sep 14 13:54:50 EDT 2001 John Wehle (john@feith.com)
8818 * tree.c (append_random_chars): Generate the random
8819 characters in a reproducable fashion.
8821 2001-09-14 Richard Henderson <rth@redhat.com>
8823 * config/i386/i386.c (internal_label_prefix): New.
8824 (internal_label_prefix_len): New.
8825 (override_options): Set them.
8826 (local_symbolic_operand): New.
8827 (legitimate_pic_address_disp_p): Use it.
8828 (legitimize_pic_address): Likewise.
8830 2001-09-14 Marc Espie <espie@openbsd.org>
8832 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Generate reference to GOT
8835 2001-09-14 Roman Lechtchinsky <rl@cs.tu-berlin.de>
8837 * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
8838 * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
8840 2001-09-14 Nick Clifton <nickc@cambridge.redhat.com>
8842 * rtlanal.c (subreg_regno_offset): Add semicolon to end of
8843 invocation of SUBREG_REGNO_OFFSET.
8845 * haifa-sched.c: Fix typo in FSF copyright statement.
8846 * sched-deps.c: Fix typo in FSF copyright statement.
8847 * sched-ebb.c: Fix typo in FSF copyright statement.
8848 * sched-rgn.c: Fix typo in FSF copyright statement.
8849 * sched-vis.c: Fix typo in FSF copyright statement.
8851 * config.gcc: Move inclusion of arm elf specific header files
8852 from the files themselves into the tm_file variable. Make
8853 sure that elfos.h is included before target specific elf
8855 * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
8857 (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
8858 * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
8859 ASM_OUTPUT_CASE_LABEL): Protect definition.
8860 (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
8861 not already defined.
8862 * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
8863 LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
8864 Remove duplicate definition.
8865 (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
8866 (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
8867 (RDATA_SECTION_FUNCTION): Remove redundant definition.
8868 (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
8869 Remove inclusion of arm/elf.h.
8870 * config/arm/unknown-elf.h: as for conix-elf.h.
8871 (STARTFILE_SPEC): Include crti.o and crtn.o.
8872 * config/arm/linux-elf.h: as for conix-elf.h.
8873 * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
8874 * config/arm/strongarm-elf.h: Remove inclusion of
8876 * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
8877 * config/arm/unknown-elf-oabi.h: Remove inclusion of
8878 unknown-elf.h and elf.h.
8879 * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
8880 * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
8881 ASM_WEAKEN_LABEL): Remove redundant definition.
8882 * config/arm/elf.h: Test for inclusion of elfos.h
8883 (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
8884 ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
8885 SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
8886 EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
8887 redundant definition.
8888 (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
8889 ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
8890 ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
8891 * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
8892 Add rules to build crti.o and crtn.o
8893 * crti.asm: New file.
8894 * crtn.asm: New file.
8896 2001-09-13 Neil Booth <neil@daikokuya.demon.co.uk>
8898 * c-parse.in (_yylex): Use _cpp_backup_tokens.
8899 * cpphash.h (struct tokenrun): Add prev.
8900 (struct lexer_state): Remove bol.
8901 (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
8902 (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
8904 * cppinit.c (cpp_create_reader): Don't set bol.
8905 (cpp_destroy): Don't free lookaheads.
8906 * cpplex.c (lex_directive): Remove.
8907 (next_tokenrun): Update.
8908 (_cpp_lex_token): Clean up logic.
8909 (lex_token): Update to return a pointer to lexed token, since it
8910 can move to the start of the buffer. Simpify newline handling.
8911 * cpplib.c (SEEN_EOL): Update.
8912 (skip_rest_of_line): Remove lookahead stuff.
8913 (end_directive): Line numbers are already incremented. Revert
8914 to start of lexed token buffer if we can.
8915 (_cpp_handle_directive, do_pragma, do_pragma_dependency,
8916 parse_answer): Use _cpp_backup_tokens.
8917 (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
8918 instead. Don't check for EOL.
8919 (do_include_common, do_line, do_pragma_system_header): Use
8921 * cpplib.h (BOL, _cpp_backup_tokens): New.
8922 * cppmacro.c (save_lookahead_token, take_lookahead_token,
8923 alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
8924 cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
8925 (builtin_macro): Don't use cpp_get_line.
8926 (cpp_get_line): Short term kludge.
8927 (parse_arg): Handle directives in arguments here. Back up when
8928 appropriate. Store EOF at end of argument list.
8929 (funlike_invocation_p): Use _cpp_backup_tokens.
8930 (push_arg_context): Account for EOF at end of list.
8931 (cpp_get_token): Remove lookahead stuff. Update.
8933 2001-09-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8935 * c-parse.in (yyerror): Const-ification and/or static-ization.
8936 * c-typeck.c (push_member_name): Likewise.
8937 * collect2.c (main): Likewise.
8938 * dbxout.c (dbxout_parms): Likewise.
8939 * diagnostic.c (format_with_decl): Likewise.
8940 * dwarf2out.c (output_ranges): Likewise.
8941 * dwarfout.c (fundamental_type_code): Likewise.
8942 * except.c (dw2_output_call_site_table): Likewise.
8943 * gcc.c (do_spec_1): Likewise.
8944 * genopinit.c (optabs): Likewise.
8945 * objc/objc-act.c (synth_id_with_class_suffix, start_class,
8946 gen_declaration_1, handle_impent): Likewise.
8947 * protoize.c (default_include, in_system_include_dir, abspath):
8949 * sched-vis.c (visualize_stall_cycles): Likewise.
8950 * sdbout.c (plain_type_1, sdbout_end_function,
8951 sdbout_end_epilogue): Likewise.
8952 * varasm.c (decode_reg_name): Likewise.
8954 * 1750a.c (mod_regno_adjust): Likewise.
8955 * alpha.c (alpha_write_one_linkage,
8956 unicosmk_output_default_externs): Likewise.
8957 * arm.c (arm_condition_codes): Likewise.
8958 * arm.h (arm_condition_codes): Likewise.
8959 * avr.c (output_movsisf, encode_section_info): Likewise.
8960 * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
8962 * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
8963 * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
8964 * m88k.c (output_function_profiler): Likewise.
8965 * mips.c (mips_output_conditional_branch): Likewise.
8966 * ns32k.c (ns32k_out_reg_names): Likewise.
8967 * ns32k.h (ns32k_out_reg_names): Likewise.
8968 * pj.c (pj_output_rval): Likewise.
8969 * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
8970 * sparc.c (sparc_flat_function_prologue,
8971 sparc_flat_function_epilogue): Likewise.
8973 2001-09-13 Markus Werle <numerical.simulation@web.de>
8974 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8976 * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
8977 Aachen University of Technology".
8979 2001-09-13 Andreas Schwab <schwab@suse.de>
8981 * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
8984 2001-09-13 Richard Henderson <rth@redhat.com>
8986 * config/alpha/alpha.c (small_symbolic_operand): New.
8987 (override_options): Set MASK_SMALL_DATA based on pic/PIC.
8988 (some_operand, input_operand): Don't handle HIGH.
8989 (alpha_legitimize_address): Use it. Emit HIGH with PLUS gp.
8990 (alpha_expand_mov): Likewise.
8991 (print_operand) [H]: Just print HIGH symbol.
8992 (print_operand_address): Handle small data.
8993 * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
8994 (TARGET_SWITCHES): Add -msmall-data/large-data.
8995 (PIC_OFFSET_TABLE_REGNUM): New.
8996 (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
8997 (PREDICATE_COES): Update.
8998 * config/alpha/alpha.md (adddi_er_high): New.
8999 (adddi_er_low): Handle small data.
9000 * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
9001 prefer .sdata to .rodata.
9002 (SELECT_RTX_SECTION): Likewise.
9004 2001-09-12 Josh Martin <josh.martin@abq.sc.philips.com>
9006 * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
9007 defining __size_t and leaving size_t undefined.
9009 2001-09-12 Diego Novillo <dnovillo@redhat.com>
9011 * basic-block.h (expunge_block): Declare.
9012 * cfg.c (expunge_block): Remove static declaration.
9014 2001-09-12 Richard Henderson <rth@redhat.com>
9016 * integrate.c (copy_insn_list): Copy label name from
9017 NOTE_INSN_DELETED_LABEL.
9019 2001-09-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9021 * c-common.c (c_tree_code_name): Const-ification.
9022 * c-decl.c (c_decode_option): Likewise.
9023 * c-typeck.c (warn_for_assignment): Likewise.
9024 * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
9026 * cppinit.c (output_deps): Likewise.
9027 * dependence.c (dependence_string, direction_string): Likewise.
9028 * dwarf2out.c (output_ranges): Likewise.
9029 * fixinc/fixfixes.c (emit_gnu_type): Likewise.
9030 * fixinc/gnu-regex.c (re_error_msgid): Likewise.
9031 * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
9032 standard_startfile_prefix, standard_startfile_prefix_1,
9033 standard_startfile_prefix_2, tooldir_base_prefix,
9034 standard_bindir_prefix, find_a_file): Likewise.
9035 * genattrtab.c (make_length_attrs): Likewise.
9036 * gencheck.c (tree_codes): Likewise.
9037 * genemit.c (gen_split): Likewise.
9038 * genrecog.c (special_mode_pred_table): Likewise.
9039 * graph.c (graph_ext): Likewise.
9040 * protoize (default_include): Likewise.
9041 * reload.c (reload_when_needed_name): Likewise.
9042 * sched-vis.c (visualize_stall_cycles): Likewise.
9043 * tlink.c (recompile_files): Likewise.
9044 * toplev.c (decode_g_option): Likewise.
9045 * tradcpp.c (output_deps): Likewise.
9046 * varasm.c (decode_reg_name): Likewise.
9048 * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
9051 * avr.c (avr_regnames, encode_section_info): Likewise.
9052 * c4x.c (float_reg_names): Likewise.
9053 * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
9054 * elfos.h (const_section): Likewise.
9055 * i386.c (ix86_comp_type_attributes): Likewise.
9056 * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
9057 * ia64/aix.h (UNIQUE_SECTION): Likewise.
9058 * ia64.c (type_names): Likewise.
9059 * m68hc11.c (reg_class_names): Likewise.
9060 * m88k.c (m_options): Likewise.
9061 * mips.c (mips_output_conditional_branch, mips_unique_section):
9063 * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9064 * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
9065 ultra_code_names): Likewise.
9066 * sparc.h (OVERRIDE_OPTIONS): Likewise.
9068 2001-09-12 Jakub Jelinek <jakub@redhat.com>
9070 * configure.in (gcc_cv_as_shf_merge): Fix a typo.
9071 Use --fatal-warnings option for gas.
9072 * configure: Rebuilt.
9074 2001-09-12 Roman Lechtchinsky <rl@cs.tu-berlin.de>
9076 * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
9078 2001-09-11 Jim Wilson <wilson@redhat.com>
9080 * alias.c (clear_reg_alias_info): Only handle pseudo registers.
9082 2001-10-11 Matt Kraai <kraai@alumni.carnegiemellon.edu>
9084 * builtins.c (c_strlen): Treat an offset too large for a
9085 HOST_WIDE_INT as out of range.
9087 Tue Sep 11 18:57:47 CEST 2001 Jan Hubicka <jh@suse.cz>
9089 * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
9090 (EDGE_CRITICAL_P): New predicate.
9091 * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
9093 (insert_insn_on_edge): Use EDGE_CRITICAL_P.
9094 (dump_edge_info): Remove "crit".
9095 * cfganal.c (mark_critical_edges): Kill.
9096 * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
9097 * cfgcleanup.c (cleanup_cfg): Likewise.
9098 * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
9099 (find_spanning_tree): Likewise.
9100 * reg-stack.c (convert_regs_1): Likewise.
9101 * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
9103 * basic-block.h (create_basic_block_structure): New.
9104 (create_basic_block): Update prototype.
9105 (force_nonfallthru): New.
9106 * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
9107 * cfg.c (create_basic_block_structure): Rename from create_basic_block;
9108 handle updating of block_for_insn, creating of empty BBs and BBs at
9109 the end of INSN chain.
9110 (create_basic_block): New function.
9111 (split_block): Use create_basic_block.
9112 (force_nonfallthru_and_redirect): Break out from ...; cleanup
9113 (redirect_edge_and_branch_force): ... here.
9114 (force_nonfallthru): New.
9115 (split_edge): Rewrite to use force_nonfallthru and create_block.
9116 * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
9117 (find_basic_blocks): Free basic_block_for_insn.
9118 * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
9120 * cfg.c: Fix formating.
9121 * cfgcleanup.c: Fix formating.
9122 (merge_blocks, tail_recursion_label_p): Return bool.
9123 (merge_blocks_move_predecessor_nojumps,
9124 merge_blocks_move_successor_nojumps): Return void.
9126 2001-09-11 Jakub Jelinek <jakub@redhat.com>
9128 * configure.in: Check whether assembler supports section merging.
9129 * config.in: Rebuilt.
9130 * configure: Rebuilt.
9131 * varasm.c (variable_section, output_constant_pool): Pass alignment
9132 to SELECT_SECTION and SELECT_RTX_SECTION.
9133 (mergeable_string_section): New.
9134 (mergeable_constant_section): New.
9135 (default_elf_asm_named_section): Output SECTION_MERGE and
9136 SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
9137 * output.h (mergeable_string_section): New.
9138 (mergeable_constant_section): New.
9139 (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
9140 * toplev.c (flag_merge_constants): New.
9141 (f_options): Add -fmerge-constants and -fmerge-all-constants
9143 (toplev_main): Default to -fno-merge-constants if not optimizing.
9144 * flags.h (flag_merge_constants): Add extern.
9145 * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
9146 * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
9148 * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
9149 Define if assembler has working .subsection -1 support.
9150 (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
9151 Put constant into special SHF_MERGE sections if the linker should
9152 attempt to merge duplicates.
9153 * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
9155 Put constant into special SHF_MERGE sections if the linker should
9156 attempt to merge duplicates.
9157 * config/alpha/elf.h: Likewise.
9158 (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
9159 has working .subsection -1 support.
9160 * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
9162 * config/svr3.h: Likewise.
9163 * config/darwin.h: Likewise.
9164 * config/arm/aof.h: Likewise.
9165 * config/arm/linux-elf.h: Likewise.
9166 * config/avr/avr.h: Likewise.
9167 * config/c4x/c4x.h: Likewise.
9168 * config/d30v/d30v.h: Likewise.
9169 * config/i386/dgux.h: Likewise.
9170 * config/i386/osfrose.h: Likewise.
9171 * config/i386/sco5.h: Likewise.
9172 * config/i386/svr3gas.h: Likewise.
9173 * config/ia64/aix.h: Likewise.
9174 * config/m32r/m32r.h: Likewise.
9175 * config/m68k/m68k.h: Likewise.
9176 * config/m88k/dgux.h: Likewise.
9177 * config/m88k/m88k.h: Likewise.
9178 * config/mcore/mcore-pe.h: Likewise.
9179 * config/mips/mips.h: Likewise.
9180 * config/pa/pa.h: Likewise.
9181 * config/pa/pa-linux.h: Likewise.
9182 * config/romp/romp.h: Likewise.
9183 * config/rs6000/sysv4.h: Likewise.
9184 * config/rs6000/xcoff.h: Likewise.
9185 * config/s390/linux.h: Likewise.
9186 * config/sparc/sparc.h: Likewise.
9187 * config/sparc/sysv4.h: Likewise.
9188 * config/stormy16/stormy16.h: Likewise.
9189 * config/v850/v850.h: Likewise.
9190 * config/vax/vms.h: Likewise.
9191 * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
9192 and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
9193 * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
9194 default_elf_asm_named_section for SHF_MERGE sections.
9196 Tue Sep 11 17:55:54 CEST 2001 Jan Hubicka <jh@suse.cz>
9198 * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
9201 2001-09-11 Joseph S. Myers <jsm28@cam.ac.uk>
9203 * c-common.c (split_specs_attrs): Allow for empty attributes with
9204 empty TREE_PURPOSE. Fixes PR c/4294.
9206 Tue Sep 11 11:37:52 CEST 2001 Jan Hubicka <jh@suse.cz>
9208 * basic-block.h (cached_make_edge, make_single_succ): New.
9209 (make_edge): Remove first parameter.
9210 * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
9211 * cfg.c (cached_make_edge): Rename from make_edge; return newly
9212 created edge; use obstack allocation.
9213 (make_edge, make_single_succ_edge): New.
9214 (first_removed_edge): New static variable.
9215 (init_flow): Initialize first_removed_edge and n_edges.
9216 (clear_edges): Use remove_edge.
9217 (flow_delete_block): Likewise.
9218 (remove_edge): Add removed edges to the removed edges list.
9219 (split_block, redirect_edge_and_branch_force, split_edge):
9221 * cfganal.c (flow_call_edges_add): Updaet make_edge call.
9222 (add_noreturn_fake_exit_edges): Likewise.
9223 (connect_infinite_loops_to_exit): Liekwise.
9224 * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
9225 Use cached_make_edge.
9226 * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
9227 * profile.c (branch_prob): Update make_edge call.
9228 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
9230 2001-09-11 Richard Henderson <rth@redhat.com>
9232 * config/alpha/alpha.c: Tidy formatting.
9233 (local_symbolic_operand): Verify mode.
9234 (alpha_sa_mask): Ignore unicos for eh_return.
9235 (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
9236 * config/alpha/alpha.md (umk divsi patterns): Remove.
9237 (extendsfdf2): Remove unicos check.
9238 (tablejump): Merge vms and unicos code; always use direct set
9241 2001-09-11 Roman Lechtchinsky <rl@cs.tu-berlin.de>
9243 * config.gcc (alpha*-*-unicosmk*): New target.
9245 * config/alpha/alpha-protos.h (symbolic_operand,
9246 unicosmk_add_call_info_word, unicosmk_add_extern,
9247 unicosmk_defer_case_vector, unicosmk_unique_section,
9248 unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
9249 unicosmk_asm_file_start, unicosmk_asm_file_end,
9250 unicosmk_output_common): Declare.
9252 * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
9253 direct_return, function_arg, alpha_va_start, alpha_va_arg,
9254 alpha_does_function_need_gp, alpha_end_function): Support Cray
9256 (alpha_init_machine_status, alpha_mark_machine_status,
9257 alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
9258 unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
9259 unicosmk_asm_named_section, unicosmk_insert_attributes,
9260 unicosmk_section_type_flags, symbolic_operand,
9261 unicosmk_output_module_name, unicosmk_output_default_externs,
9262 unicosmk_output_dex, unicosmk_output_externs,
9263 unicosmk_output_addr_vec, unicosmk_ssib_name,
9264 unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
9265 unicosmk_asm_file_end, unicosmk_output_common,
9266 unicosmk_section_type_flags, unicosmk_unique_section,
9267 unicosmk_add_call_info_word, unicosmk_text_section,
9268 unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
9269 unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
9270 unicosmk_dex_count, unicosmk_special_name): New.
9271 (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
9272 TARGET_ABI_UNICOSMK.
9273 (get_aligned_mem, alpha_expand_unaligned_load,
9274 alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
9275 alpha_expand_unaligned_store_words): Support big-endian mode.
9276 (print_operand): Likewise. New format specifier 't'. Use
9277 TARGET_AS_SLASH_BEFORE_SUFFIX.
9278 (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
9279 (alpha_pv_save_size): Update with above change.
9280 (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
9281 alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
9284 * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
9285 (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
9286 (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
9287 (EXTRA_CONSTRAINT): New constraint 'U'.
9288 (PREDICATE_CODES): Add symbolic_operand.
9290 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
9291 UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
9292 (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
9293 (integer division and modulus patterns): Split in default and
9295 (*divmodsi_internal, *divmoddi_internal): Disable for
9296 TARGET_ABI_UNICOSMK.
9297 (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
9298 little-endian and big-endian versions.
9299 (ext, ins, msk): Likewise.
9300 (extv, extzv, insv): Support big-endian mode.
9301 (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
9302 (call_umk, call_value_umk, *call_umk, tablejump_umk,
9303 *tablejump_umk_internal, *call_value_umk): New.
9304 (*movdi_nofix): Add pattern for loading an address into a register on
9305 TARGET_ABI_UNICOSMK.
9306 (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
9307 (umk_mismatch_args, arg_home_umk): New.
9308 (various insns): Don't use mov, fmov, nop, fnop and unop.
9309 (realign): Support TARGET_ABI_UNICOSMK.
9311 * config/alpha/unicosmk.h: New file.
9312 * config/alpha/t-unicosmk: New file.
9314 * fixinc/inclhack.def (unicosmk_restrict): New.
9315 * fixinc/fixincl.x: Regenerate.
9317 * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
9318 (wchar_t): Check for and define __WCHAR_T__.
9320 2001-09-11 Richard Sandiford <rsandifo@redhat.com>
9322 * combine.c (simplify_shift_const): Treat shifts by the mode
9325 2001-09-11 Neil Booth <neil@daikokuya.demon.co.uk>
9327 * cpphash.h (struct tokenrun): New.
9328 (struct cpp_context): New member bol.
9329 (struct cpp_reader): New members.
9330 (_cpp_init_tokenrun): New.
9331 * cppinit.c (cpp_create_reader): Set up the token runs.
9332 * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
9333 (lex_token): New internalised version of _cpp_lex_token. Don't
9334 handle directives or the multiple include optimization here any
9335 more. Simply lex a token.
9336 * cpplib.c (run_directive): Clear bol.
9337 (_cpp_pop_buffer): Set bol.
9338 * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
9341 2001-09-11 Michael Meissner <meissner@redhat.com>
9343 * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
9344 give an error if the user uses -mfp32.
9345 (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
9347 (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
9348 floating point register size.
9349 (EXTRA_SPECS): Add CPP_FPR_SPEC.
9351 * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
9352 HOST_WIDE_INT_PRINT_DEC to properly print the result of
9354 * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
9355 * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
9357 2001-09-11 Hans-Peter Nilsson <hp@axis.com>
9359 * dbxout.c (dbxout_parms): Fix typo in comment.
9360 * unroll.c (loop_find_equiv_value): Ditto.
9361 * toplev.c (rest_of_compilation): Ditto.
9362 * loop.c (scan_loop): Ditto.
9363 * dwarf2out.c (struct dw_fde_struct): Ditto.
9365 2001-09-10 Zack Weinberg <zackw@panix.com>
9367 * cpplex.c (parse_identifier): Fast-path optimize. Avoid
9368 copying identifier when we're just going to throw it away.
9369 (parse_identifier_slow): New routine to handle abnormal cases.
9370 (_cpp_lex_token): Update call site.
9372 * hashtable.c (ht_lookup): Don't assume that the string we've
9373 been given is NUL-terminated.
9374 * system.h: #define __builtin_expect(a, b) to (a) if not
9377 2001-09-10 Michael Meissner <meissner@redhat.com>
9379 * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
9382 2001-09-10 David Edelsohn <edelsohn@gnu.org>
9384 * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
9386 Mon Sep 10 16:26:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9388 * builtins.c (c_getstr): Correct thinko in last change and further
9391 2001-09-10 Tim Freeman <tim@fungibole.com>
9393 * dwarf2out.c (incomplete_types, decl_scope_table): Make them
9394 into varray's and register them as roots with the garbage
9395 collector so they are not collected too soon.
9397 Mon Sep 10 14:21:26 CEST 2001 Jan Hubicka <jh@suse.cz>
9399 * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
9401 * basic-block.h (flow_obstack, label_value_list,
9402 tail_recursion_label_list): Declare
9403 (tidy_fallthru_edges): Declare.
9404 (expunge_block, last_loop_beg_note): Delete.
9405 (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
9407 (basic_block_for_insn, label_value_list): Move from flow.c; make global.
9408 (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
9409 init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
9410 flow_delete_insn, flow_delete_insn_chain, create_basic_block,
9411 expunge_block, flow_delete_block, compute_bb_for_insn,
9412 update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
9413 make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
9414 redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
9415 try_redirect_by_replacing_jump, last_loop_beg_note,
9416 redirect_edge_and_branch, redirect_edge_and_branch_force,
9417 tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
9418 split_edge, insert_insn_on_edge, commit_one_edge_insertion,
9419 commit_edge_insertions, dump_flow_info, debug_flow_info,
9420 dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
9421 verify_flow_info, purge_dead_edges, purge_all_dead_edges):
9422 Move here from flow.c
9423 * cfganal.c: New file.
9424 (forwarder_block_p, can_fallthru, mark_critical_edges,
9425 mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
9426 find_unreachable_blocks, create_edge_list, free_edge_list,
9427 print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
9428 flow_edge_list_print, remove_fake_successors, remove_fake_edges,
9429 add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
9430 flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
9431 flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
9432 flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
9433 Move here from flow.c
9434 * cfgbuild.c: New file
9435 (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
9436 make_edges, find_basic_blocks_1, find_basic_blocks,
9437 find_sub_basic_blocks): Move here from flow.c
9438 * cfgcleanup.c: New file.
9439 (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
9440 merge_blocks_move_predecessor_nojumps,
9441 merge_blocks_move_successor_nojumps, merge_blocks,
9442 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
9443 try_crossjump_bb, try_optimize_cfg): Move here from flow.c
9444 (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
9446 * cfgloop.c: New file
9447 (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
9448 flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
9449 flow_loop_exit_edges_find, flow_loop_nodes_find,
9450 flow_loop_pre_header_scan, flow_loop_pre_header_find,
9451 flow_loop_tree_node_add, flow_loops_tree_build,
9452 flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
9453 flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
9454 Move here from flow.c
9455 * flow.c: Remove everything moved elsewhere
9456 * output.h (cleanup_cfg): Return bool.
9458 * bb-reorder.c (reorder_block_def): Remove 'index'.
9459 (insert_intra_1): Add argument BB, set block for new note.
9460 (make_reorder_chain): Do not depdent on BB indexes.
9461 (make_reorder_chain_1): Do not use BB indexes.
9462 (label_for_bb): Likewise; set BB for new insn.
9463 (emit_jump_to_block_after): Likewise.
9464 (fixup_reorder_chain): Sanity check that all basic blocks
9465 are chained; verify newly created insn chain; remove
9466 undocnitional jump simplifying; Do not use BB indexes;
9467 properly initialize count and frequency information;
9468 dump reordered sequence.
9469 (insert_intra_bb_scope_notes): update call of insert_intra_1.
9470 (insert_inter_bb_scope_notes): Set block for new insn.
9471 (reorder_basic_blocks): Dump flow info before reoredering.
9473 Mon Sep 10 06:47:35 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9475 * alias.c (clear_reg_alias_info): Use K&R format definition.
9476 Avoid unsigned warning.
9477 * builtins.c: Use "unsigned int", not "unsigned".
9478 (target_char_cast): Use host_integerp and tree_low_cst.
9479 (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
9480 (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
9481 (c_getstr): Likewise.
9482 (std_expand_builtin_va_arg): Use int_size_in_bytes.
9483 (builtin_memcpy_read_str): Avoid unsigned warning.
9484 (expand_builtin_memcpy): Alignments are unsigned.
9485 (expand_builtin_strncpy, expand_builtin_memset): Likewise.
9486 (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
9487 * predict.c (expensive_function_p): LIMIT now unsigned.
9488 * resource.c (mark_target_live_regs): Make some vars unsigned.
9489 * sdbout.c: Use "unsigned int", not "unsigned".
9490 (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
9491 (sdbout_source_line): Likewise.
9492 (sdbout_record_type_name): Remove "const" for NAME declaration.
9493 * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
9495 2001-09-10 Richard Sandiford <rsandifo@redhat.com>
9497 * calls.c (store_one_arg): Expand comment.
9499 2001-09-10 Roman Lechtchinsky <rl@cs.tu-berlin.de>
9501 * calls.c (store_one_arg): Make sure that the entire argument is
9502 pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
9504 2001-09-09 Richard Henderson <rth@redhat.com>
9506 * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
9508 Sun Sep 9 10:43:17 CEST 2001 Jan Hubicka <jh@suse.cz>
9510 * loop.c (combine_givs): Fix computing of benefit once giv is combined.
9512 2001-09-09 Richard Henderson <rth@redhat.com>
9514 * config/alpha/alpha.c (alpha_next_sequence_number): New.
9515 (alpha_this_literal_sequence_number): New.
9516 (alpha_this_gpdisp_sequence_number): New.
9517 (some_operand, input_operand): Add HIGH.
9518 (local_symbolic_operand): New.
9519 (alpha_encode_section_info): New.
9520 (alpha_legitimate_address_p): Allow LO_SUM.
9521 (alpha_legitimize_address): Generate HIGH+LO_SUM.
9522 (alpha_expand_mov): Likewise.
9523 (secondary_reload_class): Check memory_operand not general_operand
9525 (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
9526 (alpha_expand_unaligned_store): Likewise.
9527 (alpha_expand_unaligned_load_words): Likewise.
9528 (alpha_expand_unaligned_store_words): Likewise.
9529 (alpha_expand_block_clear): Likewise.
9530 (print_operand): Handle %#, %*, %H.
9531 (print_operand_address): Handle LO_SUM.
9533 (alpha_does_function_need_gp): Use it.
9534 (alpha_expand_block_move): Fix signed compare warnings.
9535 (alpha_sa_mask, alpha_align_insns): Likewise.
9536 * config/alpha/alpha-protos.h: Update.
9537 * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
9538 (MASK_EXPLICIT_RELOCS): New.
9539 (TARGET_SWITCHES): Add -mexplicit-relocs.
9540 (EXTRA_CONSTRAINT): Add 'T'.
9541 (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
9542 (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
9543 (ENCODE_SECTION_INFO): Out line.
9544 (REDO_SECTION_INFO_P): New.
9545 (STRIP_NAME_ENCODING): New.
9546 (ASM_OUTPUT_LABELREF): New.
9547 (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
9548 (PREDICATE_CODES): Update.
9549 * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
9550 call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
9551 movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
9552 builtin_setjmp_receiver_er, exception_receiver_1_er,
9553 call_value_osf_1_er): New patterns.
9554 (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
9555 (movqi, movhi, movsi): Add explicit $31 base register to lda.
9556 * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
9557 (FINAL_PRESCAN_INSN): New.
9559 Sat Sep 8 22:00:55 CEST 2001 Jan Hubicka <jh@suse.cz>
9561 * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
9563 2001-09-08 Andreas Jaeger <aj@suse.de>
9565 * i386.h (TARGET_SWITCHES): Fix description.
9567 2001-09-07 David Edelsohn <edelsohn@gnu.org>
9569 * rs6000.c (num_insns_constant): Compute number of instructions
9572 * doc/install.texi: Explain AIX exception handling work-around.
9573 Update URL for AIX fixes.
9575 2001-09-07 Jim Wilson <wilson@redhat.com>
9577 * alias.c (clear_reg_alias_info): New.
9578 * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
9579 * rtl.h (clear_reg_alias_info): Declare.
9581 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
9583 * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
9585 (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
9586 (m16m,edivm,emulm): Change declaration to match definition.
9588 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
9590 * reload.c (push_reload): Check for subreg_lowpart_p instead of
9591 SUBREG_BYTE being 0 when determining if the inner part of a subreg
9594 2001-09-07 Roman Lechtchinsky <rl@cs.tu-berlin.de>
9596 * c-common.c (signed_or_unsigned_type): Handle machine mode types
9597 which have no corresponding C type.
9598 * fold_const.c (target_isinf,target_isnan,target_negative): Update
9599 the representation of 64-bit doubles to work with 64-bit ints.
9601 2001-09-07 Aldy Hernandez <aldyh@redhat.com>
9603 * config/mips/mips.c (override_options): Do not override ISA when ABI
9604 specified if MIPS_CPU_STRING_DEFAULT was specified.
9606 2001-09-07 Richard Henderson <rth@redhat.com>
9608 * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
9609 (express_from_1): Wrap lines.
9610 * rtlanal.c (commutative_operand_precedence): Rename from
9611 operand_preference; export.
9612 * rtl.h: Declare it.
9613 * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
9614 (simplify_binary_operation): Invoke simplify_plus_minus on
9615 (CONST (PLUS ...)) as well.
9616 (struct simplify_plus_minus_op_data): New.
9617 (simplify_plus_minus_op_data_cmp): New.
9618 (simplify_plus_minus): Use them. Avoid infinite recursion with
9619 simplify_binary_operation wrt CONST.
9621 Fri Sep 7 11:52:30 2001 Kazu Hirata <kazu@hxi.com>
9623 * h8300-protos.h (general_operand_dst_push): Remove.
9624 * h8300.c (general_operand_dst_push): Likewise.
9625 * h8300.h (OK_FOR_T): Likewise.
9626 (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
9627 * h8300.md (pushqi_h8300): New.
9628 (pushqi_h8300hs): Likewise.
9630 (pushhi_h8300): Likewise.
9631 (pushhi_h8300hs): Likewise.
9634 Fri Sep 7 12:56:26 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9636 * genattrtab.c (attr_printf): First arg is unsigned.
9637 Clean up formatting of callers.
9639 2001-09-06 Aldy Hernandez <aldyh@redhat.com>
9641 * config/mips/mips.c (override_options): Allow abi32 with 64 bit
9644 2001-09-07 Andreas Jaeger <aj@suse.de>
9646 * i386.h (TARGET_SWITCHES): Fix descriptions.
9648 2001-09-07 Matt Kraai <kraai@alumni.carnegiemellon.edu>
9650 * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
9652 2001-09-06 Ira Ruben <ira@apple.com>
9654 Remove OP_IDENTIFIER.
9655 * tree.def (OP_IDENTIFIER): Remove.
9656 * tree.c (tree_node_kind enum): Remove op_id_kind.
9657 (tree_node_kind_names): Remove "op_identifiers".
9658 (make_node): Remove OP_IDENTIFIER test.
9659 (build_op_identifier): Removed because it isn't being used.
9660 * print-tree.c (print_node): Remove OP_IDENTIFIER case.
9661 * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
9663 2001-09-06 Richard Henderson <rth@redhat.com>
9665 * simplify-rtx.c (simplify_binary_operation): Revert last change.
9667 2001-09-06 Richard Henderson <rth@redhat.com>
9669 * simplify-rtx.c (simplify_binary_operation): Simplify contents
9672 2001-09-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9674 * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
9675 number used for CR register.
9677 Thu Sep 6 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
9678 Joern Rennecke (amylaar@cygnus.com)
9680 * h8300-protos.h (h8300_return_addr_rtx): New prototype.
9681 * h8300.c (initial_offset): Handle offset between RP and FP.
9682 (h8300_return_addr_rtx): New function.
9683 * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
9685 (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
9686 (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9687 (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
9688 (CAN_ELIMINATE, REGISTER_NAMES):
9689 (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
9691 2001-09-06 Nathan Sidwell <nathan@codesourcery.com>
9693 Remove TYPE_NONCOPIED_PARTS.
9694 * tree.h (TYPE_NONCOPIED_PARTS): Remove.
9695 (struct tree_type): Remove noncopied_parts.
9696 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
9697 * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
9698 (fixed_type_p): Remove.
9699 (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
9700 (expand_expr, MODIFY_EXPR): Likewise.
9701 * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
9702 * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
9704 2001-09-06 Alan Modra <amodra@bigpond.net.au>
9706 * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
9708 (mask64_operand): Likewise.
9709 (includes_rldic_lshift_p): Likewise.
9710 (includes_rldicr_lshift_p): Likewise.
9712 2001-09-05 Ziemowit Laski <zlaski@apple.com>
9714 * objc/objc-act.c (build_message_expr): If a class method cannot
9715 be found, do not issue a warning if a corresponding instance
9716 method exists in the root class.
9718 2001-09-05 Richard Henderson <rth@redhat.com>
9720 * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
9722 2001-09-05 Zack Weinberg <zack@codesourcery.com>
9724 * function.c (ggc_mark_struct_function): Mark f->outer.
9725 * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
9726 * integrate.c (output_inline_function): ... not here.
9728 Wed Sep 5 17:28:49 CEST 2001 Jan Hubicka <jh@suse.cz>
9730 * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
9732 * i386.c (size_cost): New static variable.
9733 (override_function): Use size_cost when -Os is specified.
9735 * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
9736 properly; Use current_function_calls_eh_return.
9737 (ix86_expand_epilogue): Avoid dummy optimize_size tests;
9738 use leave to avoid dependency chain.
9740 * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
9741 get BB loop_depth instead of computing it from LOOP notes.
9743 * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
9745 2001-09-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
9747 * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9748 * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9749 UNALIGNED_DOUBLE_INT_ASM_OP): Define
9751 2001-09-05 Jeffrey A Law (law@cygnus.com)
9752 Jason Merrill (jason@redhat.com)
9754 * stor-layout.c (layout_type): Complain if an array's size can
9755 not be represented in a size_t.
9757 * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
9759 2001-09-05 David Billinghurst <David.Billinghurst@riotinto.com>
9761 * gcc.c: (process_command) Add parentheses around assignment
9762 used as truth value.
9764 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
9766 * config/mips/mips.c (save_restore_insns): Don't mark any register
9767 save slots as unchanging if current_function_calls_eh_return.
9769 2001-09-05 Richard Henderson <rth@redhat.com>
9771 * config/alpha/alpha.c (alpha_legitimate_address_p): New.
9772 * config/alpha/alpha-protos.h: Declare it.
9773 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
9774 (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
9775 (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
9776 (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
9777 (REG_OK_FOR_BASE_P): Select one of the above.
9779 2001-09-05 Richard Sandiford <rsandifo@redhat.com>
9781 * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
9782 (crti.o): Prefix name of object file with $(T).
9785 2001-09-05 David S. Miller <davem@redhat.com>
9787 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9788 * config/sparc/linux64.h: Likewise.
9790 2001-09-05 Andreas Jaeger <aj@suse.de>
9792 * doc/invoke.texi (i386 Options): -mwide-multiply is not
9793 available anymore, remove the documentation.
9794 (i386 Options): Fix typo, cleanup index entries.
9796 * prefix.c (concat): Remove, we can use the version from liberty.
9798 2001-09-05 Richard Henderson <rth@redhat.com>
9800 * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
9801 New functions split out of md file expanders.
9802 * config/alpha/alpha-protos.h: Declare them.
9803 * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
9805 2001-09-05 Neil Booth <neil@daikokuya.demon.co.uk>
9807 * cppmacro.c (funlike_invocation_p): No need to restore context.
9809 2001-09-04 Richard Henderson <rth@redhat.com>
9811 * reload.c (push_reload): Export.
9812 * reload.h (push_reload): Declare it.
9814 * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
9815 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
9816 * config/alpha/alpha.c (alpha_legitimize_address): New.
9817 (alpha_legitimize_reload_address): Likewise.
9818 * config/alpha/alpha-protos.h: Declare them.
9820 2001-09-04 Stan Shebs <shebs@apple.com>
9822 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
9823 * config/darwin.c (machopic_stub_name): Account for internally
9824 generated lib calls such as memcpy.
9826 2001-09-04 Richard Henderson <rth@redhat.com>
9828 * unwind.h (_UA_END_OF_STACK): New flag.
9829 * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
9831 Tue Sep 4 11:16:35 2001 Jeffrey A Law (law@cygnus.com)
9833 * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
9835 2001-09-04 Richard Sandiford <rsandifo@redhat.com>
9837 * config/mips/mips.c (save_restore_insns): Change base_offset to
9838 fp_offset in second call to mips_emit_frame_related_store.
9840 2001-09-04 Hans-Peter Nilsson <hp@axis.com>
9842 * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
9843 sometimes be represented as a NOTE of type
9844 NOTE_INSN_DELETED_LABEL.
9845 (Insns): Document NOTE_INSN_DELETED_LABEL.
9847 2001-09-04 Nathan Sidwell <nathan@codesourcery.com>
9849 * c-common.h (tree_dump_index): Add more comments.
9850 * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
9851 (dump_option_value_info): New struct.
9852 (dump_options): New array.
9853 (dump_switch_p): Parse switch options symbolically.
9854 * doc/invoke.texi (-fdump-ast): Rename to ...
9855 (-fdump-tree): ... here. Document that options are symbolic, and
9856 not all are applicable.
9858 2001-09-04 David S. Miller <davem@redhat.com>
9860 * config/sparc/sparc.md (define_splits): Kill constraints.
9862 Cleanup redundant and unused insn attributes.
9863 * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
9864 binary, and move. Mark ialu as default.
9865 (commented out define_function_unit "alu"): Kill.
9866 (define_attr "use_clobbered"): Kill.
9867 (whole file): Kill address insn type references. Replace
9868 all unary/binary/move references with ialu.
9869 * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
9870 references. Replace TYPE_{UNARY,BINARY,MOVE} references with
9873 Simplify length insn attribute and make more judicious use
9874 of insn attribute defaulting.
9875 * config/sparc/sparc.md (all insns with length > one): Mark as
9876 insn type multi if real instructions, else use default if
9877 it is a forced splitter.
9878 (all insns with length == one): Use default insn length.
9879 (all insns of type ialu): Use default insn type.
9881 Fix erroneous insn attribute settings.
9882 (addx): Set insn type to misc.
9883 (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
9884 const_umulsidi3_sp64): Set insn type to imul.
9886 Track SFmode vs DFmode insns according to UltraSPARC
9888 * config/sparc/sparc.md ("fptype"): New attribute, default
9890 (all DFmode single insns): Mark as fptype "double".
9892 2001-09-03 Jakub Jelinek <jakub@redhat.com>
9894 * loop.c (express_from_1): Fix CONSTANT_P(a) case.
9896 2001-09-03 Richard Henderson <rth@redhat.com>
9898 * function.h (struct function): Add arg_pointer_save_area_init.
9899 * function.c (expand_function_end): Init arg_pointer_save_area.
9900 (get_arg_pointer_save_area): Do not init arg_pointer_save_area
9901 when called from a nested function.
9903 2001-09-02 Angela Marie Thomas <angela@cygnus.com>
9905 * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
9908 Sun Sep 2 18:37:54 CEST 2001 Jan Hubicka <jh@suse.cz>
9910 * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
9912 2001-09-01 Geoffrey Keating <geoffk@redhat.com>
9914 * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
9915 (emit_push_insn): Use specified padding direction when
9916 STACK_PUSH_CODE is POST_INC.
9918 * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
9920 2001-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9922 * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
9924 2001-09-01 Neil Booth <neil@daikokuya.demon.co.uk>
9926 * cppinit.c (cpp_start_read): Free the imacros list as we
9927 traverse it. Don't free the chains before returning.
9928 (_cpp_push_next_buffer): Only try pushing buffers if we've
9929 completed -imacros handling.
9931 2001-08-31 Eric Christopher <echristo@redhat.com>
9933 * gcc.c (handle_braces): Add explaination for abort.
9935 2001-08-30 Roman Zippel <zippel@linux-m68k.org>
9937 * expmed.c (store_bit_field): Update to patch from 2001-08-27:
9938 move adjustment of bitpos instead.
9940 2001-08-31 Zack Weinberg <zack@codesourcery.com>
9942 * function.c: Remove all_functions. Make outer_function_chain
9944 (init_function_start): Don't add new function structure to
9946 (find_function_data, push_function_context_to,
9947 pop_function_context_from, put_var_into_stack,
9948 trampoline_address): Update for changed structure element names.
9949 (push_function_context_to): Disentangle.
9950 (free_after_compilation): Also free F.
9951 (expand_dummy_function_end): Don't free cfun here.
9952 (put_var_into_stack): Comment why we can't use find_function_data here.
9953 (fix_lexical_addr, trampoline_address, ): Use find_function_data.
9954 (mark_function_chain): Split into maybe_mark_struct_function and
9955 ggc_mark_struct_function. Export the latter.
9956 (init_function_once): Mark from cfun and outer_function_chain;
9959 * function.h (struct function): Kill next_global. Rename next
9960 to outer. All users updated to match.
9961 (all_functions, outer_function_chain): Don't declare.
9963 * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
9964 * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
9965 don't touch f->inlinable, after calling rest_of_compilation.
9967 * tree.h: Forward-declare struct function. Prototype
9968 ggc_mark_struct_function.
9970 2001-08-31 Kazu Hirata <kazu@hxi.com>
9972 * config/h8300/h8300.md (*andorhi3): Fix typos.
9974 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9976 * calls.c (emit_library_call_value): Don't use a fixed
9977 argument after VA_CLOSE, i.e. out of scope in traditional C.
9979 * emit-rtl.c (gen_rtvec): Likewise.
9981 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9983 * Makefile.in (c-pragma.o): Depend on output.h.
9984 (reorg.o): Depend on except.h.
9986 * c-pragma.c: Include output.h.
9988 * reorg.c: Include except.h.
9990 * unwind-dw2.c: Call __builtin_alloca, not alloca.
9992 2001-08-31 Richard Henderson <rth@redhat.com>
9994 * sched-deps.c (add_dependence): Don't elide dependency if the
9995 conditional used by insn is modified in elem.
9997 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
9999 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
10001 2001-08-31 Diego Novillo <dnovillo@redhat.com>
10003 * c-decl.c (c_decode_option): Skip '-f' prefix before calling
10006 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
10008 * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
10010 (stormy16_asm_out_constructor): New function.
10011 (TARGET_ASM_CONSTRUCTOR): Define.
10012 (TARGET_ASM_DESTRUCTOR): Define.
10014 2001-08-31 Andreas Jaeger <aj@suse.de>
10016 * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
10017 * loop.c (add_label_notes): Likewise.
10018 * reload.c (find_reloads): Likewise.
10019 * config/sh/sh.c (machine_dependent_reorg): Likewise.
10021 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
10023 * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
10024 code here. Take _Unwind_{W,Sw}ord*.
10025 (read_encoded_value_with_base): Use them.
10026 * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
10028 (extract_cie_info): Simplify read_?leb128 handling.
10029 (execute_stack_op, execute_cfa_program): Likewise.
10030 * unwind-dw2-fde.c (get_cie_encoding): Likewise.
10032 2001-08-31 Geoffrey Keating <geoffk@redhat.com>
10034 * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
10035 the frame pointer to pop the stack if convenient.
10037 * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
10038 Don't use post-increment before combine.
10039 * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
10040 a call-saved register.
10042 2001-08-31 Andreas Jaeger <aj@suse.de>
10044 * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
10047 2001-08-30 Geoffrey Keating <geoffk@redhat.com>
10049 * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
10050 not DIV/MOD, of course.
10052 2001-08-30 Vladimir Makarov <vmakarov@redhat.com>
10054 * rtl.def: Undo my patch commited 2001-08-27.
10056 * genattrtab.c: Ditto.
10060 * sched-int.h: Ditto.
10062 * target-def.h: Ditto.
10066 * haifa-sched.c: Ditto.
10068 * sched-rgn.c: Ditto.
10070 * sched-vis.c: Ditto.
10072 * Makefile.in: Ditto.
10074 * doc/md.texi: Ditto.
10076 * doc/tm.texi: Ditto.
10078 * doc/contrib.texi: Ditto.
10080 * doc/gcc.texi: Ditto.
10082 * genattrtab.h: Remove it.
10084 * genautomata.c: Remove it.
10086 * genattr.c: Undo my patch and Richard Henderson's patch commited
10089 Thu Aug 30 19:22:15 2001 J"orn Rennecke <amylaar@redhat.com>
10091 * config.gcc (h8300-*-elf*): New case.
10092 * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
10093 (SUBTARGET_CPP_SPEC): Define.
10094 (EXTRA_SPECS): Define.
10095 (SUBTARGET_EXTRA_SPECS): Define.
10096 * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
10097 * config/h8300/elf.h, config/h8300/t-elf: Likewise.
10099 Thu Aug 30 18:50:37 2001 J"orn Rennecke <amylaar@redhat.com>
10101 * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
10102 (LIB2FUNCS_EXTRA): Define.
10103 config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
10104 config/h8300/fixunssfsi.c: New file.
10106 2001-08-30 Kazu Hirata <kazu@hxi.com>
10108 * config/h8300/h8300.md (zero_extendqihi2): Changes to
10109 define_expand to accommodate target-specific attributes.
10110 (anonymous zero_extendqihi2 patterns): New.
10112 Thu Aug 30 18:10:56 2001 J"orn Rennecke <amylaar@redhat.com>
10114 * h8300.md (*andorhi3): New pattern.
10116 Thu Aug 30 16:00:31 2001 J"orn Rennecke <amylaar@redhat.com>
10118 * h8300.c (dosize): Fix test for "sub".
10120 Thu Aug 30 10:21:43 2001 J"orn Rennecke <amylaar@redhat.com>
10122 * c-typeck.c (pointer_diff): Try to eliminate common term before
10125 2001-08-30 Nick Clifton <nickc@cambridge.redhat.com>
10127 * config/arm/arm.c (arm_compute_initial_elimination_offset):
10128 Account for the saves of the FP registers.
10130 * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
10131 (TEXT_SECTION_ASM_OP): Define.
10132 (INIT_SECTION_ASM_OP): Define.
10133 (FINI_SECTION_ASM_OP): Define.
10134 (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
10135 (RDATA_SECTION_FUNCITON): Provide prototype.
10137 2001-08-29 Geoffrey Keating <geoffk@redhat.com>
10139 * reload1.c (move2add_note_store): Correct typo checking for
10142 2001-08-29 Andrew MacLeod <amacleod@redhat.com>
10144 * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
10145 note should not be considered outside the libcall block.
10147 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10149 * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
10151 2001-08-29 Kazu Hirata <kazu@hxi.com>
10153 * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
10155 2001-08-29 Kazu Hirata <kazu@hxi.com>
10157 * config/h8300/h8300-protos.h: Add a prototype for
10159 * config/h8300/h8300.c (emit_logical_op): New.
10160 * config/h8300/h8300.md (andhi3): Use emit_logical_op.
10161 (andsi3): Likewise.
10162 (iorhi3): Likewise.
10163 (iorsi3): Likewise.
10164 (xorhi3): Likewise.
10165 (xorsi3): Likewise.
10167 2001-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
10169 * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
10170 comparison with rtx INTVAL.
10171 (pa_output_function_prologue): Don't mix signed and unsigned in `?'
10173 * pa.h (FUNCTION_ARG_SIZE): Likewise.
10175 2001-08-29 Kazu Hirata <kazu@hxi.com>
10177 * config/h8300/lib1funcs.asm: Update the copyright. Fix
10180 2001-08-29 Kazu Hirata <kazu@hxi.com>
10182 * config/h8300/h8300.md (anonymous movhi pattern): Don't move
10183 (reg n) to (mem (pre_dec (reg n))
10184 (anonymous movsi pattern): Likewise.
10186 2001-08-29 Kazu Hirata <kazu@hxi.com>
10188 * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
10190 2001-08-29 Kazu Hirata <kazu@hxi.com>
10192 * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
10193 several special constants.
10195 2001-08-29 Kazu Hirata <kazu@hxi.com>
10197 * config/h8300/lib1funcs.asm: Fix comment typos.
10199 2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10201 * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
10202 Fix format specifier warnings.
10204 * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
10205 inet_makeaddr, semctl): Prototype.
10207 * mips.c (compute_frame_size): Fix signed/unsigned warnings.
10208 (save_restore_insns): Use base_offset, not gp_offset.
10210 * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
10211 (ASM_OUTPUT_BYTE): Fix format specifier warning.
10213 2001-08-29 Richard Henderson <rth@redhat.com>
10215 * bb-reorder.c (function_tail_eff_head): New.
10216 (record_effective_endpoints): Set it.
10217 (fixup_reorder_chain): Use it.
10219 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10221 * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
10223 2001-08-28 Dale Johannesen <dalej@apple.com>
10225 * config/darwin.c (machopic_function_base_name): Add const
10226 qualifier to a string.
10227 (darwin_encode_section_info): Ditto.
10229 2001-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10231 * tree.c (default_valid_attribute_p): Don't use PARAMS on a
10232 function definition.
10234 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
10236 * df.h (struct df): Add rts_order variable.
10238 * df.c (df_visit_next_rts): New function.
10239 (df_visit_next): Renamed to df_visit_next_rc
10240 (df_analyse_1): Allocate/compute/free rts_order as well.
10241 (df_rd_global_compute): Use df_visit_next_rc instead of
10243 (df_ru_global_compute): Use df_visit_next_rts instead of
10246 * flow.c (flow_reverse_top_sort_order_compute): New function.
10248 * basic-block.h: Add prototype.
10250 2001-08-28 Daniel Berlin <dan@cgsoftware.com>
10252 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
10253 blocks, the BB_REACHABLE is now set, rather than aux being
10254 non-NULL. Update the test to reflect this.
10256 2001-08-28 Eric Christopher <echristo@redhat.com>
10258 * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
10259 config/mips/crti.asm: Ditto.
10261 2001-08-28 Eric Christopher <echristo@redhat.com>
10262 Richard Henderson <rth@redhat.com>
10264 * c-pragma.h (add_weak): Move prototype from here...
10265 * output.h (add_weak): ... to here.
10266 * varasm.c (add_weak): Fix typo.
10267 * config/mips/crti.asm: New file.
10268 * config/mips/crtn.asm: Ditto.
10269 * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
10270 (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
10271 (INVOKE__main): Ditto.
10272 (INIT_SECTION_ASM_OP): New.
10273 (FINI_SECTION_ASM_OP): Ditto.
10274 (STARTFILE_SPEC): Add crti.
10275 (ENDFILE_SPEC): Add crtn.
10276 * config/mips/elf64.h: Same.
10277 * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
10279 * config/mips/vxworks.h: Ditto.
10280 * config/mips/t-elf: Support crti and crtn.
10282 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
10284 * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
10287 2001-08-28 Richard Henderson <rth@redhat.com>
10289 * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
10290 (one_cmplbi2 splitter): Remove redundant test.
10292 2001-08-28 Dale Johannesen <dalej@apple.com>
10294 * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
10296 2001-08-28 Danny Smith <dannysmith@users.sourceforge.net>
10298 * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
10300 2001-08-28 Stan Shebs <shebs@apple.com>
10302 * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
10303 (UNALIGNED_SHORT_ASM_OP): Define.
10304 (UNALIGNED_INT_ASM_OP): Define.
10306 2001-08-28 Will Cohen <wcohen@redhat.com>
10308 * config/rs6000/rs6000.md (store_multiple): Correct RTL
10309 generation for first set.
10311 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
10313 * flow.c (redirect_edge_succ_nodup): Return new edge.
10314 (try_simplify_condjump): Use new edge.
10315 * basic-block.h (redirect_edge_succ_nodup): Update prototype.
10317 * cse.c (cse_basic_block): Skip note instructions.
10319 2001-08-27 Richard Henderson <rth@redhat.com>
10321 * combine.c (combine_simplify_rtx): Don't reverse condition
10322 if there is no reverse for the condition.
10323 (simplify_comparison): Don't simplify subregs from INT to FP.
10325 * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
10326 suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
10327 sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
10328 bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
10329 bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
10330 bunle_rev, bunlt_rev, bltgt_rev): New patterns.
10332 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
10334 * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
10335 bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
10337 (adddi_dilshr32, adddi_dishl32): Only data register can be
10338 source for mem destination.
10340 * expmed.c (store_bit_field): Ignore adjustment to bitpos
10341 and use bitnum to decide about register move.
10343 2001-08-27 Richard Henderson <rth@redhat.com>
10345 * genattr.c (main): Emit state_t even when not doing scheduling.
10347 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
10348 Richard Henderson <rth@redhat.com>
10350 * gcse.c (reg_first_set, reg_last_set): Replace with ...
10351 (reg_avail_info, current_bb): ... these.
10352 (oprs_unchanged_p, record_last_reg_set_info): Use them.
10353 (compute_hash_table): Likewise.
10355 2001-08-27 Roman Zippel <zippel@linux-m68k.org>
10357 * flow.c (verify_flow_info): Use checksums to verify edges.
10359 2001-08-27 Richard Henderson <rth@redhat.com>
10361 * genautomata.c (expand_automata): Always create a description.
10363 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
10365 * optabs.c (expand_binop): Correctly handle the carry in multiword
10366 add/subtract operations.
10368 2001-08-27 Fred Fish <fnf@be.com>
10370 * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
10373 2001-08-27 Geoffrey Keating <geoffk@redhat.com>
10375 * reload.c (find_reloads_toplev): Back out this change:
10377 Wed Jul 26 19:44:05 2000 Hans-Peter Nilsson <hp@axis.com>
10379 * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
10380 mem if the address is a mode_dependent_address_p.
10382 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
10384 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
10385 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
10386 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
10389 * genattr.c (main): New variable num_insn_reservations. Increase
10390 it if there is DEFINE_INSN_RESERVATION. Output automaton based
10391 pipeline hazard recognizer interface.
10393 * genattrtab.h: New file.
10395 * genattrtab.c: Include genattrtab.h.
10396 (attr_printf, check_attr_test, make_internal_attr,
10397 make_numeric_value): Move protypes into genattrtab.h. Define them
10399 (num_dfa_decls): New global variable.
10400 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
10401 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
10402 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
10403 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
10405 * genautomata.c: New file.
10407 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
10409 * sched-int.h: (curr_state): Add the external definition for
10410 automaton pipeline interface.
10411 (haifa_insn_data): Add comments for members blockage and units.
10413 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10414 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10415 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10416 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10417 TARGET_SCHED_DFA_POST_CYCLE_INSN,
10418 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10419 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
10421 (TARGET_SCHED): Use the new macros.
10423 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
10424 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
10425 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
10426 dfa_bubble): New members in gcc_target.sched.
10428 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
10429 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
10430 (insn_queue): Redefine it as pointer to array.
10431 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
10433 (max_insn_queue_index_macro_value): New variable.
10434 (curr_state, dfa_state_size, ready_try): New varaibles for
10435 automaton interface.
10436 (ready_element, ready_remove, max_issue): New function prototypes
10437 for automaton interface.
10438 (choose_ready): New function prototype.
10439 (insn_unit, blockage_range): Add comments.
10440 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
10441 FUNCTION_UNITS_SIZE == 0.
10442 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
10443 actual_hazard, potential_hazard): Add comments.
10444 (insn_cost): Use cost -1 as undefined value. Remove
10445 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
10446 pipeline interface.
10447 (ready_element, ready_remove): New functions for automaton
10449 (schedule_insn): Add new code for automaton pipeline interface.
10450 (queue_to_ready): Add new code for automaton pipeline interface.
10451 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
10452 (debug_ready_list): Print newline when the queue is empty.
10453 (max_issue): New function for automaton pipeline interface.
10454 (choose_ready): New function.
10455 (schedule_block): Add new code for automaton pipeline interface.
10456 Print ready list before scheduling each insn.
10457 (sched_init): Add new code for automaton pipeline interface.
10458 Initiate insn cost by -1.
10459 (sched_finish): Free the current automaton state and finalize
10460 automaton pipeline interface.
10462 * sched-rgn.c: Include target.h.
10463 (init_ready_list, new_ready, debug_dependencies): Add new code for
10464 automaton pipeline interface.
10466 * sched-vis.c: Include target.h.
10467 (get_visual_tbl_length): Add code for automaton interface.
10468 (target_units, print_block_visualization): Add comments.
10470 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
10471 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
10472 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
10473 (getruntime.o, genautomata.o): New entries.
10474 (genattrtab.o): Add new dependency file genattrtab.h.
10475 (genattrtab): Add new dependencies. Link it with `libm.a'.
10476 (getruntime.o, hashtab.o): New entries for canadian cross.
10478 * doc/md.texi: Description of automaton based model.
10480 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
10482 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10483 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10484 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10485 TARGET_SCHED_DFA_POST_CYCLE_INSN,
10486 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10487 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10488 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
10490 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
10491 MAX_DFA_ISSUE_RATE): New macro descriptions.
10493 * doc/contrib.texi: Add dfa based scheduler contribution.
10495 * doc/gcc.texi: Add more information about genattrtab.
10497 2001-08-27 Diego Novillo <dnovillo@redhat.com>
10499 * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
10500 an RTL basic block.
10502 2001-08-27 Richard Henderson <rth@redhat.com>
10504 * function.c (expand_function_end): Don't init arg_pointer_save_area.
10505 (get_arg_pointer_save_area): New. Create an init it here.
10506 (fix_lexical_addr): Use it.
10507 * function.h: Declare it.
10508 * builtins.c (expand_builtin_setjmp_receiver): Use it.
10509 * stmt.c (expand_nl_goto_receiver): Use it.
10511 2001-08-27 Richard Henderson <rth@redhat.com>
10513 * final.c (final_scan_insn): Don't enter APP_ON mode for
10516 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
10517 alignment for assemble_integer for DW_EH_PE_aligned.
10518 * except.c (output_function_exception_table): Likewise.
10520 2001-08-26 Andreas Jaeger <aj@suse.de>
10522 * c-tree.h: Add prototyp for c_sizeof_nowarn.
10524 2001-08-25 Dan Nicolaescu <dann@ics.uci.edu>
10526 * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
10528 2001-08-27 Alan Modra <amodra@bigpond.net.au>
10530 * config/rs6000/rs6000.c (mask_operand): Rewrite without
10532 (mask64_operand): Likewise.
10533 (rldic_operand): Delete.
10534 (includes_lshift64_p): Delete.
10535 (includes_rldic_lshift_p): New function.
10536 (includes_rldicr_lshift_p): New function.
10537 (print_operand): Don't call rldic_operand in case 'W'.
10538 * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
10539 (includes_lshift64_p): Remove.
10540 (includes_rldic_lshift_p): Declare.
10541 (includes_rldicr_lshift_p): Declare.
10542 * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
10543 * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
10544 Replace match_operand rldic_operand predicate with
10545 const_int_operand. Replace includes_lshift64_p condition with
10546 includes_rldic_lshift_p.
10547 <ashldi3_internal 64 bit rldicr patterns>: New.
10549 2001-08-27 Andreas Jaeger <aj@suse.de>
10551 * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
10552 * errors.c: Likewise.
10553 * final.c: Likewise.
10554 * dwarf2asm.c: Likewise.
10555 * doprint.c (checkit): Likewise.
10556 * diagnostic.c: Likewise.
10557 * collect2.c: Likewise.
10558 * calls.c: Likewise.
10559 * c-semantics.c (build_stmt): Likewise.
10560 * c-format.c (status_warning): Likewise.
10561 * c-errors.c (pedwarn_c99): Likewise.
10562 * builtins.c (validate_arglist): Likewise.
10563 * config/pj/pj.c (pj_printf): Likewise.
10564 * fix-header.c: Likewise.
10566 * gcov.c (fnotice): Likewise.
10567 * gensupport.c (message_with_line): Likewise.
10568 * mips-tfile.c: Likewise.
10569 * protoize.c (notice): Likewise.
10570 * read-rtl.c (fatal_with_file_and_line): Likewise.
10571 * rtl-error.c: Likewise.
10572 * tradcpp.c: Likewise.
10573 * tree.c: Likewise.
10574 * cp/tree.c (build_min_nt): Likewise.
10575 (build_min): Likewise.
10576 * cp/lex.c: Likewise.
10577 * cp/errfn.c: Likewise.
10578 * cp/rtti.c (create_pseudo_type_info): Likewise.
10580 Sun Aug 26 20:25:44 2001 Denis Chertykov <denisc@overta.ru>
10582 * df.c (df_uses_record): Return after recording all uses
10585 2001-08-26 Daniel Berlin <dan@cgsoftware.com>
10587 * df.c (df_insn_modify): Realloc the INSN table here, if
10588 necessary, here, too.
10590 2001-08-26 Aldy Hernandez <aldyh@redhat.com>
10592 * config/mips/mips.c (mips_function_value): Handle complex return
10595 2001-08-25 Hans-Peter Nilsson <hp@bitrange.com>
10597 * reload1.c (reload): Make all entries in reg_equiv_memory_loc
10599 * reload.c (make_memloc): Copy result if it is still
10600 reg_equiv_memory_loc[regno] on return.
10601 (subst_reloads) [ENABLE_CHECKING]: Check that none of
10602 reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
10603 reg_equiv_mem are modified by the substitutions.
10605 Sat Aug 25 23:07:35 CEST 2001 Jan Hubicka <jh@suse.cz>
10607 * predict.c (expensive_function_p): New.
10608 * rtl.h (expensive_function_p): Declare.
10609 * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
10610 (use_fast_prologue_epilogue): New static variable.
10611 (expand_prologue): Set it; emit short prologues if unset.
10612 (expand_epilogue): Likewise.
10614 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
10616 * config.gcc: Add stormy16-*-elf case.
10617 * config/stormy16/stormy-abi: New file.
10618 * config/stormy16/stormy16-lib2.c: New file.
10619 * config/stormy16/stormy16-protos.h: New file.
10620 * config/stormy16/stormy16.c: New file.
10621 * config/stormy16/stormy16.h: New file.
10622 * config/stormy16/stormy16.md: New file.
10623 * config/stormy16/t-stormy16: New file.
10625 Sat Aug 25 15:46:51 CEST 2001 Jan Hubicka <jh@suse.cz>
10627 * i386.h (no-accumulate-outgoing-args): Use proper mask.
10629 2001-08-24 David Edelsohn <edelsohn@gnu.org>
10631 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
10632 descriptor members are pointer size, not constant 4.
10633 * config/rs6000/rs6000.md (define_splits): Remove more unused
10636 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10638 * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
10640 2001-08-24 Andreas Jaeger <aj@suse.de>, rkl@connect.org.uk
10642 * cp/rtti.c (VPARAMS): Fix parameter.
10644 2001-08-24 Zack Weinberg <zackw@panix.com>
10646 * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
10648 (mode_for_extraction): No need for #ifdefs. Add default-case abort
10650 (store_bit_field): Eliminate insv_bitsize variable. Put HAVE_insv
10651 in if controlling use of insv.
10652 (extract_bit_field): Likewise, for extv and extzv.
10654 Fri Aug 24 17:27:46 CEST 2001 Jan Hubicka <jh@suse.cz>
10656 * i386.md (movcc peep2): Fix load of 0.
10658 2001-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10660 * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
10661 *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
10663 2001-08-23 Jason Merrill <jason_merrill@redhat.com>
10665 * c-pragma.h: Move weak_syms and weak_decls...
10666 * varasm.c: ...here. Now static.
10667 (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
10668 depend on HANDLE_PRAGMA_WEAK.
10670 * c-common.c (c_alignof, c_alignof_expr): Move here...
10671 * c-typeck.c: ...from here.
10672 * c-tree.h, c-common.h: Adjust.
10674 2001-08-23 Bernd Schmidt <bernds@redhat.com>
10676 * config/ia64/ia64.c (rws_update): If !pred, set write_count
10677 instead of incrementing it.
10679 * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
10680 asm ready, don't try to move them all into the same array element.
10682 Thu Aug 23 17:21:43 CEST 2001 Jan Hubicka <jh@suse.cz>
10684 * function.c (thread_prologue_and_epilogue_insns): Avoid
10685 fallthru flag on edge to exit.
10687 * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
10689 * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
10692 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
10694 * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
10695 * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
10696 * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
10699 2001-08-23 Lars Brinkhoff <lars@nocrew.org>
10701 * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
10702 replace "GNU CC" with "GCC".
10704 2001-08-23 Richard Henderson <rth@redhat.com>
10706 * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
10707 Reorganize. Handle ADDL like GR, add GR_AND_BR. Handle TFmode.
10708 (ia64_secondary_reload_class): Need GR between AR/BR and anything.
10709 Need GR between FR and not GR_AND_FR.
10710 * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
10711 * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
10712 AR regs before GR regs.
10713 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
10714 (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
10715 (REGISTER_MOVE_COST): Update.
10716 (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
10718 2001-08-23 Richard Henderson <rth@redhat.com>
10720 * regclass.c (init_reg_sets_1): Don't assume cost 2 within
10723 2001-08-22 Geoffrey Keating <geoffk@redhat.com>
10725 * reload1.c (emit_reload_insns): Don't look for notes
10726 on a NULL store_insn.
10728 2001-08-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10730 * sparc.c (uns_small_int): Don't reference a constant >32-bit.
10731 (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
10732 (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
10733 format specifier warnings.
10734 (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
10736 2001-08-22 David Billinghurst <David.Billinghurst@riotinto.com>
10738 * config/i386/i386-protos.h: Correct declaration of
10739 i386_pe_asm_named_section.
10741 2001-08-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
10743 * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
10745 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
10747 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
10749 * cpperror.c (print_location): Don't show _Pragma.
10750 * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
10751 and file change callback generation here.
10752 (stack_include_file): Update use of cpp_push_buffer.
10753 * cpphash.h (_cpp_pop_file_buffer): Update prototype.
10754 (struct cpp_buffer): Remove type, pfile members.
10755 * cppinit.c (cpp_handle_option): Use free_chain.
10756 * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
10757 (skip_escaped_newlines, get_effective_char, lex_percent): Take
10758 a cpp_reader rather than a cpp_buffer.
10759 (skip_escaped_newlines, get_effective_char, skip_block_comment,
10760 skip_line_comment, parse_string, lex_percent, lex_dot,
10761 _cpp_lex_token): Update accordingly.
10762 * cpplib.c (_cpp_pop_buffer): Don't do file change callback
10764 (cpp_push_buffer): Update prototype.
10765 (run_directive): Update use of cpp_push_buffer.
10766 (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
10767 handle_assertion): Update use of run_directive.
10768 * cpplib.h (enum cpp_buffer_type): Remove.
10769 (cpp_push_buffer): Update prototype.
10770 * fix-header.c (read_scan_file): Update.
10772 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
10774 * gcc.c (struct prefix_list): Change prefix to const char *.
10776 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
10778 * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
10780 2001-08-22 Jason Merrill <jason_merrill@redhat.com>
10782 * explow.c (set_mem_attributes): Avoid returning a bogus alias set
10785 * jump.c (squeeze_notes): Take parms by reference. Handle END being
10788 * ifcvt.c (dead_or_predicable): Adjust.
10789 * loop.c (find_and_verify_loops): Adjust.
10790 * stmt.c (expand_end_case): Adjust.
10791 * flow.c (merge_blocks_move_successor_nojumps): Adjust. Modify the
10792 head and end insn pointers in the basic block, not just local copies.
10793 (merge_blocks_move_predecessor_nojumps): Likewise.
10795 2001-08-22 Lars Brinkhoff <lars@nocrew.org>
10797 * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
10798 bitmap.h, builtin-types.def, builtins.c, builtins.def,
10799 c-aux-info.c, c-common.c, c-common.def, c-common.h,
10800 c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
10801 c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
10802 c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
10803 caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
10804 conditions.h, config.gcc, configure.frag, configure.in,
10805 conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
10806 cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
10807 dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
10808 doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
10809 dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
10810 emit-rtl.c, errors.c, errors.h, except.c, except.h,
10811 exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
10812 fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
10813 function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
10814 gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
10815 gencheck.c, gencodes.c, genconfig.c, genemit.c,
10816 genextract.c, genflags.c, gengenrtl.c, genmultilib,
10817 genopinit.c, genoutput.c, genpeep.c, genrecog.c,
10818 gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
10819 ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
10820 graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
10821 gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
10822 gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
10823 hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
10824 integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
10825 libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
10826 machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
10827 mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
10828 mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
10829 params.h, predict.c, predict.def, predict.h, prefix.c,
10830 prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
10831 read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
10832 regclass.c, regmove.c, regrename.c, regs.h, reload.c,
10833 reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
10834 rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
10835 sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
10836 sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
10837 ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
10838 stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
10839 tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
10840 tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
10841 unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
10842 unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
10843 xcoffout.h: replace "GNU CC" with "GCC".
10845 2001-08-21 Richard Henderson <rth@redhat.com>
10847 * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
10848 (final_scan_insn): Consider jump tables data even if we have no
10849 independent text section if !JUMP_TABLES_IN_TEXT_SECTION. Use
10851 * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
10852 (ASM_OUTPUT_CASE_END): Remove.
10853 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
10854 * config/ia64/ia64.md (tablejump): Decode pc-relative references.
10855 * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
10857 2001-08-21 Richard Henderson <rth@redhat.com>
10859 * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
10860 at barrier insns. Emit stop bits before barriers.
10862 * flow.c (flow_find_cross_jump): Don't consider unconditional
10863 return insns for commoning.
10865 * final.c (compute_alignments): Fix typo.
10867 * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
10868 (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
10869 (store_bit_field): Use mode_for_extraction more places.
10870 (extract_bit_field): Likewise.
10872 2001-08-21 Zack Weinberg <zackw@panix.com>
10874 * caller-save.c: Don't include insn-codes.h.
10875 (reg_save_code, reg_restore_code): Make arrays of int.
10876 All uses updated to match.
10877 (insert_save, insert_restore): No need to initialize "code"
10878 variable upon declaration.
10879 * Makefile.in: update dependencies; fix typo in clean rule.
10881 2001-08-21 Richard Henderson <rth@redhat.com>
10883 * ifcvt.c (find_if_block): Allow join_bb as EXIT.
10884 (merge_if_block): Handle fallout from same.
10886 2001-08-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10888 * builtins.c (type_to_class): Fix typo in last change.
10890 2001-08-21 Richard Henderson <rth@redhat.com>
10892 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
10893 ia64_asm_output_label.
10895 * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
10896 copy of gp while the real gp register contains garbage.
10898 2001-08-21 Zack Weinberg <zackw@panix.com>
10900 * expmed.c (mode_for_extraction): New function.
10901 (store_bit_field, extract_bit_field): Use it.
10902 * expr.h: Prototype it and provide an enum for its first argument.
10904 * combine.c, function.c, recog.c: Don't include insn-codes.h.
10905 Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
10906 and digging through the insn_data tables.
10907 * Makefile.in: Update dependencies.
10909 2001-08-22 Neil Booth <neil@daikokuya.demon.co.uk>
10911 * cppfiles.c (stack_include_file): line-map.c now handles include
10913 (handle_missing_handler): Similarly.
10914 (_cpp_execute_include): Similarly.
10915 (_cpp_pop_file_buffer): Similarly.
10916 * cpphash.h (struct cpp_reader): Remove system_include_depth,
10917 buffer_stack_depth and include_depth.
10918 * cpplib.c (do_include_common): line-map.c now handles include depth.
10919 (cpp_push_buffer): Similarly.
10920 (_cpp_pop_buffer): Similarly.
10921 * cppmacro.c (builtin_macro): Update.
10922 * line-map.c (init_line_maps): Set depth.
10923 (add_line_map): Increment "used" earlier. Update and use the
10925 (trace_include): Use the include depth.
10926 * line-map.h (struct line_maps): New member depth.
10928 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
10930 * cppfiles.c (stack_include_file): Don't handle -H here.
10931 * cppinit.c (cpp_start_read): Set include tracing after
10932 cpp_post_options and after stacking the main file.
10933 * line-map.c (trace_include): New.
10934 (init_line_maps, add_line_map): Update.
10935 * line-map.h (struct line_maps): New member trace_includes.
10937 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
10939 * cppfiles.c (stack_include_file): Harmonize system headerness tests.
10940 * cppfiles.c (stack_include_file): Only stack a file if there
10941 is something to do. Return a boolean indicating whether a
10942 buffer was stacked or not.
10943 (_cpp_execute_include): Similarly.
10944 (_cpp_read_file): Similarly.
10945 * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
10947 2001-08-21 Sam Steingold <sds@gnu.org>
10949 * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
10950 (RECACHE): keep obufp_before_macroname up to date
10952 2001-08-21 Zack Weinberg <zackw@panix.com>
10954 * stmt.c: Don't include insn-codes.h.
10955 (expand_end_case): Machine specific logic moved to expr.c.
10956 No need to worry about __builtin_classify_type.
10957 (check_for_full_enumeration_handling, emit_case_nodes):
10960 * builtins.o (expand_builtin_classify_type): Split up so code
10961 can be shared with fold_builtin_classify_type.
10962 (type_to_class, fold_builtin_classify_type): New functions.
10963 (fold_builtins): Handle __builtin_classify_type.
10965 * expr.c (do_tablejump): Now static.
10966 (case_values_threshold, try_casesi, try_tablejump): New;
10967 code mostly from stmt.c (expand_end_case).
10968 (expr.h): Update prototypes.
10970 * Makefile.in (stmt.o): Update dependencies.
10972 2001-08-21 Will Cohen <wcohen@redhat.com>
10974 * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
10975 declaration of variable i.
10976 * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
10977 declaration of variable i.
10979 2001-08-21 Richard Henderson <rth@redhat.com>
10981 * crtstuff.c: Fix thinko last change. Move list tails to start
10982 of CRT_END section. Tidy ifdefs.
10983 (__EH_FRAME_BEGIN__): Always static for ELF.
10984 (__do_global_ctors_1): Rename from __frame_dummy.
10985 * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
10986 name change; don't hide __EH_FRAME_BEGIN__.
10988 2001-08-21 Richard Henderson <rth@redhat.com>
10990 * gdbinit.in: Move break on exit after break on fancy_abort.
10992 * config/ia64/ia64.c (ia64_return_in_memory): True for variable
10995 2001-08-21 Neil Booth <neil@daikokuya.demon.co.uk>
10997 * cpphash.h (_cpp_push_next_buffer): New.
10998 * cppinit.c (do_includes): Remove.
10999 (push_include, free_chain, _cpp_push_next_buffer): New.
11000 (cpp_start_read): Use them to rework command line option handling.
11001 (cpp_handle_option): Combine handling of -include and -imacros.
11002 * cpplex.c (_cpp_lex_token): Push a new -include buffer if
11003 appropriate. Always insert missing \n at EOF.
11004 * cpplib.c (start_directive): Get the directive position right.
11005 * cppmain.c (cb_file_change): Always print the first line, unless
11008 2001-08-20 Andreas Jaeger <aj@suse.de>
11010 * profile.c (compute_branch_probabilities): Remove extra new-line
11012 * flow.c (verify_flow_info): Likewise.
11014 2001-08-20 Diego Novillo <dnovillo@redhat.com>
11016 * basic-block.h (basic_block): Add new field 'flags'.
11017 (BB_REACHABLE): Define.
11018 (expunge_block): Declare.
11019 * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
11020 (EXIT_BLOCK_PTR): Ditto.
11021 (expunge_block): Remove static declaration.
11022 (cleanup_cfg): Clear bb->aux on every basic block.
11023 (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
11024 computing reachability.
11025 (delete_unreachable_blocks): Delete block b if b->flags has
11026 BB_REACHABLE unset.
11028 2001-08-20 Diego Novillo <dnovillo@redhat.com>
11030 * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
11032 2001-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11034 * sparc.c (sparc_variable_issue): Fix typo in last change.
11036 2001-08-20 Richard Henderson <rth@redhat.com>
11038 * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
11040 2001-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
11042 * pa.h (RETURN_IN_MEMORY): Improve comment.
11044 2001-08-20 Janis Johnson <janis187@us.ibm.com>
11046 * doc/invoke.texi (Profiling options): Clarify the interactions
11047 between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
11049 2001-08-20 Jeffrey Oldham <oldham@codesourcery.com>
11051 * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
11054 2001-08-20 Matt Kraai <kraai@alumni.carnegiemellon.edu>
11056 * gcc.c (make_relative_prefix): Allocate a sufficiently large
11059 2001-08-20 Richard Henderson <rth@redhat.com>
11061 * final.c (end_final): Fix typo last change.
11063 2001-08-20 Neil Booth <neil@daikokuya.demon.co.uk>
11065 * cppinit.c (init_standard_includes): The returned buffer
11066 is already malloc-ed.
11067 * gcc.c (add_prefix): Similarly.
11068 * prefix.c (translate_name): Update to support clear buffer
11070 (update_path): Similarly. Be sure to free any newly allocated
11071 key. UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
11072 (tr): New function.
11073 * prefix.h (update_path): Update prototype and document.
11074 * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
11075 up and update to new buffer ownership rules.
11076 * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
11078 Mon Aug 20 01:44:50 CEST 2001 Jan Hubicka <jh@suse.cz>
11080 * final.c (compute_alignments): New function.
11081 (init_insn_lengths): Do not care label_align.
11082 (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
11083 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
11084 (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
11085 (shorted_branches): Realloc label_align array; do
11086 not call init_insn_lengths; Do not care about loop alignments.
11087 * output.h (compute_alignments): Declare.
11088 * toplev.c (rest_of_compilation): Call compute_alignments.
11089 * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
11091 * predict.c (block_info_def): Add npredecesors, remove nvisited;
11092 change visited to tovisit.
11093 (propagate_freq): Use faster traversing algorithm.
11094 (estimate_loops_at_level, estimate_bb_frequencies): Change visited
11095 to tovisit; reverse meaning.
11097 * predict.c (struct block_info_def): Remove nvisited.
11098 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
11099 (estimate_bb_frequencies): Call mark_dfs_back_edges.
11101 2001-08-19 Geoffrey Keating <geoffk@redhat.com>
11103 * doc/invoke.texi (MIPS Options): Document -mfused-madd.
11104 * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
11105 (TARGET_FUSED_MADD): New.
11106 (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
11107 * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
11108 the multiply-add instructions.
11110 2001-08-19 Richard Henderson <rth@redhat.com>
11112 * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
11113 is aligned to pointer size.
11115 2001-08-19 Richard Henderson <rth@redhat.com>
11117 * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
11118 display markers during final schedule.
11120 2001-08-19 Richard Henderson <rth@redhat.com>
11122 * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
11124 2001-08-19 Richard Henderson <rth@redhat.com>
11126 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
11127 in the same string.
11128 (ASM_NAME_TO_STRING): Remove.
11129 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
11130 in the same string. Remove support for expressions.
11132 2001-08-19 Richard Henderson <rth@redhat.com>
11134 * config/i386/i386.md (tablejump): Make an expander; handle
11135 pic relative addressing here.
11136 (tablejump_1): Rename from tablejump_pic.
11139 2001-08-19 Richard Henderson <rth@redhat.com>
11141 * regclass.c (fix_register): Fix typo.
11143 2001-08-18 Richard Henderson <rth@redhat.com>
11145 * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
11146 (struct _Unwind_Context): Expand br_loc to hold it.
11147 (uw_frame_state_for): Handle leaf functions better.
11148 (uw_update_reg_address): Update for br_loc change.
11150 2001-08-18 Richard Henderson <rth@redhat.com>
11152 * crtstuff.c: Move list heads before code that uses them.
11153 (__JCR_LIST__): Remove initial null.
11154 (frame_dummy, __frame_dummy): Do java registration here ...
11155 (__do_global_ctors_aux): ... not here.
11157 * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
11158 (__do_global_dtors_aux): Update to match.
11159 (__JCR_LIST__, __do_jv_register_classes): New.
11161 * config/ia64/crtend.asm (__JCR_END__): New.
11162 (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
11163 instead of an indirect LTOFF22 reloc.
11165 2001-08-18 Richard Henderson <rth@redhat.com>
11167 * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
11168 * regclass.c (init_reg_sets_1): Fix typo.
11169 * config/ia64/ia64.c (ar_pfs_reg_operand): New.
11170 (ia64_expand_call): Pass ar.pfs to sibcall expanders.
11171 (ia64_compute_frame_size): Make ar.unat live when in use.
11172 (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
11173 for ar.pfs; remove ar.unat handling.
11174 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
11176 (PREDICATE_CODES): Add ar_pfs_reg_operand.
11177 * config/ia64/ia64-protos.h: Update decls.
11178 * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
11179 (sibcall_pic): Likewise.
11181 2001-08-18 Richard Henderson <rth@redhat.com>
11183 * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
11184 pred_rel_mutex when searching for insn_group_barrier.
11185 * config/ia64/ia64.md (cycle_display): Combine the expander
11188 * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
11189 bit before asm as needed.
11191 2001-08-18 Richard Henderson <rth@redhat.com>
11193 * timevar.def (TV_MACH_DEP): New.
11194 * toplev.c (rest_of_compilation): Use it.
11195 * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
11197 2001-08-18 Zack Weinberg <zackw@panix.com>
11199 * unwind-dw2.c (execute_stack_op): Add default aborts to
11200 the inner switches to prevent warnings.
11202 2001-08-18 Richard Henderson <rth@redhat.com>
11204 * timevar.h (struct timevar_time_def): Change element type to float.
11205 (ticks_to_msec, clocks_to_msec): Likewise.
11206 (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
11207 (get_time): Likewise.
11208 (timevar_print): Adjust zero check and printing to match.
11210 2001-08-18 Zack Weinberg <zackw@panix.com>
11212 * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
11213 doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
11214 Eliminate overfull or underfull hboxes.
11216 2001-08-18 Zack Weinberg <zackw@panix.com>
11218 * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
11220 2001-08-18 Zack Weinberg <zackw@panix.com>
11222 * haifa-sched.c: Convert to target hooks. Macros replaced
11223 are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
11224 MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
11225 MD_SCHED_FINISH, and HAVE_cycle_display.
11226 * target-def.h (TARGET_SCHED_ADJUST_COST,
11227 TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
11228 TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
11229 TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
11230 TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
11231 New hook #defines to be overridden.
11232 (TARGET_SCHED): Bring them all together.
11233 (TARGET_INITIALIZER): Update.
11234 * target.h: Don't forward declare struct rtx_def. Use 'rtx'
11235 instead of 'struct rtx_def *' throughout.
11236 (struct sched): New set of hooks for the scheduler.
11237 * Makefile.in (haifa-sched.o): Depend on target.h.
11238 * doc/tm.texi: Document the new scheduler hooks, together in
11239 their own section, instead of scattered around.
11240 Fix a bunch of underfull/overfull hboxes.
11242 * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
11243 ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
11244 sparc.h: Don't define any of the old scheduler macros.
11246 * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
11247 ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
11248 sparc.c: Create hook functions from code extracted from
11249 corresponding target header, or make existing hooks static, as
11250 appropriate. Set the appropriate entries in targetm.
11252 * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
11253 i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
11254 rs6000-protos.h, s390-protos.h, sparc-protos.h:
11255 Remove prototypes for functions which are now static.
11257 * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
11258 related gunk; the Haifa scheduler is now the only choice.
11260 2001-08-18 Zack Weinberg <zackw@panix.com>
11262 * optabs.h (OTI_flodiv, flodiv_optab): Kill.
11263 * genopinit.c: Put floating point divide insns in sdiv_optab.
11264 * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
11265 * config/gofast.h, config/c4x/c4x.h,
11266 config/ia64/hpux_longdouble.h, config/mips/mips.h,
11267 config/pa/long_double.h, config/rs6000/sysv4.h,
11268 config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
11269 * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
11270 (init_optabs): Use init_optabv for overflow-trapping optabs.
11271 Don't init flodiv_optab. Give mov_optab, movstrict_optab, and
11272 cmp_optab RTX codes so have_insn_for can find them.
11274 * optabs.c (expand_simple_binop, expand_simple_unop,
11275 have_insn_for, gen_sub3_insn): New interfaces.
11276 * expr.h: Prototype new functions.
11277 (enum optab_methods): Move here from optabs.h.
11279 * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
11280 loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
11281 Use new functions instead of working directly with optabs.
11282 * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
11283 unroll.c: Don't include optabs.h.
11284 * caller-save.c, combine.c, function.c, stmt.c: Just include
11285 insn-codes.h, not optabs.h.
11286 * Makefile.in: Update dependencies.
11288 * combine.c (make_compound_operation, simplify_comparison):
11289 Fix typos testing for this or that instruction.
11291 2001-08-18 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
11293 * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
11294 generating libgcc.a.
11296 2001-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11298 * except.c (TYPE_HASH): Delete.
11300 * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
11303 * tree.c (TYPE_HASH): Delete.
11305 * tree.h (TYPE_HASH): Define.
11307 2001-08-18 Graham Stott <grahams@redhat.com>
11309 * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
11311 (adddi3_internal_2+2): Likewise.
11312 (eh_set_lr_di+1): Likewise.
11314 2001-08-17 Richard Henderson <rth@redhat.com>
11316 * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
11317 UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
11318 * dwarf2asm.c: ... here.
11319 * dwarfout.c: Remove them.
11321 * varasm.c (assemble_integer): Add align parameter.
11322 (assemble_real, output_constant, output_constructor): Likewise.
11323 * output.h: Update decls.
11324 * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
11325 config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
11326 config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
11327 config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
11328 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
11329 Update all callers.
11331 * final.c (end_final): Abort profile block generation if we
11332 haven't layed it out properly.
11333 * output.h (assemble_eh_integer): Remove stale decl.
11334 * varasm.c (assemble_zeros): Tidy; use assemble_integer.
11336 (assemble_integer): Handle unaligned data.
11337 (assemble_real): Abort on unaligned data.
11338 (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
11340 (default_dtor_section_asm_out_destructor): Use assemble_align.
11341 (default_named_section_asm_out_constructor): Likewise.
11342 (default_ctor_section_asm_out_constructor): Likewise.
11343 * config/darwin.c (machopic_asm_out_constructor): Likewise.
11344 (machopic_asm_out_destructor): Likewise.
11345 * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
11346 (nextstep_asm_out_destructor): Likewise.
11347 * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
11348 (vms_asm_out_destructor): Likewise.
11350 2001-08-17 Richard Henderson <rth@redhat.com>
11352 * config/mips/iris6.h (TARGET_IRIX6): New.
11353 (current_section_name, current_section_flags): New.
11354 (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
11355 (MAX_OFILE_ALIGNMENT): New.
11356 (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
11357 * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
11358 (copy_file_data): Split out from
11359 (mips_asm_file_end): ... here.
11360 (mips_asm_file_start): Remove extra .section directive. Use
11361 tmpfile instead of mips_make_temp_file.
11362 (mips_unique_section): Use const char * as needed for warnings.
11363 (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
11364 re-add align parameter.
11365 (iris6_asm_named_section): New.
11366 (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
11367 (iris6_asm_output_align, iris6_section_align_1): New.
11368 (iris6_asm_file_start, iris6_asm_file_end): New.
11369 * config/mips/mips-protos.h: Update decls.
11371 2001-08-17 Janis Johnson <janis187@us.ibm.com>
11373 * doc/install.texi (Install GCC): Add links to build status pages.
11375 (Final install): Ditto; request updates for specific info
11377 2001-08-17 Neil Booth <neil@daikokuya.demon.co.uk>
11379 * cpperror.c (print_location): Don't take a file name; use the
11381 (_cpp_begin_message): Similarly.
11382 (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
11383 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
11384 (cpp_pedwarn_with_file_and_line): Remove.
11385 * cppfiles.c (stack_include_file): Update; set filename to stdin
11386 here when appropriate.
11387 * cpphash.h (struct cpp_buffer): Remove nominal_fname.
11388 (_cpp_begin_message): Don't take a file name.
11389 * cppinit.c: Add comment.
11390 * cpplex.c: Fix end-of-directive indicator.
11391 * cpplib.c: Don't include intl.h.
11392 (run_directive, do_diagnostic): Update.
11393 (do_line): Update to not use nominal_fname.
11394 (cpp_push_buffer): Don't take a filename.
11395 * cpplib.h (struct ht): Remove.
11396 (cpp_push_buffer): Don't take a filename.
11397 (cpp_pedwarn_with_file_and_line): Remove.
11398 * cppmacro.c (struct cpp_macro): Remove file.
11399 (builtin_macro): Update.
11400 (_cpp_create_definition): Update.
11401 * cppmain.c: Correct comment.
11402 * fix-header.c (read_scan_file): Update.
11404 2001-08-17 Kazu Hirata <kazu@hxi.com>
11406 * sbitmap.c: Fix comment formatting.
11407 * sched-deps.c: Likewise.
11408 * sibcall.c: Likewise.
11409 * simplify-rtx.c: Likewise.
11411 * ssa-ccp.c: Likewise.
11412 * stor-layout.c: Likewise.
11413 * timevar.c: Likewise.
11414 * toplev.c: Likewise.
11415 * unwind-dw2.c: Likewise.
11416 * unwind-dw2-fde.c: Likewise.
11417 * varasm.c: Likewise.
11419 2001-08-17 John David Anglin <dave@hiauly1.hia.nrc.ca>
11421 * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
11422 or larger than an integer in memory.
11424 2001-08-17 Zack Weinberg <zackw@panix.com>
11426 * system.h: Forward-declare struct rtx_def, struct rtvec_def,
11427 and union tree_node. Typedef rtx, rtvec, and tree. Fix comment.
11428 * rtl.h: Don't forward-declare union tree_node here. Don't
11429 typedef rtx or rtvec here. Change all uses of struct rtx_def *,
11430 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
11431 and tree respectively.
11432 * tree.h: Don't forward-declare struct rtx_def here. Don't
11433 typedef tree here. Change all uses of struct rtx_def *,
11434 struct rtvec_def *, or union tree_node * to use rtx, rtvec,
11435 and tree respectively.
11437 2001-08-17 Richard Henderson <rth@redhat.com>
11439 * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
11440 config/mips/openbsd.h: Fix typos last change.
11442 2001-08-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11444 * doc/invoke.texi (Optimize Options): The default for
11445 -finline-limit is 600.
11447 2001-08-17 Richard Henderson <rth@redhat.com>
11449 * varasm.c (text_section): Allow TEXT_SECTION to override the
11450 printing of TEXT_SECTION_ASM_OP.
11451 * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
11452 (DATA_SECTION, BSS_SECTION): Remove.
11453 * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
11454 RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
11455 Rename from s/_NAME//.
11456 * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
11457 (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
11458 (TEXT_SECTION): ... here. New.
11459 * config/mips/elf.h (TEXT_SECTION): New; no file switching.
11460 * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
11461 * config/mips/openbsd.h: Likewise.
11462 * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
11463 (mips_asm_file_end): Likewise test.
11464 (mips_output_function_epilogue): Likewise. Switch back to data
11465 section after emitting the function.
11467 * doc/tm.texi (Sections): Document TEXT_SECTION.
11469 2001-08-17 Richard Henderson <rth@redhat.com>
11471 * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
11472 (dwarf2out_finish): Do it here. Emit .debug_loc before .debug_info.
11474 2001-08-17 Richard Henderson <rth@redhat.com>
11476 * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
11477 * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
11478 __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
11479 Add aligned attribute.
11481 2001-08-17 Andrew Haley <aph@cambridge.redhat.com>
11483 * config/sh/sh.md: Add modes to unspecs in first insn to match
11484 those in the second.
11486 * Makefile.in: Fix collect2 copy for Cygwin.
11488 Fri Aug 17 15:48:57 CEST 2001 Jan Hubicka <jh@suse.cz>
11490 Install the proper patch.
11491 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
11492 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
11493 (expand_function_start): Likewise.
11494 * stmt.c (expand_decl): Likewise.
11495 * varasm.c (make_decl_rtx): Likewise.
11497 Fri Aug 17 15:41:35 CEST 2001 Jan Hubicka <jh@suse.cz>
11499 * final.c: Undo my previous accidental checkin.
11500 * output.h: Likewise.
11501 * tm.texi: Likewise.
11503 2001-08-16 Richard Henderson <rth@redhat.com>
11505 * varasm.c (named_section_flags): Remove align parameter.
11506 * varasm.c, dwarf2out.c: Update all callers.
11507 * output.h: Update prototypes.
11509 * target.h (target.asm_out.named_section): Remove align parameter.
11510 * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
11511 config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
11512 config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
11513 config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
11514 config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
11516 * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
11517 (get_named_section_flags, set_named_section_flags): New.
11518 (named_section_flags): Use them.
11519 (named_section): Do decl vs section flags check here...
11520 (default_section_type_flags): ... not here.
11521 (init_varasm_once): Create in_named_htab.
11522 (resolve_unique_section): Mark reloc unused.
11524 2001-08-16 Richard Henderson <rth@redhat.com>
11526 * varasm.c (force_const_mem): Keep pool alignment in bits.
11527 (output_constant_pool): Use assemble_align.
11529 2001-08-16 Zack Weinberg <zackw@panix.com>
11531 * doc/tm.texi: Remove extra @table command.
11533 2001-08-16 Zack Weinberg <zackw@panix.com>
11535 * final.c (shorten_branches): Clear the end of the label_align
11536 array only if we made it larger. Break up messy expressions
11539 * diagnostic.c (internal_error): Check for error recursion
11540 before doing ICE suppression.
11542 * timevar.c: Timing variables now count in milliseconds.
11543 (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
11544 (get_time): Not here.
11545 (timevar_print): Don't print any timer whose user, cpu, and
11546 wall times are all zero as displayed.
11547 * timevar.h: Update comment aboout units. Make timevar
11550 Thu Aug 16 17:39:45 CEST 2001 Jan Hubicka <jh@suse.cz>
11552 * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
11553 (assign_params): Avoid setting DECL_RTL to unfinished RTX.
11554 (expand_function_start): Likewise.
11555 * stmt.c (expand_decl): Likewise.
11556 * varasm.c (make_decl_rtx): Likewise.
11558 2001-08-16 Jason Merrill <jason_merrill@redhat.com>
11560 * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
11561 (finalize_record_size): Don't set TYPE_USER_ALIGN.
11563 2001-08-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
11565 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
11568 2001-08-16 Andreas Jaeger <aj@suse.de>
11570 * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
11573 Wed Aug 15 15:22:52 EDT 2001 John Wehle (john@feith.com)
11575 * rtl.h (only_sets_cc0_p): New prototype.
11576 * jump.c (sets_cc0_p): Handle INSN.
11577 (only_sets_cc0_p): New function.
11578 * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
11579 (tidy_fallthru_edge): Likewise.
11580 * integrate.c (copy_insn_list): Likewise.
11581 * unroll.c (unroll_loop): Likewise.
11582 (copy_loop_body): Likewise.
11584 2001-08-15 Jason Eckhardt <jle@redhat.com>
11586 * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
11588 Wed Aug 15 14:24:22 CEST 2001 Jan Hubicka <jh@suse.cz>
11590 * predict.c (struct block_info_def): Remove nvisited.
11591 (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
11592 (estimate_bb_frequencies): Call mark_dfs_back_edges.
11594 * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
11595 (ix86_adjust_cost): Teach scheduler that latency to load operand can
11598 Wed Aug 15 12:41:32 CEST 2001 Jan Hubicka <jh@suse.cz>
11600 * predict.def: Update hitrates.
11602 2001-08-15 Richard Henderson <rth@redhat.com>
11604 * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
11606 Tue Aug 14 17:30:59 2001 Jeffrey A Law (law@cygnus.com)
11608 * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
11609 note from its associated jump.
11611 2001-08-14 Ulrich Weigand <uweigand@de.ibm.com>
11613 * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
11614 also on 64-bit s390x targets.
11616 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
11618 * config/arm/arm.c (arm_compute_initial_elimination_offset): New
11620 (arm_expand_prologue): Handled nested functions which take a
11621 variable argument list.
11622 * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
11623 macro with an invocation of
11624 arm_compute_initial_elimination_offset.
11625 * config/arm/arm-protos.h: Prototype
11626 arm_compute_initial_elimination_offset.
11628 2001-08-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11630 * doc/install.texi (Specific, avr): Fix markup.
11631 (Specific, c4x): Ditto.
11633 2001-08-14 Matt Kraai <kraai@alumni.carnegiemellon.edu>
11635 * predict.c (dump_prediction): Change `bool' parameter to `int'.
11637 2001-08-14 Gabriel Dos Reis <gdr@codesourcery.com>
11639 * Makefile.in (OBJS): Add rtl-error.o
11640 (rtl-error.o): New rule.
11641 (diagnostic.o): Adjust dependency.
11642 diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
11643 error_for_asm, _fatal_insn, _fatal_insn_not_found,
11644 warning_for_asm): Move to...
11645 rtl-error.c: ...here. New file.
11647 2001-08-14 Richard Henderson <rth@redhat.com>
11649 * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
11650 if USING_SJLJ_EXCEPTIONS.
11652 2001-08-14 Steve Ellcey <sje@cup.hp.com>
11654 * tlink.c (scan_linker_output): Check string for unsatisfied in
11655 addition to undefined and unresolved.
11657 2001-08-14 Graham Stott <grahams@redhat.com>
11659 * libgcc2.c (*): Replace EH_FRAME_SECTION with
11660 EH_FRAME_SECTION_NAME.
11662 Tue Aug 14 14:57:07 CEST 2001 Jan Hubicka <jh@suse.cz>
11664 * genattrtab.c (simplify_test_exp_in_temp): New function.
11665 (simplify_test_exp): Avoid explicit use of temporary obstack.
11666 (simplify_cond, insert_right_side, evaluate_eq_attr,
11667 simplify_and_tree, simplify_or_tree, eliminate_known_true):
11668 Use simplify_test_exp_in_temp.
11669 (optimize_attrs): Iterate until expression stabilizes.
11671 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>:
11673 * glimits.h: Remove the __LONG_MAX__ special case for s390x.
11674 * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
11676 2001-08-13 Richard Henderson <rth@redhat.com>
11678 * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
11679 (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
11680 * config/arm/conix-elf.h: Likewise.
11682 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
11684 * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
11686 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11688 * gcse.c (hash_scan_set): Expressions that are set as part of
11689 jump instructions are not available.
11691 2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>
11693 * config/s390/s390.c (print_operand, s390_function_prologue,
11694 s390_va_start): Fixed HOST_WIDE_INT type mismatch.
11696 2001-08-13 Richard Henderson <rth@redhat.com>
11698 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
11699 * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
11700 * doc/tm.texi (Exception Region Output): Document it.
11702 2001-08-13 Geoffrey Keating <geoffk@redhat.com>
11704 * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
11705 DWARF2 instead of stabs by default.
11707 2001-08-13 David Edelsohn <edelsohn@gnu.org>
11709 * config/rs6000/rs6000.c: Include optabs.h.
11711 2001-08-13 David Edelsohn <edelsohn@gnu.org>
11713 * config/rs6000/eabi.asm: Define 64-bit versions of FPR
11714 save/restore routines.
11715 * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
11717 2001-08-13 Andreas Jaeger <aj@suse.de>
11719 * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
11720 the english is correct.
11722 2001-08-13 Zack Weinberg <zackw@panix.com>
11724 * expr.h: Split out optab- and libfunc-related code to...
11725 * optabs.h, libfuncs.h: ... these new headers.
11727 * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
11729 (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
11731 * mkconfig.sh: Don't include insn-codes.h from config.h.
11733 * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
11734 enum insn_code is available. Move reload_in_optab and
11735 reload_out_optab array declarations to optabs.h.
11736 * regmove.c (gen_add3_insn): Move to optabs.c, export from
11737 there, prototype in expr.h.
11738 * gencodes.c: Cleanup: zap global variables, don't use
11739 printf where puts will do, don't bother defining MAX_INSN_CODE
11740 which nothing uses, let CODE_FOR_nothing get its value implicitly.
11742 * genemit.c, genopinit.c: Include optabs.h in generated file.
11743 * genoutput.c: Include insn-codes.h in generated file.
11744 * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
11745 expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
11746 reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
11747 config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
11748 config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
11749 config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
11751 * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
11752 optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
11753 config/m88k/m88k.c, config/sparc/sparc.c:
11754 Include libfuncs.h.
11755 * reload.c: Include expr.h and optabs.h before reload.h.
11756 * config/alpha/alpha.c: Include tree.h before reload.h.
11757 * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
11758 and reload.h in that order.
11759 * config/sparc/sparc.c: Include debug.h.
11760 * recog.c: Include insn-codes.h.
11762 2001-08-13 Andreas Jaeger <aj@suse.de>
11764 * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
11767 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
11769 * dwarf2out.c (output_cfa_loc): Fix typo in comment.
11770 * gcc.c (init_spec): Fix typo in comment.
11771 * varasm.c (data_section): Fix typo in comment.
11773 Mon Aug 13 02:27:39 CEST 2001 Jan Hubicka <jh@suse.cz>
11775 * predict.c (dump_prediction): New argument "USED".
11776 (combine_predictions_for_insn): Determine the used heuristics,
11777 output the case no heuristic applied.
11778 * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
11780 2001-08-13 Andreas Jaeger <aj@suse.de>
11782 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
11785 2001-08-13 Kazu Hirata <kazu@hxi.com>
11787 * jump.c: Fix formatting.
11789 2001-08-13 Kazu Hirata <kazu@hxi.com>
11791 * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
11794 2001-08-12 Geoffrey Keating <geoffk@redhat.com>
11796 * loop.c (check_dbra_loop): Use condjump_label to compute
11799 * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
11800 to better document the files they're in.
11802 2001-08-12 Zack Weinberg <zackw@panix.com>
11804 * recog.h (struct insn_operand_data): Shrink 'mode' field
11807 2001-08-12 Kazu Hirata <kazu@hxi.com>
11809 * gcc.c: Fix comment formatting.
11810 * gccspec.c: Likewise.
11811 * gcov.c: Likewise.
11812 * gcse.c: Likewise.
11813 * genemit.c: Likewise.
11814 * gengenrtl.c: Likewise.
11815 * genrecog.c: Likewise.
11816 * gensupport.c: Likewise.
11817 * ggc-page.c: Likewise.
11818 * global.c: Likewise.
11819 * graph.c: Likewise.
11820 * ifcvt.c: Likewise.
11821 * integrate.c: Likewise.
11823 * libgcc2.c: Likewise.
11824 * loop.c: Likewise.
11825 * mbchar.c: Likewise.
11826 * optabs.c: Likewise.
11827 * predict.c: Likewise.
11828 * prefix.c: Likewise.
11829 * profile.c: Likewise.
11830 * protoize.c: Likewise.
11831 * real.c: Likewise.
11832 * recog.c: Likewise.
11833 * regclass.c: Likewise.
11834 * regmove.c: Likewise.
11835 * reg-stack.c: Likewise.
11836 * reload1.c: Likewise.
11837 * resource.c: Likewise.
11838 * rtlanal.c: Likewise.
11841 2001-08-12 Kazu Hirata <kazu@hxi.com>
11843 * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
11844 a tree representing a constant is passed to the macro.
11846 2001-08-12 Richard Henderson <rth@redhat.com>
11848 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
11849 (rs6000_elf_asm_out_destructor): New.
11850 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
11851 (DTORS_SECTION_ASM_OP): Remove.
11852 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11853 (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
11855 2001-08-12 David Edelsohn <edelsohn@gnu.org>
11858 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11859 * gcc.c (set_collect_gcc_options): New function, split out from
11861 Ignore elided switches.
11862 (do_spec_1): Invoke before executing command.
11863 (set_input): Export.
11864 Move declaration ...
11865 * gcc.h (set_input): ... here.
11866 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
11869 2001-08-12 Richard Henderson <rth@redhat.com>
11871 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
11872 thinko wrt TARGET_RELOCATABLE.
11874 2001-08-12 Neil Booth <neil@daikokuya.demon.co.uk>
11876 * fix-header.c (cb_file_change): Update prototype.
11878 2001-08-11 Zack Weinberg <zackw@panix.com>
11880 * toplev.c (set_float_handler): Make static.
11881 * toplev.h: Don't prototype set_float_handler.
11883 * simplify-rtx.c: Don't include setjmp.h.
11884 (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
11886 (simplify_unary_operation, simplify_binary_operation): Use them,
11887 via do_float_handler.
11889 * fold-const.c: Don't include setjmp.h.
11890 (exact_real_inverse_1): New function.
11891 (exact_real_inverse): Use it, via do_float_handler.
11893 * varasm.c: Don't include setjmp.h.
11894 (assemble_real_1): New function.
11895 (assemble_real): Use it, via do_float_handler.
11896 Call internal_error if we get a trap here.
11898 * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
11899 config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
11901 2001-08-11 Zack Weinberg <zackw@panix.com>
11903 * defaults.h: Define PREFERRED_STACK_BOUNDARY to
11904 STACK_BOUNDARY if not already defined.
11906 * calls.c, function.c, reload1.c, explow.c: Don't default
11907 PREFERRED_STACK_BOUNDARY. Remove all #if/#ifdef on
11908 PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
11910 * explow.c (allocate_dynamic_stack_space): Change unsafe #if
11913 * doc/tm.texi: Document that STACK_BOUNDARY is required;
11914 clarify difference between it and PREFERRED_STACK_BOUNDARY.
11916 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
11918 * cppmacro.c (enter_macro_context): Push macro expansions even
11921 2001-08-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11923 * config/rs6000/rs6000.c: Include integrate.h to silence warning.
11924 (rs6000_elf_section_type_flags): Actually return a value.
11926 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
11928 * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
11929 Clean up code: add missing comments and prototypes, fix warnings,
11930 remove obsolete code, fix spacing to conform to coding style.
11932 2001-08-11 Ulrich Weigand <uweigand@de.ibm.com>
11934 * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
11935 and TARGET_ASM_CLOSE_PAREN.
11936 (regclass_map): CC register belongs to class NO_REGS.
11937 (legitimize_pic_address): Don't generate unnecessary moves
11938 (to avoid confusing loop optimization).
11939 (check_and_change_labels): Replace jump_long by indirect_jump.
11940 (s390_final_chunkify): Don't start a new literal pool on section
11941 switch in 64-bit code.
11942 (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
11944 * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
11945 (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
11946 (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
11948 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
11949 (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
11950 (CONST_COSTS): Fixed incorrect costs.
11952 * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
11953 Use emit_jump instead of emit_jump_insn (gen_jump).
11954 (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
11955 (to avoid confusing flow analysis).
11956 (tablejump, tablejump1, tablejump2): Removed. Replaced by casesi.
11957 (casesi, casesi_jump): New.
11958 (jump_long): Removed. Functionality merged into indirect_jump.
11959 (indirect_jump): Accept address_operand, not just register_operand.
11960 (cjump_long, icjump_long): Use same logic as indirect_jump.
11961 (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
11962 Fixed broken setjmp/longjmp handling.
11963 (do_builtin_setjmp_setup): Removed.
11965 * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
11966 broken GNU as versions that don't accept .quad with large
11967 negative values. Use hexadecimal output instead.
11968 (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
11969 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
11970 FUNCTION_EPILOGUE): Removed. Now in targetm.
11972 * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
11974 * config/s390/fixdfdi.h: Add missing copyright statement.
11975 Fix type conflicts on 64-bit. Add missing SFmode routines.
11977 * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
11980 2001-08-11 Richard Henderson <rth@redhat.com>
11982 * rtl.h (REG_EH_RETHROW): Remove.
11983 * rtl.c (reg_note_name): Update.
11984 * combine.c (distribute_notes): Don't check for it.
11986 2001-08-11 Richard Henderson <rth@redhat.com>
11988 * combine.c (distribute_notes): Place REG_SETJMP.
11990 2001-08-11 Richard Henderson <rth@redhat.com>
11992 * doc/extend.texi (Arrays and pointers implementation): Discourage
11993 relying on sign-extension of pointers.
11995 2001-08-11 H.J. Lu <hjl@gnu.org>
11997 * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
11999 (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
12000 RDATA_SECTION_ASM_OP.
12002 2001-08-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12004 * doc/install.texi (Specific, c4x): Fix cross-reference to the
12005 main manual to work both for info and HTML versions.
12007 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
12008 Matt Kraai <kraai@alumni.carnegiemellon.edu>
12010 * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
12011 * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
12012 (struct cpp_pool): New member first.
12013 * cppinit.c (append_include_chain): Plug memory leaks.
12014 * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
12015 Allocate pragma structures from the (aligned) macro pool to
12016 avoid leaking memory.
12017 * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
12018 so we don't leak memory.
12019 * hashtable.c (ht_destroy): New.
12020 * hashtable.h (ht_destroy): New.
12022 2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
12023 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12025 * c-lex.c (map): Make const.
12026 (cb_file_change): Update for callback passing a line map.
12027 Don't assume we have a previous map. Remove sanity check
12028 about popping too many files.
12029 * cpperror.c (print_location): Make map const.
12030 * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
12031 (cpp_make_system_header): Similarly.
12032 (search_from): Similarly.
12033 (_cpp_execute_include): Don't remember where we came from.
12034 * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
12035 (struct cpp_reader): Make map const.
12036 (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
12037 * cpplib.c (do_line): Update; line maps now hold sysp.
12038 (cpp_push_buffer): Similarly.
12039 (_cpp_do_file_change): Similarly; callback with map instead.
12040 (cpp_get_line_maps): Constify return value.
12041 (_cpp_pop_buffer): Update.
12042 * cpplib.h (struct cpp_file_change): Remove.
12043 (struct cpp_callbacks): Update.
12044 (cpp_get_line_maps): Constify return value.
12045 * cppmacro.c (_cpp_create_definition): Update.
12046 * cppmain.c (struct printer): Constify map.
12047 (maybe_print_line): Similarly.
12048 (print_line): Similarly. Deduce flags 1 and 2 here.
12049 (cb_file_change): Update.
12050 * line-map.c (free_line_maps): Warn regardless.
12051 (add_line_map): Return pointer to const. When passed NULL to_file
12052 with LC_LEAVE, use the obvious values for the return point so the
12053 caller doesn't have to figure them out.
12054 (lookup_line): Return pointer to const.
12055 (print_containing_files): Take pointer to const.
12056 * line-map.h (struct line_map): New members reason, sysp.
12057 (add_line_map): Return pointer to const.
12058 (lookup_line): Similarly.
12059 (print_containing_files): Take pointer to const.
12061 2001-08-10 Roman Zippel <zippel@linux-m68k.org>
12062 Richard Henderson <rth@redhat.com>
12064 * regmove.c (regmove_optimize): Avoid setting a register twice in
12067 2001-08-10 Richard Henderson <rth@redhat.com>
12069 * doc/extend.texi (Arrays and pointers implementation): Document
12070 behavior of pointer/integer conversion.
12072 2001-08-10 Ulrich Weigand <uweigand@de.ibm.com>
12074 * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
12076 2001-08-10 Richard Henderson <rth@redhat.com>
12078 * doc/extend.texi (C Implementation): New chapter.
12079 * doc/gcc.texi (Top): Link it in.
12081 2001-08-10 Andrew Cagney <ac131313@redhat.com>
12083 * doc/install.texi (Specific): Fix CVS merge botch.
12085 2001-08-10 Richard Henderson <rth@redhat.com>
12087 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
12088 ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
12090 2001-08-10 Zack Weinberg <zackw@stanford.edu>
12092 * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
12093 if not already defined. Remove all #ifdefs on STACK_BOUNDARY;
12094 this macro is now required.
12096 * cselib.c (cselib_process_insn), flow.c (propagate_block),
12097 loop.c (find_and_verify_loops), reload.c (reload): Check
12098 for rtx code of CALL_INSN, not CALL, when deciding if we
12099 need to check for REG_SETJMP note.
12101 * gcse.c (compute_hash_table, compute_store_table): Update
12102 the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
12105 * config/avr/avr.c: Fix typo.
12106 * config/convex/convex.c (expand_movstr): Use adjust_address.
12107 * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
12109 * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
12110 * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
12112 * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
12113 Do define STACK_BOUNDARY.
12114 * config/i370/i370.c: Include expr.h.
12115 * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
12116 config/pa/som.h, config/v850/v850.h: Take in_ctors and
12117 in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
12118 and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
12119 * config/m88k/m88k.c: Include c-tree.h after expr.h.
12120 * config/pdp11/pdp11.c: Include expr.h and toplev.h.
12121 * config/romp/romp.c: Include expr.h after tree.h.
12123 (output_fpop): Use xmalloc, not oballoc.
12124 * config/we32k/we32k.c: Include expr.h.
12126 2001-08-10 Kazu Hirata <kazu@hxi.com>
12128 * config/h8300/h8300.h: Fix formatting.
12130 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
12132 * c-common.h (RETURN_NULLIFIED_P): Lose.
12133 * c-semantics.c (genrtl_return_stmt): Don't check it.
12135 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
12137 * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
12138 (mips_annotate_frame_insn): New function.
12139 (mips_emit_frame_related_store): New function.
12140 (save_restore_insns): Don't mark instructions that set up the base
12141 registers as frame-related. Add REG_FRAME_RELATED_EXPR notes to
12142 the store instructions instead.
12143 (mips_expand_prologue): If the stack size is moved into a temporary
12144 register, do not mark that move as frame-related. Add a
12145 REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
12147 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
12149 * config/mips/mips.c (save_restore_insns): Don't mark the RA's
12150 stack slot as unchanging if current_function_calls_eh_return.
12152 2001-08-10 Richard Sandiford <rsandifo@redhat.com>
12154 * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
12155 access the second half of the TFmode scratch operand.
12157 2001-08-10 Anthony Green <green@redhat.com>
12159 * java/class.c (emit_register_classes): Conditionalize code on
12162 2001-08-10 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12164 * doc/install.texi (Specific, avr): Fix cross-reference to the
12165 main manual to work both for info and HTML versions.
12167 2001-08-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
12169 * stmt.c (expand_null_return_1): Remove code to generate simple returns
12170 and "use_goto" argument.
12171 (expand_null_return, expand_value_return): Update all callers.
12172 * function.c (expand_function_end): Remove code to generate simple
12174 * config/vax/vax.md (epilogue): New expander for function return.
12175 * doc/md.texi (epilogue): Remove "if defined".
12177 2001-08-09 Zack Weinberg <zackw@stanford.edu>
12179 * Makefile.in: Partially revert my previous change:
12180 put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
12181 of the hashtab.o and safe-ctype.o rules.
12183 2001-08-09 Richard Henderson <rth@redhat.com>
12185 * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
12186 (USE_COLLECT2): Remove duplicate definition.
12187 * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
12188 (use_collect2): Remove dead code.
12189 * configure.in (use_collect2): Remove will_use_collect2 and
12190 maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
12191 * configure: Rebuild.
12193 * target.h (targetm.asm_out.constructor): New.
12194 (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
12195 * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
12196 (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
12197 * varasm.c (in_ctors, in_dtors): New.
12198 (assemble_constructor, assemble_destructor): Remove.
12199 (default_stabs_asm_out_destructor): New.
12200 (default_named_section_asm_out_destructor): New.
12201 (dtors_section, default_dtor_section_asm_out_destructor): New.
12202 (default_stabs_asm_out_constructor): New.
12203 (default_named_section_asm_out_constructor): New.
12204 (ctors_section, default_ctor_section_asm_out_constructor): New.
12205 * output.h: Update declarations.
12206 * c-decl.c (c_expand_body): Use target hooks instead of
12207 assemble_constructor and assemble_destructor.
12208 * profile.c (output_func_start_profiler): Likewise.
12209 * objc/objc-act.c (finish_objc): Likewise.
12210 (build_module_descriptor): Tidy. Set TREE_PUBLIC properly
12211 for the constructor.
12212 * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
12214 * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
12215 (DTORS_SECTION_ASM_OP): Likewise.
12216 (__CTOR_LIST__): Use attribute section when possible.
12217 (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
12219 * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
12220 ASM_OUTPUT_CONSTRUCTOR.
12222 * config/darwin.c (machopic_asm_out_constructor): New.
12223 (machopic_asm_out_destructor): New.
12224 * config/darwin-protos.h: Update declarations.
12225 * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12226 (ASM_OUTPUT_DESTRUCTOR): Remove.
12227 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12228 * config/nextstep.c (nextstep_asm_out_constructor): New.
12229 (nextstep_asm_out_destructor): New.
12230 * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12231 (ASM_OUTPUT_DESTRUCTOR): Remove.
12232 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12233 * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
12234 ASM_OUTPUT_*STRUCTOR.
12235 * config/i386/aix386ng.h: Likewise.
12237 * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
12238 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
12239 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
12240 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12241 * config/lynx.h: Likewise.
12242 * config/netware.h: Likewise.
12243 * config/psos.h: Likewise.
12244 * config/alpha/alpha-interix.h: Likewise.
12245 * config/alpha/elf.h: Likewise.
12246 * config/arc/arc.h: Likewise.
12247 * config/arm/aof.h: Likewise.
12248 * config/arm/coff.h: Likewise.
12249 * config/arm/elf.h: Likewise.
12250 * config/c4x/c4x.h: Likewise.
12251 * config/h8300/h8300.h: Likewise.
12252 * config/i386/cygwin.h: Likewise.
12253 * config/i386/djgpp.h: Likewise.
12254 * config/i386/i386-coff.h: Likewise.
12255 * config/i386/i386-interix.h: Likewise.
12256 * config/i386/sco5.h: Likewise.
12257 * config/i386/vsta.h: Likewise.
12258 * config/i386/win32.h: Likewise.
12259 * config/i960/i960-coff.h: Likewise.
12260 * config/ia64/sysv4.h: Likewise.
12261 * config/m68hc11/m68hc11.h: Likewise.
12262 * config/m68k/coff.h: Likewise.
12263 * config/m68k/mot3300.h: Likewise.
12264 * config/m88k/m88k.h: Likewise.
12265 * config/mcore/mcore-pe.h: Likewise.
12266 * config/mcore/mcore.h: Likewise.
12267 * config/mips/elf.h: Likewise.
12268 * config/mips/elf64.h: Likewise.
12269 * config/mips/iris6.h: Likewise.
12270 * config/pa/pa64-hpux.h: Likewise.
12271 * config/rs6000/sysv4.h: Likewise.
12272 * config/sh/sh.h: Likewise.
12273 * config/sparc/litecoff.h: Likewise.
12275 * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
12276 (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
12277 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12278 * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12279 (ASM_OUTPUT_DESTRUCTOR): Remove.
12280 * config/a29k/a29k.c: Move include of tree.h.
12281 * config/a29k/udi.h: Delete file.
12282 * config/alpha/alpha.c (vms_asm_out_constructor): New.
12283 (vms_asm_out_destructor): New.
12284 * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
12285 (EXTRA_SECTION_FUNCTIONS): Likewise.
12286 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12287 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12288 * config/c4x/c4x.c: Move include of tree.h.
12289 * config/clipper/clipper.c (clix_asm_out_constructor): New.
12290 (clix_asm_out_destructor): New.
12291 * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12292 (ASM_OUTPUT_DESTRUCTOR): Remove.
12293 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12294 * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12295 (TARGET_ASM_CONSTRUCTOR): New.
12296 * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
12297 (sco_asm_out_constructor): New.
12298 * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
12299 * config/i386/svr3gas.h: Remove stack grows up code.
12300 Remove code duplicated from i386/sysv3.h.
12301 (TARGET_ASM_CONSTRUCTOR): New.
12302 (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12303 (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
12304 * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12305 (TARGET_ASM_CONSTRUCTOR): New.
12306 * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
12307 (m68hc11_asm_out_destructor): New.
12308 * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
12309 (TARGET_ASM_DESTRUCTOR): New.
12310 * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
12311 * config/m68k/dpx2.h: Properly undef all the bits inherited from
12312 config/svr3.h pertaining to section manipulation.
12313 * config/m68k/dpx2g.h: Remove #if 0 code.
12314 * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
12315 * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
12316 (ASM_OUTPUT_CONSTRUCTOR): Remove.
12317 (TARGET_ASM_CONSTRUCTOR): New.
12318 * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
12319 (m88k_svr3_asm_out_constructor): New.
12320 (m88k_svr3_asm_out_destructor): New.
12321 * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12322 (ASM_OUTPUT_DESTRUCTOR): Remove.
12323 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12324 * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
12325 * config/rs6000/aix.h: Likewise.
12326 * config/mips/rtems64.h: Don't undef removed constructor related bits.
12327 * config/mips/vxworks.h: Likewise.
12328 * config/rs6000/lynx.h: Likewise.
12329 * config/sh/elf.h: Likewise.
12330 * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
12331 (DTORS_SECTION_ASM_OP): New.
12332 * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12333 (ASM_OUTPUT_DESTRUCTOR): Remove.
12334 * config/sparc/sol2-sld-64.h: Likewise.
12335 * config/vax/vax.c (vms_asm_out_constructor): New.
12336 (vms_asm_out_destructor): New.
12337 * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12338 (ASM_OUTPUT_DESTRUCTOR): Remove.
12339 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12341 * doc/tm.texi (@node Initialization): Update.
12343 2001-08-09 Richard Henderson <rth@redhat.com>
12345 * config/alpha/crtbegin.asm (__JCR_LIST__): New.
12346 (__do_global_dtors_aux): Use gp-relative static data to avoid
12347 one dynamic relocation.
12348 (__do_frame_setup): Register Java classes.
12349 * config/alpha/crtend.asm (__JCR_END__): New.
12351 2001-08-09 Zack Weinberg <zackw@stanford.edu>
12353 * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
12354 (CONFIG_H, TCONFIG_H, TM_P_H): Update.
12355 (GEN, STAGESTUFF): Add new files.
12356 (insn-constants.h, s-constants, tm-preds.h, s-preds,
12357 genconstants, genpreds, genconstants.o, genpreds.o): New rules.
12358 (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
12359 * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
12360 as well as insn-codes.h and insn-flags.h in config.h; and no
12361 extra headers in tconfig.h and hconfig.h.
12363 * gencodes.c: Eliminate code to generate predicate declarations
12364 or #defines for md-file constants.
12365 * genconstants.c, genpreds.c: New files.
12367 * i386.md: Re-order guard expressions such that TARGET_64BIT
12368 comes first, when this permits better optimization. Add
12369 TARGET_64BIT to more x86-64 patterns. Add comment explaining
12370 why this is desirable.
12372 2001-08-09 Jakub Jelinek <jakub@redhat.com>
12374 * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
12375 (find_fde_for_dso): Remove.
12376 (_Unwind_IteratePhdrCallback): New.
12377 (_Unwind_FindTableEntry): Use dl_iterate_phdr.
12378 * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
12380 Thu Aug 9 11:30:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12382 * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
12383 (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
12385 2001-08-09 Graham Stott <grahams@redhat.com>
12387 * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
12388 (vis_no_unit): Use it.
12389 (visualize_no_unit): Add the insn only if room exists.
12391 2001-08-09 Graham Stott <grahams@redhat.com>
12393 * predict.c (estimate_probability): Replace magic numbers with
12394 appropriate enumeration.
12396 2001-08-09 Graham Stott <grahams@redhat.com>
12398 * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
12400 (EXTRACT_FLAGS): Likewise.
12402 2001-08-09 Aldy Hernandez <aldyh@redhat.com>
12404 * config/mips/mips.c (mips_legitimate_address_p): Check for
12405 CONST_INT in last patch.
12407 2001-08-08 Anthony Green <green@redhat.com>
12409 * java/class.c (emit_register_classes): Use assemble_jcr if
12410 possible. Keep the original mechanism as a fallback.
12411 * defaults.h (JCR_SECTION_NAME): Define if we have named section
12412 and weak symbol support.
12413 * crtstuff.c (__JCR_LIST__): Define.
12414 (__JCR_END__): Define.
12415 (_Jv_RegiserClasses): Define weak symbol if possible.
12416 (__do_global_ctors_aux): Register classes for ELF targets with
12417 weak symbol support.
12419 2001-08-08 Kazu Hirata <kazu@hxi.com>
12421 * dbxout.c: Fix comment formatting.
12422 * dependence.c: Likewise.
12424 * diagnostic.c: Likewise.
12425 * dominance.c: Likewise.
12426 * doprint.c: Likewise.
12427 * dwarf2out.c: Likewise.
12428 * dwarfout.c: Likewise.
12429 * emit-rtl.c: Likewise.
12430 * except.c: Likewise.
12431 * explow.c: Likewise.
12432 * expmed.c: Likewise.
12433 * expr.c: Likewise.
12434 * flow.c: Likewise.
12435 * fold-const.c: Likewise.
12436 * function.c: Likewise.
12438 2001-08-08 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12440 * global.c (retry_global_alloc): Avoid shadowing allocno.
12442 2001-08-08 Mark Mitchell <mark@codesourcery.com>
12444 * except.c (remove_fixup_regions): Fix typo.
12446 2001-08-08 Jan van Male <jan.vanmale@fenk.wau.nl>
12448 * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
12449 unsigned HOST_WIDE_INT to avoid warning.
12450 * final.c (final): Cast INSN_UID to unsigned to avoid warning.
12451 * flow.c (set_block_for_new_insns): Likewise.
12453 Wed Aug 8 21:08:14 CEST 2001 Jan Hubicka <jh@suse.cz>
12455 * sibcall.c (return_value_pseudo): New static variable.
12456 (skip_copy_to_return_value): Handle return_value_pseudo.
12457 (call_ends_block_p): Ensure that return_value_pseudo is set.
12458 (optimize_sibling_and_tail_recursive_call): Discover the
12459 load of pseudo return value in alternate exit block.
12461 Wed Aug 8 21:06:43 CEST 2001 Jan Hubicka <jh@suse.cz>
12463 * calls.c (ECF_ALWAYS_RETURN): New constant.
12464 (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
12465 (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
12466 (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
12467 * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
12468 * rtl.c (reg_note_name): New name.
12469 * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
12471 2001-08-07 Aldy Hernandez <aldyh@redhat.com>
12473 * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
12475 2001-08-08 Jason Merrill <jason_merrill@redhat.com>
12477 * alias.c (get_alias_set): Return a previously calculated
12478 alias set for a VAR_DECL.
12479 * function.c (gen_mem_addressof): Calculate the alias set before
12482 Wed Aug 8 18:44:37 CEST 2001 Jan Hubicka <jh@suse.cz>
12484 * predict.def: Set hitrates according our experimental run.
12486 Wed Aug 8 18:01:58 CEST 2001 Jan Hubicka <jh@suse.cz>
12488 * i386.h (HARD_REGNO_RENAME_OK): New macro.
12490 2001-08-08 H.J. Lu <hjl@gnu.org>
12492 * config/mips/mips.c (mips_unique_section): New. Copied from
12495 * config/mips/mips-protos.h (mips_unique_section): New
12498 * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
12500 * config/mips/little.h: New. Generic little endian mips
12501 targets. Only mips*-*-linux* is converted to use it so far.
12503 * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
12504 (WCHAR_TYPE): Defined
12505 (WCHAR_TYPE_SIZE): Likewise.
12506 (INIT_SUBTARGET_OPTABS): Likewise.
12507 (BSS_SECTION_ASM_OP): Likewise.
12508 (SBSS_SECTION_ASM_OP): Likewise.
12509 (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12510 (ASM_DECLARE_OBJECT_NAME): Likewise.
12511 (UNIQUE_SECTION): Likewise.
12512 (EXTRA_SECTIONS): Likewise.
12513 (ASM_OUTPUT_CONSTRUCTOR): Likewise.
12514 (ASM_OUTPUT_DESTRUCTOR): Likewise.
12515 (ASM_OUTPUT_DEF): Likewise.
12516 (HANDLE_SYSV_PRAGMA): Removed.
12517 (NO_IMPLICIT_EXTERN_C): Likewise.
12518 (TARGET_MEM_FUNCTIONS): Likewise.
12519 (STARTFILE_SPEC): Likewise.
12520 (ENDFILE_SPEC): Likewise.
12521 (LIB_SPEC): Likewise.
12522 (INVOKE__main): Likewise.
12523 (CTOR_LIST_BEGIN): Likewise.
12524 (CTOR_LIST_END): Likewise.
12525 (DTOR_LIST_BEGIN): Likewise.
12526 (DTOR_LIST_END): Likewise.
12527 (SET_ASM_OP): Likewise.
12528 (ASM_OUTPUT_SOURCE_LINE): Likewise.
12529 (ASM_OUTPUT_DEF): Likewise.
12530 (ASM_OUTPUT_IDENT): Likewise.
12532 * config/mips/mips.h (ASM_SPEC): Undefine before define.
12533 (CPLUSPLUS_CPP_SPEC): Likewise.
12534 (ASM_APP_ON) Redefine only if not defined.
12535 (ASM_APP_OFF): Likewise.
12536 (ASM_OUTPUT_SOURCE_LINE): Likewise.
12537 (ASM_OUTPUT_IDENT): Likewise.
12539 * config.gcc: Update tm_file for Linux/mips.
12541 2001-08-08 Bernd Schmidt <bernds@redhat.com>
12543 * cselib.c (cselib_record_sets): If insn is predicated, turn
12544 sources into IF_THEN_ELSEs.
12546 * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
12547 Turn into define_insn_and_split.
12549 * sched-deps.c: Include "cselib.h".
12550 (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
12551 Use cselib to turn memory addresses into VALUEs.
12552 (sched_analyze): Call cselib_init/cselib_finish if necessary.
12553 * sched-int.h (struct sched_info): New member USE_CSELIB.
12554 * sched-ebb.c (ebb_sched_info): Initialize it.
12555 * sched-rgn.c (rgn_sched_info): Likewise.
12556 * Makefile.in (sched-deps.o): Update dependencies.
12558 * cselib.h (cselib_subst_to_values): Declare.
12559 * cselib.c (cselib_subst_to_values): No longer static. Allow MEMs
12560 that have no value and autoincs to be handled by generating a new
12563 2001-08-08 Graham Stott <grahams@redhat.com>
12565 * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
12566 within fixed length SEQUENCE.
12568 2001-08-08 Graham Stott <grahams@redhat.com>
12570 * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
12571 (diagnostic_prefixing_rule): Likewise.
12572 (diagnostic_line_cutoff): Likewise.
12573 (diagnostic_kind_count): Likewise.
12575 2001-08-08 Graham Stott <grahams@redhat.com>
12577 * alias.c (find_base_decl): Delete redundent assignment.
12579 2001-08-08 Graham Stott <grahams@redhat.com>
12581 * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
12582 (abs): Uppercase and paranthesize macro parameter.
12583 (MEM_DEPENDENCY): Add whitespace.
12585 2001-08-08 Graham Stott <grahams@redhat.com>
12587 * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
12588 failure check for CONST_INT
12590 2001-08-08 Graham Stott <grahams@redhat.com>
12592 * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
12593 (libcall_dead_p): Likewise.
12595 (mark_used_regs): Constify fmt.
12596 (find_use_as_address): Likewise.
12598 2001-08-08 Graham Stott <grahams@redhat.com>
12600 * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
12603 2001-08-08 Graham Stott <grahams@redhat.com>
12605 * combine.c (combine_simplify_rtx): Update comment and
12606 remove erroneous test.
12608 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
12610 * cppinit.c (cpp_finish): Pop the final buffer without comment.
12611 * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
12612 take care to avoid multiple no-newline at EOF warnings in that
12615 Tue Aug 7 22:18:06 CEST 2001 Jan Hubicka <jh@suse.cz>
12617 * calls.c (expand_call): Do not emit INSN_SETJMP note.
12618 (emit_library_call_value_1): Likewise.
12619 (emit_call_1): Emit REG_SETJMP note.
12620 * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
12622 * cselib.c (cselib_process_insn): Likewise.
12623 * flow.c (propagate_block): Likewise.
12624 * loop.c (find_and_verify_loops): Likewise.
12625 * reload.c (find_equiv_regs): Likewise.
12626 * reload1.c (reload): Likewise.
12627 * resource.c (mark_referenced_resources,
12628 mark_set_resources): Likewise.
12629 * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
12630 * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
12631 * haifa-sched.c (unlink_other_notes): Likewise.
12632 (reemit_notes): Likewise.
12633 * sched-ebb.c (sched_ebb): Likewise.
12634 * sched-rgc.c (sched_region): Likewise.
12635 * rtl.c (note_insn_name): Likewise.
12636 (reg_note_name): Add REG_SETJMP
12637 * rtl.h (reg_note): Add REG_SETJMP.
12638 (insn_note): Remove NOTE_INSN_SETJMP.
12640 * profile.c (branch_prob): Add fake edges for setjmp.
12642 2001-08-07 Daniel Jacobowitz <drow@mvista.com>
12644 * config.gcc: Quote target_cpu_default2 correctly for
12645 powerpc*-*-* targets.
12647 2001-08-07 Neil Booth <neil@daikokuya.demon.co.uk>
12649 * cpplib.h, line-map.h: Update comments.
12650 * cppmain.c (printer_init): Move inline.
12651 (maybe_print_line, print_line): Take a map pointer.
12652 (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
12653 (cb_file_change): Don't use prior value of print.map.
12655 2001-08-07 David Edelsohn <edelsohn@gnu.org>
12657 * doc/install.texi: Document fine-grained multilib configuration.
12659 Tue Aug 7 16:52:54 CEST 2001 Jan Hubicka <jh@suse.cz>
12661 * rtlanal.c (find_first_parameter_load): Call note_stores
12662 only on the instructions.
12664 Tue Aug 7 14:56:16 CEST 2001 Jan Hubicka <jh@suse.cz>
12666 * alias.c (nonlocal_mentioned_p):
12667 Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
12668 * calls.c (emit_call_1): Likewise.
12669 * cse.c (cse_insn, invalidate_skipped_block): Likewise.
12670 * cselib.c (cselib_process_insn): Likewise.
12671 * df.c (df_insns_modify): Likewise.
12672 * flow.c (need_fake_edge_p): Likewise.
12673 (propagate_one_insn): Likewise.
12674 * haifa-sched.c (reemit_notes): Likewise.
12675 * integrate.c (copy_insn_list): Likewise.
12676 * jump.c (delete_prior_computation): Likewise.
12677 * local-alloc.c (validate_equiv_mem): Likewise.
12678 * loop.c (scan_loop): Likewise.
12679 * predict.c (estimate_probability): Likewise.
12680 * reload.c (reload): Likewise.
12681 * sched-deps (sched_analyze): Likewise.
12682 * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
12683 * gcse.c (compute_hash_table): Likewise.
12684 (mark_call): Likewise.
12685 (store_killed_in_insn): Likewise.
12687 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
12689 * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
12691 2001-08-06 Richard Henderson <rth@redhat.com>
12693 * varasm.c (assemble_gc_entry): Remove.
12694 * output.h: Likewise.
12696 2001-08-06 Richard Henderson <rth@redhat.com>
12698 * varasm.c (assemble_constructor): Take a symbol_ref and a
12699 priority instead of a bare string. Move priority handling
12700 here from cp/decl2.c.
12701 * output.h: Update decls.
12703 * c-decl.c (c_expand_body): Update calls to assemble_constructor
12704 and assemble_destructor.
12705 * profile.c (output_func_start_profiler): Likewise.
12706 * objc/objc-act.c (finish_objc): Likewise.
12707 (build_module_descriptor): Return the symbol not the symbol name.
12709 2001-08-06 David Edelsohn <edelsohn@gnu.org>
12711 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
12712 * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
12713 ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
12714 * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
12715 * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
12716 * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
12718 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
12720 * cpperror.c (print_containing_files): Moved to line-map.c.
12721 (print_location): line-map.c handles re-listing or otherwise.
12722 * cpphash.h (struct lexer_state): Remove next_bol.
12723 (struct cpp_buffer): Remove include_stack_listed.
12724 * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
12725 Remove faked buffer handling.
12726 (_cpp_do_file_change): Tweak.
12727 * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
12728 * cppmain.c (struct printer): Remove filename.
12729 (print_line, cb_file_change): Update accordingly.
12730 * line-map.c: Include intl.h.
12731 (init_line_maps): Initialize last_listed.
12732 (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
12733 (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
12734 (print_containing_files): New.
12735 * line-map.h (struct line_maps): New member last_listed.
12736 (print_containing_files, INCLUDED_FROM): New.
12737 * Makefile.in: Update.
12738 * po/POTFILES.in: Add line-map.c.
12740 2001-08-06 Richard Henderson <rth@redhat.com>
12742 * except.c (convert_from_eh_region_ranges_1): Never mark
12743 USE or CLOBBER insns as throwing.
12745 * expr.c (store_constructor): Don't clobber memory targets.
12747 2001-08-06 Andreas Jaeger <aj@suse.de>
12749 * profile.c (branch_prob): Remove unused variable insn.
12751 * Makefile.in (local-alloc.o): Add dependency on except.h.
12753 * local-alloc.c: Include except.h for can_throw_internal prototype.
12755 2001-08-06 Richard Henderson <rth@redhat.com>
12757 * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
12758 * function.c (expand_main_function): Implement it.
12759 * doc/tm.texi: Document it.
12761 2001-08-06 Stan Shebs <shebs@apple.com>
12763 * doc/install.texi: Document powerpc-*-darwin* details.
12765 2001-08-06 Daniel Berlin <dan@cgsoftware.com>
12767 * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
12768 (ASM_CPU_SPEC): Move back to rs6000.h
12769 #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
12771 * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
12773 * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
12776 * config/rs6000/linux64.h: Ditto.
12778 * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
12779 to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
12782 Remove accidently readded definitions of FUNCTION_PROLOGUE,
12783 FUNCTION_EPILOGUE, ASM_OPEN_PAREN, ASM_CLOSE_PAREN
12785 * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
12788 2001-08-05 Richard Henderson <rth@redhat.com>
12790 * local-alloc.c (update_equiv_regs): Do not move insns that
12793 2001-08-05 Jan Hubicka <jh@suse.cz>
12795 * Makefile.in (reload1.o): Add dedendancy on except.h
12796 * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
12798 * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
12799 indicating wehther edges has been cleaned up.
12800 * reload1.c: Inlucde except.h
12801 (fixup_abnormal_edges): Accept deleted insns.
12802 * toplev.c (rest_of_compilation): Purge dead edges unconditionally
12805 2001-08-06 Neil Booth <neil@daikokuya.demon.co.uk>
12807 * cpplib.c (do_line): Correct line number after pop_buffer.
12809 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
12811 PR preprocessor/3824
12812 * line-map.c: Update comments.
12813 * line-map.h: Update comments.
12814 * tradcif.y: Don't consider large numbers unsigned.
12816 2001-08-05 Neil Booth <neil@daikokuya.demon.co.uk>
12818 PR preprocessor/3081
12819 * c-lex.c (map): New.
12820 (cb_file_change): Update map and use it.
12821 (cb_def_pragma, cb_define, cb_undef): Use map and line.
12822 (c_lex): Update to use map.
12823 * cpperror.c (print_location): Move to using logical line numbers.
12824 * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
12825 (cpp_make_system_header): Similarly.
12826 (_cpp_execute_include): Stop line numbering hacks. Store the
12827 line we will return to.
12828 * cpphash.h (CPP_BUF_LINE): Remove.
12829 (struct cpp_buffer): Remove lineno and pseudo_newlines.
12830 Add map and return_to_line.
12831 (_cpp_do_file_change): Update.
12832 * cppinit.c (cpp_start_read): Update line kludge.
12833 * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
12834 (trigraph_ok): Use logical line numbers for diagnostics.
12835 (skip_block_comment): Likewise.
12836 (skip_whitespace): Likewise.
12837 (skip_line_comment): Use pfile->line instead.
12838 (_cpp_lex_token): Update to use logical line numbering exclusively.
12839 Handle BOL locally. Accept new lines in directives, but keep
12840 pfile->line decremented. Diagnostics use logical lines. Update
12841 directive handling.
12842 * cpplib.c (SEEN_EOL): New.
12843 (skip_rest_of_line, check_eol): Use it.
12844 (end_directive): Increase line number when accepting the newline
12845 at the end of a directive.
12846 (run_directive): Simplify.
12847 (do_line): Bad LC_LEAVEs become LC_RENAMEs. Update.
12848 (_cpp_do_file_change): Update to take buffer line number as an
12849 argument, and store the current map in the cpp_reader. Remove
12850 line number kludges.
12851 (_cpp_do__Pragma): Restore output position after a _Pragma.
12852 (cpp_push_buffer): Don't set output line or lineno.
12853 (_cpp_pop_buffer): Transfer more info from a faked buffer.
12854 Remove line kludge. Set output_line.
12855 * cppmacro.c (builtin_macro): Update handling of __LINE__.
12856 (parse_arg): Use logical lines.
12857 (save_lookahead_token): Save EOFs too now.
12858 * cppmain.c (struct printer): Fix comments.
12859 (printer_init): Simplify, let caller do errors.
12860 (scan_translation_unit, check_multiline_token, dump_macro): Update.
12861 (maybe_print_line): Simplify.
12862 (print_line): Don't print a linemarker if -P.
12863 (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
12864 (cb_file_change): Simplify.
12865 * line-map.h (LAST_SOURCE_LINE): Fix.
12866 (CURRENT_LINE_MAP): New.
12868 2001-08-05 Bernd Schmidt <bernds@redhat.com>
12870 * doloop.c (doloop_modify_runtime): Properly compute number of
12871 iterations if loop was unrolled.
12873 * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
12874 if their CSELIB_VAL_PTRs are.
12876 * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
12877 (setup_spill_pointers): Initialize it.
12878 (spill_restore_mem): Set it.
12879 (do_spill, do_restore): Use it to add REG_INC note.
12880 * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
12882 * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
12883 asms if other insns are available.
12885 * config/ia64/ia64.c (condop_operator): New predicate.
12886 * config/ia64/ia64.h (PREDICATE_CODES): Add it.
12887 * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
12890 * expr.c (expand_expr, case COND_EXPR): Prefer working with a
12891 temporary register than directly using a MEM.
12893 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
12895 * config/sh/sh.c (sh_asm_named_section): Fix typo in align
12896 parameter in last change.
12898 2001-08-04 Zack Weinberg <zackw@panix.com>
12900 * sparc.md: Don't use #if inside C test expression.
12902 2001-08-04 Richard Henderson <rth@redhat.com>
12904 * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
12906 2001-08-04 Neil Booth <neil@daikokuya.demon.co.uk>
12908 * cpphash.h (struct cpp_reader): New member directive_line.
12909 * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
12910 * cpplib.c (do_define, do_undef, do_ident, do_include_common,
12911 do_pragma): Pass line to callbacks.
12912 (start_directive): Record line of directive.
12913 * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
12914 cb_include): Similarly.
12915 * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
12918 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
12920 * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
12923 Sat Aug 4 13:51:36 CEST 2001 Jan Hubicka <jh@suse.cz>
12925 * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
12927 * reload1.c (fixup_abnormal_edges): New static function.
12930 * flow.c (need_fake_edge_p): New function.
12931 (flow_call_edges_add): Fix handling of noreturn and sibling calls;
12932 avoid call insn to be very last insn in the insn stream.
12934 * profile.c (branch_prob): Call flow_call_edges_add instead of
12935 doing that by hand; cleanup cfg to re-merge basic blocks once
12938 2001-08-04 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12940 * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
12941 are also on line-map.h.
12942 * cppfiles.c (stack_include_file): Update.
12943 * cpphash.h (struct cpp_buffer): New member return_at_eof.
12944 (_cpp_pop_buffer): New.
12945 * cppinit.c (cpp_destroy, cpp_finish): Update.
12946 (do_includes): Mark each buffer to return at EOF.
12947 * cpplex.c (_cpp_lex_token): Pop buffers at EOF. Continue or
12948 return as requested.
12949 * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
12950 (cpp_pop_buffer): Rename _cpp_pop_buffer. Stop skipping.
12951 * cpplib.h (cpp_pop_buffer): Remove.
12952 (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
12953 * cppmacro.c (cpp_scan_buffer_nooutput): Similarly. No need to pop
12955 * cppmain.c (scan_buffer): Rename scan_translation_unit. No need
12957 (do_preprocessing): Update.
12958 * fix-header.c (read_scan_file): Update. No need to pop buffers.
12959 * c-parse.in (_yylex): Similarly.
12960 * scan-decls.c (scan_decls): Similarly.
12961 * line-map.h: Update comments.
12963 * objc/Make-lang.in (objc-act.o): Update dependencies.
12965 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12967 * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
12968 and soft register for operand 0.
12969 ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
12971 2001-08-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12973 * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
12974 register for operand 0.
12975 ("bitcmpqi_z_used"): Allow memory for operand 0.
12976 (split "bitcmpqi"): New split to handle address reg as operand 1.
12978 2001-08-04 Andreas Jaeger <aj@suse.de>
12980 * gcse.c: Revert Daniel's last patch.
12982 2001-08-03 Zack Weinberg <zackw@stanford.edu>
12984 * sparc-protos.h: Add prototypes for fp_zero_operand and
12986 * sh-protos.h: Add prototype for fpul_operand.
12988 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
12990 * doc/extend.texi (Other Builtins): Fix typo in last change.
12992 2001-08-03 Richard Henderson <rth@redhat.com>
12994 * target.h (gcc_target): Add asm_out.named_section,
12995 section_type_flags, have_named_sections.
12996 * target-def.h (TARGET_ASM_NAMED_SECTION): New.
12997 (TARGET_HAVE_NAMED_SECTIONS): New.
12998 (TARGET_SECTION_TYPE_FLAGS): New.
13000 * Makefile.in (toplev.o): Depend on TARGET_H.
13001 (varasm.o, dbxout.o): Likewise.
13002 * c-common.c (decl_attributes): Check targetm.have_named_sections
13003 instead of ifdef ASM_OUTPUT_SECTION_NAME.
13004 * dbxout.c (dbxout_function_decl): Likewise.
13005 (dbxout_function_end): Likewise.
13006 * toplev.c (compile_file): Likewise.
13007 * varasm.c (exception_section): Likewise.
13008 * cp/decl2.c (finish_objects): Likewise.
13010 * defaults.h (EH_FRAME_SECTION): Remove.
13011 (EH_FRAME_SECTION_ASM_OP): Remove.
13012 (EH_FRAME_SECTION_NAME): New.
13013 (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
13014 (UNIQUE_SECTION_P): Remove.
13015 * dwarf2out.c (SECTION_FORMAT): Remove.
13016 (ASM_OUTPUT_SECTION): Remove.
13017 (output_call_frame_info): Use named_section_flags.
13018 (output_comp_unit, dwarf2out_start_source_file): Likewise.
13019 (dwarf2out_end_source_file, dwarf2out_define): Likewise.
13020 (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
13021 * varasm.c (in_eh_frame, eh_frame_section): Remove.
13022 (named_section_flags): New.
13023 (named_section): Use it and targetm.section_type_flags.
13024 (resolve_unique_section): New.
13025 (assemble_start_function): Use it.
13026 (asm_emit_uninitialised, assemble_variable): Likewise.
13027 (default_section_type_flags): New.
13028 (default_no_named_section, default_elf_asm_named_section): New.
13029 (default_coff_asm_named_section, default_pe_asm_named_section): New.
13030 * output.h: Update varasm.c decls.
13031 (SECTION_*): New flags.
13033 * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
13034 (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
13036 * config/elfos.h (UNIQUE_SECTION_P): Remove.
13037 * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
13038 * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
13039 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
13040 * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
13041 * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
13042 * config/mips/elf.h, config/mips/elf64.h: Likewise.
13043 * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
13044 * config/pa/pa64-hpux.h,
13046 * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
13047 (TARGET_ASM_NAMED_SECTION): New.
13048 * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
13049 * config/alpha/vms.h, config/arm/coff.h: Likewise.
13050 * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
13051 * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
13052 * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
13053 * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
13054 * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
13055 * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
13056 * config/i386/sco5.h, config/i386/win32.h: Likewise.
13057 * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
13058 * config/mcore/mcore.h, config/mips/elf.h: Likewise.
13059 * config/mips/elf64.h, config/mips/iris6.h: Likewise.
13060 * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
13061 * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
13062 * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
13063 * config/sparc/sysv4.h: Likewise.
13065 * config/nextstep.h: Error until named sections implemented.
13067 * config/a29k/a29k.c (a29k_asm_named_section): New.
13068 * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
13069 (vms_section_type_flags, vms_asm_named_section): New.
13070 * config/arm/arm.c (arm_elf_asm_named_section): New.
13071 * config/avr/avr.c (asm_output_section_name): Remove.
13072 * config/avr/avr-protos.h: Update.
13073 * config/c4x/c4x.c (c4x_asm_named_section): New.
13074 * config/h8300/h8300.c (h8300_asm_named_section): New.
13075 * config/i386/i386.c (sco_asm_named_section): New.
13076 * config/i386/winnt.c (SECTION_PE_SHARED): New.
13077 (i386_pe_section_type_flags): New.
13078 (i386_pe_asm_named_section): New.
13079 * config/i386/i386-protos.h: Update.
13080 * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
13081 * config/mcore/mcore.c (mcore_asm_named_section): New.
13082 * config/mips/mips.c (iris6_asm_named_section): New.
13083 * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
13084 instead of UNIQUE_SECTION_P.
13085 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
13086 (xcoff_asm_named_section): New.
13087 * config/sh/sh.c (sh_asm_named_section): New.
13088 * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
13090 * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
13091 * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
13092 (EH_FRAME_SECTION_NAME): New.
13093 (EXCEPTION_SECTION): New.
13094 * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
13095 (DEBUG_*_SECTION): Remove.
13096 * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
13097 * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
13098 (EH_FRAME_SECTION_ASM_OP): Remove.
13100 * doc/tm.texi (UNIQUE_SECTION_P): Remove.
13101 (ASM_OUTPUT_SECTION_NAME): Remove.
13102 (TARGET_ASM_NAMED_SECTION): New.
13103 (TARGET_HAVE_NAMED_SECTIONS): New.
13104 (TARGET_SECTION_TYPE_FLAGS): New.
13105 (EH_FRAME_SECTION_ASM_OP): Remove.
13106 (EH_FRAME_SECTION_NAME): New.
13108 2001-08-03 Zack Weinberg <zackw@stanford.edu>
13110 * builtins.c (fold_builtin_constant_p): Return integer_zero_node
13111 for complex expressions when cfun == 0.
13112 * doc/extend.texi: Document that __builtin_constant_p can be
13113 used in data initializers as well as functions.
13115 2001-08-03 Alexandre Oliva <aoliva@redhat.com>
13117 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
13118 variable I locally, instead of expecting a declaration in the
13121 2001-08-03 Richard Henderson <rth@redhat.com>
13123 * except.c (collect_one_action_chain): Add an explicit cleanup
13124 action if regions surrounding a catch were encoded entirely
13125 within the call-site entry.
13127 2001-08-03 Richard Henderson <rth@redhat.com>
13129 * dbxout.c (dbxout_symbol_location): Flatten subregs first;
13130 don't take REGNO of a non-register.
13132 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13134 * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
13135 __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
13136 (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
13137 (__gthread_mutex_init_function): New function for mutex initialization.
13139 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
13141 * Makefile.in: Revert screwed up commit.
13143 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13145 * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
13146 * config/m68hc11/larith.asm (_exit): Split in several sub-sections
13147 merged by linker script to get a final _exit().
13148 (__do_global_dtors): New for destructor handling in specific exit
13150 (__do_global_ctors): New for constructors in specific install section.
13151 (__map_data_section): Map data sections before running constructors.
13152 * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
13153 (CTORS_SECTION_ASM_OP): Define to put in readonly section.
13154 (DTORS_SECTION_ASM_OP): Likewise.
13155 (CTORS_SECTION_FUNCTION): Define to force a reference to
13157 (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
13159 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
13161 * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
13163 * Makefile.in: Add df.h to gcse.c dependencies.
13165 2001-08-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
13167 * varasm.c (output_constant_def_contents): Use for the length of a
13168 string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
13169 depending on which is larger.
13171 2001-08-03 Daniel Berlin <dan@cgsoftware.com>
13173 * gcse.c: Include df.h for use as a dataflow analyzer.
13175 Declaration of reg_set_info: gone.
13176 New df_analyzer variable used by store motion.
13177 (reg_set_info): Deleted.
13178 (mark_mem_regs): New function, analyze regs used by a mem.
13179 (store_ops_ok): Use dataflow analyzer results to determine if
13180 necessary regs are changed in the block.
13181 (find_moveable_store): Remove check for symbol ref, we can handle
13182 much more complex expressions now.
13183 (compute_store_table): Remove most of the code, it's unnecessary
13184 now that the dataflow analyzer records the info for us.
13185 (store_killed_after): Add parameter to say whether to do the
13186 store_ops_okay test, used to speed up testing when we already know
13187 the answer, and just want to know if the store itself was killed.
13188 (build_store_vector): Largely rewritten to calculate the various
13189 vectors properly, and somewhat optimized.
13190 (store_motion): Init the df_analyzer, get REG_DEF chains.
13191 Also handle trapping expressions (since mems almost always trap)
13192 (simple_mem): Redefine what a simple mem is.
13194 2001-08-03 DJ Delorie <dj@redhat.com>
13196 * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
13197 set from a constant part of the condition.
13199 2001-08-01 Andrew Cagney <ac131313@redhat.com>
13201 * mkdeps.c (deps_add_default_target): Make local variable
13202 ``start'' a const char pointer.
13203 * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
13205 2001-08-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13207 * doc/install.texi (Configuration): Fix markup.
13208 (Specific, i?86-*-udk): Likewise.
13209 (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
13211 Document --enable-threads and --enable-libgcj status.
13212 (Specific, mips-sgi-irix*): Canonicalize triples.
13213 (Specific, mips-sgi-irix5): Warn about problems with this config.
13214 Mention required GNU as patch.
13215 Native assembler problems are fixed.
13216 (Specific, mips-sgi-irix6): Update O32 ABI support status.
13217 Document --enable-threads and --enable-libgcj status.
13219 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
13221 * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
13224 2001-08-03 Richard Henderson <rth@redhat.com>
13226 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
13229 2001-08-03 Richard Henderson <rth@redhat.com>
13231 * rtlanal.c (find_first_parameter_load): Stop if we
13232 reach a CODE_LABEL at BOUNDARY.
13234 2001-08-03 Richard Henderson <rth@redhat.com>
13236 * config/alpha/alpha.md (force_movdi): New insn.
13237 * config/alpha/alpha.c (alpha_expand_prologue): Use it.
13238 Tweek FRP marking of VMS prologue insns.
13239 * config/alpha/vms.h (EPILOGUE_USES): New.
13241 2001-08-02 Richard Henderson <rth@redhat.com>
13243 * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
13245 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
13247 * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
13248 simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
13249 config/convex/convex.h, config/d30v/d30v.c,
13250 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13251 config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
13252 config/mips/mips.h, config/mn10200/mn10200.h,
13253 config/mn10300/mn10300.h, config/pdp11/pdp11.md,
13254 config/v850/v850.h, config/vax/openbsd.h,
13255 config/vax/openbsd1.h, config/vax/ultrix.h,
13256 config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
13257 config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
13258 cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
13259 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
13260 doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
13261 in comments and documentation.
13263 2001-08-03 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13267 * Makefile.in (line-map.o): New.
13268 (LIBCPP_OBJS, LIBCPP_DEPS): Update.
13269 * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
13270 * cpperror.c (print_containing_files): Similarly.
13271 (print_location): Update. Don't output a space before _Pragma.
13272 * cppfiles.c (stack_include_file): Set to line 1 immediately.
13273 (stack_include_filee, cpp_make_system_header): Update.
13274 (_cpp_execute_include): Get logical line number right for calling
13275 as-yet-unterminated #include.
13276 * cpphash.h (struct cpp_reader): Add line_maps.
13277 (_cpp_do_file_change): Update.
13278 * cppinit.c (cpp_create_reader): Initialize line maps.
13279 (cpp_destroy): Destroy line maps.
13280 (cpp_start_read): Get logical line number right.
13281 * cpplex.c (parse_string): Only warn once for multi-line strings.
13282 Use boolean variable for null warning.
13283 * cpplib.c (_cpp_handle_directive): End the directive if it isn't
13285 (do_include_common): End the directive early.
13286 (do_line): Don't warn about out-of-range lines in preprocessed
13287 source. Update. Remove unused variables.
13288 (_cpp_do_file_change): Update for new line mapping.
13289 (pragma_cb): New typedef.
13290 (cpp_register_pragma): Stop looking ahead before calling the
13292 (do_pragma_system_header): End directive early.
13293 (cpp_get_line_maps): New.
13294 (cpp_pop_buffer): Fudge logical line. Update.
13295 * cpplib.h: Include line-map.h
13296 (enum cpp_fc_reason): Remove.
13297 (struct cpp_file_change): Update.
13298 (cpp_get_line_maps): New.
13299 * cppmain.c (struct_printer): New member map.
13300 (cb_file_change): Update for new mappings.
13301 * fix-header.c (cb_file_change): Similarly.
13303 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
13305 * Makefile.in (libgcc.mk): Define mkinstalldirs.
13306 * mklibgcc.in: Use mkinstalldirs instead of mkdir.
13308 2001-08-02 Lars Brinkhoff <lars@nocrew.org>
13310 * config/vax/vax.c: include expr.h.
13312 2001-08-02 Nick Clifton <nickc@cambridge.redhat.com>
13314 * Makefile.in ($(srcdir)/configure): Only rebuild in
13316 ($(srcdir)/config.in): Only define in maintainer mode.
13317 ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
13319 2001-08-02 David Edelsohn <edelsohn@gnu.org>
13321 * doc/install.texi (Install GCC: Binaries): Update Bull info.
13323 2001-08-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13325 * gcc.c (set_collect_gcc_options): New function, split out from
13327 Ignore elided switches.
13328 (do_spec_1): Invoke before executing command.
13329 (set_input): Export.
13330 Move declaration ...
13331 * gcc.h (set_input): ... here.
13332 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
13335 2001-08-02 Nathan Sidwell <nathan@codesourcery.com>
13338 * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
13340 * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
13342 2001-08-02 Richard Sandiford <rsandifo@redhat.com>
13344 * mips.md (movdicc): Make conditional on TARGET_64BIT. Likewise
13345 for the unnamed instructions it expands to.
13347 2001-08-02 Richard Henderson <rth@redhat.com>
13349 * regclass.c (call_really_used_regs): Conditionally define.
13350 (init_reg_sets_1): Don't use it if not defined.
13351 (fix_register): Similarly, don't set it.
13353 2001-08-01 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13355 * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
13356 Correct comment that had been missed in the previous change.
13358 2001-08-01 Stan Shebs <shebs@apple.com>
13360 * config/darwin.c (machopic_stub_name): Try matching by name.
13361 (update_stubs): New function.
13362 (darwin_encode_section_info): Call it and update_non_lazy_ptrs
13365 2001-08-01 Richard Henderson <rth@redhat.com>
13367 * except.c (output_function_exception_table): Use assemble_align.
13368 * varasm.c (assemble_eh_label): Remove.
13369 (assemble_eh_align, assemble_eh_integer): Remove.
13371 2001-08-01 Robert Lipe <robertl@caldera.com>
13373 * dwarfout.c: Remove reference to README.DWARF.
13375 2001-08-01 Andrew MacLeod <amacleod@redhat.com>
13377 * regclass.c (call_really_used_regs): New array for registers which
13378 are actually used by a call.
13379 (init_reg_sets_1): Initialize regs_invalidated_by_call with the
13381 (fix_register): Set call_really_used too.
13382 * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
13383 * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
13385 2001-08-01 Richard Henderson <rth@redhat.com>
13387 * read-rtl.c (read_name): Consider \r whitespace.
13389 2001-07-11 Andrew Cagney <ac131313@redhat.com>
13391 * config.gcc: Recognize powerpc-*-netbsd*.
13393 * doc/install.texi (Host/target specific installation notes for
13394 GCC): Mention powerpc-*-netbsd*.
13396 * config/rs6000/netbsd.h: New file.
13397 (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
13398 (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
13399 (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
13400 (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
13401 (TARGET_VERSION): Redefine.
13403 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
13404 mcall-netbsd as a match for mcall-sysv.
13405 (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
13406 (ncrti.S, ncrtn.S): New targets.
13407 ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
13409 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
13410 "netbsd' as a V4 ABI.
13411 (ASM_SPEC): Check for -mcall-netbsd.
13412 (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
13413 (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
13414 (LIB_SPEC, ENDFILE_SPEC): Ditto.
13415 (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
13416 (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
13417 (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
13418 (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
13420 * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
13421 (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
13423 2001-08-01 Mark Kettenis <kettenis@gnu.org>
13425 * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
13426 only if NO_BASE_OF_ENCODED_VALUE isn't defined.
13427 * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
13428 including "unwind-pe.h".
13430 Wed Aug 1 20:01:42 CEST 2001 Jan Hubicka <jh@suse.cz>
13432 * rs6000.md (define_splits): Kill unused constraints.
13434 Wed Aug 1 20:02:12 CEST 2001 Graham Stott <grahams@redhat.com>
13435 Jan Hubicka <jh@suse.cz>
13437 * function.c (thread_prologue_and_epilogue_insns): Kill code
13438 dealing with non-existent CFG.
13440 2001-08-01 Kazu Hirata <kazu@hxi.com>
13442 * alias.c: Fix comment formatting.
13443 * bitmap.c: Likewise.
13444 * builtins.c: Likewise.
13445 * calls.c: Likewise.
13446 * c-common.c: Likewise.
13447 * c-decl.c: Likewise.
13448 * c-dump.c: Likewise.
13449 * c-lex.c: Likewise.
13450 * collect2.c: Likewise.
13451 * combine.c: Likewise.
13452 * conflict.c: Likewise.
13453 * cppfiles.c: Likewise.
13454 * cppinit.c: Likewise.
13455 * cpplex.c: Likewise.
13456 * cpplib.c: Likewise.
13457 * cppmacro.c: Likewise.
13458 * cppspec.c: Likewise.
13459 * c-pragma.c: Likewise.
13460 * crtstuff.c: Likewise.
13462 * cselib.c: Likewise.
13463 * c-semantics.c: Likewise.
13464 * c-typeck.c: Likewise.
13466 2001-08-01 H.J. Lu <hjl@gnu.org>
13468 * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
13470 2001-08-01 H.J. Lu <hjl@gnu.org>
13472 * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
13474 2001-08-01 Ziemowit Laski <zlaski@apple.com>
13476 * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
13477 contextualizing Objective-C class name lookup by the lexer.
13478 (typespec_reserved_nonattr): Disable ObjC class name lookup after
13480 (protocoldef): Add support for forward @protocol declarations.
13481 (yylexname): Suppress ObjC class name lookup in certain contexts;
13482 re-enable after lookup is complete.
13483 (_yylex): Re-enable ObjC class name lookup when certain
13484 punctuation marks are seen.
13486 * objc/objc-act.c (check_protocol_recursively): New function used
13487 for finding circular dependencies in protocols.
13488 (objc_declare_protocols): New function for handling forward
13489 @protocol declarations.
13490 (receiver_is_class_object): Detect the case when 'self' is used
13491 inside of a class method.
13492 (build_message_expr): Issue a warning if class method is desired
13493 but instance method is found instead.
13494 (conforms_to_protocol): Streamline.
13495 (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
13496 protocol Foo, even if 'Bar foo' does not.
13497 (check_protocols): Streamline.
13498 (start_protocol): Add checks for circular and duplicate protocol
13500 (encode_aggregate_within): For typedefs of structs, encode the
13502 * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
13503 (objc_declare_protocols): New prototype.
13505 2001-08-01 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13507 * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
13508 * cpplex.c (handle_newline): Update prototype. Maintain logical
13510 (skip_escaped_newlines, skip_block_comment, parse_string):
13511 Update accordingly.
13512 (_cpp_lex_token): Update, and store token position within the token.
13513 * cpplib.h (struct cpp_token): Add line and column entries.
13514 * cppmacro.c (replace_args): Position stringified tokens correctly.
13516 2001-08-01 Andreas Jaeger <aj@suse.de>
13518 * basic-block.h: Add prototype for last_loop_beg_note.
13520 2001-07-31 Alexandre Petit-Bianco <apbianco@redhat.com>
13522 * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
13523 RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
13525 (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
13526 while handling WITH_CLEANUP_EXPR node. Use second operand calling
13527 expand_decl_cleanup.
13528 * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
13530 (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
13531 operand while calling simple_cst_equal.
13532 * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
13533 operand is the cleanup expression, the third is the RTL_EXPR.
13534 * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
13536 2001-07-31 Jeff Sturm <jsturm@one-point.com>
13538 * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
13540 2001-07-31 matthew green <mrg@eterna.com.au>
13542 * config.gcc (i386-*-netbsdelf): New description.
13543 * config/i386/netbsd-elf.h: New file.
13545 2001-07-30 Geoffrey Keating <geoffk@redhat.com>
13547 * loop.c (check_dbra_loop): Use single_set to compute
13550 2001-07-31 Daniel Berlin <dan@cgsoftware.com>
13552 PowerPC reorg and support for powerpc64-*-linux*.
13554 Also fixes emitting of constants on 32 bit and 64 bit
13557 * config.gcc: powerpc64-*-linux* is a new target.
13558 Things that needed aix.h now also include xcoff.h
13560 * config/rs6000/rs6000.h: Split XCOFF specific stuff into
13562 Move AIX specific stuff into aix.h.
13563 (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
13564 with more than just XCOFF now.
13565 (SET_ASM_OP): Remove, now defined where needed.
13566 (FUNCTION_PROLOGUE): New macro definition.
13567 (FUNCTION_EPILOGUE): New macro definition.
13568 (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
13570 * config/rs6000/xcoff.h: New file.
13572 * config/rs6000/linux64.h: New file.
13574 * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
13576 2001-07-31 Alan Modra <amodra@bigpond.net.au>
13578 * rs6000.c (print_operand_address): Handle ELF syntax.
13579 (output_toc): Simplify. Use DOUBLE_INT_ASM_OP.
13580 * rs6000.md (load_toc_aix_di): Handle ELF syntax.
13581 * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
13583 2001-07-31 David Edelsohn <edelsohn@gnu.org>
13585 * rs6000.c (rs6000_override_options): Only disable
13586 flag_function_sections for XCOFF.
13587 (exact_log2_cint_operand): New predicate.
13588 (reg_or_{add,sub}_cint64_operand): New predicates.
13589 (add_operand): Compare CONST_INT with fewer function calls.
13590 (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
13591 (print_operand, case 'p'): Ensure positive operand.
13592 (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
13593 * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
13594 (PREDICATE_CODES): Add new predicates.
13595 * rs6000.md (addsi3): Split 32-bit constants more correctly.
13596 (divsi3, modsi3): Ensure positive power-of-2.
13597 (adddi3): Use new predicate. Split 32-bit constants more
13598 correctly. Re-arrange splitter to handle any constant.
13599 (subdi3): Use new predicate.
13600 (divdi3, moddi3): Ensure positive power-of-2.
13601 (movdi): Use rs6000_emit_set_const.
13602 (load_toc_v4_pic_di): Delete.
13604 2001-07-31 Graham Stott <grahams@redhat.com>
13606 * function.c (pad_below): Revert 2001-07-26 patch.
13608 Tue Jul 31 15:37:35 CEST 2001 Jan Hubicka <jh@suse.cz>
13610 * reg-stack (convert_regs_1): Fix best edge condition.
13612 Tue Jul 31 15:33:27 CEST 2001 Jan Hubicka <jh@suse.cz>
13614 * jump.c (duplicate_loop_exit_test): Better test for jumps
13615 entering the loop; create loop pre_header.
13617 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
13619 * doc/install.texi: Add s390 and s390x as new targets.
13620 * doc/invoke.texi: Add documentation of S/390 and zSeries
13622 * doc/md.texi: Add documentation of S/390 and zSeries constraints.
13624 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
13626 * config/m68k/m68k.md: Replace all general_operand with
13627 nonimmediate_operand for all destinations.
13628 * config/m68k/m68k.c (not_sp_operand): Likewise.
13630 Mon Jul 30 23:20:34 EDT 2001 John Wehle (john@feith.com)
13632 * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
13634 2001-07-30 Richard Henderson <rth@redhat.com>
13636 * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
13637 * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
13639 2001-07-30 Roman Zippel <zippel@linux-m68k.org>
13641 * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
13642 Add missing doc strings
13643 * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
13644 * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
13646 Mon Jul 30 22:16:08 CEST 2001 Jan Hubicka <jh@suse.cz>
13648 * i386.c (ix86_output_main_function_alignment_hack): New function.
13649 (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
13651 * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
13652 edges by EDGE_DFS_BACK flag.
13653 (dump_edge_info): Add dfs_back flag.
13654 * basic-block.h (EDGE_DFS_BACK): New constant.
13655 (mark_dfs_back_edges): Declare.
13656 * alias.c (loop_p): Remove.
13657 (mark_constant_function): Use mark_dfs_back_edges.
13659 * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
13660 (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
13661 (compensate_edge): Break out from ...
13662 (convert_regs_1): ... here; do smart choosing of stack_out to copy.
13663 (convert_regs_2): Set block_done once block is really done;
13664 Do updating of the predecessors counts.
13666 * toplev.c (rest_of_compilation): Recompute block_for_insn
13667 before post-reload cfg_cleanup.
13668 * function.c (thread_prologue_epilogue_insns):
13669 Call set_block_for_new_insns when emitting prologue directly.
13671 2001-07-30 Andreas Jaeger <aj@suse.de>
13673 * jump.c: Add prototype for mark_modified_reg.
13675 * cse.c (set_live_p): Add unused attribute.
13677 * gcov.c (calculate_branch_probs): Use gcov_type to avoid
13679 (scan_for_source_files): Use long for count to avoid overflow.
13680 (output_data): Likewise.
13681 (output_data): Don't use string concatatenation to silence gcc
13684 * predict.c: Fix typos and grammar.
13686 * gcse.c (insert_insn_end_bb): Remove unused variables.
13688 Mon Jul 30 21:54:53 CEST 2001 Jan Hubicka <jh@suse.cz>
13690 * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
13691 (attempt_auto_inc): LIkewise.
13692 (mark_used_reg): Likewise.
13693 (try_pre_increment_1): Likewise.
13694 * regclass.c (regclass): Likewise.
13695 * global.c (allocno_compare): Update comment; change scaling factor.
13696 * local-alloc.c (QTY_CMP_PRI): Likewise.
13697 * regs.h (REG_FREQ_FROM_BB): New.
13698 (REG_FREQ_MAX): Likewise.
13700 2001-07-30 H.J. Lu <hjl@gnu.org>
13702 * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
13705 2001-07-30 H.J. Lu (hjl@gnu.org)
13707 * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
13708 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
13709 (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
13711 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
13713 * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
13714 as -mthumb-interwork when -mcpu=arm7 is specified.
13716 Mon Jul 30 17:44:43 CEST 2001 Jan Hubicka <jh@suse.cz>
13718 * predict.def (noreturn, loop branch, loop exit): Mark as first
13721 Mon Jul 30 12:52:11 CEST 2001 Jan Hubicka <jh@suse.cz>
13723 * combine.c (try_combine): Avoid barrier after noop jumps.
13725 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13727 * cpphash.h (struct cpp_reader): Remove import_warning.
13728 * cpplib.c (skip_rest_of_line): Don't bother turning off
13730 (parse_include): Move include handling to...
13731 (do_include_common): ... here. Move import warning from...
13732 (do_import): ... here.
13733 (do_pragma_poison): Don't do a callback for poison identifiers.
13734 * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
13735 * cppmain.c (setup_callbacks): Similarly.
13737 Sun Jul 29 23:26:50 CEST 2001 Jan Hubicka <jh@suse.cz>
13739 * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
13740 handle multiple sets.
13741 * except.c (sjlj_mark_call_sites): .... here.
13742 * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
13744 Sun Jul 29 21:38:45 CEST 2001 Jan Hubicka <jh@suse.cz>
13746 Suggested by Richard Henderson and Richard Kenner:
13747 * combine.c (recog_for_combine): Use the fake recog
13748 only if instruction does not match.
13749 * rtl.h (NOOP_MOVE_INSN_CODE): New.
13750 * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
13752 * combine.c (try_combine): Discover noop jump as direct jump.
13754 2001-07-29 Daniel Berlin <dan@cgsoftware.com>
13756 * df.c (df_rd_global_compute): Add successors to worklist, not
13758 (df_ru_global_compute): Ditto.
13760 2001-07-27 Daniel Berlin <dan@cgsoftware.com>
13762 * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
13763 increment REG_N_SETS.
13765 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
13767 * sbitmap.h: New prototype for sbitmap_a_xor_b.
13769 * sbitmap.c (sbitmap_a_xor_b): New function.
13770 ifdef the basic block stuff on IN_GCC.
13772 2001-07-29 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13774 * cppexp.c (parse_defined): Always record the macro name.
13775 (lex): Don't worry about identifiers, or special-case
13777 (_cpp_parse_expr): Figure out at the end of the routine
13778 whether we saw a valid !defined() expression.
13779 * cppfiles.c (stack_include_file): Update for mi_valid.
13780 (_cpp_pop_file_buffer): Similarly.
13781 * cpplex.c (_cpp_lex_token): Similarly.
13782 * cpphash.h (enum mi_state, enum mi_ind, mi_state,
13783 mi_if_not_defined, mi_lexed): Remove.
13785 * cpplib.c (do_if): Simplify.
13786 (do_endif, push_conditional, _cpp_handle_directive): Update
13787 for renaming of mi_state to mi_valid.
13789 * cpp.texi: Add index entries for digraphs, and add comment
13790 that C++ refers to them as alternative tokens.
13792 Sun Jul 29 18:59:13 CEST 2001 Jan Hubicka <jh@suse.cz>
13794 * basic-block.h (CLEANUP_PRE_LOOP): New.
13795 * except.c (finish_eh_generation): Update call of cleanup_cfg.
13796 * sibcall.c (optimize_sibling_calls): Likewise.
13797 * toplev.c (rest_of_compilation): Likewise.
13798 * flow.c (try_forward_edges): Take argument MODE;
13799 do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
13800 (try_optimize_cfg): Update call of try_forward_edges.
13802 Sun Jul 29 18:59:56 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
13803 Jan Hubicka <jh@suse.cz>
13805 * (validate_replace_rtx_1): Fix simplification of MINUS.
13807 2001-07-29 Neil Booth <neil@daikokuya.demon.co.uk>
13809 PR preprocessor/3669
13810 * cppinit.c (init_dependency_output): Turn off dump requests
13811 if sending dependencies to stdout.
13813 2001-07-28 Richard Henderson <rth@redhat.com>
13815 * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
13818 2001-07-28 Golubev I. N. <gin@mo.msk.ru>
13820 * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
13822 2001-07-28 Kazu Hirata <kazu@hxi.com>
13824 * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
13825 is VAR_DECL first to prevent an ICE.
13827 2001-07-28 Richard Henderson <rth@redhat.com>
13829 * varasm.c (immed_real_const_1): Don't elide special cases for
13831 (clear_const_double_mem): Clear const_tiny_rtx too.
13833 2001-07-28 Richard Henderson <rth@redhat.com>
13835 * dwarf2out.c (dw_val_class_offset): New.
13836 (struct dw_ranges_struct, dw_ranges_ref): New.
13837 (ranges_table, ranges_table_allocated): New.
13838 (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
13839 (add_AT_offset, add_ranges, output_ranges): New.
13840 (print_die, output_die): Handle dw_val_class_offset.
13841 (attr_checksum, size_of_die, value_format): Likewise.
13842 (gen_lexical_block_die): Handle non-contiguous blocks.
13843 (gen_block_die): Likewise.
13844 (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
13845 if needed. Dump the ranges table.
13846 * final.c (final_start_function): Remove unnecessary notes and
13847 rebuild the block tree before numbering the blocks.
13848 * function.c (reorder_blocks_0): Walk the existing block tree
13849 to unmark all blocks.
13850 (reorder_blocks_1): Create block fragments when duplicate block
13852 (reorder_fix_fragments): New.
13853 (reorder_blocks): Call it.
13854 * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
13856 2001-07-28 Richard Henderson <rth@redhat.com>
13858 * emit-rtl.c (adjust_address): Make a copy of the memory address.
13860 2001-07-28 Richard Henderson <rth@redhat.com>
13862 * flow.c (add_to_mem_set_list): New function.
13863 (init_propagate_block_info): Use it.
13864 (mark_set_1): Likewise.
13865 (insn_dead_p): Canonicalize memory address for dead store
13866 comparison. Allow wider mode stores to kill narrower mode stores.
13867 (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
13868 (invalidate_mems_from_set): Don't handle MEMs.
13870 2001-07-28 Kazu Hirata <kazu@hxi.com>
13872 * config/h8300/h8300.h: Fix formatting.
13874 Sat Jul 28 23:35:22 CEST 2001 Jan Hubicka <jh@suse.cz>
13876 * basic-block.h (EDGE_FREQUENCY): New macro.
13877 * bb-reorder (fixup_reorder_chain): Set counts and frequencies
13879 * flow.c (find_sub_basic_blocks): Likewise.
13880 (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
13881 (redirect_edge_and_branch): Use EDGE_FREQUENCY.
13883 * predict.c (DEF_PREDICTOR): New argument FLAGS.
13884 (HITRATE): New macro.
13885 (PRED_FLAG_FIRST_MATCH): New constant.
13886 (predictor_info): New field flgags.
13887 (combine_predictions_for_insn): Use DS theory to combine
13888 probabilities; set the edge probabilities when finished.
13889 (estimate_probability): Avoid duplicated matches
13890 of LOOP_BRANCH heuristics for nested loops; update comment.
13891 * predict.def: Add flags for each prediction, set probabilities
13892 according to B&L paper.
13893 * predict.h (DEF_PREDICTOR): New argument FLAGS.
13895 * profile.c (compute_branch_probabilities): Cleanup way the edge
13896 probabilities are computed and REG_BR_PROB notes are dropped; if
13897 values does not match, emit error.
13898 (init_branch_prob): Do error instead of warning when profile driven
13899 feedback is missing or corrupt.
13901 2001-07-27 DJ Delorie <dj@redhat.com>
13903 * ifcvt.c (noce_get_alt_condition): If the condition is a compare
13904 against a constant, try to adjust the compare to have the desired
13905 constant in it so that min/max optimizations happen more often.
13907 Fri Jul 27 17:53:00 CEST 2001 Jan Hubicka <jh@suse.cz>
13909 * flow.c (last_loop_beg_note): New function.
13910 (redirect_edge_and_branch): Use it.
13911 (split_edge): Likewise.
13913 * alias.c (loop_p): Avoid uninitialized memory access.
13915 * flow.c (try_forward_edges): Avoid accessing freed memory.
13917 * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
13920 2001-07-26 Andrew Haley <aph@redhat.com>
13921 Joern Rennecke <amylaar@redhat.com>
13923 * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
13924 (SUBTARGET_CPP_ENDIAN_SPEC): New.
13925 (SUBTARGET_CPP_SPEC): New.
13926 (CPP_SPEC): Remove.
13927 * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
13928 (SUBTARGET_CPP_PTR_SPEC): New.
13929 (CPP_DEFAULT_CPU_SPEC): New.
13930 (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
13931 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
13932 (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
13933 SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
13934 (SUBTARGET_CPP_SPEC): Define as an empty string.
13936 2001-07-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13938 * doc/install.texi (Configuration): Properly link the host
13939 specific instructions also when generating HTML.
13941 Fri Jul 27 00:33:35 EDT 2001 John Wehle (john@feith.com)
13943 * flow.c (redirect_edge_and_branch_force): Test
13944 target->global_live_at_start.
13946 2001-07-26 Richard Henderson <rth@redhat.com>
13948 * simplify-rtx.c (avoid_constant_pool_reference): Export.
13949 * rtl.h (avoid_constant_pool_reference): Declare it.
13950 * dwarf2out.c (add_location_or_const_value_attribute): Use it.
13951 (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
13953 Thu Jul 26 22:30:22 CEST 2001 Jan Hubicka <jh@suse.cz>
13955 * rtl.h (cleanup_barriers): Declare.
13956 * jump.c (cleanup_barriers): New function.
13957 * toplev.c (rest_of_compilation): Call cleanup_barriers
13958 before loop optimizer and after bb_reorder.
13960 * flow.c (back_edge_of_syntactic_loop_p): New.
13961 (split_edge): Use it.
13963 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13965 * glimits.h (_MACH_MACHLIMITS_H_): Delete.
13967 Thu Jul 26 22:22:21 2001 Denis Chertykov <denisc@overta.ru>
13969 * cse.c (cse_process_notes): Replace any registers if the address
13972 Thu Jul 26 14:04:03 EDT 2001 John Wehle (john@feith.com)
13974 * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
13975 (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
13976 (propagate_block): Update prototype.
13977 * flow.c (update_life_info): Simplify the CFG and
13978 recalculate the global regs which are alive when
13979 removing dead code during a global update.
13980 (propagate_block): Return non-zero if an INSN is
13983 2001-07-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13985 * Makefile.in (LIBICONV): Define.
13987 2001-07-26 Catherine Moore <clm@redhat.com>
13989 * config/v850/v850.h (ENCODE_SECTION_INFO): Change order
13990 of conditional to avoid tree checking errors.
13992 2001-07-26 Kazu Hirata <kazu@hxi.com>
13994 * regmove.c (regmove_optimize): Don't replace a reg with
13995 another reg of a different mode.
13997 2001-07-26 Andrew MacLeod <amacleod@redhat.com>
13999 * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
14000 limit length of dependency flush list.
14001 * params.h (MAX_PENDING_LIST_LENGTH): Define.
14002 * sched-int.h (struct deps): Add pending_flush_length field.
14003 * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
14004 has 1 element in it.
14005 (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
14006 (sched_analyze): After a jump, if the pending memory flush list is too
14007 large, flush the pending lists.
14008 (init_deps): Initialize pending_flush_length to 0.
14009 * doc/invoke.texi (max_pending_list_length): Document parameter.
14011 2001-07-26 Neil Booth <neil@daikokuya.demon.co.uk>
14013 * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
14014 * dbxout.c (dbxout_global_decl): Move outside #ifdef.
14015 * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
14017 2001-07-26 Neil Booth <neil@cat.daikokuya.demon.co.uk>
14019 * cpphash.h (struct_lexer_state): Delete was_skipping.
14020 Move skipping here from struct cpp_reader.
14021 * cpplex.c (parse_identifier): Update.
14022 (_cpp_lex_token): Don't skip tokens in a directive.
14023 * cpplib.c (struct if_stack): Update.
14024 (start_directive, end_directive): Don't change skipping state.
14025 (_cpp_handle_directive): Update.
14026 (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
14027 (do_else, do_endif): Update; only check for excess tokens if not
14028 in a skipped conditional block.
14029 (push_conditional): Update for new struct if_stack.
14031 2001-07-26 Graham Stott <grahams@redhat.com>
14033 * function.c (locate_and_pad_parm): Also pad initial offset
14034 so that the total argument size also includes the padding.
14036 2001-07-26 Graham Stott <grahams@redhat.com>
14038 * gensupport.c (alter_output_for_insn): Correct enable checking failure
14039 change XSTR to XTMPL.
14041 (process_one_cond_exec): Likewise
14043 2001-07-25 Richard Henderson <rth@redhat.com>
14045 * varasm.c (assemble_variable): Create DECL_RTL before setting
14048 Thu Jul 26 00:19:30 CEST 2001 Jan Hubicka <jh@suse.cz>
14050 * predict.c (estimate_probability): Avoid duplicated predictions.
14052 * loop.c (find_and_verify_loops): Grok multiple barriers.
14054 Wed Jul 25 18:00:05 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14056 * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
14058 * dbxout.c: Consistently use putc instead of fputc.
14059 (print_wide_int): New function; call instead of direct fprintf.
14060 (dbxout_type_index): Adjust calls of CHARS to be more accurate.
14061 (dbxout_type_fields, dbxout_type_method_1): Likewise.
14062 (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
14063 (print_int_cst_octal): Likewise.
14064 (print_octal): Show we wrote characters.
14065 (dbxout_type): Set have_used_extensions in more places.
14067 2001-07-25 Catherine Moore <clm@redhat.com>
14069 * config/v850/v850.c (v850_va_arg): Use addr
14070 instead of valist to build incr.
14072 Wed Jul 25 22:48:59 CEST 2001 Jan Hubicka <jh@suse.cz>
14074 * flow.c (delete_dead_jumptables): New function.
14075 (life_analyzis): Call it.
14076 * bb-reorder.c (skip_insns_after_block): Handle contradictory
14079 2001-07-25 Richard Henderson <rth@redhat.com>
14081 * except.c (reachable_handlers): Handle a region being removed
14082 out from under a RESX.
14084 2001-07-25 Richard Henderson <rth@redhat.com>
14086 * config/alpha/alpha.c (alpha_emit_conditional_move): Always
14087 swap GE/GT if it is an fp comparison.
14089 2001-07-25 Andrew Haley <aph@cambridge.redhat.com>
14091 * alias.c (rtx_equal_for_memref_p): Allow strings as types in
14094 Wed Jul 25 08:25:01 2001 Jeffrey A Law (law@cygnus.com)
14096 * ssa.c (rename_insn_1): Do not wrap an assignment to a
14097 paradoxical SUBREG inside a SEQUENCE. Fix minor formatting
14100 * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
14101 throw an exception.
14102 (visit_expression): When attempting to simplify an expression,
14103 retrieve any modes for arguments before they are simplified
14106 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
14107 Janis Johnson <janis@us.ibm.com>
14109 * stmt.c (expand_goto): A nonlocal goto can be a call too.
14110 * builtins.c (expand_builtin_longjmp): Reverse label and static chain
14111 pointer parameters to match documented usage of nonlocal_goto.
14112 * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
14113 parameters to their correct order.
14114 * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
14115 parameters to their correct order.
14117 2001-07-25 Andrew MacLeod <amacleod@redhat.com>
14119 * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
14121 2001-07-25 Jan Hubicka <jh@suse.cz>
14122 Richard Henderson <rth@redhat.com>
14124 * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
14126 (make_edges): New argument update_p; populate the edge cache if set.
14127 (find_basic_blocks): Update make_edges invocation.
14129 2001-07-24 Joel Sherrill <joel@OARcorp.com>
14131 * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
14133 2001-07-24 Joel Sherrill <joel@OARcorp.com>
14135 * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
14136 -Acpu and -Amachine.h.
14137 * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
14138 Corrected header to say ELF not a.out.
14139 * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
14140 when given -msoft-float.
14142 2001-07-24 Joel Sherrill <joel@OARcorp.com>
14144 * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
14145 extra multilib parts like arm-elf.
14146 (i960-*-coff*, i960-*-rtems): Should not use collect2.
14147 (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
14148 crtfini.o as extra multilib parts.
14150 2001-07-24 Joel Sherrill <joel@OARcorp.com>
14152 * configure.in: Add rtems as a supported thread model.
14153 * gthr-rtems.h: Add missing entry point __gthread_active_p.
14154 * configure: Rebuilt.
14156 2001-07-24 Lars Brinkhoff <lars@nocrew.org>
14158 * stor-layout.c (get_mode_alignment): make it work when
14159 BITS_PER_UNIT is not a power of two.
14160 * builtins.c (get_pointer_alignment): Likewise.
14162 2001-07-24 Richard Henderson <rth@redhat.com>
14164 * simplify-rtx.c (avoid_constant_pool_reference): Coerce
14165 the retrieved constant into the expected mode.
14167 Wed Jul 25 01:41:27 CEST 2001 Jan Hubicka <jh@suse.cz>
14169 * flow.c (try_simplify_condjump): Avoid duplicated edges.
14170 (verify_flow_info): Check for duplicated edges; clarify
14173 * flow.c (block_label): Update basic_block_for_insn.
14174 (commit_edge_insertions): Call compute_bb_for_insn.
14176 * flow.c (purge_dead_edges): Handle conditional jumps and conditional
14179 * flow.c (redirect_edge_and_branch,
14180 try_optimize_cfg): Use redirect_edge_succ_nodup
14181 (redirect_edge_succ_nodup): New.
14182 * basic_block.h (redirect_edge_succ_nodup): Declare.
14184 * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
14187 Wed Jul 25 00:32:49 CEST 2001 Jan Hubicka <jh@suse.cz>
14189 * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
14190 (try_crossjump_to_edge): Update commetns.
14191 (try_crossjump_bb): Likewise.
14193 2001-07-24 Richard Henderson <rth@redhat.com>
14195 * combine.c (distribute_notes): Move set of need_refresh
14196 for noop_move_p down to catch all cases.
14198 Tue Jul 24 20:32:44 CEST 2001 Jan Hubicka <jh@suse.cz>
14200 * recog.c (split_all_insns_noflow): New.
14201 * rtl.h (split_all_insns_noflow): Declare.
14202 * ia64.c (ia64_reorg): Use split_all_insns_noflow.
14203 * m68hc11.c (m68hc11_reorg): Likewise.
14204 * sh.c (machine_dependent_reorg): Likewise.
14205 * toplev.c (rest_of_compilation): Likewise for last split_all_insns
14208 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
14210 * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
14211 (ashlsi3_n splitter): Likewise.
14212 (lshrsi3_n splitter): Likewise.
14214 (GOTaddr2picreg): Make const SImode.
14215 (sym_label2reg): Likewise.
14216 (symGOT2reg): Likewise.
14217 (symGOTOFF2reg) Likewise.
14219 (casesi_worker_0): Make unspec SImode.
14221 2001-07-18 Andrew Haley <aph@cambridge.redhat.com>
14223 * config/sh/sh.c (barrier_align): Check that an operand really is
14224 an insn before extracting its INSN_CODE.
14226 2001-07-24 Andrew Haley <aph@cambridge.redhat.com>
14228 * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
14231 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
14232 for SImode to prevent overflow.
14234 2001-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14236 * config/mips/irix6-libc-compat.c: New file.
14237 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
14238 * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
14239 passing workaround.
14241 2001-07-24 lars brinkhoff <lars@nocrew.org>
14243 * rtl.texi (REG_POINTER): Document.
14244 (Machine Modes): Document BImode, OImode, PQImode, PHImode,
14245 QFmode, HFmode, TQFmode, QCmode, and HCmode.
14247 Tue Jul 24 10:49:40 CEST 2001 Jan Hubicka <jh@suse.cz>
14249 * flow.c (delete_noop_moves): Do not confuse libcall regions.
14251 2001-07-23 Richard Henderson <rth@redhat.com>
14253 * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
14255 2001-07-23 Kazu Hirata <kazu@hxi.com>
14257 * config/h8300/h8300-protos.h: Add a prototype for
14258 general_operand_dst_push.
14259 * config/h8300/h8300.c (general_operand_dst_push): New.
14260 * config/h8300/h8300.h (OK_FOR_T): New.
14261 (EXTRA_CONSTRAINT): Use it.
14262 * config/h8300/h8300.md (movqi_push): Remove and integrate into
14263 the existing movqi pattern.
14264 (movhi_push): Likewise.
14266 * reload.c: Fix comment typos.
14268 Mon Jul 23 23:34:07 CEST 2001 Jan Hubicka <jh@suse.cz>
14270 * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
14272 2001-07-23 H.J. Lu (hjl@gnu.org)
14274 * doc/extend.texi: Update __builtin_return_address and
14275 __builtin_frame_address.
14277 2001-07-23 Richard Henderson <rth@redhat.com>
14279 * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
14281 * config/i386/i386.md: New setcc+movzbl peephole2.
14283 2001-07-23 Neil Booth <neil@cat.daikokuya.demon.co.uk>
14285 * objc/Make-lang.in (objc-act.o): Depend on debug.h.
14286 * objc/objc-act.c: Include debug.h.
14287 (synth_module_prologue): Save and restore debug hooks too.
14289 2001-07-23 lars brinkhoff <lars@nocrew.org>
14291 * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
14292 and C4X_FLOAT_FORMAT.
14293 (BOOL_TYPE_SIZE): Document.
14295 Mon Jul 23 11:54:23 2001 Clinton Popetz <cpopetz@cpopetz.com>
14297 * unroll.c (loop_iterations): Fix miscalculation of initial
14300 2001-07-13 Andrew Haley <aph@redhat.com>
14302 * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
14303 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
14304 * config/sh/sh.c (sh_can_redirect_branch): New function.
14305 * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
14306 * reorg.c (steal_delay_list_from_target): Use
14307 MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
14309 Mon Jul 23 17:20:18 CEST 2001 Jan Hubicka <jh@suse.cz>
14311 * flow.c (try_simplify_condjump): Unlink insn chain on
14312 fallthru edge; use can_fallthru.
14314 Mon Jul 23 16:03:19 CEST 2001 Jan Hubicka <jh@suse.cz>
14316 * basic-block.h (find_sub_basic_block): Declare.
14317 * flow.c (make_edges): New arguments MIN and MAX;
14318 (find_sub_basic_blocks): Revamp to use make_edges
14319 and purge_dead_edges.
14320 (find_basic_blocks): Update call of find_sub_basic_block.
14322 * recog.c (split_all_insns): Always expect CFG to be consistent;
14323 call find_sub_basic_blocks in case something has changed.
14324 * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
14327 * basic-block.h (delete_noop_moves): Declare.
14328 * combine.c (combine_instructions): Call it.
14329 (recog_for_combine): Tolerate noop moves
14330 (distribute_notes): Force refresh when register dies at noop move.
14331 * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
14333 (life_analysis): Update delete_noop_moves call.
14334 (set_noop_p): Move too ...
14335 * rtlanal.c (noop_move_p): ... here.
14336 * rtl.h (noop_move_p): Declare.
14338 * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
14339 * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
14341 * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
14342 (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
14344 2001-07-23 Hans-Peter Nilsson <hp@bitrange.com>
14346 * reload.c (push_reload): Fix typo in comment.
14347 (find_reloads_address): Ditto.
14348 (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
14350 2001-07-22 Richard Henderson <rth@redhat.com>
14352 * flow.c: Grammar check and clarify a lot of comments.
14353 (try_simplify_condjump): Rename variables to be clearer.
14354 (try_forward_edges): Skip complex and fallthru edges.
14355 Rearrange tests to avoid duplicate checks.
14356 (flow_find_cross_jump): Likewise.
14357 (outgoing_edges_match): Allow match if neither branch has
14358 probability data. Loosen probability match to 5%.
14359 (try_crossjump_to_edge): Hoist repeated indirection into
14361 (try_crossjump_bb): Don't check complex edges. Eliminate
14362 redundant crossjump tests.
14363 (try_optimize_cfg): Fix use of bool. Reorganize cheaper
14364 checks before more expensive checks.
14366 2001-07-22 Richard Henderson <rth@redhat.com>
14368 * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
14369 INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
14372 2001-07-22 Richard Henderson <rth@redhat.com>
14374 * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
14375 (const_sint32_operand): Likewise.
14376 * m68k.md (anon mulsi pattern): Use const_int_operand not
14377 const_sint32_operand.
14378 (umulsi3_highpart): Zero extend a constant input.
14379 (smulsi3_highpart): Don't bother checking SImode constant.
14380 (const_umulsi3_highpart): Give op3 DImode.
14381 (const_smulsi3_highpart): Likewise.
14383 2001-07-22 Richard Henderson <rth@redhat.com>
14385 * flow.c (split_block): Make sure bb_note is included in the
14386 new block when splitting before a label.
14388 Sun Jul 22 23:28:56 CEST 2001 Jan Hubicka <jh@suse.cz>
14390 * basic-block.h (redirect_edge_and_branch_force,
14391 redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
14392 * flow.c (redirect_edge_and_branch_force,
14393 redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
14394 (redirect_edge_and_branch_force): Fix copying of lifeness information.
14395 (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
14396 * ifcvt.c (dead_or_predictable): Take BB as an new destination
14397 instead of label; update CFG after transformation.
14398 (find_if_case_1): Update call, use redirect_edge_and_branch_force
14399 for finishing the transformation; handle even case where ELSE
14400 does not follow THEN.
14401 (find_if_case_2): Update call of dead_or_predictable; simplify
14404 * emit-rtl.c (split_branch_probability): New global variable.
14405 (try_split): Take care to set split_branch_probability and
14406 create REG_BR_PROB note for new jump insns.
14407 * md.texi (define_split): Document new feature.
14409 * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
14411 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
14413 * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
14414 (asm_out_file): Remove redundant declaration.
14415 (assemble_asm): Remove old #if 0 block.
14416 (assemble_variable): Remove end of function; debug output is
14417 now handled with global_decl. Remove old #if 0 block. Update.
14418 Remove saved_in_section and associated no-op code.
14419 * Makefile.in (varasm.o): Correct dependencies.
14421 Sun Jul 22 17:55:11 2001 Alexandre Oliva <aoliva@redhat.com>
14423 * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
14424 the definition in defaults.h.
14426 Sun Jul 22 21:31:04 CEST 2001 Jan Hubicka <jh@suse.cz>
14428 * jump.c: Update comments.
14429 (delete_barrier_successors, delete_unreferenced_labels,
14430 delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
14431 delete_labelref_insn, redirect_tablejump, jump_optimize_1,
14432 jump_optimize, jump_optimize_minimal): Kill.
14433 (rebuild_jump_labels): Move code from jump_optimize_1.
14434 (purge_line_number_notes): Likewise.
14435 (copy_loop_headers): Likewise.
14436 * reg-stack.c: Update comment.
14437 * stmt.c: Likewise.
14438 * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
14439 JUMP_AFTER_REGSCAN): Kill.
14440 * toplev.c (rest_of_compilation): Use cleanup_cfg, call
14441 purge_line_number_notes and copy_loop_headers.
14443 2001-07-22 Neil Booth <neil@daikokuya.demon.co.uk>
14444 Richard Henderson <rth@redhat.com>
14446 * dbxout.c (dbxout_global_decl): New.
14447 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
14448 * sdbout.c (sdbout_finish): New.
14449 (sdbout_debug_hooks): Use it, add comments.
14450 (sdbout_global_decl): Defer initialised public vars to
14452 * varasm.c (assemble_variable): Don't output debug information
14453 for file-scope variables.
14455 2001-07-22 Richard Henderson <rth@redhat.com>
14457 * config/alpha/alpha.c (get_trap_mode_suffix): New.
14458 (get_round_mode_suffix): New.
14459 (print_operand): Use them for [/]. Remove support for [&'`()+].
14460 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
14461 * config/alpha/alpha.md (attr round_suffix): New.
14462 (attr trap_suffix): New.
14463 (all insns): Set them appropriately. Use %/ instead of the
14464 myriad punctuators.
14466 2001-07-22 Neil Booth <neil@cat.daikokuya.demon.co.uk>
14468 * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
14470 2001-07-22 Richard Henderson <rth@redhat.com>
14472 * regrename.c (regrename_optimize): Compute nregs for each
14473 potential target register.
14475 2001-07-21 Neil Booth <neil@daikokuya.demon.co.uk>
14476 Richard Henderson <rth@redhat.com>
14478 * dbxout.c (dbxout_global_decl): New.
14479 (xcoff_debug_hooks, dbx_debug_hooks): Use it.
14480 * sdbout.c (sdbout_finish): New.
14481 (sdbout_debug_hooks): Use it, add comments.
14482 (sdbout_global_decl): Defer initialised public vars to
14484 * varasm.c (assemble_variable): Don't output debug information
14485 for file-scope variables.
14487 2001-07-21 H.J. Lu (hjl@gnu.org)
14489 * config/mips/mips.c (mips_cpu): Moved into ...
14490 (override_options): Here.
14492 * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
14494 (mips_cpu): Removed.
14496 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14498 * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
14499 ("iorqi3"): Likewise.
14500 ("xorqi3"): Likewise.
14501 ("*addhi3"): Fix constraint to avoid reloading in a soft register.
14502 ("*subhi3_sp): Likewise.
14503 ("*subhi3"): Likewise.
14504 ("extendhisi2"): Accept D, X and Y as source operand to avoid
14507 2001-07-21 Nathan Sidwell <nathan@codesourcery.com>
14509 * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
14510 * config/freebsd.h: Likewise.
14511 * config/linux.h: Likewise.
14512 * config/openbsd.h: Likewise.
14513 * config/alpha/linux-elf.h: Likewise.
14514 * config/arm/linux-elf.h: Likewise.
14515 * config/d30v/d30v.h: Likewise.
14516 * config/fr30/fr30.h: Likewise.
14517 * config/ia64/aix.h: Likewise.
14518 * config/ia64/ia64.h: Likewise.
14519 * config/mips/linux.h: Likewise.
14520 * config/pj/pj.h: Likewise.
14521 * config/rs6000/linux.h: Likewise.
14522 * config/sparc/linux.h: Likewise.
14523 * config/sparc/linux64.h: Likewise.
14525 2001-07-20 Bruce Korb <bkorb@gnu.org>
14527 * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
14528 because getc() and char* may disagree on signedness.
14530 2001-07-20 Richard Henderson <rth@redhat.com>
14532 * doc/rtl.texi (REG_DEAD): Update for current semantics.
14534 * flow.c (try_redirect_by_replacing_jump): Correctly compute which
14535 insns to delete in the presence of cc0 in a jump insn.
14537 Fri Jul 20 22:14:49 CEST 2001 Roman Zippel <zippel@linux-m68k.org>
14538 Jan Hubicka <jh@suse.cz>
14540 * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
14541 of doing the change by hand.
14543 Fri Jul 20 21:59:42 CEST 2001 Jan Hubicka <jh@suse.cz>
14545 * rtlanal.c (set_noop_p): Return true for noop jumps.
14547 * expr.c (emit_single_push_insn): Add call to push expander.
14548 * expr.h (optab_index): Add OTI_push
14549 (push_optab): New constant.
14550 * genopinit.c (optabs): Add push_optab.
14551 * optabs.c (init_optab): Init push optab.
14552 * md.texi (push??1): Document
14554 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14556 * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
14557 expand to emit the pattern; put a REG_INC note for push/pop
14559 ("movdf", "movdf_internal"): Likewise.
14560 ("movsi", "movsi_internal"): Likewise.
14561 ("movsf", "movsf_internal"): Likewise.
14562 ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
14564 2001-07-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
14566 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
14569 2001-07-20 Daniel Berlin <dan@cgsoftware.com>
14571 * params.def: Change default max inline insns to 100.
14573 2001-07-20 Diego Novillo <dnovillo@redhat.com>
14575 * combine.c (combine_simplify_rtx): Generate a new shift operation
14576 when simplifying the first operand of a (neg (ashift)) expression.
14578 2001-07-20 Roman Lechtchinsky <rl@cs.tu-berlin.de>
14580 * regclass.c (N_REG_INTS): Use only 32 bits per element.
14582 2001-07-20 Kelley Cook <kelley.cook@home.com>
14584 * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
14585 information. Move rest into ...
14586 (*-*-solaris): ... here. Eliminate redundant information and
14587 reword necessary packages section. Delete 4.x assembler bug info.
14588 (sparc-sun-*): Merge into ...
14589 (sparc-sun-sunos*): here.
14591 2001-07-20 Catherine Moore <clm@redhat.com>
14593 * config/v850/v850.md (casesi): Generate LABEL_REF
14596 Fri Jul 20 14:12:57 CEST 2001 Jan Hubicka <jh@suse.cz>
14598 * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
14599 * i386.c (ix86_zero_extend_to_Pmode): Make global.
14600 * i386.md (strclrsi expander): Use it.
14602 Fri Jul 20 13:24:16 CEST 2001 Jan Hubicka <jh@suse.cz>
14604 * integrate.c (copy_insn_list): handle
14605 NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
14606 (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
14607 identically as to CODE_LABEL.
14609 * fold-const (fold): Convert A/B/C to A/(B*C) and
14612 * except.c (connect_post_landing_pads): Delete the RESX insns.
14614 2001-07-20 Aldy Hernandez <aldyh@redhat.com>
14616 * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
14618 * config/mips/mips.md (nmadd/nmsub): Use macro.
14620 2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
14622 * cppinit.c (remove_dup_dir): Make static.
14623 (remove_dup_dirs): Make static. Only warn about preempting a
14624 system directory with a non-system directory.
14626 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
14628 * ifcvt.c (noce_try_store_flag_constants): Correct order
14629 of parameters to trunc_int_for_mode.
14631 2001-07-19 Mark Mitchell <mark@codesourcery.com>
14633 * reorg.c (fill_simple_delay_slots): If an instruction might throw
14634 an exception that will be caught within this function, do not fill
14635 its delay slot with any subsequent instruction.
14637 2001-07-19 Steve Ellcey <sje@cup.hp.com>
14639 * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
14640 * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
14641 pointer extension instruction.
14642 * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
14643 * simplify-rtx.c (simplify_unary_operation) Likewise.
14644 * explow.c (convert_memory_address) Check value of
14645 POINTERS_EXTEND_UNSIGNED to avoid some conversions when
14647 * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
14648 MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
14649 * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
14650 Add Multilib Support.
14651 (POINTERS_EXTEND_UNSIGNED) Define for ILP32 support.
14652 * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
14653 Add Multilib Support.
14654 (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
14656 * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
14657 * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
14658 a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
14660 2001-07-19 Alexandre Oliva <aoliva@redhat.com>
14662 * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
14663 old and new operands in `<', `3' and `b'.
14665 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
14667 * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
14668 (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
14669 (toplev.o): Don't depend on xcoffout.h.
14670 * c-decl.c: Include debug.h
14671 (duplicate_decls): Use debug hook.
14672 * dbxout.c (dbxout_source_file, dbxout_args): Make static.
14673 (dbx_debug_hooks, xcoff_debug_hooks): Update.
14674 (dbxout_types): Remove.
14675 * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
14676 * debug.c (do_nothing_debug_hooks): Update.
14677 (debug_true_tree, debug_nothing_rtx): New.
14678 * debug.h (struct rtx_def): New.
14679 (struct gcc_debug_hooks): New hooks ignore_block,
14680 outlining_inline_function and label.
14681 (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
14682 dwarf2out_frame_finish): New.
14683 * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
14684 Make static, update prototype.
14685 (dwarf2_debug_hooks): Update.
14686 * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
14687 dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
14688 * dwarfout.c (dwarf_debug_hooks): Update.
14689 * emit-rtl.c: Include debug.h.
14690 (remove_unnecessary_notes): Use debug hook.
14691 * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
14692 (final_scan_insn): Use debug hook.
14693 * integrate.c (output_inline_function): Use debug hook.
14694 * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
14695 (sdb_debug_hooks): Update.
14696 * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
14697 * toplev.c: Don't include xcoffout.h.
14698 (note_outlining_of_inline_function, debug_ignore_block): Remove.
14699 * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
14701 * tree.h (dwarf2out_do_frame): Remove.
14703 2001-07-19 Catherine Moore <clm@cygnus.com>
14705 * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
14707 2001-07-19 Geoffrey Keating <geoffk@redhat.com>
14709 * reload1.c (eliminate_regs_in_insn): When updating a set
14710 to the frame pointer to the hardware frame pointer, perform
14711 the update always not just when REPLACE is set.
14713 * reload1.c (choose_reload_regs): Don't inherit a reload
14714 that crosses multiple registers if registers past the first
14715 don't fit in the desired class.
14717 * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
14718 when negating constants.
14720 2001-07-19 Toon Moene <toon@moene.indiv.nluug.nl>
14722 * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
14723 * doc/tree.texi: Ditto.
14725 2001-07-19 Mark Kettenis <kettenis@wins.uva.nl>
14726 Jakub Jelinek <jakub@redhat.com>
14728 * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
14729 (extract_cie_info): Handle "eh" augmentation properly,
14731 (struct frame_state, __frame_state_for): New.
14733 2001-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14735 * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
14736 HANDLE_SYSV_PRAGMA): Define.
14737 * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
14739 (copy_object): Caller changed.
14741 2001-07-19 Andreas Schwab <schwab@suse.de>
14743 * configure.in (assembler dwarf2 debug_line support): Define nop
14745 * configure: Regenerated.
14747 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
14749 * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
14751 * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
14752 to conditionally compiled block.
14753 (dbx_debug_hooks, xcoff_debug_hooks): Update.
14754 * dbxout.h (dbxout_function): Remove.
14755 * debug.c (do_nothing_debug_hooks): Update.
14756 * debug.h (struct gcc_debug_hooks): New hooks function_decl,
14757 global_decl, deferred_inline_function.
14758 * dwarf2out.c (dwarf2_debug_hooks): Update.
14759 (dwarf2out_global_decl): New.
14760 * dwarfout.c: Don't include dwarfout.h.
14761 (dwarfout_global_decl, dwarfout_function_decl,
14762 dwarfout_deferred_inline_function): New.
14763 (dwarf_debug_hooks): Update.
14764 * dwarfout.h: Remove.
14765 * final.c: Don't include dwarfout.h.
14766 * sdbout.c (sdbout_global_decl): New.
14767 (sdbout_debug_hooks): Update.
14768 * toplev.c: Don't include dwarfout.h.
14769 (check_global_declarations, rest_of_compilation): Use new debug hooks.
14770 (note_deferral_of_defined_inline_function): Remove.
14771 * toplev.h (note_deferral_of_defined_inline_function): Remove.
14772 * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
14773 * ch/lex.c: Don't include dwarfout.h.
14774 * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
14775 (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
14776 * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
14777 * cp/optimize.c: Include debug.h.
14778 (maybe_clone_body): Use debug hook.
14779 * cp/semantics.c: Include debug.h.
14780 (expand_body): Use debug hook.
14781 * po/POTFILES.in: Remove dwarfout.h.
14783 2001-07-19 Neil Booth <neil@daikokuya.demon.co.uk>
14785 * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
14786 * c-parse.in (yyerror, _yylex): Similarly.
14787 * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
14788 Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
14790 * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
14791 * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
14793 2001-07-18 Jeff Sturm <jsturm@one-point.com>
14795 * dwarf2out.c (dwarf2out_abstract_function): Don't emit
14796 in-class declaration at -g1. Fixes c++/2814.
14798 2001-07-18 Richard Henderson <rth@redhat.com>
14800 * doc/md.texi (reload_in/out): Document restrictions in predicates
14801 and constraints for these patterns. Document empty string matching
14804 2001-07-18 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14806 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
14808 Wed Jul 18 20:47:36 CEST 2001 Jan Hubicka <jh@suse.cz>
14810 * cse.c: Undo my previous patch.
14812 2001-07-18 Tom Tromey <tromey@redhat.com>
14815 * configure: Rebuilt.
14816 * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
14818 * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
14820 Wed Jul 18 18:46:30 CEST 2001 Richard Henderson <rth@cygnus.com>
14821 Jan Hubicka <jh@suse.cz>
14823 * flow.c (redirect_edge_and_branch): Bail out on complex edges.
14824 (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
14825 * jump.c (mark_jump_label): Do not forward branches.
14827 Wed Jul 18 18:35:01 CEST 2001 Jan Hubicka <jh@suse.cz>
14829 * cse.c (delete_trivially_dead_insns): Delete the libcall block
14830 when return value is unused.
14832 Wed Jul 18 18:28:16 CEST 2001 Jan Hubicka <jh@suse.cz>
14834 * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
14836 Wed Jul 18 12:05:29 2001 Nicola Pero <n.pero@mi.flashnet.it>
14838 * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
14839 on error. We can't blindly return the result of
14840 pthread_mutex_trylock because it returns a positive number on
14841 error, while we must return -1 on error.
14842 (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
14844 Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
14846 2001-07-18 Andreas Jaeger <aj@suse.de>
14848 * integrate.c (output_inline_function): Correct type of debug_hooks.
14850 2001-07-18 Toon Moene <toon@moene.indiv.nluug.nl>
14852 * combine.c (combine_simplify_rtx): DIV can be treated
14853 associatively for floats if unsafe math optimisations are enabled.
14855 2001-07-17 Richard Henderson <rth@redhat.com>
14857 * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
14859 2001-07-17 Richard Henderson <rth@redhat.com>
14861 * calls.c (prepare_call_address): New parameter SIBCALLP. If true,
14862 don't force the function address into a register.
14863 (expand_call, emit_library_call_value_1): Update callers.
14864 * builtins.c (expand_builtin_apply): Likewise.
14865 * expr.h (prepare_call_address): Update decl.
14867 2001-07-17 Chandrakala Chavva <cchavva@redhat.com>
14869 * config.gcc: For *-*-chorusos triplet, get chorus.h file from
14871 * config/i386/chorus.h: Move up.
14872 * config/sparc/chorus.h: Likewise.
14873 * config/rs6000/chorus.h: Likewise.
14874 * config/chorus.h: Moved here.
14876 2001-07-17 Andreas Schwab <schwab@suse.de>
14878 * configure.in (assembler eh_frame optimization): Handle big
14880 * configure: Regenerated.
14882 Tue Jul 17 23:43:31 CEST 2001 Jan Hubicka <jh@suse.cz>
14884 * expr.c (epxand_expr): Convert divisions into multiplications by
14885 reciprocals if -ffast-math.
14887 2001-07-17 Neil Booth <neil@daikokuya.demon.co.uk>
14889 * dbxout.c (dbxout_really_begin_function): Rename to
14890 dbxout_begin_function.
14891 (dbx_debug_hooks, xcoff_debug_hooks): Update.
14892 (dbxout_begin_function): Remove.
14893 (dbxout_function): Update.
14894 (dbxout_source_line): Update prototype.
14895 * dbxout.h (dbxout_begin_function): Remove.
14896 * debug.c (do_nothing_debug_hooks): Update.
14897 (debug_nothing_tree): Update.
14898 (debug_nothing_charstar_rtx): Remove.
14899 * debug.h (union tree_node): Declare.
14900 (struct rtx_def): Remove.
14901 (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
14902 begin_function. Change source_line prototype.
14903 (debug_nothing_tree): New.
14904 (debug_nothing_charstar_rtx): Delete.
14905 (dwarf2out_begin_prologue): Moved from ...
14906 * tree.h: ... here.
14907 * dwarf2out.c (dwarf2_debug_hooks): Update.
14908 (dwarf2out_begin_prologue): Update prototype. If genuine dwarf2
14909 debug info, call dwarf2out_source_line.
14910 (dwarf2out_souce_line): Update prototype.
14911 * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
14912 Change prototype, make static.
14913 (dwarfout_source_line): Update prototype.
14914 (dwarf_debug_hooks): Update.
14915 * dwarfout.h (dwarfout_begin_function): Remove.
14916 * final.c (final_start_function, final_scan_insn): Use appropriate
14917 debug hooks, update to use notice_source_line.
14918 (output_source_line): Rename notice_source_line. Don't call the
14919 source_line debug hook.
14920 * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
14921 make static, update prototype.
14922 (sdbout_mark_begin_function): Rename sdbout_begin_function, update
14924 (sdbout_end_prologue): New.
14925 (sdbout_source_line): Update prototype.
14926 (sdbout_debug_hooks): Update.
14927 (sdbout_symbol): Remove unused var.
14928 * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
14930 * varasm.c: Include debug.h.
14931 (assemble_start_function): Use begin_function debug_hook.
14932 * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
14933 update with prototype.
14934 (xcoffout_source_line): Update prototype.
14935 * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
14937 (xcoffout_source_line): Update prototype.
14939 2001-07-17 Richard Henderson <rth@redhat.com>
14941 * c-typeck.c (build_binary_op): Do not shorten unsigned
14942 right shift after sign extension.
14944 Tue Jul 17 16:56:05 CEST 2001 Jan Hubicka <jh@suse.cz>
14946 * combine.c (combine_simplify_rtx): Attempt to simplify
14947 a*(b/c) as (a*b)/c for floats in unsafe_math mode.
14949 * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
14950 (simplify_binary_operation, simplify_unary_operation,
14951 simplify_relational_operation): Use it.
14953 * combine.c (combine_simplify_rtx): Don't do associative law
14954 on divisions; allow associative law on floats.
14956 2001-07-17 H.J. Lu <hjl@gnu.org>
14957 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14959 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
14960 ASM_OUTPUT_WEAK_ALIAS are defined.
14961 * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
14962 * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
14964 * config/mips/iris5.h: ... here.
14965 (HANDLE_SYSV_PRAGMA): Defined as 1.
14966 * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
14967 * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
14970 2001-07-17 Joseph S. Myers <jsm28@cam.ac.uk>
14972 * c-parse.in (all_prefix_attributes): New variable.
14973 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
14974 (maybe_resetattrs): New production.
14975 (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
14976 maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
14977 notype_initdcl, nested_function, notype_nested_function,
14978 component_decl, components, components_notype,
14979 component_declarator, component_notype_declarator,
14980 absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
14981 ivars, mydecl, myparm): Update. Avoid prefix attributes just
14982 after a comma being applied to more than one declarator.
14983 * doc/extend.texi (Attribute Syntax): Update. Remove
14984 documentation of bugs that are no longer present.
14986 2001-07-13 Eric Christopher <echristo@redhat.com>
14988 * config/mips/mips.h: Change TUNE_MIPS* options to use
14990 (EXTRA_SPECS): Add cc1_cpu_spec.
14991 * config/mips/mips.md (muldf3): Fix typo.
14993 2001-07-16 Richard Henderson <rth@redhat.com>
14995 * config/m68k/m68k.c: Include expr.h and reload.h.
14996 (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
14997 [general int]: Use HOST_WIDE_INT_PRINT_DEC.
14999 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
15000 Richard Henderson <rth@redhat.com>
15002 * cse.c (set_live_p): Take INSN argument for cc0; update callers.
15003 (insn_live_p): Fix fall off end of function.
15004 (dead_libcall_p): Remove COUNTS argument; update callers.
15005 (delete_trivially_dead_insns): Remove unused variables.
15007 2001-07-17 Andreas Jaeger <aj@suse.de>
15009 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
15010 x86-64 pic support.
15012 * lcm.c (optimize_mode_switching): Avoid warning for unused
15013 variable if !NORMAL_MODE.
15015 * flow.c (try_crossjump_to_edge): Remove unused variable.
15017 2001-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
15019 * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
15020 atexit declaration in stdlib.h.
15022 2001-07-16 Richard Begg <Richard.Begg@colesmyer.com.au>
15024 * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
15026 Mon Jul 16 22:48:00 CEST 2001 Jan Hubicka <jh@suse.cz>
15028 * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
15029 * except.c (finish_eh_generation): Update call of cleanup_cfg;
15030 do rebuild_jump_labels instead of jump_optimize
15031 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
15032 * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
15033 * flow.c (try_optimize_cfg): Remove unneeded code_labels.
15035 * flow.c: Include timevar.h
15036 (find_basic_block): Push/pop timevar;
15037 (cleanup_cfg): Likewise.
15038 * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
15039 * Makefile: Add dependencies on timevar.h
15041 * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
15042 (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
15044 * rtl.h (delete_trivially_dead_insns): Add new parameter.
15045 * toplev.c (rest_of_compilation): Update calls.
15046 * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
15047 (delete_trivially_dead_insns): ... here; accept new argument
15048 preserve_basic_blocks; preserve basic blocks if set.
15050 * reg-stack.c (stack_regs_mentioned): Return 0 if
15051 stack_regs_mentioned_data is not initialized.
15052 (reg_to_stack): Make stack_regs_mentioned survive after the
15053 reg-stack is completted; do not call cleanup_cfg.
15054 * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
15055 make cleanup_cfg after bb-reorder to output to debug file.
15057 2001-07-16 Richard Henderson <rth@redhat.com>
15059 * regclass.c (init_reg_sets): Use only 32 bits per initializer
15060 from int_reg_class_contents.
15062 2001-07-16 Richard Henderson <rth@redhat.com>
15064 * hard-reg-set.h (regs_invalidated_by_call): Declare.
15065 * regclass.c (regs_invalidated_by_call): Move from cse.c.
15066 (init_reg_sets_1): Move initialization from cse_main.
15067 * cse.c (regs_invalidated_by_call): Move to regclass.c.
15068 (cse_main): Move its initialization also.
15069 * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
15070 * flow.c (propagate_one_insn): Likewise.
15071 * gcse.c (compute_hash_table): Likewise.
15072 (compute_kill_rd, compute_store_table): Likewise.
15073 * sched-deps.c (sched_analyze_1): Likewise.
15075 Mon Jul 16 18:07:07 2001 J"orn Rennecke <amylaar@redhat.com>
15077 * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
15080 2001-07-16 Steve Ellcey <sje@cup.hp.com>
15082 * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
15083 in if statement so we don't access undefined memory.
15085 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
15087 * gcse.c: Update comment at top.
15088 Update comment on mem handling.
15089 mem_last_set, mem_first_set, mem_set_in_block: gone.
15090 Declaration of reg_set_info: gone.
15091 (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
15092 pointless with load_killed_in_block_p (they are *more*
15093 conservative then it, not less, and less accurate).
15094 (oprs_not_set_p): Ditto.
15095 (alloc_gcse_mem): Don't allocate mem_set_in_block
15096 (free_gcse_mem): Don't free it, either.
15097 (record_last_mem_set_info): Update comment in front, remove
15098 mem_*set_* stuff. Note the reason we don't handle stores directly
15100 (compute_hash_table): Update comments to reflect reality. Remove
15101 mem_*set_* references.
15102 (reset_opr_set_tables): Remove mem_*set_* references.
15103 (mark_call): Ditto.
15104 (mark_set): Ditto. Also remove double sets of bitmaps for REG's.
15105 (mark_clobber): Ditto (on both parts, we double set here too).
15106 (expr_killed_p): Remove mem_set_in_block test.
15107 (compute_transp): Remove mem_set_in_block test.
15109 * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
15110 of edge, and removal of phi alternative to dump file.
15111 (ssa_ccp_substitute_constants): Add note about register now being
15112 constant, and which uses were replaced in what insns to dump file.
15114 2001-07-16 Andreas Jaeger <aj@suse.de>
15116 * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
15117 variables of type HOST_WIDEST_INT.
15119 * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
15120 (__bb_exit_func): Correct type of count_max to avoid overflow.
15121 (num_digits): Handle long long argument.
15123 * combine.c (gen_lowpart_for_combine): Remove unused variable.
15125 2001-07-16 Neil Booth <neil@cat.daikokuya.demon.co.uk>
15127 * output.h (sdb_begin_function_line): Restore as an extern
15129 * sdbout.c (sdb_begin_function_line): Make extern.
15131 2001-07-15 Richard Henderson <rth@redhat.com>
15133 * machmode.def (Pmode): Redefine if GENERATOR_FILE.
15134 * genrecog.c (maybe_both_true_mode): New.
15135 (maybe_both_true_2): Use it.
15136 (write_switch): Don't put Pmode in a switch.
15137 * rtl.c (mode arrays): Don't explicitly size them.
15139 Sun Jul 15 14:07:36 CEST 2001 Jan Hubicka <jh@suse.cz>
15141 * toplev.c (rest_of_compilation): Fix register_life_up_to_date
15142 handling; move unconditional splitting before mode switching.
15144 * i386.md (type): Add fistp type.
15145 (i387, length_attr, scheduling definitions): Handle this type.
15146 (fix_trunc?f?i2): Revamp to use mode switching.
15147 (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
15148 * i386.h (fp_cw_mode): New enum
15149 (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
15150 MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
15152 Sun Jul 15 12:53:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15154 * Makefile.in (integrate.o): Add debug.h.
15155 * integrate.c (debug.h): Add.
15156 (output_inline_function): Save, reset, and restore debug_hooks.
15158 2001-07-15 Richard Henderson <rth@redhat.com>
15160 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
15161 instead of COMPARE for the EQUIV expression.
15163 2001-07-15 Richard Henderson <rth@redhat.com>
15165 * flow.c (redirect_edge_and_branch_force): Initialize
15166 global_live_at_start and global_live_at_end.
15167 (allocate_bb_life_data): Export.
15168 * basic-block.h (allocate_bb_life_data): Declare.
15169 * toplev.c (rest_of_compilation): Call it.
15171 2001-07-15 Richard Henderson <rth@redhat.com>
15173 * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
15174 (alpha_tablejump_best_label): New.
15175 * config/alpha/alpha-protos.h: Declare them.
15176 * config/alpha/alpha.md: Use braced strings for code blocks.
15177 (tablejump_osf): Break out add with r29.
15178 (tablejump_osf_internal): Remove.
15179 (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
15180 use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
15182 Sun Jul 15 00:53:35 CEST 2001 Jan Hubicka <jh@suse.cz>
15184 * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
15187 * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
15189 * i386-protos.h (ix86_split_fp_branch): Update prototype.
15190 (ix86_fp_jump_nontrivial_p): New.
15191 * i386.md (fp_jcc_?): Update call of split_fp_branch;
15192 use ix86_fp_jump_nontrivial_p.
15193 * i386.c (ix86_fp_jump_nontrivial_p): New.
15194 (ix86_split_fp_branch): Accept code instead of rtx.
15195 (ix86_expand_compare): Expand comparison early in case
15196 doing so is resonably cheap.
15198 2001-07-15 Nick Clifton <nickc@cambridge.redhat.com>
15200 * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
15202 (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
15203 (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
15205 2001-07-15 Neil Booth <neil@daikokuya.demon.co.uk>
15207 * dbxout.c (dbxout_source_line): Make static, update prototype.
15208 (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
15209 (dbxout_init, dbxout_finish, dbxout_source_line,
15210 dbxout_begin_block, dbxout_end_block): Update for new prototypes.
15211 * dbxout.h (dbxout_source_line): Delete.
15212 * debug.c (debug_nothing_file, debug_nothing_file_int,
15213 debug_nothing_file_charstar_rtx): New.
15214 (do_nothing_debug_hooks): Update.
15215 (debug_nothing_void, debug_nothing_charstar_rtx,
15216 dwarf2out_end_epilogue): New.
15217 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
15218 * debug.h (struct rtx_def): Declare.
15219 (gcc_debug_hooks): New hooks source_line, end_epilogue
15221 (debug_nothing_void, debug_nothing_charstar_rtx,
15222 dwarf2out_end_epilogue): New.
15223 (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
15224 * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
15225 (dwarf2_debug_hooks): Update.
15226 (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
15227 dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
15228 * dwarf2out.h (dwarf2out_source_line): Remove.
15229 * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
15230 Make static, update prototype.
15231 (dwarfout_init, dwarfout_finish, dwarfout_source_line,
15232 dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
15233 (dwarf_debug_hooks): Update.
15234 * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
15235 dwarfout_end_function): Remove.
15236 * final.c (profile_function): Use debug hooks for ending functions
15238 (output_source_line, final_end_function): Update prototype,
15240 (final_start_function, final_scan_insn): Update.
15241 * output.h (sdb_begin_function_line): Remove.
15242 (final_end_function): Update prototype.
15243 * sdbout.c (sdb_begin_function_line): Make static.
15244 (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
15245 (sdbout_source_line): New.
15246 (sdbout_end_epilogue, sdbout_end_function): Make static, update
15248 (sdb_debug_hooks): Update.
15249 (sdbout_init, sdbout_source_line,
15250 sdbout_begin_block, sdbout_end_block): Update for new prototypes.
15251 * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
15252 * toplev.c (compile_file, rest_of_compilation): Update.
15253 * tree.h (dwarf2out_end_epilogue): Move to debug.h.
15254 * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
15255 xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
15256 Update for prototype changes.
15257 * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
15258 xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
15260 2001-07-15 Richard Henderson <rth@redhat.com>
15262 * config/alpha/alpha.h (TARGET_ABI_OSF): New.
15263 (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
15264 * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
15265 * config/alpha/alpha.c: Likewise.
15266 * config/alpha/alpha.md: Likewise.
15267 * config/alpha/alpha32.h: Likewise.
15268 * config/alpha/vms.h: Likewise.
15269 (OPEN_VMS): Remove.
15271 2001-07-14 Richard Henderson <rth@redhat.com>
15273 * config/alpha/alpha.md: Use define_constants for unspec values.
15274 Substitute throughout.
15276 2001-07-14 Tim Josling <tej@melbpc.org.au>
15278 * tree.def (EXPON_EXPR) remove. Never supported anyway.
15280 2001-07-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
15282 * pa.md: Remove unused constraints from define_split's.
15284 2001-04-14 Richard Henderson <rth@redhat.com>
15286 * ifcvt.c (find_cond_trap): Test for exit block.
15288 Sun Jul 15 00:50:20 CEST 2001 Jan Hubicka <jh@suse.cz>
15290 Re-install recently reverted patch.
15291 * emit-rtl.c (try_split): Update mark_jump_label call.
15292 * flow.c (find_sub_basic_blocks): Likewise.
15293 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
15294 jump_back_p): Kill.
15295 (mark_all_labels): Kill second parameter.
15296 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
15297 (rebuild_jump_labels, jump_optimize_minimal): Update call
15298 of jump_optimize_1.
15299 (jump_optimize_1): Kill crossjumping code.
15300 (mark_jump_label): Kill cross_jump parameter.
15301 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
15302 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
15303 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
15305 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
15307 (dump_file_info): Likewise.
15308 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
15309 reorganize passes to do reg-stack first, bb-reorder second.
15310 * invoke.texi (-d letters doc): Remove the jump2 pass.
15312 2001-07-14 Richard Henderson <rth@redhat.com>
15314 * ifcvt.c (find_cond_trap): New.
15315 (find_if_header): Call it.
15316 (merge_if_block): Relax existing jump sanity check.
15317 * jump.c (jump_optimize_1): Remove conditional trap handling.
15319 2001-07-14 Alan Modra <amodra@bigpond.net.au>
15321 * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
15323 (insn_refs_are_delayed): Correct comment.
15324 * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
15325 * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
15326 instead of r31. Make associated insn !TARGET_64BIT, and
15327 provide an additional 64-bit insn that clobbers r2.
15328 (divsi3): Likewise.
15329 (udivsi3): Likewise.
15330 (modsi3): Likewise.
15331 (umodsi3): Likewise.
15333 Sat Jul 14 02:58:38 CEST 2001 Jan Hubicka <jh@suse.cz>
15335 * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
15337 * flow.c (redirect_edge_and_branch_force, split_edge,
15338 try_crossjump_to_edge): Use set_block_for_new_insns.
15339 * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
15341 2001-07-13 H.J. Lu (hjl@gnu.org)
15343 * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
15346 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
15348 Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
15350 2001-07-13 Joseph S. Myers <jsm28@cam.ac.uk>
15352 * c-common.c (decl_attributes): Take a pointer to the node to
15353 which attributes are to be attached, and a flags argument.
15354 * c-common.h (enum attribute_flags): New.
15355 (decl_attributes): Update prototype.
15356 * c-decl.c (start_decl, push_parm_decl, finish_struct,
15357 finish_enum, start_function): Update calls to decl_attributes.
15358 * c-parse.in (component_declarator, component_notype_declarator,
15359 label): Update calls to decl_attributes.
15361 Fri Jul 13 23:04:00 2001 Denis Chertykov <denisc@overta.ru>
15363 * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
15364 * config/avr/avr.c (legitimate_address_p): Return value changed
15365 from letter to register classes. For better debugging.
15367 2001-07-13 Kazu Hirata <kazu@hxi.com>
15369 * jump.c (reversed_comparison_code_parts): Fix comment typos.
15371 2001-07-13 H.J. Lu (hjl@gnu.org)
15373 * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
15375 2001-07-13 Marc Espie <espie@cvs.openbsd.org>
15377 * config.gcc (*-*-openbsd*): Add fragment to compile libgcc
15378 correctly for shared configurations.
15379 * config/t-libgcc-pic: New.
15380 * config/{i386,m68k,sparc}/t-openbsd: New.
15381 * config/openbsd.h: Include cpu_spec in cpp_spec where needed.
15382 Support -shared. Support debugging libraries with -g.
15383 * config/i386/openbsd.h: Correct ASM_COMMENT_START. Ensure dwarf2
15384 frame information does not emit pointer diffs.
15385 * config/sparc/openbsd.h: Ensure dwarf2 frame information does not
15386 emit pointer diffs.
15388 2001-07-13 Geoffrey Keating <geoffk@redhat.com>
15390 Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
15392 2001-07-13 David Edelsohn <edelsohn@gnu.org>
15394 * combine.c (try_combine): Ensure const_int pow2 is positive.
15396 2001-07-13 Hartmut Penner <hpenner@de.ibm.com>
15398 * config.gcc: Add configuration for s/390.
15399 * config/s390/s390.c: New. Subroutines for code generation.
15400 * config/s390/s390.h: New. Definitions for s/390.
15401 * config/s390/s390-protos.h: New. Prototypes.
15402 * config/s390/linux.h: New. Definitions for linux for s/390.
15403 * config/s390/linux64.h: New. Definitions for linux for zSeries.
15404 * config/s390/t-linux: New. Makefile fragment.
15405 * config/s390/s390.md: New. Machine description for s/390 and zSeries.
15406 * config/s390/fixdfdi.h: New. Fix L_fix*di.
15408 Fri Jul 13 14:46:21 CEST 2001 Jan Hubicka <jh@suse.cz>
15410 * emit-rtl.c (try_split): Update mark_jump_label call.
15411 * flow.c (find_sub_basic_blocks): Likewise.
15412 * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
15413 jump_back_p): Kill.
15414 (mark_all_labels): Kill second parameter.
15415 (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
15416 (rebuild_jump_labels, jump_optimize_minimal): Update call
15417 of jump_optimize_1.
15418 (jump_optimize_1): Kill crossjumping code.
15419 (mark_jump_label): Kill cross_jump parameter.
15420 * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
15421 (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
15422 * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
15424 * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
15426 (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
15427 reorganize passes to do reg-stack first, bb-reorder second.
15428 * invoke.texi (-d letters doc): Remove the jump2 pass.
15430 2001-07-12 Steve Ellcey <sje@cup.hp.com>
15432 * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
15434 Thu Jul 12 17:57:16 CEST 2001 Jan Hubicka <jh@suse.cz>
15436 * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
15438 (verify_flow_info): Make diagnostics prettier.
15440 Thu Jul 12 16:48:54 CEST 2001 Jan Hubicka <jh@suse.cz>
15442 * flow.c (find_basic_blocks_1): Do not emit NOP after call.
15444 * flow.c (outgoing_edges_match): Return early if condition reversal
15447 2001-07-06 Richard Sandiford <rsandifo@redhat.com>
15449 * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
15450 (mips_move_2words): When splitting a move into two instructions,
15451 prefix the second address operand with '%D'.
15453 2001-07-12 Neil Booth <neil@daikokuya.demon.co.uk>
15455 * Makefile.in (final.o): Depend on debug.h.
15456 * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
15457 (dbx_debug_hooks): Add new hooks.
15458 (xcoff_debug_hooks): New.
15459 * debug.c (debug_nothing_file_int_int): New.
15460 (do_nothing_debug_hooks): Update.
15461 * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
15462 (debug_nothing_file_int_int): New.
15463 * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
15464 static, update prototype.
15465 (dwarf2_debug_hooks): Update.
15466 * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
15467 * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
15468 static, update prototype.
15469 (dwarf_debug_hooks): Update.
15470 * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
15471 * final.c: Include debug.h.
15472 (final_scan_insn): Use debug hooks when beginning and ending blocks.
15473 * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
15474 static, update prototype.
15475 (sdb_debug_hooks): Update.
15476 * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
15477 * toplev.c: Distinguish between xcoff and dbx.
15479 * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
15480 Call all debug hooks, not just dwarf ones.
15482 2001-07-11 Timothy Wall <twall@redhat.com>
15484 * config.gcc: Add configuration for AIX5/IA64.
15485 * config/ia64/aix.h: New. AIX5/IA64-specific configuration.
15486 * config/ia64/crt[in].asm: New. Generic static ctor/dtor
15487 support prefix/suffix code.
15488 * config/ia64/t-aix: New. Makefile fragment.
15489 * config/ia64/unwind-aix.c: New. Unwind table entry lookup.
15491 2001-07-11 Kazu Hirata <kazu@hxi.com>
15493 * recog.c (validate_change): Fix a comment typo.
15495 2001-07-11 Neil Booth <neil@daikokuya.demon.co.uk>
15497 * Makefile.in (c-lex.o): Wrap long lines. Depend on debug.h.
15498 * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
15500 * dbxout.c (dbx_debug_hooks): Add new hooks.
15501 (dbxout_start_new_source_file): Rename dbxout_start_source_file,
15503 (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
15505 * dbxout.h (dbxout_start_new_source_file,
15506 dbxout_resume_previous_source_file): Delete.
15507 * debug.c (do_nothing_debug_hooks): Add new hooks.
15508 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
15509 (debug_nothing_int_charstar, debug_nothing_int): New.
15510 * debug.h (gcc_debug_hooks): New hooks define, undef,
15511 start_source_file and end_source_file.
15512 (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
15513 (debug_nothing_int_charstar, debug_nothing_int): New.
15514 * dwarf2out.c (dwarf2_debug_hooks): Add new hooks. Move into
15515 the conditionally compiled section.
15516 (dwarf2out_start_source_file, dwarf2out_end_source_file,
15517 dwarf2out_define, dwarf2out_undef): Make static.
15518 * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
15519 dwarf2out_define, dwarf2out_undef): Remove.
15520 * dwarfout.c (dwarf_debug_hooks): Add new hooks.
15521 (dwarfout_start_source_file, dwarfout_end_source_file,
15522 dwarfout_define, dwarfout_undef): Make static.
15523 (dwarfout_start_source_file_check,
15524 dwarfout_end_source_file_check): New.
15525 (dwarfout_define, dwarfout_finish): Update.
15526 * dwarfout.h (dwarfout_start_new_source_file,
15527 dwarfout_resume_previous_source_file, dwarfout_define,
15528 dwarfout_undef): Remove.
15529 * sdbout.c (sdb_debug_hooks): Add new hooks.
15530 (sdbout_start_new_source_file): Rename sdbout_start_source_file,
15532 (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
15533 make static, take an arg.
15534 * sdbout.h (sdbout_start_new_source_file,
15535 sdbout_resume_previous_source_file): Delete.
15536 * toplev.c (debug_start_source_file, debug_end_source_file,
15537 debug_define, debug_undef): Delete.
15538 * toplev.h (debug_start_source_file, debug_end_source_file,
15539 debug_define, debug_undef): Delete.
15541 * java/jcf-parse.c: Include debug.h.
15542 (parse_class_file): Update to use debug hooks directly.
15543 * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
15545 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15547 * alias.c (set_mem_alias_set): New function.
15548 * rtl.h (set_mem_alias_set): Declare it.
15549 * builtins.c (expand_builtin_return_addr): Call it instead of
15550 using MEM_ALIAS_SET accessor.
15551 (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
15552 (get_memory_rtx, expand_builtin_va_arg): Likewise.
15553 (expand_builtin_va_copy):Likewise.
15554 * caller-save.c (setup_save_areas): Likewise.
15555 * calls.c (compute_argument_addresses): Likewise.
15556 * explow.c (set_mem_attributes): Likewise.
15557 * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
15558 (expand_assignment, store_constructor_field, store_field): Likewise.
15559 (expand_expr_unaligned): Likewise.
15560 * function.c (assign_stack_temp_for_type): Likewise.
15561 (put_reg_into_stack, gen_mem_addressof): Likewise.
15562 * ifcvt.c (noce_try_cmove_arith): Likewise.
15563 * reload1.c (reload, alter_reg): Likewise.
15564 * config/alpha/alpha.c (get_aligned_mem): Likewise.
15565 (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
15566 (alpha_expand_unaligned_store): Likewise
15567 (alpha_expand_unaligned_load_words): Likewise.
15568 (alpha_expand_unaligned_store_words): Likewise.
15569 (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
15570 (alpha_expand_epilogue): Likewise.
15571 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15572 * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
15573 * config/i386/i386.c (legitimize_pic_address): Likewise.
15574 * config/i960/i960.c (setup_incoming_varargs): Likewise.
15575 * config/ia64/ia64.c (spill_restore_mem): Likewise.
15576 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15577 * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
15578 * config/mips/mips.c (mips_va_arg): Likewise.
15579 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
15580 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
15581 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
15582 (setup_incoming_varargs, rs6000_va_arg): Likewise.
15583 (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
15584 (rs6000_emit_epilogue): Likewise.
15585 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
15586 * config/sparc/sparc.c (sparc_va_arg): Likewise.
15587 * config/v850/v850.c (v850_va_arg): Likewise.
15589 Wed Jul 11 21:27:25 CEST 2001 Jan Hubicka <jh@suse.cz>
15591 * flow.c (merge_blocks_move_successor_nojumps): Do not crash
15592 when fallthru edge is present.
15593 (mege_blocks): Handle case where creation of jump insn
15596 * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
15597 CLEANUP_POST_REGSTACK): New constants.
15598 * except.c (finish_eh_generation): Update call of cleanup_cfg,
15599 * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
15600 * output.h (cleanup_cfg): Update prototype.
15601 * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
15602 * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
15603 cleanup_cfg call; kill missleading comment.
15604 * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
15605 * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
15606 parameter; control optimizations performed using it.
15607 (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
15608 try_crossjump_bb): New functions.
15610 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
15612 * pa.c (pa_output_function_prologue): Delete prototype. Make function
15614 * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
15615 pa_output_function_prologue.
15616 * pa-protos.h (pa_output_function_prologue): New prototype.
15618 2001-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
15620 * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
15621 and low to get correct sign extension in low+high test.
15623 2001-07-11 Janis Johnson <janis@us.ibm.com>
15625 * gcov.c (arcdata): Use gcov_type to fix branch percentage
15626 for large hit count.
15628 * profile.c (branch_prob): Fix .bbg info for computed gotos
15631 2001-07-11 Mark Mitchell <mark@codesourcery.com>
15633 * stmt.c (parse_output_constraint): New function, split out
15635 (expand_asm_operands): ... here. Use parse_output_constraint.
15636 * tree.h (parse_output_constraint): Declare it.
15638 2001-07-11 Richard Henderson <rth@redhat.com>
15640 * bitmap.c: Comment some functions; fiddle whitespace.
15641 (bitmap_free): Don't export.
15642 (bitmap_element_allocate): Use memset.
15643 * bitmap.h (bitmap_free): Don't declare.
15645 2001-07-11 Daniel Berlin <dan@cgsoftware.com>
15647 * gcse.c, lcm.c, sched-deps.c:
15648 s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
15650 * flow.c (flow_loops_find): Free dom if we found no loops, since
15651 we aren't going to save it.
15653 * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
15656 Wed Jul 11 09:00:48 2001 Jeffrey A Law (law@cygnus.com)
15658 * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
15660 Wed Jul 11 10:07:18 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15662 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
15663 #ifndef DWARF2_DEBUGGING_INFO.
15665 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
15667 * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
15669 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
15671 * config/mips/mips.c (gen_int_relational): Tell the caller not to
15672 reverse a branch if a NE comparison is implemented with GTU.
15674 2001-07-11 Richard Sandiford <rsandifo@redhat.com>
15675 H.J. Lu <hjl@gnu.org>
15677 * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
15678 constant addresses.
15679 (call_internal2): Likewise.
15680 (call_value_internal1): Likewise.
15681 (call_value_internal2): Likewise.
15682 (call_value_multiple_internal1): Likewise.
15683 (call_value_multiple_internal2): Likewise.
15685 2001-07-10 Kazu Hirata <kazu@hxi.com>
15687 * calls.c (emit_library_call_value_1): Fix a comment typo.
15688 * dwarf2out.c (mem_loc_descriptor): Likewise.
15689 * config/i386/i386.c (ix86_expand_aligntest): Likewise.
15691 2001-07-11 David Billinghurst <David.Billinghurst@riotinto.com>
15693 * simplify-rtx.c (simplify_subreg): Fix typo in comment
15695 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15697 * recog.c (offsettable_address_p): Handle LO_SUM case.
15698 * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
15699 instead of plus_constant.
15701 2001-07-10 Stephane Carrez <Stephane.Carrez@worldnet.fr>
15703 * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
15704 fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
15706 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15708 * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
15709 adjust_address_nv instead of plus_constant.
15711 2001-07-10 Neil Booth <neil@daikokuya.demon.co.uk>
15713 * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
15714 dwarf2out.o): Depend on debug.h, wrap long lines.
15715 * dbxout.c: Include debug.h.
15716 (dbx_debug_hooks): New.
15717 (dbxout_init): Make static, take just 2 args.
15718 (dbxout_finish): Make static.
15719 * dbxout.h (dbxout_init, dbxout_finish): Delete.
15720 * debug.c: New file.
15721 * debug.h: New file.
15722 * dwarf2out.c: Include debug.h.
15723 (dwarf2_debug_hooks): New.
15724 (dwarf2out_init): Make static.
15725 (dwarf2out_finish): Make static, take 2 args.
15726 * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
15727 * dwarfout.c: Include debug.h.
15728 (dwarf_debug_hooks): New.
15729 (dwarfout_init): Make static.
15730 (dwarfout_finish): Make static, take 2 args.
15731 * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
15732 * sdbout.c: Include debug.h.
15733 (sdb_debug_hooks): New.
15734 (sdbout_init): Make static, take 2 args.
15735 * sdbout.h (sdbout_init): Delete.
15736 * toplev.c: Include debug.h.
15737 (debug_hooks): New.
15738 (compile_file): Set deubg_hooks based on command line options.
15739 Use the hooks unconditionally rather than conditional compilation.
15741 Tue Jul 10 09:04:45 2001 Jeffrey A Law (law@cygnus.com)
15743 * ssa-ccp.c (first_phi_node): Remove. Replace uses with calls to
15744 first_insn_after_basic_block_note instead.
15746 * df.c (df_bb_refs_unlink): #if 0 out for now.
15748 2001-07-10 David Billinghurst <David.Billinghurst@riotinto.com
15750 * ssa.h: Add prototype for ssa_const_prop
15751 * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
15752 (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
15753 (ssa_fast_dce): Remove unused variable
15755 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
15757 * diagnostic.c (finish_diagnostic): Rename to
15758 diagnostic_finish. Make it take an 'output_buffer *'. Adjust
15761 2001-07-10 Jason Merrill <jason_merrill@redhat.com>
15763 * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
15766 * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
15767 (dump_file): Only pad the demangled name with spaces if the
15768 mangled name was padded with spaces.
15770 2001-07-10 Bernd Schmidt <bernds@redhat.com>
15772 * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
15775 Tue Jul 10 07:27:53 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15777 * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
15778 extraction if no direct load if either EXPAND_CONST_ADDRESS or
15779 EXPAND_INITIALIZER.
15781 * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
15782 whether can put offset inside LO_SUM to check mode alignment, not size.
15784 2001-07-10 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
15786 * doc/tm.texi (Misc): Fix thinko.
15788 2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
15790 * regmove.c (replace_in_call_usage): Fix warnings.
15791 * sched-deps.c (add_dependence): Fix warnings.
15792 * simplify-rtx.c (simplify_subreg): Likewise.
15793 Return NULL_RTX instead of NULL.
15795 * reg-stack.c (emit_swap_insn): Eliminate warnings.
15796 (subst_asm_stack_regs): Likewise.
15798 * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
15801 * dwarf2out.c (output_call_frame_info): Declare i as int.
15802 (build_abbrev_table): Declare n_alloc as int.
15803 (dwarf2out_finish): Initialize die.
15804 * except.c: Declare sjlj_funcdef_number as unsigned.
15805 (connect_post_landing_pads): Declare j as unsigned.
15806 (convert_to_eh_region_ranges): Initialize call_site.
15807 (output_function_exception_table): Initialize tt_format_size.
15808 * expr.c (move_by_pieces_1): Initialize to1.
15809 (store_constructor): Initialize minelt and maxelt.
15810 * flow.c (mark_regs_live_at_end): Declare i as unsigned.
15811 * function.c (instantiate_decls): Avoid signed/unsigned warning.
15813 * c-decl.c (combine_parm_decls): Unused, remove.
15814 * c-tree.h: Remove prototype for combine_parm_decls.
15816 * reload.c (push_reload): Fix warning.
15817 (regno_clobbered_p): Likewise.
15818 * reload1.c (replace_pseudos_in_call_usage): Likewise.
15819 (reload_combine): Likewise.
15821 * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
15822 * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
15824 * bitmap.c (bitmap_operation): Change user.
15825 * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
15827 2001-07-10 Eric Christopher <echristo@redhat.com>
15829 * config/mips/mips.c (override_options): Fix typo.
15831 2001-07-09 Stan Shebs <shebs@apple.com>
15833 * target.h (struct gcc_target): New fields init_builtins and
15835 * target-def.h (TARGET_INIT_BUILTINS): New macro.
15836 (TARGET_EXPAND_BUILTIN): New macro.
15837 (TARGET_INITIALIZER): Add them.
15838 * builtins.c: Include target.h.
15839 (expand_builtin): Use targetm.expand_builtin.
15840 (default_init_builtins): New function.
15841 (default_expand_builtin): New function.
15842 * expr.h (default_init_builtins): Declare.
15843 (default_expand_builtin): Declare.
15844 * c-common.c (c_common_nodes_and_builtins): Use
15845 targetm.init_builtins.
15846 * defaults.h (MD_INIT_BUILTINS): Remove.
15847 * Makefile.in (builtins.o): Depend on target.h.
15849 * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
15850 (TARGET_EXPAND_BUILTIN): Define.
15851 * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
15852 (MD_EXPAND_BUILTIN): Remove.
15854 * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
15855 (TARGET_EXPAND_BUILTIN): Define.
15856 (c4x_init_builtins): Make endlink arg a local.
15857 (c4x_print_operand): Fix typos in adjust_address usages.
15858 * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
15859 * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
15860 (MD_EXPAND_BUILTIN): Remove.
15862 * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
15863 (TARGET_EXPAND_BUILTIN): Define.
15864 (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
15865 (ix86_init_builtins): Call new function only if TARGET_MMX.
15866 * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
15867 * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
15868 (MD_EXPAND_BUILTIN): Remove.
15870 * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
15871 (TARGET_EXPAND_BUILTIN): Define.
15872 * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
15873 (MD_EXPAND_BUILTIN): Remove.
15875 * doc/tm.texi: Document these changes.
15877 2001-07-09 Diego Novillo <dnovillo@redhat.com>
15879 * basic-block.h (tree_node): Forward declare if needed.
15880 (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
15881 (BLOCK_HEAD_TREE): Define.
15882 (BLOCK_END_TREE): Define.
15883 (struct loops): Rename field 'tree' to 'tree_root'.
15884 * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
15886 (flow_loops_tree_build): Rename reference to field 'tree' to
15888 (flow_loops_level_compute): Ditto.
15889 * predict.c (estimate_bb_frequencies): Ditto.
15890 * tree.h (struct tree_common): Add field 'aux'.
15892 2001-07-09 Stan Shebs <shebs@apple.com>
15894 * config/darwin.c (darwin_encode_section_info): Don't mark any
15895 DECL_EXTERNAL node as defined.
15897 2001-07-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
15899 * pa.c (pa_init_machine_status, pa_mark_machine_status,
15900 pa_free_machine_status, hppa_init_pic_save): Delete.
15901 (hppa_pic_save_rtx): New. Use get_hard_reg_initial_val.
15902 (hppa_profile_hook): Use hppa_pic_save_rtx.
15903 * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
15904 hppa_init_pic_save): Delete.
15905 (hppa_pic_save_rtx): Declare.
15906 * pa.md (call, call_value, sibcall, sibcall_value,
15907 builtin_setjmp_receiver): Use hppa_pic_save_rtx.
15909 2001-07-09 Kazu Hirata <kazu@hxi.com>
15911 * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
15912 * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
15914 2001-07-09 Andreas Jaeger <aj@suse.de>
15916 * output.h: Add declaration of final_forward_branch_p.
15918 * config/i386/i386.c (output_fix_trunc): Remove unused variable.
15920 * varray.c: Include errors.h for internal_error and trim_filename
15923 * Makefile.in (varray.o): Add errors.h.
15925 2001-07-09 Toon Moene <toon@moene.indiv.nluug.nl>
15927 * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
15928 * optabs.c (have_add2_insn): Check whether the add insn chosen
15929 really accepts the operands. (have_sub2_insn): Ditto for sub insn.
15930 * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
15932 Mon Jul 9 13:26:40 2001 Jeffrey A Law (law@cygnus.com)
15934 * Makefile.in (OBJS): Add ssa-ccp.o
15935 (ssa-ccp.o): Add dependencies.
15936 * toplev.c (DFI_ssa_ccp): New dump file enum.
15937 (dump_file): Add entry for dumping after SSA CCP.
15938 (flag_ssa_ccp): New flag variable.
15939 (f_options): Add -fssa-ccp.
15940 (rest_of_compilation): Run SSA CCP if requested.
15941 * timevar.def (TV_SSA_CCP): New timevar.
15942 * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
15943 * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
15944 Fix minor typo in SSA DCE documentation.
15945 * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
15946 Add documentation for new dump option. Renumber dump files
15949 Mon Jul 9 21:36:00 CEST 2001 Jan Hubicka <jh@suse.cz>
15951 * emit-rtl.c (gen_highpart_mode): New.
15952 * rtl.h (gen_highpart_mode): Declare.
15953 * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
15954 operand can be VOIDmode constant.
15956 Mon Jul 9 17:23:10 CEST 2001 Jan Hubicka <jh@suse.cz>
15958 * flow.c (redirect_edge_and_branch_force): New.
15959 (can_fallthru): Ensure that basic blocks are succeeding.
15960 (try_optimize_cfg): Do not delete basic block if it is the last one.
15962 * flow.c (try_redirect_by_replacing_jump): Do not remove
15963 jumps with side effects, unlink chain on fallthru edge;
15964 set block for new jump instruction; avoid basic block to
15965 over by line number note.
15967 * flow.c (try_simplify_condjump): Verify that the condjump
15968 is not always falling through.
15971 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
15973 * flow.c (forwarder_block_p): Fix for fallthru blocks.
15974 (try_redirect_by_replacing_jump): Update properly the count
15975 and frequency information.
15977 Mon Jul 9 06:41:07 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15979 * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
15980 address that is a LO_SUM specially.
15981 * explow.c (plus_constant_wide, case LO_SUM): Deleted.
15983 * c-lang.c (start_cdtor): Remove extra parameter from start_function.
15985 * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
15986 (operand_subword): Use them.
15987 (change_address_1): Renamed from change_address; new arg VALIDATE.
15988 * expr.h: Reflect above changes; change_address now macro.
15989 * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
15991 * cselib.c (add_mem_for_addr): Likewise.
15992 * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
15993 * regmove.c (try_apply_stack_adjustment): Likewise.
15994 * reload.c (push_reload, make_memloc): Likewise.
15995 * reload1.c (eliminate_regs): Likewise.
15996 * simplify-rtx.c (simplify_replace_rtx): Likewise.
15997 * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
15999 * combine.c (make_extraction, simplify_shift_const): Likewise.
16000 (gen_lowpart_for_combine): Likewise.
16001 * cse.c (gen_lowpart_if_possible): Likewise.
16002 * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
16003 * expr.c (expand_expr, case COMPONENT_REF): Likewise.
16004 * optabs.c (gen_move_insn): Likewise.
16005 * reload1.c (alter_reg): Likewise.
16006 * simplify-rtx.c (simplify_subreg): Likewise.
16007 * stmt.c (expand_anon_union_decl): Likewise.
16008 * recog.c (validate_replace_rtx_1): Likewise.
16010 * Makefile.in (recog.o): Add $(EXPR_H).
16011 * explow.c (stabilize): Call replace_equiv_address.
16012 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
16013 * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
16015 2001-07-03 Andrew Haley <aph@redhat.com>
16017 * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
16018 the mode of the memory location.
16020 2001-07-09 Bo Thorsen <bo@suse.co.uk>
16022 * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
16024 2001-07-09 Neil Booth <neil@daikokuya.demon.co.uk>
16026 * final.c (output_addr_const): Use target opening and
16027 closing parentheses.
16028 * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
16029 defaults, add to TARGET_ASM_OUT.
16030 * target.h (struct gcc_target): Add open_paren and close_paren.
16031 * doc/md.texi: Update.
16032 * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
16033 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
16034 TARGET_ASM_CLOSE_PAREN.
16035 * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
16037 * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
16039 * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
16040 * config/a29k/a29k.h: Similarly.
16041 * config/alpha/alpha.h: Similarly.
16042 * config/arc/arc.h: Similarly.
16043 * config/arm/aof.h: Similarly.
16044 * config/arm/aout.h: Similarly.
16045 * config/avr/avr.h: Similarly.
16046 * config/c4x/c4x.h: Similarly.
16047 * config/clipper/clipper.h: Similarly.
16048 * config/convex/convex.h: Similarly.
16049 * config/d30v/d30v.h: Similarly.
16050 * config/dsp16xx/dsp16xx.h: Similarly.
16051 * config/elxsi/elxsi.h: Similarly.
16052 * config/fr30/fr30.h: Similarly.
16053 * config/h8300/h8300.h: Similarly.
16054 * config/i370/i370.h: Similarly.
16055 * config/i386/i386.h: Similarly.
16056 * config/i860/i860.h: Similarly.
16057 * config/i960/i960.h: Similarly.
16058 * config/ia64/ia64.h: Similarly.
16059 * config/m32r/m32r.h: Similarly.
16060 * config/m68hc11/m68hc11.h: Similarly.
16061 * config/m68k/m68k.h: Similarly.
16062 * config/m88k/m88k.h: Similarly.
16063 * config/mcore/mcore.h: Similarly.
16064 * config/mips/mips.h: Similarly.
16065 * config/mn10200/mn10200.h: Similarly.
16066 * config/mn10300/mn10300.h: Similarly.
16067 * config/ns32k/ns32k.h: Similarly.
16068 * config/pa/pa.h: Similarly.
16069 * config/pdp11/pdp11.h: Similarly.
16070 * config/pj/pj.h: Similarly.
16071 * config/romp/romp.h: Similarly.
16072 * config/rs6000/rs6000.h: Similarly.
16073 * config/sh/sh.h: Similarly.
16074 * config/sparc/sparc.h: Similarly.
16075 * config/v850/v850.h: Similarly.
16076 * config/vax/vax.h: Similarly.
16077 * config/we32k/we32k.h: Similarly.
16079 2001-07-09 Joseph S. Myers <jsm28@cam.ac.uk>
16081 * doc/c-tree.texi: Document representation of attributes.
16083 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
16085 * doc/tm.texi: Update some places for the rename of target to
16088 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
16090 * target.h (struct gcc_target): Add insert_attributes.
16091 * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
16092 (TARGET_INITIALIZER): Update.
16093 * tree.c, tree.h (default_insert_attributes): New function.
16094 Update comments on other default functions to refer to targetm,
16096 * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
16097 TARGET_INSERT_ATTRIBUTES.
16098 (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
16099 * c-common.c (decl_attributes): Use targetm.insert_attributes.
16100 Don't use PRAGMA_INSERT_ATTRIBUTES.
16101 * Makefile.in (c-common.o): Depend on $(TARGET_H).
16102 * c-decl.c (start_decl, start_function): Don't call
16103 SET_DEFAULT_DECL_ATTRIBUTES.
16104 * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
16105 * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
16107 * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
16108 (c4x_check_attribute): Avoid modifying attribute list itself.
16109 (c4x_set_default_attributes): Rename to c4x_insert_attributes.
16111 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
16112 * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
16114 * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
16115 (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
16117 * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
16118 * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
16120 * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
16121 (v850_set_default_decl_attr): Rename to v850_insert_attributes.
16122 Adjust parameters. Make static.
16124 2001-07-08 Joseph S. Myers <jsm28@cam.ac.uk>
16126 * c-common.c (decl_attributes): Only take a single attributes
16128 * c-common.h (decl_attributes): Update prototype.
16129 * c-decl.c (start_decl, start_function): Only take a single
16130 attributes parameter. Update calls to decl_attributes.
16131 (finish_struct, finish_enum): Update calls to decl_attributes.
16132 (push_parm_decl): Expect unified list of attributes. Update call
16133 to decl_attributes.
16134 * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
16135 notype_nested_function, component_declarator,
16136 component_notype_declarator, label): Update calls to
16138 (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
16139 lists that are passed to push_parm_decl.
16140 * c-tree.h (start_function, start_decl): Update prototypes.
16141 * config/sh/sh-protos.h, config/sh/sh.c
16142 (sh_pragma_insert_attributes): Only take a single attributes
16144 * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
16145 * doc/tm.texi (INSERT_ATTRIBUTES): Update.
16146 * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
16147 build_module_descriptor, generate_static_references,
16148 generate_strings, build_selector_translation_table,
16149 generate_descriptor_table, generate_protocols,
16150 generate_ivars_list, generate_dispatch_table,
16151 generate_protocol_list, generate_category,
16152 generate_shared_structures, really_start_method, add_objc_decls,
16153 generate_classref_translation_entry): Update calls to start_decl
16154 and start_function.
16155 (build_tmp_function_decl, start_method_def): Unify attribute lists
16156 that are passed to push_parm_decl.
16158 2001-07-08 Neil Booth <neil@daikokuya.demon.co.uk>
16160 * final.c (no_asm_to_stream): New.
16161 (final_scan_insn): Use target structures for prologue ends
16162 and epilogue starts.
16163 * output.h (no_asm_to_stream): New.
16164 * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
16165 TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
16166 (TARGET_ASM_OUT): Update.
16167 * target.h (struct gcc_target): New members function_end_prologue
16168 and function_begin_epilogue.
16169 * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
16170 * config/alpha/alpha-protos.h (output_end_prologue): Delete.
16171 * config/alpha/alpha.c (output_end_prologue): Rename to
16172 alpha_output_function_end_prologue. Use in target struct
16174 * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
16175 * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
16176 * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
16177 ia64_output_function_end_prologue. Use in target struct
16179 (ia64_function_prologue, ia64_funciton_epilogue): Rename
16180 mistyped prototypes.
16181 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
16182 * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
16184 * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
16185 an use in target struct, make static.
16186 * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
16189 2001-07-08 Richard Henderson <rth@redhat.com>
16191 * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
16193 2001-07-08 Richard Henderson <rth@redhat.com>
16195 * config/i386/i386.md: Remove constraints strings from define_split
16196 and define_peephole2 patterns.
16197 (eh_return_si, eh_return_di): Split eh_return_1 for modes.
16198 (eh_return): Use them.
16200 2001-07-08 Richard Henderson <rth@redhat.com>
16202 * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
16203 Document MD_FALLBACK_FRAME_STATE_FOR.
16205 2001-07-07 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16207 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
16208 Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
16210 * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
16212 2001-07-07 Nick Clifton <nickc@cambridge.redhat.com>
16214 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
16215 of the label inside NAME as opposed to just the end of NAME.
16217 2001-07-07 Neil Booth <neil@daikokuya.demon.co.uk>
16219 * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
16220 * config/alpha/alpha.c (alpha_init_machine_status,
16221 alpha_mark_machine_status, alpha_free_machine_status): Delete.
16222 (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
16223 (vms_valid_decl_attribute_p): Make static, conditionally compile.
16224 * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
16226 2001-07-06 Stan Shebs <shebs@apple.com>
16228 * target.h (targetm): Rename global from "target", so as not to
16229 conflict with local variables.
16231 * c-typeck.c: Ditto.
16234 * cp/decl.c: Ditto.
16235 * cp/decl2.c: Ditto.
16236 * cp/typeck.c: Ditto.
16237 * 1750a/1750a.c: Ditto.
16238 * a29k/a29k.c: Ditto.
16239 * arc/arc.c: Ditto.
16240 * arm/arm.c: Ditto.
16241 * avr/avr.c: Ditto.
16242 * clipper/clipper.c: Ditto.
16243 * convex/convex.c: Ditto.
16244 * d30v/d30v.c: Ditto.
16245 * dsp16xx/dsp16xx.c: Ditto.
16246 * elxsi/elxsi.c: Ditto.
16247 * fr30/fr30.c: Ditto.
16248 * h8300/h8300.c: Ditto.
16249 * i370/i370.c: Ditto.
16250 * i386/i386.c: Ditto.
16251 * i860/i860.c: Ditto.
16252 * i960/i960.c: Ditto.
16253 * ia64/ia64.c: Ditto.
16254 * m32r/m32r.c: Ditto.
16255 * m68hc11/m68hc11.c: Ditto.
16256 * m68k/m68k.c: Ditto.
16257 * m88k/m88k.c: Ditto.
16258 * mips/mips.c: Ditto.
16259 * ns32k/ns32k.c: Ditto.
16261 * pdp11/pdp11.c: Ditto.
16262 * romp/romp.c: Ditto.
16263 * rs6000/rs6000.c: Ditto.
16265 * sparc/sparc.c: Ditto.
16266 * vax/vax.c: Ditto.
16267 * we32k/we32k.c: Ditto.
16268 * doc/tm.texi: Update the manual to match.
16270 2001-07-06 Richard Henderson <rth@redhat.com>
16272 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
16273 DWARF2_UNWIND_INFO not just whether it is defined.
16275 2001-07-06 Diego Novillo <dnovillo@redhat.com>
16277 * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
16278 call to simplify_binary_operation returns a new pattern.
16280 2001-07-06 Roman Lechtchinsky <rl@cs.tu-berlin.de>
16282 * glimits.h (__SHRT_MAX__): New.
16283 (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
16284 (SHRT_MAX): Define in terms of __SHRT_MAX__.
16286 2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl>
16288 * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
16291 2001-07-06 Richard Henderson <rth@redhat.com>
16293 * bitmap.c (bitmap_release_memory): Move adjacent to the
16294 allocation functions.
16295 (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
16296 the implementation. Binary search for the set bit.
16297 (bitmap_union_of_diff): Allocate the temporary on the stack
16298 instead of using xmalloc.
16300 2001-07-06 Richard Henderson <rth@redhat.com>
16302 * genrecog.c (validate_pattern): Warn for constraints in
16303 define_{expand,split,peephole2}. Remove strict_low_part
16304 before looking up match_dup.
16306 2001-07-06 DJ Delorie <dj@redhat.com>
16308 * doc/gcc.texi (Makefile): Rename to be a more general purpose
16309 chapter about various build hints and history. Add section
16310 talking about the various types of native and cross builds.
16312 2001-07-06 Neil Booth <neil@daikokuya.demon.co.uk>
16314 * Makefile.in (final.o): Depend on target.h.
16315 * final.c: Include target.h.
16316 (default_function_pro_epilogue): New.
16317 (final_start_function): Use target structure for function prologues.
16318 (final_end_function): Use target structure for function epilogues.
16319 * fold-const.c (real_hex_to_f): Constify s and p.
16320 * output.h (default_function_pro_epilogue): New.
16321 * real.h (real_hex_to_f): Update prototype.
16322 * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
16323 TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
16324 (TARGET_INITIALIZER): Update.
16325 * target.h (gcc_target): Add struct asm_out.
16326 * doc/tm.texi: Update.
16329 Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
16330 TARGET_ASM_FUNCTION_EPILOGUE. Move macro code to functions
16331 in cpu/cpu.c, or rename old functions consistently. Take
16332 a HOST_WIDE INT not an int as the SIZE parameter. Remove now
16333 redundant macros and prototypes. Make new functions static.
16335 * 1750a/1750a.c: Similarly.
16336 * 1750a/1750a.h: Similarly.
16337 * a29k/a29k-protos.h: Similarly.
16338 * a29k/a29k.c: Similarly.
16339 * a29k/a29k.h: Similarly.
16340 * arc/arc-protos.h: Similarly.
16341 * arc/arc.c: Similarly.
16342 * arc/arc.h: Similarly.
16343 * arm/arm-protos.h: Similarly.
16344 * arm/arm.c: Similarly.
16345 * arm/arm.h: Similarly.
16346 * avr/avr-protos.h: Similarly.
16347 * avr/avr.c: Similarly.
16348 * avr/avr.h: Similarly.
16349 * clipper/clipper-protos.h: Similarly.
16350 * clipper/clipper.c: Similarly.
16351 * clipper/clipper.h: Similarly.
16352 * convex/convex.c: Similarly.
16353 * convex/convex.h: Similarly.
16354 * d30v/d30v-protos.h: Similarly.
16355 * d30v/d30v.c: Similarly.
16356 * d30v/d30v.h: Similarly.
16357 * d30v/d30v.md: Similarly.
16358 * dsp16xx/dsp16xx-protos.h: Similarly.
16359 * dsp16xx/dsp16xx.c: Similarly.
16360 * dsp16xx/dsp16xx.h: Similarly.
16361 * elxsi/elxsi.c: Similarly.
16362 * elxsi/elxsi.h: Similarly.
16363 * fr30/fr30.c: Similarly.
16364 * fr30/fr30.md: Similarly.
16365 * h8300/h8300-protos.h: Similarly.
16366 * h8300/h8300.c: Similarly.
16367 * h8300/h8300.h: Similarly.
16368 * i370/i370-protos.h: Similarly.
16369 * i370/i370.c: Similarly.
16370 * i370/i370.h: Similarly.
16371 * i386/i386.c: Similarly.
16372 * i386/osf1elf.h: Similarly.
16373 * i386/osfrose.h: Similarly.
16374 * i860/i860-protos.h: Similarly.
16375 * i860/i860.c: Similarly.
16376 * i860/i860.h: Similarly.
16377 * i960/i960-protos.h: Similarly.
16378 * i960/i960.c: Similarly.
16379 * i960/i960.h: Similarly.
16380 * ia64/ia64-protos.h: Similarly.
16381 * ia64/ia64.c: Similarly.
16382 * ia64/ia64.h: Similarly.
16383 * m32r/m32r-protos.h: Similarly.
16384 * m32r/m32r.c: Similarly.
16385 * m32r/m32r.h: Similarly.
16386 * m68hc11/m68hc11-protos.h: Similarly.
16387 * m68hc11/m68hc11.c: Similarly.
16388 * m68hc11/m68hc11.h: Similarly.
16389 * m68k/crds.h: Similarly.
16390 * m68k/dpx2.h: Similarly.
16391 * m68k/m68k-protos.h: Similarly.
16392 * m68k/m68k.c: Similarly.
16393 * m68k/m68k.h: Similarly.
16394 * m68k/news.h: Similarly.
16395 * m88k/m88k-protos.h: Similarly.
16396 * m88k/m88k.c: Similarly.
16397 * m88k/m88k.h: Similarly.
16398 * mips/mips-protos.h: Similarly.
16399 * mips/mips.c: Similarly.
16400 * mips/mips.h: Similarly.
16401 * ns32k/merlin.h: Similarly.
16402 * ns32k/ns32k.c: Similarly.
16403 * ns32k/ns32k.h: Similarly.
16404 * ns32k/tek6000.h: Similarly.
16405 * pa/pa-protos.h: Similarly.
16406 * pa/pa.c: Similarly.
16407 * pa/pa.h: Similarly.
16408 * pdp11/2bsd.h: Similarly.
16409 * pdp11/pdp11-protos.h: Similarly.
16410 * pdp11/pdp11.c: Similarly.
16411 * pdp11/pdp11.h: Similarly.
16412 * romp/romp-protos.h: Similarly.
16413 * romp/romp.c: Similarly.
16414 * romp/romp.h: Similarly.
16415 * rs6000/rs6000-protos.h: Similarly.
16416 * rs6000/rs6000.c: Similarly.
16417 * rs6000/rs6000.h: Similarly.
16418 * rs6000/sysv4.h: Similarly.
16419 * sh/sh-protos.h: Similarly.
16420 * sh/sh.c: Similarly.
16421 * sh/sh.h: Similarly.
16422 * sparc/sparc-protos.h: Similarly.
16423 * sparc/sparc.c: Similarly.
16424 * sparc/sparc.h: Similarly.
16425 * vax/vax.c: Similarly.
16426 * vax/vax.h: Similarly.
16427 * vax/vms.h: Similarly.
16428 * we32k/we32k.c: Similarly.
16429 * we32k/we32k.h: Similarly.
16431 Fri Jul 6 11:47:59 2001 Jeffrey A Law (law@cygnus.com)
16433 * basic-block.h (first_insn_after_basic_block_note): Declare.
16434 * flow.c (first_insn_after_basic_block_note): Define. Moved
16436 * ssa.c (first_insn_after_basic_block_note): Remove.
16437 * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
16439 (ssa_eliminate_dead_code): Properly update the CFG and PHI
16440 nodes when we find a dead conditional branch. Insert BARRIERs
16441 after any blocks with no successors, but which do not have
16444 2001-07-06 Zack Weinberg <zackw@stanford.edu>
16446 * varray.c (varray_check_failed): Use internal_error.
16448 2001-07-05 Andrew Haley <aph@redhat.com>
16450 * Makefile.in (LIB2_DIVMOD_FUNCS): New.
16451 (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
16452 * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
16454 2001-07-02 Jason Merrill <jason_merrill@redhat.com>
16456 * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
16457 reference if the target constant is also a SYMBOL_REF.
16459 2001-07-05 Eric Christopher <echristo@redhat.com>
16461 * config/mips/mips.h (MASK_MIPS3900): Remove.
16462 (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
16463 MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
16464 (TARGET_MIPS3900): Change to use mips_arch.
16465 (TARGET_MIPS4000): New.
16466 (TARGET_MIPS4100): New.
16467 (TARGET_MIPS4300): New.
16468 (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
16469 (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
16471 (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
16472 (ISA_HAS_BRANCHLIKELY): To here.
16473 (CC1_CPU_SPEC): New.
16474 (CC1_SPEC): Use here. Remove 4650 and 3900 options.
16475 (mips_arch_string): Declare.
16476 (mips_arch): Declare.
16477 (TARGET_OPTIONS): Add -march and -mtune.
16479 * config/mips/mips.c (mips_arch_string): New.
16481 (override_options): Handle -march for codegen and -mtune
16482 for scheduling. Use mips_arch. Move tx39 target default here.
16483 (mips_parse_cpu): Move error message to override_options.
16485 * config/mips/r3900.h (TARGET_DEFAULT): Remove.
16487 * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
16489 * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
16490 (MIPS Options): Ditto. Change mcpu entry to historical text.
16492 2001-07-05 H.J. Lu (hjl@gnu.org)
16494 * config/mips/mips.c (mips_parse_cpu): New function to parse
16497 2001-07-05 Jim Wilson <wilson@redhat.com>
16499 * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
16500 * config/ia64/t-ia64: Likewise.
16501 (LIB1ASMFUNCS): Update comment.
16503 2001-07-05 David Edelsohn <edelsohn@gnu.org>
16505 * doc/install.texi (Install GCC: Binaries): Fix typo.
16507 2001-07-04 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16509 * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
16510 reference using the stack pointer, adjust it since we push Y
16512 ("*ashrsi3"): Likewise.
16513 ("*lshrsi3"): Likewise.
16515 2001-07-05 Stephane Carrez <Stephane.Carrez@worldnet.fr>
16517 * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
16518 when -fomit-frame-pointer is used.
16520 2001-07-05 Jeffrey Oldham <oldham@codesourcery.com>
16522 * flow.c: Reverse Jan Hubicka's patch of 02July2001.
16523 (try_redirect_by_replacing_jump): Reverse updating properly the
16524 count and frequency information. Reverse removing cc0 setter.
16525 (forwarder_block_p): Reverse fixing for fallthru blocks.
16527 2001-07-05 DJ Delorie <dj@redhat.com>
16529 * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
16530 (translate_options): If the above is defined, use it to map
16531 given options to new options.
16532 * doc/tm.texi: Document it.
16534 2001-07-05 Brad Lucier <lucier@math.purdue.edu>
16535 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16537 * doc/invoke.texi (Optimize Options): Document that -fgcse may
16538 cause programs using computed gotos to run more slowly.
16540 2001-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16542 * doc/install.texi (Specific): Markup, spelling and typo fixes.
16544 Consistently require binutils 2.11.2, not prereleases.
16545 (Specific, decstation-*): Canonicalize as mips-dec-*.
16546 (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
16548 (Specific, m68k-altos): Removed reference to README.altos, deleted.
16549 (Specific, mips-*): Reword MIPS C compiler requirements.
16550 (Specific, powerpc*-*-*): New, mention --with-cpu once.
16551 (Specific, sunv5): Removed, obsolete.
16553 2001-07-05 Nathan Sidwell <nathan@codesourcery.com>
16555 * dwarf2out.c (output_loc_list): Use an all ones mask for
16556 .text asm output and don't rely on long long
16557 literals. Reformat some long lines.
16559 2001-07-05 Andreas Jaeger <aj@suse.de>
16561 * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
16564 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
16566 * dwarf2out.c (dwarf2out_define): Update comment.
16567 (dwarf2out_undef): Ditto.
16568 (dwarf2out_start_source_file): Ditto.
16569 (dwarf2out_end_source_file): Ditto.
16570 (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
16571 since we never call the start/end debug hook for the primary file.
16573 2001-07-04 Kazu Hirata <kazu@hxi.com>
16575 * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
16578 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
16580 * cppinit.c (remove_dup_dirs): Inform if a system include
16581 directory is being reordered.
16582 * doc/invoke.texi (Directory Options): GCC warns if you hide a
16584 * doc/cpp.texi (Search Paths): Likewise.
16585 * doc/gcc.texi (Interoperation): Remove information about
16588 2001-07-04 Nathan Sidwell <nathan@codesourcery.com>
16590 * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
16591 (VARRAY_TOP_CHAR_PTR): Likewise.
16593 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16595 * gcc.c (process_command): Don't assign elements of a const char*.
16597 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16599 * emit-rtl.c (change_address): Don't abort if invalid address while
16600 reload is in progress.
16602 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
16604 * c-lex.c (cb_file_change): Pass line number to
16605 debug_start_source_file.
16606 (cb_undefine): Pass correct line number to debug_undef.
16608 * toplev.c (debug_start_source_file): Add line number to
16609 parameters. Pass it along to dwarf2out_start_source_file.
16610 (decode_g_option): Stop resetting debug level back to normal when
16611 we change debug formats, unless the current level is
16612 none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
16615 * toplev.h (debug_start_source_file): Add line number to
16618 * dwarf2out.h (dwarf2out_start_source_file): Add line number to
16621 * dwarf2out.c (dwarf2out_start_source_file): Add line number to
16623 Output debug_macinfo data for starting file if requested.
16624 (dwarf2out_end_source_file): Output debug_macinfo data for ending
16626 (dwarf2out_define): Output debug_macinfo data for defining a macro
16628 (dwarf2out_undef): Output debug_macinfo data for undefining a
16629 macro if requested.
16630 (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
16631 (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
16632 (macinfo_section_label): New. DWARF2 macro info section label.
16633 (dwarf2out_init): If we want macro info, output the start label
16635 (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
16636 attribute to the compilation unit die pointing to the macro info.
16638 2001-07-04 Daniel Berlin <dan@cgsoftware.com>
16640 * dwarf2out.c (new_loc_list): Move to inside #ifdef
16641 DWARF2_DEBUGGING_INFO.
16642 (add_loc_descr_to_loc_list): Ditto.
16643 (output_loc_list): Ditto.
16644 Also, fix thinko in curr not being initialized.
16645 (gen_internal_sym): Ditto.
16647 Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16649 * emit-rtl.c (replace_equiv_address): New function.
16650 * expr.h (replace_equiv_address): New declaration.
16651 * explow.c (validize_mem): Call it instead of change_address and
16652 also call if -fforce-addr and address is constant.
16653 * expr.c: Replace more calls to change_address with adjust_address
16654 and/or replace_equiv_address or to validize_mem.
16655 * function.c, regmove.c, config/alpha/alpha.c: Likewise.
16656 * config/arm/arm.md, config/clipper/clipper.md: Likewise.
16657 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
16658 * config/i370/i370.md, config/i860/i860.md: Likewise.
16659 * config/i960/i960.md, config/mips/mips.c: Likewise.
16660 * config/mips/mips.md, config/pa/pa.md: Likewise.
16661 * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
16662 * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
16664 2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16666 * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
16668 * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
16671 2001-07-04 Joseph S. Myers <jsm28@cam.ac.uk>
16673 * doc/include: New directory.
16674 * doc/fdl.texi: Move to doc/include/fdl.texi.
16675 * doc/texinfo.tex: Move to doc/include/texinfo.tex.
16676 * doc/include/funding.texi, doc/include/gpl.texi: New files.
16677 * doc/gcc.texi: Use funding.texi and gpl.texi.
16678 * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
16679 $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
16680 Update dependencies and use -I $(docdir)/include.
16682 2001-07-04 Anthony Green <green@redhat.com>
16684 * config/v850/t-v850 (v850-c.o): Add missing dependencies.
16686 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16688 * doc/install.texi (sparc64-*-*): Remove garbage.
16690 Wed Jul 4 09:07:44 2001 Jan van Male <jan.vanmale@fenk.wau.nl>
16692 * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
16693 Fix typo in last change to use adjust_address.
16695 2001-07-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16697 * doc/install.texi (Specific): Update information for *-*-solaris*.
16699 Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16701 * explow.c (plus_constant_wide): Reinitialize Y for restart.
16703 2001-07-03 Stan Shebs <shebs@apple.com>
16705 * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
16706 case for flag_no_mach_text_sections.
16707 (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
16708 * config/darwin.c (flag_no_mach_text_sections): Remove.
16709 * config/darwin-protos.h (darwin_init_pragma): Remove decl.
16711 Tue Jul 3 15:35:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16713 * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
16714 and avoid checking for constant as first operand.
16715 * recog.c (find_constant_term_loc): No longer static.
16716 (adj_offettable_operand): Delete.
16717 * rtl.h (adj_offsettable_operand): Delete declaration.
16718 (find_constant_term): Add declaration.
16719 * caller-save.c: Replace calls to adj_offsettable_operand with calls
16721 * config/arm/arm.c, config/c4x/c4x.c: Likewise.
16722 * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
16723 * config/i386/i386.c, config/i386/i386.md: Likewise.
16724 * config/i860/i860.c, config/i960/i960.c: Likewise.
16725 * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
16726 * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
16727 * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
16728 * config/mips/mips.c, config/mips/mips.md: Likewise.
16729 * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
16730 * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
16731 * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
16732 * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
16733 * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
16734 * config/ns32k/ns32k.md: Likewise.
16736 2001-07-03 Zack Weinberg <zackw@stanford.edu>
16738 * rtl.c (copy_rtx): Handle 'T' format letter.
16739 * gensupport.c (collect_insn_data): Likewise.
16740 * print-rtl.c (print_rtx): Print 'T' slots like 's'.
16742 2001-07-03 Nick Clifton <nickc@cambridge.redhat.com>
16744 * doc/invoke.texi (Directory Options): Specifiy range for <N> in
16745 -B option. Use 'dir' not 'foo' as example directory name.
16747 2001-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16749 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16750 Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
16752 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
16754 * doc/cppinternals.texi: Improve formatting and logical markup.
16756 2001-07-03 Andreas Jaeger <aj@suse.de>
16758 * Makefile.in (insn-recog.o): Add dependency on reload.h.
16760 * genrecog.c (write_header): Include reload.h for prototypes in
16763 2001-07-03 Neil Booth <neil@daikokuya.demon.co.uk>
16766 * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
16767 VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
16768 * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
16769 i386_pe_valid_type_attribute_p): Add.
16770 * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
16771 * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
16773 Mon Jul 2 21:52:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16775 * explow.c (plus_constant_wide, case LO_SUM): New case.
16776 (plus_constant_for_output_wide): Delete.
16777 * rtl.h (plus_constant_for_output): Delete.
16778 * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
16779 instead of plus_constant_for_output.
16780 * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
16781 * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
16782 * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
16783 * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
16784 * config/sparc/sparc.md: Likewise.
16785 Convert some change_address calls to adjust_address.
16787 2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
16789 * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
16790 doc/rtl.texi, doc/tm.texi: Improve formatting. Improve
16791 documentation of -std and -Wwrite-strings.
16793 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
16795 * cse.c (canon_hash): Don't register registers in very small
16796 register classes, as extending their lifetime might cause
16799 Mon Jul 2 23:14:00 CEST 2001 Jan Hubicka <jh@suse.cz>
16801 * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
16803 * flow.c (forwarder_block_p): Fix for fallthru blocks.
16804 (try_redirect_by_replacing_jump): Update properly the count
16805 and frequency information.
16807 Mon Jul 2 14:20:13 2001 Jeffrey A Law (law@cygnus.com)
16809 * toplev.c (dump_file_index): Move SSA dumps just after first
16811 (dump_file): Corresponding changes.
16812 (rest_of_compilation): Move SSA path to just after the first
16814 * doc/gcc.texi (Passes): Update due to movement of SSA path.
16815 * doc/invoke.texi: Update dump file #s as they were completely
16816 out of date with reality.
16818 2001-07-02 Geoffrey Keating <geoffk@redhat.com>
16820 * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
16822 * expr.c (emit_move_insn_1): Deal with non-default
16825 * expr.c (emit_single_push_insn): Fix warning.
16827 2001-07-02 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
16829 * expr.c (emit_move_insn_1): Avoid modifying
16830 cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
16832 Mon Jul 2 15:33:31 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16834 * emit-rtl.c (adjust_address): New function.
16835 * expr.h (adjust_address): Add declaration.
16836 * builtins.c: Replace some calls to change_address with calls to it
16837 or to validize_mem.
16838 * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
16839 * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
16840 * config/arm/arm.c, config/convex/convex.c: Likewise.
16841 * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
16842 * config/i386/i386.c, config/i386/i386.md: Likewise.
16843 * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
16844 * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
16845 * config/m88k/m88k.c, config/mips/mips.md: Likewise.
16846 * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
16847 * config/sh/sh.c, config/sparc/sparc.md: Likewise.
16849 2001-07-02 Jim Wilson <wilson@redhat.com>
16851 * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
16853 2001-07-02 Steve Ellcey <sje@cup.hp.com>
16855 * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
16856 * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
16858 2001-07-02 Zack Weinberg <zackw@stanford.edu>
16860 * cppinit.c (lang_defaults): New table.
16861 (set_lang): Just read from lang_defaults into the live options
16864 2001-07-02 Zack Weinberg <zackw@stanford.edu>
16866 * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
16867 * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
16868 * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
16870 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16872 * doc/install.texi: Various spelling and markup fixes.
16873 (Installing GCC): Component specific installation instructions are
16876 Warn about removing old install dir in the presence of shared libs.
16877 (Configuration): Invoke with options target to match configure
16879 Consistently refer to gas, gld pathnames.
16880 Invert --enable-multilib documentation.
16881 Remove references to old compiler versions.
16883 Mon Jul 2 12:50:51 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16885 * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
16887 2001-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16889 * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
16891 (Specific, mips*-sgi-irix5): Note IDO download.
16892 Reworded MIPS C hints.
16893 Use GNU as instead of GAS.
16895 Removed SGI Freeware reference, IRIX 6 only.
16896 (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
16897 Note N64 library requirement/workaround.
16899 Complete list of structure passing bug victims.
16901 2001-07-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16903 * doc/install.texi: Remove CVS Id.
16905 2001-07-02 Andreas Jaeger <aj@suse.de>
16907 * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
16908 (find_inherently_necessary): Remove unused variable.
16910 2001-07-02 Nathan Sidwell <nathan@codesourcery.com>
16912 * c-common.h (TDI_inlined): New ast dump phase.
16913 (dump_flag_name): New function.
16914 * c-dump.c (dump_files): Add inlined phase.
16915 (dump_flag_name): Define.
16916 * doc/invoke.texi (-fdump-ast-inlined): Document.
16918 Mon Jul 2 06:29:36 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16920 * stor-layout.c (layout_decl): Revert change to handling of alignment
16923 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16925 * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
16928 2001-07-01 Geoffrey Keating <geoffk@redhat.com>
16930 * doc/tm.texi (FUNCTION_ARG): Document that the last call
16933 2001-07-01 Nathan Sidwell <nathan@codesourcery.com>
16935 * tlink.c (recompile_files): Remove COMPILER_PATH and
16936 LIBRARY_PATH from the environment.
16938 2001-07-01 Zack Weinberg <zackw@stanford.edu>
16940 * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
16941 RID_LAST_PQ. Move RID_FIRST_PQ down with the other FIRST/LAST
16943 (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
16945 * c-parse.in (OBJC_STRING): Kill.
16946 (objc_string): Decompose to [objc_string] '@' STRING.
16947 (reswords): Take the leading '@' off all the Objective C keywords.
16948 (objc_rid_sans_at): Kill.
16949 (init_reswords): Don't initialize it.
16950 (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
16951 (_yylex): Kill reconsider label. Look ahead one token after
16952 an '@'; if we get an identifier, check whether it's an
16953 Objective C @-keyword. If so, return the keyword. Otherwise,
16954 put back the token and return the '@' as a terminal.
16956 * cpplib.c (lex_macro_node): Remove unnecessary check for
16957 leading '@' on identifier. Clarify control flow and commentary.
16959 Sun Jul 1 11:53:52 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16961 * cse.c (new_label_ref): Variable deleted.
16962 (insert): Remove set of new_label_ref.
16963 (check_for_label_ref): New function.
16964 (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
16966 See ChangeLog.5 for earlier changes.