* emit-rtl.c (adjust_address_1): Always copy address to avoid
[official-gcc.git] / gcc / ChangeLog
blobed8c11b95fee265519b5995a31169a3ac8cc787c
1 2001-12-12  Richard Henderson  <rth@redhat.com>
3         * emit-rtl.c (adjust_address_1): Always copy address to avoid
4         shared rtl.
6 Wed Dec 12 07:37:52 2001  Olivier Hainque <hainque@act-europe.fr>
8         * stmt.c (expand_end_case): Do subtraction of lower bound as trees
9         to avoid overflow.
11 Wed Dec 12 07:35:24 2001  Douglas B. Rupp  <rupp@gnat.com>
13         * cppfiles.c (read_include_file): Set buffer size properly when
14         file is shorter than expected.
16 Wed Dec 12 08:35:33 2001  Nicola Pero  <n.pero@mi.flashnet.it>
18         * objc/objc-act.c (encode_complete_bitfield): Fixed encoding
19         enumeral types - encode them using 'i'.
21 2001-12-12  Nathan Sidwell  <nathan@codesourcery.com>
23         * doc/extend.texi (Deprecated Features): Deprecate implicit
24         typename. Document that named return and initializer lists are now
25         removed.
27 2001-12-11  Roger Sayle <roger@eyesopen.com>
29         * except.c (reachable_next_level): Handle ERT_UNKNOWN to avoid
30         compiler warning about enumeration values not being handled.
32 2001-12-11  Momchil Velikov  <velco@fadata.bg>
34         * config/fp-bit.c (pack_d): Cast to ``fractype'' for long long
35         shifts.
37 2001-12-11  Richard Henderson  <rth@redhat.com>
39         * config/alpha/alpha.h (TARGET_FIXUP_EV5_PREFETCH): New.
40         * config/alpha/linux.h (TARGET_FIXUP_EV5_PREFETCH): New.
41         * config/alpha/alpha.md (prefetch): New.
43 2001-12-11  Richard Henderson  <rth@redhat.com>
45         * combine.c (simplify_and_const_int): Simplify (AND (PLUS X Y) C)
46         if C has only low bits set and doesn't intersect with X or Y.
48 Tue Dec 11 23:58:39 EST 2001  John Wehle  (john@feith.com)
50         * basic-block.h (flow_preorder_transversal_compute): Declare.
51         * cfganal.c (flow_preorder_transversal_compute): Implement.
53 Tue Dec 11 23:54:27 EST 2001  John Wehle  (john@feith.com)
55         * cfganal.c (flow_depth_first_order_compute): Always
56         increment dfsnum.
58 2001-11-30 Alan Matsuoka <alanm@redhat.com>
60         * combine.c (combine_simplify_rtx) : Can't simplify
61         cases that use mode class MODE_CC.
63 2001-12-11  Richard Henderson  <rth@redhat.com>
65         * expmed.c (expand_divmod): Ignore sdiv_pow2_cheap for modes in
66         which there is no divide expander.
68 2001-12-11  Richard Henderson  <rth@redhat.com>
70         * except.c (sjlj_find_directly_reachable_regions): Don't
71         consider RNL_BLOCKED a directly reachable region.
72         (sjlj_assign_call_site_values): Trust directly_reachable.
73         (sjlj_emit_dispatch_table): Likewise.
75 2001-12-11  Richard Henderson  <rth@redhat.com>
77         * config/alpha/alpha.md (divmodsi_internal_er): Split, so that
78         we represent the address load's dependency on the gp.
79         (divmoddi_internal_er): Likewise.
80         (divmodsi_internal_er_1, divmoddi_internal_er_1): New.
82 2001-12-11  Richard Henderson  <rth@redhat.com>
84         * emit-rtl.c (widen_memory_access): New.
85         * expr.h (widen_memory_access): Declare it.
86         * config/alpha/alpha.c (get_aligned_mem): Use it.
88 2001-12-11  Richard Henderson  <rth@redhat.com>
90         * combine.c (simplify_shift_const): Move SHIFT_COUNT_TRUNCATED
91         simplification above out of range check.
93 2001-12-11  Dan Nicolaescu  <dann@ics.uci.edu>
95         * config/sparc/sparc.md (prefetch): New.
97 2001-12-11  Aldy Hernandez  <aldyh@redhat.com>
99         * output.h (regno_uninitialized): Make argument unsigned.
101         * flow.c (regno_uninitialized): Make regno unsigned.
103 2001-12-11  David O'Brien  <obrien@FreeBSD.org>
105         * elfos.h (ENDFILE_SPEC, STARTFILE_SPEC): Do not define.
106         * config/cris/cris.h (ENDFILE_SPEC): Define.
107         * config/i386/i386elf.h ((ENDFILE_SPEC, STARTFILE_SPEC): Define.
108         * config/pa/elf.h: Likewise.
110 2001-12-11  Richard Henderson  <rth@redhat.com>
112         * objc/objc-act.c (build_string_class_template): New.
113         (build_objc_string_object): Call it.
115 2001-12-11  Steve Ellcey  <sje@cup.hp.com>
117         * doc/tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): New.
118         * defaults.h (FUNCTION_ARG_REG_LITTLE_ENDIAN): New.
119         * calls.c (store_unaligned_arguments_into_pseudos): Check
120         FUNCTION_ARG_REG_LITTLE_ENDIAN to see how structures
121         are passed/returned.
122         * expr.c (move_block_from_reg): Ditto.
123         (move_block_from_reg): Ditto.
124         (copy_blkmode_from_reg): Ditto.
125         * stmt.c (expand_return): Ditto.
126         * stor-layout.c (compute_record_mode): If
127         FUNCTION_ARG_REG_LITTLE_ENDIAN is set then check
128         MEMBER_TYPE_FORCES_BLK even if mode == VOIDmode.
129         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set to true
130         so that Structures of one field are still treated as structures.
131         (FUNCTION_ARG_REG_LITTLE_ENDIAN): New, set it to true.
132         (FUNCTION_ARG_PADDING): Set to ia64_hpux_function_arg_padding().
133         (PAD_VARARGS_DOWN): Modify from default to not pad structures down.
134         * config/ia64/ia64-protos.h (ia64_hpux_function_arg_padding): New.
135         * config/ia64/ia64.c (ia64_hpux_function_arg_padding): New function
136         to special case handling of structure padding.
138 2001-12-11  Daniel Berlin  <dan@cgsoftware.com>
140         * sched-rgn.c (CONST_BASED_ADDRESS_P): CONST_INT -> CONSTANT_P.
141         (may_trap_exp): Stores only are risk if they trap, too, not just
142         if code == MEM.
144 2001-12-11  Aldy Hernandez  <aldyh@redhat.com>
146         * flow.c (find_regno_partial): Indent properly.  Add a default to
147         switch.
149 2001-12-11  Neil Booth  <neil@daikokuya.demon.co.uk>
151         * c-common.c (combine_strings): Complain if concatenating
152         __FUNCTION__.
153         * c-parse.in (yylexname): Flag artificial strings.
154         * tree.h (TREE_ARTIFICIAL_STRING_P): New.
155 doc:
156         * extend.texi: Update.
158 2001-12-11  Aldy Hernandez  <aldyh@redhat.com>
160         * c-common.c (type_for_mode): Handle unsigned vectors.
161         (type_for_mode): Remove redundant calls to TYPE_MODE.
163         * tree.c (make_vector): New.
164         (build_common_tree_nodes_2): Use make_vector for vector types.
165         Add unsigned vector types.
167         * tree.h (tree_index): Add unsigned types for vectors.
168         (unsigned_V16QI_type_node): New.
169         (unsigned_V4SI_type_node): New.
170         (unsigned_V8QI_type_node): New.
171         (unsigned_V8HI_type_node): New.
172         (unsigned_V4HI_type_node): New.
173         (unsigned_V2SI_type_node): New.
175 2001-12-11  Stan Shebs  <shebs@apple.com>
177         * objc/objc-act.c (finish_message_expr): Fix misplaced parens in a
178         test of class names.
180 2001-12-11  David O'Brien  <obrien@FreeBSD.org>
182         * config.gcc (m68020-*-elf*): Expand tm_file to include all needed
183         cpu configuration headers.
184         * config/h8300/elf.h: Include dbxelf.h.
185         * config/m68k/linux.h: Likewise.
186         * config/m68k/m68020-elf.h: Likewise.
187         * config/m68k/m68kv4.h: Likewise.
188         * config/sh/elf.h: Likewise.
189         * config/m68k/m68kemb.h: Add comment about the its purpose.
191 2001-12-11  Richard Henderson  <rth@redhat.com>
193         * objc/objc-act.c (build_constructor): Cast initializer values
194         to the proper field types.
196 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
198         * unwind-dw2.c (execute_cfa_program): Fix DW_CFA_restore handling.
200 2001-12-10  Roger Sayle <roger@eyesopen.com>
202         * builtins.c (expand_builtin): Use a switch statement to list
203         those functions not expanded without optimizations, instead of a
204         series of equality tests.
206 Tue Dec 11 07:08:57 2001  Douglas B. Rupp  <rupp@gnat.com>
208         * config/alpha/vms.h (LIB_SPEC): Define.
209         * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Don't set component field.
211         * libgcc2.c (_bb): Remove ctime declaration.
213         * Makefile.in (stage[1234]-start): $(LN_S) utilities in a manner
214         that works if LN_S = cp.
216         * config/alpha/x-vms (version): Change "." to "_".
218         * configure.in: Hardcode that vfork works on VMS host.
219         * configure: Regenerated.
221 Mon Dec 10 18:37:31 2001  Douglas B. Rupp  <rupp@gnat.com>
223         * gcc.c (convert_filename): Add do_obj parameter. Don't convert
224         unless do_obj true.
225         (process_command): Modify calls to convert_filename.
227 2001-12-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
229         * config/sparc/sol2-sld-64.h: Include dbxelf.h again.
231 Mon Dec 10 15:54:27 2001  Jeffrey A Law  (law@cygnus.com)
233         * combine.c (known_cond): Check mode of each operand to determine
234         if COND is comparing floating point values.
236 2001-12-10  David Edelsohn  <edelsohn@gnu.org>
238         * rs6000.h (processor_type): Add PPC405.
239         (RTX_COSTS): Add PPC405.  Correct rs64 and ppc630 multiply costs.
240         * rs6000.md: Add PPC405 information.  Utilize imul2 and imul3 for
241         rios1, rs64, and ppc630 processors.
242         * rs6000.c (processor_target_table): Add PPC405.
244 2001-12-10  Richard Henderson  <rth@redhat.com>
246         * config/alpha/alpha.md (unaligned_extendhidi): Call gen_lowpart
247         instead of hardcoding subregs into the _be and _le patterns.
249 2001-12-10  Neil Booth  <neil@daikokuya.demon.co.uk>
251         * c-lex.c, c-parse.in, c-typeck.c: Revert concatenation changes.
253 Mon Dec 10 09:19:11 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
255         * config/i386/i386.md (leave, leave_rex64): Adjust pattern to match
256         what insn does.
258 2001-12-10  Joseph S. Myers  <jsm28@cam.ac.uk>
260         * doc/cpp.texi: Don't condition menus on @ifinfo.  Condition the
261         copyright notice formerly conditioned on @ifinfo on @ifnottex
262         instead.
264 Mon Dec 10 06:15:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
266         * vmsdbgout.c (lookup_filename): Remove warning.
268 Mon Dec 10 06:09:57 2001  Douglas B. Rupp  <rupp@gnat.com>
270         * Makefile.in: Add $(OUTPUT_OPTION) to compilation rules.
272         * config.gcc (alpha*-dec-vms*): Change to alpha*-dec-*vms*
273         (exeext, target_alias, prefix, local_prefix): Define.
274         * config/alpha/x-vms (USE_COLLECT2): Make empty.
275         * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Use Unix style
276         file specifications. Remove ".".
277         (GCC_INCLUDE_DIR): Remove redefinition (redundant).
278         * fixinc/mkfixinc.sh (alpha*-dec-vms*):  Change to alpha*-dec-*vms*
280 2001-12-09  Nathan Sidwell  <nathan@codesourcery.com>
282         * Makefile.in (.po.gmo): Use POSIXLY_CORRECT argument ordering.
284 Sun Dec  9 21:57:24 2001  Douglas B. Rupp  <rupp@gnat.com>
286         * config/alpha/t-vms (EXTRA_PARTS): Append $(VMS_EXTRA_PARTS)
287         Add rules for building [vp]crt0.o
288         * config/alpha/vms.h (START_FILE_SPEC): Define.
289         * config/alpha/x-vms (VMS_EXTRA_PARTS): Define
290         * config/alpha/vms-crt0.c, config/alpha/vms-psxcrt0.c: New files.
291         * doc/invoke.texi: Document special Alpha/VMS options.
293 Sun Dec  9 20:25:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
295         * hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.
296         * vmsdbg.h (DST_SRC_COMMAND): Test for type of long long or __int64,
297         not GNUC.
299 Sun Dec  9 20:19:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
300                           Douglas B. Rupp  <rupp@gnat.com>
302         * tree.c (append_random_char): Conditionalize INO for VMS.
304 2001-12-09  Richard Henderson  <rth@redhat.com>
306         * cfgcleanup.c (label_is_jump_target_p): New function.
307         (try_optimize_cfg): Use label_is_jump_target_p to check if label is
308         target of a JUMP_INSN from the preceding block.
310 Sun Dec  9 18:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
312         * vmsdbgout.c (lookup_filename): Assign null string instead
313         of null pointer to fnam.
315 2001-12-09  Richard Henderson  <rth@redhat.com>
317         * config/alpha/alpha.c (alpha_align_insns): Suppress realignment
318         immediately after a call; insert nops before a call.
320 2001-12-09  Richard Henderson  <rth@redhat.com>
322         * config/alpha/alpha.c (alpha_align_insns): Use align_functions,
323         not FUNCTION_BOUNDARY.
324         * config/alpha/alpha.h (TRAMPOLINE_ALIGNMENT): New.
325         * config/alpha/alpha32.h, config/alpha/vms.h: Likewise.
326         * config/alpha/unicosmk.h (FUNCTION_BOUNDARY): Remove.
328 2001-12-09  Hans-Peter Nilsson  <hp@bitrange.com>
330         * config/mmix/mmix.c (mmix_function_block_profiler,
331         mmix_block_profiler, mmix_function_block_profiler_exit): Delete
332         unused functions.
333         * config/mmix/mmix-protos.h (mmix_function_block_profiler,
334         mmix_block_profiler, mmix_function_block_profiler_exit): Delete
335         prototypes.
337         * config/cris/cris.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER):
338         Delete obsoleted macros.
340 2001-12-09  Joseph S. Myers  <jsm28@cam.ac.uk>
342         * doc/cpp.texi, doc/cppinternals.texi, doc/invoke.texi,
343         doc/md.texi, doc/rtl.texi, doc/tm.texi: Use American spelling.
345         * ChangeLog.2, ChangeLog.3, ChangeLog.5, ChangeLog, alias.c,
346         cfgbuild.c, expmed.c, expr.c, final.c, flow.c, fold-const.c,
347         function.c, config/alpha/alpha.md, config/alpha/vms-ld.c,
348         config/arm/arm.c, config/arm/arm.h, config/c4x/libgcc.S,
349         config/i370/i370.c, config/i386/i386.c,
350         config/i386/i386-interix.h, config/i386/i386.md,
351         config/i386/i386.h, config/i386/netbsd-elf.h, config/ia64/ia64.c,
352         config/m32r/m32r-protos.h, config/mcore/mcore.h,
353         config/rs6000/rs6000.h, config/sparc/linux64.h,
354         config/sparc/sparc.c, config/v850/v850-protos.h,
355         config/cris/cris.h, config/s390/s390.md, config/elfos.h: Fix
356         spelling errors.
358 2001-12-09  Daniel Berlin  <dan@cgsoftware.com>
360         * config/rs6000/rs6000.h (enum rs6000_builtins): Add remaining
361         altivec builtins (VCF?X, VCT?XS, VSEL, V*EFP, VRFI*).
363         * config/rs6000/rs6000.c: Ditto.
365         * config/rs6000/rs6000.md: Ditto.
367 2001-12-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
369         * 1750a.md: Add default case in switch.
370         * alpha/vms.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
371         if-else statement.
372         * dsp16xx.c (print_operand_address): Likewise.
373         * i386/osf1elf.h (FUNCTION_PROFILER): Const-ify.
374         * ia64.md: Add missing braces.
375         * rs6000-protos.h (s8bit_cint_operand): Prototype.
376         * s390.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
377         if-else statement.
378         * stormy16.h (REG_CLASS_CONTENTS): Add missing braces.
379         * v850.h (OUTPUT_ADDR_CONST_EXTRA): Don't issue a `return'.
380         * dbxout.c (dbxout_source_file): Move a variable into the scope
381         where it is used.
382         * final.c (profile_function): Mark parameter with
383         ATTRIBUTE_UNUSED.
384         * genemit.c (gen_expand): Likewise for generated file.
385         * insn-addr.h (INSN_ADDRESSES_NEW): Avoid undefined behavior.
387         * vmsdbg.h: Delete spurious close-comment.
388         (DST_HEADER): Fix typo in ENUM_BITFIELD parameter.
389         * vmsdbgout.c (write_modbeg): Define return type.
391         * m68k/3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
392         * m68k/amix.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
393         * m68k/atari.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
394         * m68k/hp320.h (ASM_OUTPUT_ALIGN): Likewise.
395         * m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Likewise.
396         * m68k/sgs.h (ASM_OUTPUT_ALIGN): Likewise.
397         * m68k/tower-as.h (ASM_OUTPUT_ALIGN): Likewise.
399 2001-12-08  Tom Rix  <trix@redhat.com>
401         * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete MASK_STRING.
402         * config/rs6000/aix51.h (NON_POWERPC_MASKS): Same.
403         * config/rs6000/rs6000.md (load_multiple, store_multiple): Do not use
404         for powerpc64.
405         * config/rs6000/rs6000.md (movstrsi_8reg, movstrsi_6reg,
406         movstrsi_4reg, movstrsi_1_reg): Add powerpc64.
407         * config/rs6000/rs6000.c (expand_block_move): Do not use
408         gen_movstrsi_2reg and powerpc64.
410 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
412         * c-common.h (rid): Add RID_CHOOSE_EXPR and
413         RID_TYPES_COMPATIBLE_P.
415         * c-parse.in (reswords): Add __builtin_choose_expr.
416         Add __builtin_types_compatible_p.
417         Add CHOOSE_EXPR token.
418         Add TYPES_COMPATIBLE_P token.
419         Add production for CHOOSE_EXPR.
420         Add production for TYPES_COMPATIBLE_P.
422         * doc/extend.texi (__builtin_choose_expr): Add documentation.
423         (__builtin_types_compatible_p): Likewise.
425 2001-12-08  David Edelsohn  <edelsohn@gnu.org>
427         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
428         to unions.
430 2001-12-08  Neil Booth  <neil@daikokuya.demon.co.uk>
432         * c-parse.in: Take string literals in assembler constructs,
433         not expressions.
434         * c-typeck.c (build_asm_stmt, simple_asm_stmt): No need to
435         check the strings are STRING_CSTs.
437 2001-12-08  Neil Booth  <neil@daikokuya.demon.co.uk>
439         * c-lex.c (c_lex): Peek a token ahead for a string to concatenate,
440         using combine_strings to do the concatenation.
441         * c-parse.in: Replace uses of the string non-terminal with STRING.
442         Don't attempt string concatenation.
443         (OBJC_STRING): New terminal.
444         (string): Remove non-terminal.
445         (_yylex): Call combine_strings on function names.  Generate
446         OBJC_STRING terminals; don't pass '@' on to yacc.
447         * c-typeck.c (simple_asm_stmt): Don't concatenate strings here.
448         (build_asm_stmt): Similarly.
450 2001-12-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
452         * rtlanal.c (get_jump_table_offset): Delete unused variable.
454 2001-12-08  Richard Earnshaw  <rearnsha@arm.com>
456         * arm.md (VUNSPEC_PREFETCH): Delete constant definition.
457         (prefetch): Rewrite using PREFETCH RTL primitive.
458         * arm.h (arm_builtins): Delete ARM_BUILTIN_PREFETCH).
459         * arm.c (arm_init_builtins): Don't initialize a builtin for
460         __builtin_prefetch here.
461         (arm_expand_builtin): Don't expand __builtin_prefetch here.
463 2001-12-08  Richard Earnshaw  <rearnsha@arm.com>
465         * final.c (cleanup_subreg_operands):  Use recog_data.operand_loc
466         in test for a subreg.
468 2001-12-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
470         * rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
471         strings.
473 2001-12-07  Richard Henderson  <rth@redhat.com>
475         * doc/extend.texi: Fix typo last change.
477         * c-decl.c (c_language): Remove duplicate.
479 2001-12-07  Dale Johannesen  <dalej@apple.com>
481         * config/rs6000/darwin.h: Set MAX_LONG_TYPE_SIZE to 32.
482         * config/rs6000/rs6000.c (rs6000_emit_move): In Darwin-
483         specific codegen, eliminate a register copy.
484         (print_operand_address): Add support for Darwin's lo16(constant)
485         syntax.
486         (rs6000_machopic_legitimize_pic_address): Fix darwin-specific
487         generation of addresses within very large data objects.
488         (s8bit_cint_operand):  New.
489         * config/rs6000/rs6000.md: Remove "iu" reference for 750/7400.
490         Move "mtjmpr" to correct functional unit for 750/7400/7450.
491         Add imul2 and imul3 insn types for multiplication by 16- and
492         8-bit constants.
493         Change tablejump patterns to strongly discourage using LR
494         rather than CTR.
495         Add %lo16 patterns for Darwin loads and stores.
497 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
499         * alpha.md: Use (HOST_WIDE_INT)1<<63 in lieu of 0x8000000000000000.
501 2001-12-07  Stephane Carrez  <Stephane.Carrez@sun.com>
503         * config/sparc/sparc.c (epilogue_renumber): Do not replace %fp
504         with %sp because it can cause the delayed instruction to load
505         below the stack.
507 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
509         * alpha.c (alpha_expand_unaligned_store,
510         alpha_expand_unaligned_store_words): Use constm1_rtx in place of
511         call to immed_double_const.
513 2001-12-07  Aldy Hernandez  <aldyh@redhat.com>
515         * doc/extend.texi (Variable Attributes): Document vector_size.
517         * attribs.c (c_common_attribute_table): Add vector_size.
518         (handle_vector_size_attribute): New.
519         (vector_size_helper): New.
520         (decl_attributes): Relayout the decl after calculating attribs.
522 2001-12-07  Joseph S. Myers  <jsm28@cam.ac.uk>
524         * doc/gcc.texi: Don't include install-old.texi.  Adjust menu
525         description for Trouble section.
526         * doc/install-old.texi: Adjust for inclusion as chapter of new
527         installation manual.
528         * doc/install.texi, doc/include/fdl.texi, doc/install.texi2html:
529         Adjust to include old installation chapter as chapter of new
530         installation manual.
532 Fri Dec  7 11:07:35 EST 2001  John Wehle  (john@feith.com)
534         * rtl.h (get_jump_table_offset): Declare.
535         * rtlanal.c (get_jump_table_offset): Implement.
537 Fri Dec  7 07:06:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
539         * final.c (bb_head, bb_tail, bb_file_label_num, bb_func_label_num):
540         Deleted; were used only by BB profiler code.
541         (sbb_head, sbb_tail, sbb_label_num): Likewise.
542         (end_final): Delete now-unused vars I, PTR, and SPTR.
544         * expr.c (store_field): Remove warning.
545         (expand_expr, case COMPONENT_REF, case VIEW_CONVERT_EXPR): Likewise.
546         (highest_pow2_factor, case MIN_EXPR, case MAX_EXPR): Add cases.
547         (highest_pow2_factor, case *_DIV_EXPR): Only can do something if
548         divisor constant power of 2.
549         (highest_pow2_factor, case COMPOUND_EXPR): Look at operand 1.
551 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
553         * alpha.c (function_arg): Cast value to HOST_WIDE_INT before
554         shifting.
556 2001-12-06  Aldy Hernandez  <aldyh@redhat.com>
558         * rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.
559         (DWARF_FRAME_REGISTERS): Delete.
561 2001-12-06  Janis Johnson  <janis187@us.ibm.com>
563         * builtin-types.def (BT_FN_VOID_PTR_VAR): New.
564         * builtins.def (BUILT_IN_PREFETCH): Change arguments.
565         * builtins.c (expand_builtin_prefetch): Two arguments are now optional,
566         with defaults for read prefetch with high degree of locality.
567         * doc/extend.texi (__builtin_prefetch): Update documentation.
568         * doc/md.texi (prefetch): Add documentation.
570 2001-12-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
572         * fixinc/inclhack.def (stdio_va_list): Handle __VA_LIST__ in Tru64
573         UNIX V5.1A stdio.h.
574         * fixinc/fixincl.x: Regenerate.
575         Fixes PR libf2c/4826.
577 2001-12-06  Aldy Hernandez  <aldyh@redhat.com>
578             Richard Henderson  <rth@redhat.com>
580         * doc/tm.texi (DWARF_FRAME_REGISTERS): Add documentation.
581         (PRE_GCC3_DWARF_FRAME_REGISTERS): Same.
583         * unwind-dw2.c (__frame_state_for): Change DWARF_FRAME_REGISTERS
584         to PRE_GCC3_DWARF_FRAME_REGISTERS.
585         (frame_state): Same.
586         (PRE_GCC3_DWARF_FRAME_REGISTERS): Define if not already defined.
588 2001-12-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
590         * langhooks.c (lhd_staticp): Mark parameter with
591         ATTRIBUTE_UNUSED.
593 2001-12-06  H.J. Lu <hjl@gnu.org>
595         * Makefile.in (.po.gmo): Use "-test -d po || mkdir po" to
596         reduce noise.
597         (.po.pox): Likewise.
598         (o/$(PACKAGE).pot): Likewise.
600 2001-12-06  Alexandre Oliva  <aoliva@redhat.com>
602         * tree.c (get_callee_fndecl): Move DECL_ABSTRACT_ORIGIN-following...
603         * tree-inline.c (expand_call_inline): ... here.
605 2001-12-06  H.J. Lu <hjl@gnu.org>
607         * Makefile.in (.po.gmo): Use "-mkdir po" for parallel build.
608         (.po.pox): Likewise.
609         (o/$(PACKAGE).pot): Likewise.
611 2001-12-06  David O'Brien  <obrien@FreeBSD.org>
613         * config.gcc: Include dbxelf.h before elfos.h.
614         * elfos.h: Don't include dbxelf.h, let config.gcc handle it.
616 2001-12-06  Zack Weinberg  <zack@codesourcery.com>
618         * cppfiles.c (open_file): If we've opened a directory by
619         mistake, close it.
620         (find_include_file): Avoid turning / into // or // into ///.
622 2001-12-06  Nick Clifton  <nickc@cambridge.redhat.com>
624         * config/arm/arm.h (STRUCT_VALUE): Suppress definition.
625         (STRUCT_VALUE_REGNUM): Restore definition.
627 2001-12-06  Andrew MacLeod <amacleod@redhat.com>
629         * flow.c (find_regno_partial): Return register, not the expression
630         the register is in.
632 Thu Dec  6 09:24:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
634         * function.c (handle_epilogue_set): Check for FP setting case when
635         SP is set from FP in same insn.
637 2001-12-06  Nick Clifton  <nickc@cambridge.redhat.com>
639         * config/arm/arm.c (load_multiple_sequence): Pass pointer to
640         RTX when calling alter_subreg().
641         (store_multiple_sequence): Pass pointer to RTX when calling
642         alter_subreg().
644 Thu Dec  6 06:55:13 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
646         * function.c (assing_parms): Fix typo in last change.
647         * config/clipper.c (clipper_builtin_saveregs): Remove Checker code.
648         * config/m88k/m88k.c (m88k_builtin_saveregs): Likewise.
649         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
650         * config/sparc/sparc.c (sparc_builtin_saveregs): Likewise.
652 2001-12-06  Alan Modra  <amodra@bigpond.net.au>
654         * config/rs6000/rs6000.c (rs6000_unique_section): Simplify and
655         correct code selecting section.
657 Thu Dec  6 12:45:33 CET 2001  Jan Hubicka  <jh@suse.cz>
659         * final.c (count_basic_block, add_bb, add_bb_string):
660         Kill.
661         (end_final, final_start_function, final, final_scan_insn,
662         leaf_function_p): Kill BB profiler related code.
663         * flags.h (profile_block_flag): Kill.
664         * libgcc2.c (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE,
665         BB_BUCKETS, BBINBUFSIZE, bb_edge, bb_func_mode, bb_func,
666         __bb, bb_src, bb_dst, bb_tracefile, bb_hashbuckets,
667         bb_func_head, bb_callcount, bb_mode, bb_stack, bb_stacksize
668         reported, GOPENDECOMPRESS, GOPENCOMPRESS, gopen, gclose,
669         __bb_exit_trace_func, __bb_init_prg, __bb_trace_func,
670         __bb_trace_func_ret, __bb_init_file, __bb_trace_ret,
671         __bb_init_trace_func): Kill.
672         * toplev.c (profile_block_flag): Kill.
673         (indepdendent_decode_option, process_options): Kill -a related code.
674         * alpha.c (direct_call_operand): Likewise.
675         * arm.c (arm_expand_prologue, thumb_expand_prologue,
676         thumb_expand_epilogue): Likewise.
677         * c4x.c (c4x_expand_prologue, c4x_null_epilogue_p): Likewise.
678         * c4x.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
679         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
680         MACHINE_STATE_RESTORE): Kill.
681         * d30v.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
682         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
683         MACHINE_STATE_RESTORE): Kill.
684         * fr30.c (fr30_expand_prologue): Kill BB profiler related code.
685         * i386.c (ix86_can_use_return_insn_p, ix86_expand_prologue,
686         ix86_expand_epilogue, ix86_expand_epilogue): Kill BB profiler related
687         code.
688         (ix86_output_function_block_profiler, ix86_output_block_profiler): Kill.
689         * i386.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
690         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
691         MACHINE_STATE_RESTORE): Kill.
692         * fr30.c (fr30_expand_prologue): Kill BB profiler related code.
693         * i960.c (i960_output_function_prologue): Kill BB profiler related
694         code.
695         * ia64.c (ia64_compute_frame_size): Likewise.
696         * ia64.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
697         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
698         MACHINE_STATE_RESTORE): Kill.
699         * m32r.c (m32r_expand_prolofue): Kill BB profiler related code.
700         * m68hc11.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
701         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
702         MACHINE_STATE_RESTORE): Kill.
703         * m68k.c (m68k_output_function_epilogue): Kill BB profiler related code.
704         * m68k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
705         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
706         MACHINE_STATE_RESTORE): Kill.
707         * m88k.c (output_options, m88k_layout_frame, m88k_expand_prologue):
708         Kill BB profiler related code.
709         * m88k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
710         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
711         MACHINE_STATE_RESTORE): Kill.
712         * mips.c (mips_expand_prologue): Kill BB profiler related code.
713         * mmix.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
714         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
715         MACHINE_STATE_RESTORE): Kill.
716         * rs6000.c (rs6000_override_options): Kill BB profiler related code.
717         * s960.c (s390_function_prologue): Kill BB profiler related code.
718         * s960.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
719         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
720         MACHINE_STATE_RESTORE): Kill.
721         * linux-aout.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
722         * linux.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
723         * linux64.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
724         * sol2.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
725         * sparc.c (sparc_override_options, eligible_for_sibcall_delay,
726         sparc_nonflat_function_epilogue): Kill BB profiler related code.
727         (sparc_function_block_profiler, sparc_block_profiler,
728         sparc_function_block_profiler_exit): Kill.
729         * sparc.h (OVERRIDE_OPTIONS): Kill BB profiler related code.
730         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
731         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
732         MACHINE_STATE_RESTORE): Kill.
733         * sun4o3.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
734         * sunos4.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
735         * stormy16.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
736         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
737         MACHINE_STATE_RESTORE): Kill.
738         * doc/invoke.texi: Kill documentation of -a and -ax.
739         * tm.texi (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
740         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
741         MACHINE_STATE_RESTORE): Kill.
743 2001-10-26  Steve Christiansen  <smc@us.ibm.com>
745         * doc/rtl.texi: Use a table to display RTL format characters.
747 2001-12-06  Bo Thorsen  <bo@suse.co.uk>
749         * config/i386/linux64.h (LINK_SPEC): Correct name of dynamic linker.
751 Wed Dec  5 19:18:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
753         * function.c (keep_stack_depressed): Check global_live_at_start
754         of EXIT_BLOCK for temp register and verify it isn't in equiv_reg_src.
756 2001-12-05  David O'Brien  <obrien@FreeBSD.org>
758         * config.gcc (powerpc-*-freebsd*): Use the proper tmake_file files,
759         as set by the generic FreeBSD configure framework.
761 2001-12-04  Jason Merrill  <jason@redhat.com>
763         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
764         start_inlining, end_inlining.
765         * tree-inline.c (expand_call_inline): Call them.
766         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
767         (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
768         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Add them.
769         * langhooks.c (lhd_tree_inlining_start_inlining): New fn.
770         (lhd_tree_inlining_end_inlining): New fn.
772 2001-12-05  Neil Booth  <neil@daikokuya.demon.co.uk>
774         * c-common.c (shadow_warning): New function, moved from cp/decl.c.
775         * c-common.h (shadow_warning): New.
776         * c-decl.c: Include c-common.h.
777         (warn_if_shadowing): New, broken out of pushdecl.
778         (pushdecl): Use warn_if_shadowing.
779         (store_parm_decls): Prevent duplicate -Wshadow warnings.
781 Wed Dec  5 17:59:19 2001  Douglas B. Rupp  <rupp@gnat.com>
783         * config/alpha/vms.h (SIZE_TYPE, PTRDIFF_TYPE): Remove, were disabled.
784         (DOLLARS_IN_IDENTIFIERS, LINK_SPEC): Remove duplicate.
785         (LIB_SPEC): Remove.
787 Wed Dec  5 16:03:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
789         * doc/c-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition.
790         (QUAL_UNION_TYPE): New type.
792         * varasm.c (output_constant, case ERROR_MARK): New case.
794         * attribs.c (handle_no_check_memory_usage_atribute): Deleted.
795         (c_com): Delete its reference.
796         * builtins.c: Delete memory checking code.
797         * calls.c, expr.c, function.c, stmt.c: Likewise.
798         * builtins.c (expand_builtin_arg_info): Remove reference to
799         EXPAND_MEMORY_USE_* modifiers.
800         * explow.c (expr_size): Likewise.
801         * expr.c (expand_expr, expand_increment): Likewise.
802         * expr.h (ARGS_SIZE_RTX): Likewise.
803         * function.c (assign_parms, expand_pending_sizeso): Likewise.
804         * c-decl.c (duplicate_decls): Don't handle DECL_NO_CHECK_MEMORY_USAGE.
805         * expr.c (in_check_memory_usage): Delete.
806         (get_push_address, get_memory_usage_from_modifier): Delete.
807         (expand_assigment): Use EXPAND_WRITE on destination.
808         (expand_expr): Delete ro_modifier.
809         * expr.h (expand_modifier): Delete EXPAND_MEMORY_* entries and
810         add EXPAND_WRITE.
811         (memory_use_mode): Delete.
812         * flags.h (flag_check_memory_usage): Deleted.
813         (flag_prefix_function_name): Likewise.
814         * function.c (expand_function_start): Don't set
815         current_function_check_memory_usage.
816         * function.h (check_memory_usage): Delete.
817         * libfuncs.h, optabs.c: Delete chkr_* stuff.
818         * stmt.c (expand_asm_opernd): Change EXPAND_MEMORY_USE_WO to
819         EXPAND_WRITE.
820         * toplev.c (flag_check_memory_usage): Deleted.
821         (flag_prefix_function_name): Likewise.
822         (f_options, process_options): Delete references to above.
823         * tree.h (DECL_NO_CHECK_MEMORY_USAGE): Deleted.
824         * varasm.c (CHKR_PREFIX): Deleted.
825         (make_decl_rtl): Remove flag_prefix_function_name handling.
826         (assemble_name): Likewise.
827         * doc/extend.texi: Remove no_check_memory_usage attribute.
828         * doc/invoke.texi: Remove -fcheck-memory-usage
829         and -fprefix-function-name.
831 2001-12-05  Andreas Schwab  <schwab@suse.de>
833         * Makefile.in (STMP_FIXPROTO, STMP_FIXINC): Use substituted values
834         from autoconf.
836 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
838         * config.gcc: Include arm/xscale-coff.h before arm/arm.h.
840 2001-12-05  William Cohen  <wcohen@redhat.com>
842         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Correct typo in
843         instruction.
845 2001-12-05  Daniel Berlin  <dan@cgsoftware.com>
847         * config/rs6000/rs6000.h (enum rs6000_builtins): Add more altivec
848         builtins.
850         * config/rs6000/rs6000.md: Modeling of 7450 altivec changed to
851         better reflect reality (change from Apple's tree).
852         Add more of altivec instructions.
853         Add ftruncv4sf2 pattern.
854         Remove more unspecs (vector merge instructions, etc).
856         * config/rs6000/rs6000.c (bdesc_3arg): New, for 3 argument altivec
857         builtins.
858         (bdesc_1arg): New, for 1 argument altivec builtins.
859         (altivec_expand_builtin): Handle unary and ternary ops.
860         (altivec_init_builtins): Ditto.
862 Wed Dec  5 09:33:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
864         * config/alpha/vms.h (ADA_LONG_TYPE_SIZE): New macro.
865         * doc/tm.texi (ADA_LONG_TYPE_SIZE): Document it.
867 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
869         * gcse.c (store_killed_in_insn): Consider pure calls
870         as potential store killers in addition to normal calls.
872 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
874         * expr.c (expand_expr): When checking promoted value, use
875         DECL_MODE (exp) and not mode.
877 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
879         * c-typeck.c (output_init_element): Call digest_init
880         just once, not in each if branch and check its return value for
881         error_mark_node.
883 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
885         * c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's
886         type is RECORD_TYPE, UNION_TYPE or ARRAY_TYPE thereof.
887         (finish_struct): Break the loop if n_incomplete went to 0.
888         For ARRAY_TYPE, if it is not TYPE_DECL, layout the decl too.
890 Wed Dec  5 07:41:13 2001  Douglas B. Rupp  <rupp@gnat.com>
892         * config/alpha/alpha.c (alpha_va_start): Update VMS case.
894 Wed Dec  5 07:27:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
895                           Douglas B. Rupp  <rupp@gnat.com>
897         * vmsdbg.h, vmsdbgout.c: Add documentation and minor cleanups.
898         * doc/invoke.texi: Add -gvms.
899         * doc/passes.texi: Add mention of vmsdbgout.c.
900         * doc/tm.texi: Document VMS debugging output.
902 Wed Dec  5 06:26:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
904         * function.h (tree, rtx): Remove no-longer-needed definitions.
906         * function.c (keep_stack_depressed): Refine check for register
907         clobbered over call.
909         * expr.c (store_expr): When copying string constant into array,
910         use functions that update memrefs instead of computations on
911         addresses to better track MEMs.  Also properly handle 32/64 pointers.
912         (expand_expr): Use TARGET even if not reg for multi-word CONSTRUCTOR.
913         (expand_expr, case CONSTRUCTOR): Fix errors in parms to assign_temp.
915         * emit-rtl.c (component_ref_for_mem_expr): Try harder to find decl
916         underneath COMPONENT_REFs.
917         (set_mem_attributes): Also strip VIEW_CONVERT_EXPR.
919 2001-12-05  Neil Booth  <neil@daikokuya.demon.co.uk>
921         * toplev.c (display_target_options): Don't print twice.
923 Wed Dec  5 00:42:16 EST 2001  John Wehle  (john@feith.com)
925         * emit-rtl.c (set_unique_reg_note): Don't set
926         a REG_EQUAL or REG_EQUIV note if multiple sets
927         are present.
929 2001-12-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
931         * cfgrtl.c (verify_flow_info): Allow jump table data in fallthru if
932         CASE_DROPS_THROUGH.
934 2001-12-04  Andrew MacLeod  <amacleod@redhat.com>
936         * rtl.h (initialize_uninitialized_subregs): New prototype.
937         * toplev.c (rest_of_compilation): Call initialize_uninitialized_subregs
938         when optimization is on.
939         * flow.c (find_regno_partial): Find subregs within an expression.
940         (initialize_uninitialized_subregs): Initialize live on entry registers
941         which are used in subreg expressions.
943 2001-12-04  Phil Edwards  <pme@gcc.gnu.org>
945         * Makefile.in:  Add INSTALL_SCRIPT using INSTALL definition.
947 2001-12-04  DJ Delorie  <dj@redhat.com>
949         * fixinc/fixincl.c (initialize): Avoid problemsome macro
950         parameter names (PR 3388).
952 2001-12-05  Alan Modra  <amodra@bigpond.net.au>
954         * config/rs6000/rs6000.c (rs6000_legitimize_address): Fix typo.
955         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Here too.
957 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
959         * c-common.def (COMPOUND_LITERAL_EXPR): New.
960         * c-common.c (c_expand_expr): Handle COMPOUND_LITERAL_EXPR.
961         (c_staticp): New function.
962         * c-common.h (COMPOUND_LITERAL_EXPR_DECL): New.
963         (c_staticp): Declare.
964         * c-typeck.c (default_function_array_conversion, build_unary_op):
965         Don't handle CONSTRUCTOR specially.
966         (lvalue_p, mark_addressable): Handle COMPOUND_LITERAL_EXPR.
967         * c-decl.c (build_compound_literal): New function.
968         * c-tree.h (build_compound_literal): Declare.
969         * c-parse.in (primary): Use build_compound_literal.
970         * c-lang.c (LANG_HOOKS_STATICP): Define.
971         * objc/objc-lang.c (LANG_HOOKS_STATICP): Likewise.
972         * doc/c-tree.texi: Document COMPOUND_LITERAL_EXPR.
973         * doc/extend.texi: Update documentation of compound literals.
974         Fixes PR c/4787.
976 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
978         * langhooks.h (struct lang_hooks): Add staticp.
979         * langhooks-def.h (lhd_staticp, LANG_HOOKS_STATICP): New.
980         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_STATICP.
981         * langhooks.c (lhd_staticp): New function.
982         * tree.c (staticp): Call lang_hooks.staticp for language-specific
983         tree codes.
985 2001-12-04  Neil Booth  <neil@daikokuya.demon.co.uk>
987         * cppspec.c (lang_specific_driver): Set is_cpp_driver.
988         * gcc.c (process_command): Ensure the cpp driver sees
989         --help and --target-help, and that the help is printed
990         exactly once.
992 2001-12-04  David Edelsohn  <edelsohn@gnu.org>
994         * config/elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.
996 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
998         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Don't unset
999         flag_strict_aliasing.  Use separate assignment statements.
1001 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
1003         * build-make, cross-make: Delete file.
1004         * configure.in: Set and substitute CROSS, ALL,
1005         SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_PREFIX_1, HOST_CC,
1006         HOST_CFLAGS, STMP_FIXINC, and STMP_FIXPROTO depending on
1007         whether build == host and host == target.  Do not
1008         AC_SUBST_FILE build_overrides or cross_overrides.  Do not
1009         AC_SUBST cross_defines or extra_c_flags.
1010         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): New.
1011         (SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_CC, HOST_PREFIX,
1012         HOST_PREFIX_1, HOST_CFLAGS, ALL, INTERNAL_CFLAGS): Set
1013         partially or completely with autoconf-substituted @variable@
1014         notation.
1015         (INSTALL_TARGET, @cross_defines@, @cross_overrides@,
1016         @build_overrides@, @extra_c_flags@, all.build, install-build,
1017         install-cross-rest, install-float-h-cross): Deleted.
1018         (install-normal): Rename to install.  Delete old "install"
1019         indirection rule.
1021 2001-12-04  Andrew MacLeod  <amacleod@redhat.com>
1023         * stmt.c (expand_return): Clear destination instead of clobbering it
1024         when setting a return value via bitsets.
1026 2001-12-04  Alexandre Oliva  <aoliva@redhat.com>
1028         * tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if
1029         it has DECL_SAVED_TREE.
1031         * c-decl.c (duplicate_decls): Revert rth's patch.  If newdecl
1032         is in a different binding level, get its abstract origin to be
1033         olddecl.
1034         * tree-inline.c (expand_call_inline): Move DECL_INITIAL sanity
1035         check earlier.
1036         * tree.c (get_callee_fndecl): Follow DECL_ABSTRACT_ORIGIN if
1037         DECL_INITIAL is NULL.
1039 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
1041         * flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.
1042         Return correct value if one of the subexpressions was optimized to
1043         0 resp. 1.  Optimize (x | A) | x and (x & A) | x.
1044         (and_reg_cond): Similarly.
1046 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
1048         * function.c (assign_parms): Set last_named only for last named
1049         argument.
1051 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1053         * doc/install.texi: Use the GFDL.  Include years from old install
1054         manual in copyright notice.  Include copyright and GFDL notice on
1055         HTML index page.  Include usual footer on testing.html.
1056         * doc/install.texi2html: Build gfdl.html.  Use -I
1057         $SOURCEDIR/include.
1058         * doc/include/fdl.texi: Adapt for use in the install manual.
1060 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1062         * doc/install.texi: Document that installed native compiler for
1063         building cross compilers should be GCC 2.95 or later.
1065 2001-12-03  Eric Christopher  <echristo@redhat.com>
1067         * config/mips/mips.h (CALL_REALLY_USED_REGISTERS): New macro.
1068         * config/mips/mips.md: Check TARGET_DEBUG_D_MODE before split
1069         patterns.
1071 2001-12-03  Janis Johnson  <janis187@us.ibm.com>
1073         * rtl.def (PREFETCH): New rtx code.
1074         * doc/rtl.texi (PREFETCH): Add documentation.
1075         * function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx.
1076         * rtlanal.c (reg_referenced_p): Ditto.
1077         * sched-vis.c (print_exp):  Ditto.
1078         * ssa-dce.c (find_inherently_necessary):  Ditto.
1080         * config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
1081           (PREFETCH_BLOCK): Define.
1082         * config/ia64/ia64.md (itanium_class): Add lfetch.
1083           (prefetch, prefetch_internal): New.
1085         * builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
1086         * builtins.def (BUILT_IN_PREFETCH): New.
1087         * builtins.c (expand_builtin_expect): New.
1088           (expand_builtin): Call it.
1089         * doc/extend.texi: Document __builtin_prefetch.
1091         * config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid
1092           conflicts with new generic prefetch functionality.
1093         * config/i386/i386.c (ix86_expand_builtin): Use new name for
1094           prefetch_sse.
1096 2001-12-02  Ziemowit Laski  <zlaski@apple.com>
1098         * objc/Make-lang.in: Update copyright.
1099         (OBJC_OBJS): Add objc-lang.o.
1100         (objc-lang.o): New rule.
1101         * objc/config-lang.in: Fix file description and update
1102         copyright.
1103         * objc/objc-act.c: Do not include langhooks.h and
1104         langhooks-def.h
1105         (lang_hooks): Move (along with LANG_HOOKS...) to objc-lang.c.
1106         (objc_post_options): Move to objc-lang.c.
1107         (objc_init_options): Move to objc-lang.c.
1108         (objc_init): Make non-static.
1109         (objc_decode_option): Make non-static.
1110         (HASHFUNCTION): Remove macro.
1111         (hash_func): New function.
1112         (hash_enter): Replace HASHFUNCTION with hash_func.
1113         (hash_lookup): Replace HASHFUNCTION with hash_func.
1114         (maybe_objc_tree_codes): New function.
1115         (init_objc): Move ObjC tree code initialization to
1116         maybe_objc_tree_codes().
1117         * objc/objc-act.h (GCC_OBJC_ACT_H): New include guard.
1118         (objc_init): New public prototype.
1119         (objc_decode_option): New public prototype.
1120         (maybe_add_objc_tree_codes): New public prototype.
1121         * objc/objc-lang.c: New file.
1122         (lang_hooks): Moved from objc-act.c.
1123         (objc_post_options): Moved from objc-act.c.
1124         (objc_init_options): Moved from objc-act.c.
1126 2001-12-03  Geoff Keating  <geoffk@redhat.com>
1128         * emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension
1129         of array elements.
1131 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1133         PR c/4988
1134         * gcc.c (process_command): Don't add a preprocessor option for
1135         --help and --target-help; cc1 is enough.
1137 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1139         * c-decl.c (grokdeclarator): Use ISO word.
1140         * cppinit.c: Remove leading capital from diagnostic messages, as
1141         per GNU coding standards.
1142         * emit-rtl.c: Similarly.
1143         * final.c: Similarly.
1144         * gcc.c: Similarly.
1145         * tradcpp.c: Similarly.
1146         * config/arm/arm.c: Similarly.
1147         * config/arm/arm.h: Similarly.
1148         * config/avr/avr.c: Similarly.
1149         * config/avr/avr.h: Similarly.
1150         * config/c4x/c4x.c: Similarly.
1151         * config/cris/cris.c: Similarly.
1152         * config/cris/cris.h: Similarly.
1153         * config/d30v/d30v.c: Similarly.
1154         * config/dsp16xx/dsp16xx.c: Similarly.
1155         * config/dsp16xx/dsp16xx.h: Similarly.
1156         * config/h8300/h8300.c: Similarly.
1157         * config/i386/i386.c: Similarly.
1158         * config/i386/xm-djgpp.h: Similarly.
1159         * config/i960/i960.h: Similarly.
1160         * config/m32r/m32r.c: Similarly.
1161         * config/m68hc11/m68hc11.c: Similarly.
1162         * config/m88k/m88k.c: Similarly.
1163         * config/m88k/m88k.h: Similarly.
1164         * config/mcore/mcore.c: Similarly.
1165         * config/mcore/mcore.h: Similarly.
1166         * config/mips/mips.c: Similarly.
1167         * config/mmix/mmix.c: Similarly.
1168         * config/pa/pa.c: Similarly.
1169         * config/rs6000/rs6000.c: Similarly.
1170         * config/rs6000/sysv4.h: Similarly.
1171         * config/s390/s390.c: Similarly.
1172         * config/sparc/sparc.c: Similarly.
1173         * config/v850/v850-c.c: Similarly.
1174         * config/v850/v850.c: Similarly.
1176 2001-12-03  Zack Weinberg  <zack@codesourcery.com>
1178         * rs6000.h (RETURN_IN_MEMORY): Cast result of
1179         int_size_in_bytes to unsigned HOST_WIDEST_INT so that -1 > 8.
1181 Mon Dec  3 09:18:34 2001  Jeffrey A Law  (law@cygnus.com)
1183         * mn10200.md (negsf2): Use -0x8000 instead of 0x8000 for
1184         bit twiddling constant.
1186 Mon Dec  3 16:16:37 CET 2001  Jan Hubicka  <jh@suse.cz>
1188         * gcse.c (delete_null_pointer_checks_1): Do not use delete_list;
1189         call purge_dead_edges after removing.
1190         (delete_null_pointer_checks): Do not handle delete_list.
1192         * cfgbuild.c (inside_basic_block_p, control_flow_insn_p): Break out from ...
1193         (count_basic_blocks): ... here.
1194         (find_basic_blocks, find_bb_boundaries): Cleanup.
1196         * stor-layout.c (fixup_signed_type, fixup_unsigned_type): Avoid
1197         overflow for types greater then 2 * HOST_WIDE_INT.
1199         * reload.c (find_reloads): Update the duplicates after swapingg.
1201 Mon Dec  3 13:52:19 CET 2001  Jan Hubicka  <jh@suse.cz>
1203         * i386.md (movabsqi*): Use 'b' prefix instead of 'q'.
1205 2001-12-02  Zack Weinberg  <zack@codesourcery.com>
1207         * config/rs6000/rs6000.h (MASK_ALTIVEC_ABI,
1208         MASK_LONG_DOUBLE_128): Delete.
1209         (MASK_AIX_STRUCT_RET, MASK_AIX_STRUCT_RET_SET,
1210         TARGET_AIX_STRUCT_RET): New flags.
1211         (TARGET_SWITCHES): Remove entries for -mlong-double-128 and
1212         -mlong-double-64.  Add entries for -m(no-)aix-struct-return
1213         and -m(no-)svr4-struct-return.
1214         (TARGET_OPTIONS): Add entry for -mlong-double-.
1215         (rs6000_long_double_size_string, rs6000_long_double_type_size,
1216         rs6000_altivec_abi): Declare.
1217         (TARGET_LONG_DOUBLE_128, TARGET_ALTIVEC_ABI,
1218         LONG_DOUBLE_TYPE_SIZE): Change definitions to match.
1219         (RETURN_IN_MEMORY): If !TARGET_AIX_STRUCT_RET, return
1220         structures of size <= 8 bytes in registers.
1221         (PRINT_OPERAND_PUNCT_VALID_P): Take out '$' and '*'.
1223         * config/rs6000/rs6000.c (rs6000_long_double_size_string,
1224         rs6000_long_double_type_size, rs6000_altivec_abi): New
1225         globals.
1226         (rs6000_override_options): Set rs6000_long_double_type_size
1227         from rs6000_long_double_size_string, if nonzero.  Set the
1228         MASK_AIX_STRUCT_RET bit in target_flags from DEFAULT_ABI, if
1229         not already set.
1230         (rs6000_parse_abi_options): Set rs6000_altivec_abi, not a
1231         target_flags bit.
1232         (rs6000_init_builtins): This hook now takes no arguments.
1234         * config/rs6000/netbsd.h, config/rs6000/linux.h: Define
1235         DRAFT_V4_STRUCT_RET to 1.
1237 2001-12-03  Joseph S. Myers  <jsm28@cam.ac.uk>
1239         * c-typeck.c (really_start_incremental_init, push_init_level):
1240         Avoid constructor_max_index being other than an INTEGER_CST.
1242 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
1244         * config/rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count
1245         unsigned.
1246         (ASM_GENERATE_INTERNAL_LABEL): Same.
1247         (UNIQUE_SECTION): Fix typo.
1249 2001-12-02  Richard Henderson  <rth@redhat.com>
1251         * c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
1253 2001-12-02  Richard Henderson  <rth@redhat.com>
1255         * rtl.h (mem_attrs): Rename decl to expr; adjust all users.
1256         (MEM_EXPR): Rename from MEM_DECL; adjust all users.
1257         * emit-rtl.c (set_mem_expr): Rename from set_mem_decl.
1258         * expr.h, final.c, reload1.c: Adjust users.
1260         * alias.c (nonoverlapping_component_refs_p): New.
1261         (decl_for_component_ref, adjust_offset_for_component_ref): New.
1262         (nonoverlapping_memrefs_p): Use them.
1263         * emit-rtl.c (component_ref_for_mem_expr): New.
1264         (set_mem_attributes): Use it.
1265         (set_mem_offset): New.
1266         * expr.c (expand_assignment): Call set_mem_attributes for
1267         inner references; adjust the memory offset as needed.
1268         * print-rtl.c (print_mem_expr): New.
1269         (print_rtx): Use it.
1271 Sun Dec  2 09:22:25 2001  Douglas B. Rupp  <rupp@gnat.com>
1273         * config/x-interix3 (SYSTEM_HEADER_DIR): Put back default.
1275         * config/alpha/vms.h (VMS_DEBUGGING_INFO): New macro.
1276         (PREFERRED_DEBUGGING_TYPE): Define as VMS_AND_DWARF2_DEBUG.
1277         (ASM_SPEC): Don't redefine.
1278         (OPTIMIZATION_OPTIONS, OVERRIDE_OPTIONS, LINK_SPEC): Define.
1279         * config/alpha/t-vms (EXTRA_PARTS): Use; add rule for vms-dwarf2.asm.
1280         * config/alpha/vms-dwarf2.asm: New file.
1282         * Makefile.in (OBJS): Add vmsdbgout.c and its rule.
1283         * c-lex.c (init_c_lex): Test for VMS_AND_DWARF2_DEBUG.
1284         * debug.h (gcc_debug_hooks): Add vmsdbg_debug_hooks.
1285         (vmsdbgout_after_prologue): New declaration.
1286         * defaults.h (VMS_DEBUGGING_INFO): Add to PREFERRED_DEBUGGING_TYPE.
1287         * dwarf2.h (dwarf_attribute): New DW_AT_VMS_rtnbeg_pd_address.
1288         * dwarf2out.c (dwarf2out_do_frame): Test for VMS_AND_DWARF2_DEBUG.
1289         (dwarf2out_frame_finish): Test for VMS_AND_DWARF2_DEBUG.
1290         (dwarf_attr_name): Use DW_AT_VMS_rtnbeg_pd_address.
1291         (add_name_and_src_coords_attributes): Test VMS_DEBUGGING_INFO
1292         * final.c (final_start_function): Test for VMS_AND_DWARF2_DEBUG.
1293         Test VMS_DEBUGGING_INFO.
1294         (final_end_function): Test for VMS_AND_DWARF2_DEBUG.
1295         (final_scan_insn): Test for VMS_AND_DWARF2_DEBUG and VMS_DEBUG.
1296         * flags.h (debug_info_type): Add VMS_DEBUG and VMS_AND_DWARF2_DEBUG.
1297         * toplev.c (compile_file): Test VMS_DEBUGGING_INFO, VMS_DEBUG, and
1298         VMS_AND_DWARF2_DEBUG.
1299         (rest_of_type_compilation): Test for VMS_AND_DWARF2_DEBUG.
1300         (decode_g_option): Add "vms" to debug_type_names.
1301         (process_options): Set vmsdbg_debug_hooks if -gvms.
1302         (lang_independent_init): Emit line number for VMS unless -g0.
1303         * tree.c: (build_complex_type): Test for VMS_AND_DWARF2_DEBUG.
1304         * vmsdbg.h, vmsdbgout.c: New files.
1306 Sun Dec  2 09:03:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1308         * cfgbuild.c (SET_STATE): Add cast to eliminate warning.a
1310 2001-12-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1312         * cfgrtl.c (purge_all_dead_edges): Initialize variable.
1313         * dwarf2out.c (is_cxx): Prototype.
1314         * local-alloc.c (block_alloc): Avoid 'unsigned>=0 is always true'
1315         warning.
1316         * objc/objc-act.c (defer_fn): Avoid signed/unsigned warning.
1318 Sun Dec  2 07:12:30 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1320         * libgcc2.c (__bb_exit_func): Fix line wrap problems.
1322 2001-12-02  Geoff Keating  <geoffk@redhat.com>
1324         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Simplify.
1325         * config/rs6000/rs6000.c (rs6000_emit_move): Use adjust_address
1326         rather than simplify_subreg.  Check for volatile-ness.  Check that
1327         we're not splitting one slow operation into two slow operations.
1329 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
1331         * emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT
1332         before shifting.
1334 2001-12-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1336         * c-decl.c (duplicate_decls, push_parm_decl): Remove leading
1337         capital from diagnostics.
1338         * c-lex.c (cb_file_change): Similarly.
1339         * c-parse.in : Similarly.
1340         * cfgrtl.c (verify_flow_info): Similarly.
1341         * collect2.c: Similarly.
1342         * cppfiles.c (find_include_file): Similarly.
1343         * cppinit.c (cpp_handle_option): Similarly.
1344         * cpplex.c (cpp_spell_token): Similarly.
1345         * cppmain.c (do_preprocessing): Similarly.
1346         * gcc.c (translate_options, process_command, do_spec1,
1347         main, pfatal_execute): Similarly.
1348         * genattr.c (main): Similarly.
1349         * genattrtab.c (check_attr_test, operate_exp, simplify_test_exp,
1350         write_test_expr, main): Similarly.
1351         * gencodes.c (main): Similarly.
1352         * genconfig.c (main): Similarly.
1353         * genconstants.c (main): Similarly.
1354         * genemit.c (main): Similarly.
1355         * genextract.c (main): Similarly.
1356         * genflags.c (main): Similarly.
1357         * genopinit.c (main): Similarly.
1358         * genoutput.c (process_template, main): Similarly.
1359         * genpeep.c (main): Similarly.
1360         * genrecog.c (main): Similarly.
1361         * gensupport.c (is_predicable, identify_predicable_attribute,
1362         alter_predicate_for_insn, init_md_reader_args, main): Similarly.
1363         * ggc-page.c (alloc_anon): Similarly.
1364         * mips-tfile.c (add_string, add_procedure, add_file, read_line,
1365         parse_begin, parse_bend, parse_def, parse_end, parse_file,
1366         parse_stabs_common, parse_stabs, write_varray, write_object,
1367         read_seek, copy_object, main, error): Similarly.
1368         * profile.c (compute_branch_probabilities): Similarly.
1369         * reg-stack.c (check_asm_stack_operands): Similarly.
1370         * reload.c (find_reloads): Similarly.
1371         * reload1.c (spill_failure, failed_reload): Similarly.
1372         * rtl-error.c (_fatal_insn_not_found): Similarly.
1373         * toplev.c (read_integral_parameter, crash_signal,
1374         decode_f_option, set_target_switch, parse_options_and_default_flags)
1375         : Similarly.
1376         * tradcif.y (parse_number, yylex): Similarly.
1377         * tradcpp.c (main, fancy_abort): Similarly.
1378         * tree.c (tree_check_failed): Similarly.
1379         * varray.c (varray_check_failed): Similarly.
1380         * xcoffout.c (xcoff_output_standard_types): Similarly.
1381 objc:
1382         * objc-act.c (get_object_ref, lookup_and_install_protocols,
1383         build_objc_string_object, objc_declare_alias, build_ivar_chain,
1384         finish_message_expr, build_protocol_expr, is_public,
1385         start_class): Similarly.
1387 2001-12-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1389         * c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
1390         trailing period from diagnostics.
1391         * c-lex.c (cb_file_change): Similarly.
1392         * cppmacro.c (check_trad_stringification): Similarly.
1393         * gcc.c (do_spec_1): Similarly.
1394         * genattr.c (main): Similarly.
1395         * genattrtab.c (main, operate_exp, make_length_attrs): Similarly.
1396         * gencodes.c (main): Similarly.
1397         * genconfig.c (main): Similarly.
1398         * genconstants.c (main): Similarly.
1399         * genemit.c (main): Similarly.
1400         * genextract.c (main): Similarly.
1401         * genopinit.c (main): Similarly.
1402         * genoutput.c (main): Similarly.
1403         * genpeep.c (main): Similarly.
1404         * genrecog.c (main): Similarly.
1405         * mips-tfile.c (add_file, error): Similarly.
1406         * profile.c (init_branch_prob): Similarly.
1407         * reload1.c (spill_failure): Similarly.
1408         * stmt.c (parse_output_constraint): Similarly.
1409         * varasm.c (assemble_variable): Similarly.
1411 2001-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1413         * m68k.c (init_FPA_table): Provide static prototype.
1414         * mips/abi64.h (mips_function_value): Move prototype to ...
1415         * mips-protos.h (mips_function_value): ... here.
1416         * mips.c: Include halfpic.h.
1417         * output.h (rdata_section): Prototype.
1419         * h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
1420         * m88k.c (m88k_svr3_asm_out_constructor,
1421         m88k_svr3_asm_out_destructor): Wrap with CTOR_LIST_BEGIN &&
1422         !OBJECT_FORMAT_ELF.
1423         * mcore.c (mcore_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
1424         * sh.c (sh_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
1425         * sparc.c (sparc_elf_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
1427 2001-12-01  Geoff Keating  <geoffk@redhat.com>
1429         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Complex
1430         LO_SUM addresses less than word size are not legitimate,
1431         because they lead to invalid SUBREGs.
1432         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
1434 2001-12-01  Olivier Hainque <hainque@act-europe.fr>
1436         * unroll.c (loop_iterations): Give up on jumps with null JUMP_LABEL
1437         while scanning for multiple back edges.
1439 2001-12-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1441         * ginclude/ppc-asm.h (JUMP_TARGET): New macro.
1442         * config/rs6000/tramp.asm: Use it.
1444 2001-12-01  Zack Weinberg  <zack@codesourcery.com>
1446         * gencheck.c, gengenrtl.c: Don't define xmalloc.
1447         * gensupport.c: Don't define xstrdup, xcalloc, xrealloc,
1448         xmalloc.
1450 2001-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1452         * pa.c (output_ascii): Cast `p' to unsigned char.
1454 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
1456         * config/rs6000/rs6000.c (altivec_expand_builtin): add
1457         ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf,
1458         *_16qi,_8hi, rename existing V4SI ones to *_4si.
1459         (altivec_init_builtins): Ditto.
1460         (bdesc_2arg): Rename CODE_FOR_* to match changes in MD file.
1462         * config/rs6000/rs6000.md: Add attribute types vecsimple,
1463         veccomplex, vecfloat, and vecperm, for altivec instructions.
1464         Modify altivec patterns to use appropriate attribute type.
1465         Modify altivec patterns to match RTL operations where appropriate
1466         (IE no unspec where we can avoid it).
1467         Add vector unit scheduling for ppc7450.
1468         Rename patterns to what they are where appropriate
1469         (altivec_vaddfp->addv4sf3, etc)
1471         * config/rs6000/rs6000.h (enum rs6000_builtins): Change VRS->VSR.
1472         Pass -mppc, and define _ARCH_PPC, if -mcpu=7450 is used.
1474         * config/rs6000/sysv4.h: Add -mcpu=7450.
1476         * testsuite/gcc.dg/altivec-1.c: Update test to take into account renamed
1477         _builtin_altivec_ld_interal function.
1479 2001-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1481         * configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen,
1482         strchr, strrchr, isascii, gettimeofday.
1483         * config.in, configure: Regenerate.
1485 2001-11-30  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
1487         * unroll.c (unroll_loop): Correct special exit cases.
1489 2001-11-30  Stephane Carrez  <Stephane.Carrez@sun.com>
1491         * config/sparc/sparc.c (DF_MODES_NO_S): Fix pr/3623, define to
1492         accept DFmode and DImode only.
1494 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
1496         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
1497         (STACK_DYNAMIC_OFFSET): Same.
1499 2001-11-30  Richard Henderson  <rth@redhat.com>
1501         * c-decl.c (duplicate_decls): Copy DECL_SAVED_TREE.
1503 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
1505         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): New.
1506         (CONDITIONAL_REGISTER_USAGE): Set call_really_used_registers to
1507         the values in call_used_registers.
1509 Fri Nov 30 12:48:26 2001  Jeffrey A Law  (law@cygnus.com)
1511         * gthr-dce.h: If _DCE_THREADS is not defined, then just include
1512         gthr-single.
1514 2001-11-30  Jason Merrill  <jason@redhat.com>
1516         * dwarf2out.c (is_cxx): New fn.
1517         (add_data_member_location_attribute): Check it.
1518         * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++.
1520 Fri Nov 30 08:26:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1522         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Handle const1_rtx.
1524 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
1526         * genopinit.c (gen_insn): Handle MODE_VECTOR_INT and
1527         MODE_VECTOR_FLOAT as allowed.
1529 2001-11-29  Zack Weinberg  <zack@codesourcery.com>
1531         Purge cruft now we have build libiberty.
1533         * Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR,
1534         HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR,
1535         USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT,
1536         USE_HOST_STRSTR): Delete variables.
1537         (vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o,
1538         hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o,
1539         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
1540         $(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules.
1541         (LIBIBERTY, BUILD_LIBIBERTY): New variables.
1542         (LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY).
1543         (LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY).
1544         (HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY).
1545         (HOST_LIBS): Ditto.
1546         (HOST_RTL): Remove hashtab.o safe-ctype.o.
1547         (OBJS): Remove splay-tree.o.
1548         (gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a.
1549         (distclean): No need to delete splay-tree.c obstack.c
1550         hashtab.c safe-ctype.c.
1551         (mostlyclean): Delete build copies of print-rtl.c bitmap.c
1552         errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1).
1553         * aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR):
1554         Delete.
1555         * configure.in: Don't use them.
1556         Set and substitute @FORBUILD@.
1557         * config.in, configure: Regenerate.
1558         * doprint.c: Move to libiberty/_doprnt.c.
1559         * doc/configterms.texi: Document that libiberty is now built
1560         up to three times.  Fix typo.
1562 2001-11-30  Jason Merrill  <jason@redhat.com>
1564         * dwarf2out.c (add_data_member_location_attribute): Do the
1565         right thing for virtual bases.
1566         * dbxout.c (dbxout_type): For a virtual base, print the offset
1567         within the vtable.
1569 2001-11-29  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
1571         * doloop.c (doloop_valid_p): Check for LTU and GTU as well.
1573 2001-11-29  Aldy Hernandez  <aldyh@redhat.com>
1575         * config/rs6000/rs6000.c (function_arg): Unnamed vector arguments
1576         go in memory.
1577         Remove unused attribute for named.
1579 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1581         * genattrtab.c (attr_rtx_1): New function containing the
1582         majority of `attr_rtx'.  Move variable declarations into the
1583         scope where they are used.  Eliminate unnecessary gotos.
1584         (attr_rtx): Now just a wrapper for `attr_rtx_1' using VA_OPEN,
1585         VA_FIXEDARG, and VA_CLOSE.
1587 2001-11-30  Hans-Peter Nilsson  <hp@axis.com>
1589         * config/cris/cris.c (cris_notice_update_cc): Check first
1590         destination also against overlap with cc_status.value2 and second
1591         destination against overlap with cc_status.value1.  For overlaps,
1592         clear overlapped value, don't just CC_STATUS_INIT.
1594         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix spacing and FIXME.
1595         Fix typo in comment.
1596         (LINK_SPEC): Remove whitespace at end of line.
1598 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1600         * c-lex.c (init_c_lex): Canonicalize "-" filename to "".
1602 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1604         * gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
1605         macros for the supported debugging types.
1607 2001-11-29  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1609         PR other/4932
1610         * config/i386/i386.c (print_operand):  Verify that the
1611           argument to %c is a constant and not a conditional which
1612           needs to be reversed.
1614 Thu Nov 29 11:12:59 2001  Geoffrey Keating (geoffk@redhat.com)
1616         * emit-rtl.c (gen_lowpart_common): Fix conversion of
1617         REAL_VALUE_TYPEs to an array of target integers.  Fix extraction
1618         of low part of those arrays for 32bit and 64bit hosts.
1620 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1622         * Makefile.in (insn-output.o): Depend on insn-codes.h.
1624 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1626         * configure.in (target_list): Add generated-manpages.
1627         * configure: Regenerate.
1628         * Makefile.in (generated-manpages): Depend on
1629         lang.generated-manpages.
1630         * objc/Make-lang.in (objc.generated-manpages): New dummy target.
1632 2001-11-29  Nick Clifton  <nickc@cambridge.redhat.com>
1634         * config/arm/crti.asm (_init): Add .thumb_func if compiled
1635         with -mthumb.
1636         (_fini): Add .thumb_func if compiled with -mthumb.
1638 2001-11-28  Eric Christopher  <echristo@redhat.com>
1640         * config/mips/mips.c (override_options): Fix thinko in mips_tune
1641         for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.
1643 Thu Nov 29 00:24:15 EST 2001  John Wehle  (john@feith.com)
1645         * alpha.md (tablejump): Use pic_offset_table_rtx
1646         instead of gen_rtx_REG.
1648 Wed Nov 28 15:36:13 2001  Jeffrey A Law  (law@cygnus.com)
1650         * expr.c (store_expr): When copying a string constant into an
1651         array, reset the known alignment of the MEM for the section to
1652         be cleared to BITS_PER_UNIT.
1654 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
1656         * config/cris/cris.c: Remove whitespace at end of line.
1658 Wed Nov 28 14:51:23 2001  Douglas B. Rupp  <rupp@gnat.com>
1660         * config.gcc (i[34567]86-*-interix3*): New case.
1661         * config/x-interix3, config/interix3.h, config/i386/i386-interix3.h:
1662         New files.
1664 2001-11-28  Richard Henderson  <rth@redhat.com>
1666         * config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
1667         symbolic_operand as the predicate.
1669 2001-11-28  Richard Henderson  <rth@redhat.com>
1671         * doloop.c (doloop_modify_runtime): Properly select induction
1672         variable; skip late entry test if biv initializer created by loop.
1674 Wed Nov 28 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1676         * tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
1677         EXPR_WITH_FILE_LOCATION, so change checks and documentation.
1679         * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
1681         * tree.h: Add missing checks on some macros; make formatting more
1682         consistent.
1684         * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
1685         level; only add to pending_sizes if find it.
1687         * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
1689         * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
1690         Add casts to remove warnings.
1692         * Makefile.in (OBJS): Sort alphabetically.
1694         * print-rtl.c (print_rtx): If RTX code is bad, just say so.
1695         Also minor cleanups.
1697 Wed Nov 28 06:52:27 2001  Arnaud Charlet  <charlet@ACT-Europe.FR>
1699         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
1700         (FLAGS_TO_PASS): Add STAGE_PREFIX.
1701         (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
1702         to STAGE_PREFIX.
1704 Wed Nov 28 10:42:19 CET 2001  Jan Hubicka  <jh@suse.cz>
1706         * cse.c (true_dependence_in_rtx): New function.
1707         (invalidate): Use it.
1709         * c-common.h (GOTO_FAKE_P): New macro.
1710         * tree-inline.c (GOTO_FAKE_P): Set.
1711         * c-tree.texi (GOTO_FAKE_P): Document.
1713         * varasm.c (assemble_variable): Set reloc to 3 for error_mark
1714         containing pointers.
1715         (output_addressed_constants): Check for local/external relocations.
1716         * elfos.h (SELECT_SECTION): Classify data section.
1717         * tm.texi (SELECT_SECTION): Update documentation.
1719         * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
1720         (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
1722 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1724         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
1725         UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
1726         OBJECT_FORMAT_ROSE.
1728 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
1730         * config/cris/cris.c: Tweak spacing for prototypes.
1731         (LOSE_AND_RETURN): New macro.
1732         (cris_operand_lossage): New function.
1733         (cris_print_index, cris_print_base): Use cris_operand_lossage
1734         rather than fatal_insn.
1735         (cris_print_operand, cris_print_operand_address): Use
1736         LOSE_AND_RETURN rather than fatal_insn and internal_error.
1737         (cris_output_addr_const): Use LOSE_AND_RETURN and
1738         output_operand_lossage rather than fatal_insn and internal_error
1739         for valid but unexpected rtx expressions.
1741         * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
1742         for a SUBREG in src or dest, abort instead.
1744 2001-11-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1746         * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
1747         doc.
1749 2001-11-27  Jakub Jelinek  <jakub@redhat.com>
1751         * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
1752         preprocessor define.  If only DBX_DEBUGGING_INFO or only
1753         DWARF2_DEBUGGING_INFO is supported for the target, provide
1754         appropriate definitions.
1756 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1758         * Makefile.in: Update, and add c-objc-common.o dependencies.
1759         * c-lang.c: Remove unnecessary includes.
1760         (c_init): Move bulk of code to c_objc_common_init, and call it.
1761         (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
1762         inline_forbidden_p, c_cannot_inline_tree_fn): Move to
1763         c-objc-common.c.
1764         * c-objc-common.c: New.  Mostly pulled from c-lang.c.
1765         * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
1766         c_objc_common_init, c_missing_noreturn_ok_p): New.
1767         * toplev.c: Update comment.
1768         * doc/passes.texi: Update.
1769 objc:
1770         * objc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
1771         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
1772         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
1773         (objc_init): Update to use c_objc_common_init.
1775 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1777         * cpphash.c (_cpp_init_hashtable): Update.
1778         * cpphash.h (struct spec_nodes): Remove n_L.
1779         * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
1781 2001-11-17  Richard Henderson  <rth@redhat.com>
1783         * unroll.c (loop_iterations): Move last change ...
1784         * doloop.c (doloop_modify_runtime): ... here.
1786 2001-11-17  Corey Minyard  <minyard@acm.org>
1787             Richard Henderson  <rth@redhat.com>
1789         * unroll.c (loop_iterations): Detect one situation in which we
1790         overestimate the number of iterations.
1792 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1794         * gcc.c (set_input): Export.
1795         Move declaration ...
1796         gcc.h (set_input): ... here.
1798 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1800         * gcc.c (set_collect_gcc_options): New function, split out from
1801         main.
1802         Ignore elided switches.
1803         (do_spec): Invoke before executing command.
1804         (do_spec_1): Likewise.
1805         Fixes PR other/3968.
1807 2001-11-27  Hans-Peter Nilsson  <hp@axis.com>
1809         * config/cris/cris.h (INT_ASM_OP): Remove.
1811 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1813         * config/i386/sol2.h (WINT_TYPE): Redefine.
1814         (WINT_TYPE_SIZE): Likewise.
1816 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1818         * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
1819         (dup2): Make static and add prototype.
1820         * m68k/plexus.h: Don't define NO_DUP2.
1821         * configure.in (AC_CHECK_FUNCS): Add dup2.
1822         * config.in, configure: Regenerate.
1824         * ia64/aix.h (REG_SIZE): Don't #undef.
1825         * sparc.h (REG_SIZE): Delete.
1826         * flow.c (mark_used_regs): Don't use REG_SIZE.
1827         * regs.h (REG_SIZE): Delete.
1829 2001-11-27  Andreas Schwab  <schwab@suse.de>
1831         * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
1832         PREFERRED_DEBUGGING_TYPE.
1834 Tue Nov 27 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1836         * Makefile.in (c-lang.o): Depends on langhooks-def.h.
1837         (expr.o, varasm.o): Depends on langhooks.h.
1838         * c-common.c (c_safe_from_p): Always declare.
1839         (c_expand_expr): Refine when declared.
1840         * c-lang.c (c-common.h): Now include.
1841         (LANG_HOOKS_SAFE_FROM_P): Define new hook.
1842         (c_init): Don't set lang_safe_from_expr.
1843         * expr.c (langhooks.h): Now include.
1844         (lang_safe_from_p): No longer define.
1845         (safe_from_p): Use lang hook.
1846         (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
1847         (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
1848         * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
1849         * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
1850         (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
1851         * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
1852         * langhooks.h (struct lang_hooks): New fields expand_constant
1853         and safe_from_p.
1854         * output.h (output_constant): Size arg is HOST_WIDE_INT.
1855         * stmt.c (expand_decl_init): No longer need to expand constant
1856         for CONST_DECL.
1857         * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
1858         * toplev.c (lang_expand_constant): Delete var.
1859         * tree.c (save_expr): Don't put another SAVE_EXPR around simple
1860         operations on SAVE_EXPR.
1861         * varasm.c (langhooks.h): Now include.
1862         (compare_constant_1): Use lang_hooks, not lang_expand_constant.
1863         (record_constant_1, output_addressed_constants): Likewise.
1864         (initializer_constant_valid_p, output_constant): Likewise.
1865         (output_constant_def): Process no-defer of string constant.
1866         (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
1867         (output_constant): Strip more conversions.
1868         Track our size and pad for the rest.
1869         (array_size_for_constructor): Remove code for non-byte STRING_CST.
1870         (output_constructor): SIZE now HOST_WIDE_INT.
1872 2001-11-27  Richard Henderson  <rth@redhat.com>
1874         * ifcvt.c (noce_try_store_flag_constants): Test for overflow
1875         in computing DIFF.
1877 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
1879         * cppfiles.c (read_include_file): Add comment.
1881 2001-11-26  Richard Henderson  <rth@redhat.com>
1883         * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
1885 2001-11-26  Richard Henderson  <rth@redhat.com>
1887         * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
1888         * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
1889         commented out override.
1891 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1893         * cppfiles.c (stack_include_file): Don't optimize zero-length
1894         files.
1895         (read_include_file): NUL-terminate read files.
1896         * cpplex.c (handle_newline, skip_escaped_newlines,
1897         get_effective_char, skip_whitespace, parse_identifier,
1898         parse_identifier_slow, parse_number, parse_string,
1899         _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
1900         NUL-terminated.
1901         * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
1902         Be sure buffers are NUL terminated.
1903         * cppmacro.c (warn_of_redefinition): Kill compile warning.
1905 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1907         * c-common.c: Include tree-inline.h.
1908         (c_language): Move separate definitions here.
1909         (c_common_init_options, c_common_post_options): New.
1910         (c_common_lang_init): Rename c_common_init.
1911         * c-common.h (c_common_lang_init): Similarly.
1912         (c_common_init_options, c_common_post_options): New.
1913         * c-lang.c (c_post_options): Move body to c_common_post_options.
1914         (c_init_options): Use c_common_init_options.
1915         (c_init): Update.
1916         * langhooks.def: Rearrange.
1917         * langhooks.h: Rearrange, and improve comments.
1918         * toplev.c (do_compile): New function.
1919         (toplev_main): Use it.
1920         (lang_independent_f_options, parse_options_and_default_flags,
1921         process_options): Remove trailing periods.
1922         * Makefile.in: Update.
1923 objc:   * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
1924         functions.
1925         (ojbc_init): Update.
1927 2001-11-26  Richard Henderson  <rth@redhat.com>
1929         * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
1931 2001-11-26  DJ Delorie  <dj@redhat.com>
1933         * expr.c (store_constructor): Actually use the value computed
1934         if WORD_REGISTER_OPERATIONS.
1936 2001-11-26  Richard Henderson  <rth@redhat.com>
1938         * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
1939         for CONSTRUCTOR.
1941 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
1943         * rs6000.c (output_mi_thunk): Handle minimal-toc and call
1944         correct function on AIX.
1946 2001-11-26  Alexandre Oliva  <aoliva@redhat.com>
1948         * toplev.c (process_options): Don't force
1949         flag_optimize_sibling_calls to zero just because exceptions are
1950         enabled.
1952 Mon Nov 26 12:37:05 2001  Jeffrey A Law  (law@cygnus.com)
1954         * df.h (transfer_function_sbitmap): Use PARAMS around argument
1955         list in function prototypes.
1956         (transfer_function_bitmap): Likewise.
1958 2001-11-26  Loren J. Rittle  <ljrittle@acm.org>
1960         * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
1961         * config/i386/netbsd-elf.h: Likewise.
1963 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
1965         * doc/trouble.texi: Remove outdated RS/6000 comments.
1967 Mon Nov 26 13:49:41 CET 2001  Jan Hubicka  <jh@suse.cz>
1969         * final.c (walk_alter_subreg): Fix return value.
1971 Mon Nov 26 11:36:20 CET 2001  Jan Hubicka  <jh@suse.cz>
1973         * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
1974         alter_subreg.
1975         * sparc.md (post-reload splitters): Do not call alter_subreg.
1976         * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
1978 2001-11-25  Aldy Hernandez  <aldyh@redhat.com>
1980         * regclass.c (choose_hard_reg_mode): Handle vector arguments.
1982 2001-11-26  Alan Modra  <amodra@bigpond.net.au>
1984         * final.c: (insn_lengths): Make it an int *, so that large jump
1985         tables don't overflow.
1987 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
1989         * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
1990         (format_types): Use it for scanf.
1991         (dollar_arguments_pointer_p): New.
1992         (init_dollar_format_checking): Store details of which arguments
1993         are pointers.
1994         (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
1995         (finish_dollar_format_checking): Take extra parameter
1996         pointer_gap_ok.  Treat unused arguments differently if
1997         pointer_gap_ok and the unused arguments are pointers.
1998         (check_format_info_main): Pass extra argument to
1999         finish_dollar_format_checking.
2000         * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
2001         unused arguments are present between used arguments with operand
2002         numbers.
2004 2001-11-25  Daniel Berlin  <dan@cgsoftware.com>
2006         * df.c: Add prototypes for hybrid_search_bitmap and
2007         hybrid_search_sbitmap.
2008         (hybrid_search_bitmap): New function.
2009         (hybrid_search_sbitmap): New function.
2010         (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
2011         (iterative_dataflow_bitmap): Ditto.
2013 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2015         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
2016         address computations.
2018 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2020         * config/m68hc11/m68hc11.c (d_register_operand): Must accept
2021         register b (low part of d).
2023 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2025         * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
2026         passed to mcount.
2028 Sun Nov 25 06:22:09 2001  Douglas B. Rupp  <rupp@gnat.com>
2030         * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
2031         * config/alpha/x-vms: New file, to compile the above.
2032         * config.gcc (alpha*-dec-vms*): Add x-vms.
2034 2001-11-24  Hans-Peter Nilsson  <hp@axis.com>
2036         * genextract.c (main): Set ro_loc for peepholes.
2038 Sat Nov 24 17:04:10 2001  Douglas B. Rupp  <rupp@gnat.com>
2040         * fix-header.c (main): Move inf_buffer termination and inf_limit
2041         calculation to after read.
2043         * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
2044         (__UNIX_FOPEN): Define.
2046 Sat Nov 24 16:11:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2048         * function.c (assign_stack_temp_for_type): Clear alias set before
2049         setting new one.
2051 2001-11-23  David Edelsohn  <edelsohn@gnu.org>
2053         * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
2054         format.
2055         * rs6000.md (cmptf): Fix typo.
2057 2001-11-23  Richard Sandiford  <rsandifo@redhat.com>
2059         * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
2060         * varasm.c (output_constructor): Use assemble_integer rather
2061         than ASM_OUTPUT_BYTE.
2063 2001-11-23  Andreas Jaeger  <aj@suse.de>
2065         * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
2066         extension.
2068 2001-11-23  Nick Clifton  <nickc@cambridge.redhat.com>
2070         * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
2071         default definition.
2072         (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
2073         (MULTILIB_DEFAULTS): Remove previous definition.
2075 2001-11-23  Neil Booth  <neil@daikokuya.demon.co.uk>
2077         * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
2078         * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
2080 2001-11-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2082         * cris.h: Revert thinko in last patch.
2084 2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
2086         * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
2087         FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
2088         cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
2089         dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
2090         explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
2091         sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
2093         * predict.c, reg-stack.c: Fix spelling errors.
2095 2001-10-09  Andrew Haley  <aph@redhat.com>
2097         * calls.c (check_sibcall_argument_overlap): Use slot_offset for
2098         start of stack slot.
2100 2001-11-22  Graham Stott  <grahams@redhat.com>
2102         * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
2103         replacement jump after original jump.
2105         (verify_flow_info): Remove redundent initialisation.
2106         Handle reaching end of insn list before finding a BARRIER.
2107         Only issue one missing barrier diagnostic.
2109 2001-11-22  Graham Stott  <grahams@redhat.com>
2111         * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
2113 Thu Nov 22 06:49:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2115         * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
2116         insn actually does.
2118 2001-11-22  Nick Clifton  <nickc@cambridge.redhat.com>
2120         * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
2121         Fix typo -mm32rx=> -m32rx.
2123         * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
2124         targets.
2126         * config.gcc (xscale-coff): Add necessary header files to
2127         tm_file variable.
2129 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
2131         * rs6000.c (output_cbranch): Use $, not %$, in output template.
2133 2001-11-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2135         * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
2136         (lang_type_quals): Declare.
2137         (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
2138         retrieve language-specific qualifiers for a type node, instead of
2139         C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
2140         lang_dump_tree.
2141         * tree-dump.h: Rename from c-dump.h.
2142         * c-common.h (C_TYPE_QUALS): Removed.
2143         Move declarations for tree-dump.c interface to...
2144         * tree.h: ... here. Remove lang_dump_tree.
2145         * langhooks.h (struct lang_hooks_for_tree_dump): New.
2146         (struct lang_hooks): Add tree_dump hooks.
2147         * langhooks.c (lhd_tree_dump_dump_tree): New function.
2148         (lhd_tree_dump_type_quals): New function.
2149         * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
2150         Declare.
2151         (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
2152         * Makefile.in: Move tree-dump.o to language-independent back-end.
2154 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2156         * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
2157         * alpha.h (DBX_REGISTER_NUMBER): Likewise.
2158         * arc.h (DBX_REGISTER_NUMBER): Likewise.
2159         * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
2160         * avr.h (DBX_REGISTER_NUMBER): Likewise.
2161         * c4x.h (DBX_REGISTER_NUMBER): Likewise.
2162         * clipper.h (DBX_REGISTER_NUMBER): Likewise.
2163         * convex.h (DBX_REGISTER_NUMBER): Likewise.
2164         * cris.h (DBX_REGISTER_NUMBER): Likewise.
2165         * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
2166         * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
2167         * fr30.h (DBX_REGISTER_NUMBER): Likewise.
2168         * h8300.h (DBX_REGISTER_NUMBER): Likewise.
2169         * i370.h (DBX_REGISTER_NUMBER): Likewise.
2170         * i860.h (DBX_REGISTER_NUMBER): Likewise.
2171         * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
2172         * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
2173         * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
2174         * m32r.h (DBX_REGISTER_NUMBER): Likewise.
2175         * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
2176         * m88k.h (DBX_REGISTER_NUMBER): Likewise.
2177         * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
2178         * mcore.h (DBX_REGISTER_NUMBER): Likewise.
2179         * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
2180         * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
2181         * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
2182         * romp.h (DBX_REGISTER_NUMBER): Likewise.
2183         * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
2184         * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
2185         * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
2186         * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
2187         * v850.h (DBX_REGISTER_NUMBER): Likewise.
2188         * vax.h (DBX_REGISTER_NUMBER): Likewise.
2189         * we32k.h (DBX_REGISTER_NUMBER): Likewise.
2191         * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
2192         * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
2194 2001-11-21  H.J. Lu <hjl@gnu.org>
2196         * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
2198 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2200         * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
2201         emit_cmp_and_jump_insns.
2203         * stormy16.c (xstormy16_expand_builtin_va_arg,
2204         xstormy16_expand_casesi): Likewise.
2206 Wed Nov 21 17:37:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2208         * function.c (keep_stack_depressed): Major rework.
2209         (handle_epilogue_set, emit_equiv_load): New functions.
2210         (thread_prologue_and_epilogue_insns): keep_stack_depressed now
2211         has return value.
2212         * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
2213         * rtl.h (SET_IS_RETURN_P): New macro.
2215         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
2216         and also support TREE_ADDRESSABLE.
2217         * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
2219 2001-11-21  David Edelsohn  <edelsohn@gnu.org>
2221         * rs6000.md (cmptf_internal1): Replace %$ with $.
2223 Wed Nov 21 16:44:01 2001  Douglas B. Rupp  <rupp@gnat.com>
2225         * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
2226         (read_include_file): Use STAT_SIZE_TOO_BIG.
2228         * cppinit.c (INO_T_COPY): Define.
2229         (INO_T_EQ): Uppercase parameters.
2230         (append_include_chain): Use INO_T_COPY.
2232 2001-11-21  Richard Sandiford  <rsandifo@redhat.com>
2234         * cfg.c: Fix typos and formatting in the introductory comment.
2236 Wed Nov 21 12:38:37 CET 2001  Jan Hubicka
2238         * profile.c (compute_branch_probabilites):  Compute probabilities
2239         for entry/exit edges; estimate probabilities for zero counts.
2241 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
2243         * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
2244         to emit_library_call.
2245         * function.c (expand_main_function, expand_function_start,
2246         expand_function_end): Likewise.
2247         * profile.c (output_func_start_profiler): Likewise.
2248         * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
2249         second argument to emit_library_call.
2250         * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
2251         as second argument to emit_library_call.
2252         * calls.c (emit_library_call): Update fn_type description.
2254 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
2256         * c-decl.c (c_expand_deferred_function): Only call c_expand_body
2257         if fndecl is still DECL_INLINE and has DECL_RESULT.
2259 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2261         * clipper.c (clipper_movstr): Avoid uninitialized warning.
2262         * i960.c (is_mask, legitimize_address): Likewise.
2263         * m88k.c (m88k_expand_prologue): Likewise.
2264         * m88k.md: Likewise.
2265         * mcore.c (emit_new_cond_insn): Likewise.
2266         * stormy16.c (xstormy16_emit_cbranch): Likewise.
2268 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
2270         * config.gcc: Delete powerpcle-*-solaris2* stanza.
2271         * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
2272         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
2273         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2274         config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
2275         config/rs6000/t-ppcos: Expunge all references to Solaris.
2277         * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
2279         * config/rs6000/rs6000.md: Replace '%$' with '$' in all
2280         output templates.
2281         * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
2282         and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
2284 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2286         * sh.md: Avoid uninitialized warnings.
2287         * vax.c (vax_rtx_cost): Likewise.
2289 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
2291         * rs6000.c (direct_return): Check if we are saving altivec
2292         registers.
2293         (first_altivec_reg_to_save): New.
2294         Updated stack frame layout comments.
2295         (rs6000_stack_info): Calculate altivec register save size.
2296         Save link register if we saved some altivec registers.
2297         (rs6000_stack_info): Align save size to 16 if altivec abi or
2298         abi_darwin.
2299         (rs6000_stack_info): Calculate altivec register offsets.
2300         (rs6000_stack_info): Add altivec info to save_size.
2301         (debug_stack_info): Add altivec debug info.
2302         (rs6000_emit_prologue): Save altivec registers and vrsave.
2303         (compute_vrsave_mask): New.
2304         (altivec_expand_builtin): Remove unused variables.
2305         (rs6000_parse_abi_options): Add static qualifier.
2306         (rs6000_expand_builtin): Remove unused parameters.
2307         (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
2308         (altivec_init_builtins): Same.
2309         (is_altivec_return_reg): New.
2310         (vrsave_operation): New.
2311         (ALTIVEC_REG_BIT): New.
2312         (generate_set_vrsave): New.
2314         * rs6000.md (get_vrsave): New.
2315         (set_vrsave): New.
2316         (*set_vrsave_internal): New.
2318         * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
2319         altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
2320         altivec_padding_size, vrsave_mask.
2321         (TOTAL_ALTIVEC_REGS): New.
2322         (EPILOGUE_USES): Add VRSAVE_REGNO.
2324 2001-11-20  Jeff Law <law@redhat.com>
2326         * unroll.c (copy_loop_body): Update LABEL_NUSES for the
2327         exit label as necessary.
2329 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
2331         * reload1.c (elimination_effects): Use function_invariant_p
2332         instead of CONSTANT_P when considering register equivalences.
2334 2001-11-20  David O'Brien  <obrien@FreeBSD.org>
2336         * config.gcc: Add FreeBSD/PowerPC target.
2337         (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
2338         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
2339         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
2340         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
2341         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
2342         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
2343         freebsd-spec.h to tm_file.
2344         (rs6000-*-lynxos*): Add lynx.h to tm_file.
2345         * config/freebsd.h: Tidy up.
2346         (USING_CONFIG_FREEBSD): Define.
2347         (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
2348         FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
2349         FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
2350         (TARGET_HAS_F_SETLKW): Define.
2351         (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
2352         * config/freebsd-spec.h: New file.
2353         * config/rs6000/freebsd.h: New file.
2354         * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
2355         * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
2356         USING_SVR4_H to know when to turn on ELF support.
2357         * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
2358         define only if not already defined.
2359         Add FreeBSD support.
2360         * config/rs6000/aix.h (TARGET_VERSION): Define.
2361         * config/rs6000/beos.h: Likewise.
2362         * config/rs6000/darwin.h: Likewise.
2363         * config/rs6000/mach.h: Likewise.
2364         * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
2365         Don't include lynx.h directly.
2367 2001-11-20  Graham Stott  <grahams@redhat.com>
2369         * unwind-dw2-fde.c (__deregister_frame_info_bases):
2370         Fix lossage in last change return OB.
2372 Tue Nov 20 11:56:12 2001  Douglas B. Rupp  <rupp@gnat.com>
2374         * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
2375         Remove unneeded exit related macros.
2377 2001-11-20  David Edelsohn  <edelsohn@gnu.org>
2379         * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
2381         * rs6000.c (rs6000_emit_move): Add TFmode case.
2382         * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
2383         LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
2384         LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
2385         * rs6000.h: ... to here.
2386         * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
2387         trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
2388         fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
2390 Tue Nov 20 06:41:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2392         * emit-rtl.c (get_mem_attrs): Fix typo.
2394 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
2396         * c-lang.c (finish_file): Backout 2001-11-16
2397         changes, instead set DECL_DEFER_OUTPUT for static inline functions
2398         before calling c_expand_deferred_function.
2400 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
2402         * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
2403         Don't register empty .eh_frame sections.
2404         (__deregister_frame_info_bases, __deregister_frame): Don't
2405         unregister them either.
2407 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
2409         * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
2410         (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
2411         * configure: Regenerate.
2412         * config.in: Add dummy definitions of new flags.
2413         * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
2414         * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
2415         * gcc.c (ASM_DEBUG_SPEC): New macro.
2416         (asm_debug): New static variable.
2417         (default_compilers): Add asm_debug when assembling from
2418         user input.
2419         (static_specs): Add asm_debug.
2421 2001-11-20  Loren J. Rittle  <ljrittle@acm.org>
2423         * config.gcc (*-*-freebsd*): Remove configuration block.
2425 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
2427         bootstrap/4422
2428         * configure.in: Setup ability to run ./stage[1234]/xgcc in
2429         fixinc *as if* it were a proper lang subdirectory.
2430         * configure: Rebuilt.
2432 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
2434         * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
2436 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2438         * 1750a.md: Don't use hex format for a const_int.
2440 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
2442         * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
2444 2001-11-19  Zack Weinberg  <zack@codesourcery.com>
2446         * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
2447         defined (prevents link errors when gettext isn't in the system
2448         library).
2450 2001-11-19  DJ Delorie  <dj@redhat.com>
2452         * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
2453         (validate_const_int): New.
2454         (read_rtx): Validate constant integers.
2455         * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
2457 2001-11-19  Jakub Jelinek  <jakub@redhat.com>
2459         * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
2461 Mon Nov 19 16:57:44 2001  Douglas B. Rupp  <rupp@gnat.com>
2463         * toplev.c (DUMPFILE_FORMAT): Define default.
2464         (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
2465         (close_dump_file, compile_file): Likewise.
2466         * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
2467         * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
2469 2001-11-19  Jeff Law <law@redhat.com>
2471         * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
2472         a nop-jump.
2474 2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2476         * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
2477         Don't fall off the base token run.
2479 2001-11-19  Jason Wilkins <fenix@io.com>
2481         * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
2483 Mon Nov 19 15:13:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2485         * tree.def (VIEW_CONVERT_EXPR): New tree code.
2486         * tree.h (handled_component_p): New declaration.
2487         * alias.c (handled_component_p): Move function from here ...
2488         * expr.c (handled_component_p): ... to here and non longer static.
2489         (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
2490         (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
2491         (get_inner_reference): Handle VIEW_CONVERT_EXPR.
2492         (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
2493         (expand_expr, case VIEW_CONVERT_EXPR): New case.
2494         (expand_expr, cse ADDR_EXPR): No need to copy if already
2495         BIGGEST_ALIGNMENT.
2496         * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
2497         * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
2498         (output_constant): Handle VIEW_CONVERT_EXPR.
2499         * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
2500         Add new case for VIEW_CONVERT_EXPR.
2502 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2504         * a29k/unix.h (ASM_FILE_START): Const-ify.
2505         * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
2506         * i386/isc.h (ASM_FILE_START): Const-ify.
2507         * i386/sun386.h (ASM_FILE_START): Likewise.
2508         * m32r.md: Likewise.
2509         * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
2510         * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
2511         * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
2512         * mn10200.md: Initialize variable.
2514 Mon Nov 19 18:06:21 CET 2001  Jan Hubicka  <jh@suse.cz>
2516         * gcse.c (try_replace_reg): Copy RTX before creating note.
2518         * df.h (df_ref_flags): New uenum.
2519         (DF_REF_FLAGS): New macro.
2520         (struct ref): Add field "flags".
2521         * df.c (HANDLE_SUBREG): Remove.
2522         (df_ref_create): Likewise; set flags field of ref.
2523         (df_def_record_1): Strip down read_write subreg; remove
2524         commented out code; set READ_WRITE flag.
2525         (read_modify_subreg_p): New static function.
2526         (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
2527         new argument "flags".
2528         (df_insn_refs_record): Update call of df_uses_record.
2529         (df_insn_modify): Avoid #if 0 around comment.
2530         (df_dump): Dump the read/write flag.
2532         * predict.c (propagate_freq): Make cyclic_probability and frequency
2533         volatile
2535         * i386.c (ix86_cc_mode): Accept USE.
2537         * cfgrtl.c (purge_dead_edges):  Cleanup EDGE_ABNORMAL flag if computed
2538         jump is turned into simplejump.
2540 2001-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
2542         * doc/fragments.texi, doc/trouble.texi: Remove links to old
2543         installation chapter.
2544         * doc/gcc.texi: Don't claim that this manual documents
2545         installation.  Mark Installation menu entry as being out of date.
2547 Mon Nov 19 07:21:35 2001  Douglas B. Rupp  <rupp@gnat.com>
2549         * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
2550         (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
2551         * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
2553 2001-11-19  Jason Merrill  <jason@redhat.com>
2555         * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
2556         cur_token, not after.
2558         * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
2559         Lose ASM_OUTPUT_CONSTRUCTOR.
2560         * system.h: Poison it and INT_ASM_OP.
2561         * c-lang.c (finish_file): Don't check for it.
2562         * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
2564 2001-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2566         * mmix.c (mmix_cc1_ignored_option): Const-ify.
2567         (mmix_init_machine_status): Make static to match declaration.
2568         (mmix_unique_section): Const-ify.
2569         (mmix_output_quoted_string): Avoid automatic aggregate
2570         initialization.
2571         (mmix_output_register_setting): Likewise.
2572         (mmix_output_shiftvalue_op_from_str): Likewise.
2574         * mmix.h (mmix_cc1_ignored_option): Const-ify.
2575         (ASM_OUTPUT_BYTE): Fix format specifier warning.
2576         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2578 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2580         PR c/4448
2581         * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
2582         name __objc_thread_exit_status so that it matches the
2583         variable defined in objc/thr.h.
2585 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2587         PR bootstrap/4020
2588         * mklibgcc.in: Add missing semi-colons.
2589         * Makefile.in: Same.
2591 Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2593         * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
2594         after re-laying out decl in incomplete case.
2595         (expand_expr, case ADDR_EXPR): Fix typo in copy case.
2597 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
2599         * doc/install-old.texi: Move some sections out to ...
2600         * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
2601         ... here.  New files.  Make into chapters rather than sections.
2602         * doc/gcc.texi: Include the new files and add menu entries for
2603         them.
2604         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2606 Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2608         * tree.h (TYPE_ALIGN_OK): New flag.
2609         * emit-rtl.c (set_mem_attributes): Handle it.
2610         * expr.c (emit_single_push_insn): Only set to alias set 0 if
2611         doing sibcall optimization.
2612         (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
2613         when make temporary.
2614         (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
2615         (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
2617         * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
2619 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
2621         * c-decl.c (c_decode_option): Give deprecation warning for
2622         -traditional.
2623         * doc/invoke.texi (-traditional): Note that this option is
2624         deprecated.
2626 Sun Nov 18 07:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
2628         * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
2629         arg to HOST_WIDE_INT, not long.
2631         * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
2632         (HAS_INIT_SECTION): Define.
2633         (REAL_ARITHMETIC): Don't undefine.
2635 2001-11-18  Egor Duda  <deo@logos-m.ru>
2637         * config/i386/cygwin.h: Strip leading '*' from name, if any.
2639 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2641         * Makefile.in (c-parse.o, c-common.o): Update dependencies.
2642         * c-common.c: Include diagnostic.h.
2643         (c_common_finish): New.
2644         * c-common.h (c_common_finish): New.
2645         * c-lang.c (LANG_HOOKS_FINISH): Override.
2646         * c-parse.in: Don't include diagnostic.h.
2647         (finish_parse): Remove.
2648         * langhooks.h: Update comments.
2649         * toplev.c (lang_dependent_init): New prototype.
2650         (finalize): New.
2651         (compile_file): Split cleanup code out to finalize.
2652         (lang_dependent_init): Stop if lang_hooks.init fails.
2653         (toplev_main): Update.
2654         * tree.h (finish_parse): Remove.
2655 objc:
2656         * objc-act.c (LANG_HOOKS_FINISH): Override.
2658 Sat Nov 17 23:30:44 2001  Douglas B. Rupp  <rupp@gnat.com>
2660         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
2661         * config/alpha/vms_tramp.asm: New file.
2662         * config/alpha/vms-tramp.asm: Removed.
2664 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
2666         * c-common.c (struct disabled_builtin, disabled_builtins,
2667         disable_builtin_function, builtin_function_disabled_p): New.
2668         (builtin_function_2): Check for disabled built-in functions.
2669         * c-common.h (disable_builtin_function): Declare.
2670         * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
2671         * doc/invoke.texi: Document -fno-builtin-FUNCTION.
2672         * doc/extend.texi: Mention -fno-builtin-FUNCTION.
2674 2001-11-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2676         PR target/4606
2677         * config.gcc: Remove reference to va-clipper.h.
2679 2001-11-17  Stan Shebs  <shebs@apple.com>
2681         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
2682         AltiVec-related bitfields.
2684 Sat Nov 17 12:06:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2686         * except.c (enum eh_region_type): Add ERT_UNKNOWN.
2687         (mark_eh_region, case ERT_UKNONW): New case.
2689 2001-11-17  Christopher Faylor  <cgf@redhat.com>
2690             Corinna Vinschen  <vinschen@redhat.com>
2692         * config/i386/cygwin.h: Search target specific include directory for
2693         w32api stuff, if appropriate.
2695 Sat Nov 17 08:20:44 2001  Douglas Rupp  <rupp@gnat.com>
2697         * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
2699 2001-11-16  Aldy Hernandez  <aldyh@redhat.com>
2701         * config/rs6000/rs6000.md: Change all ldvx to lvx.
2703 2001-11-16  Alexandre Oliva  <aoliva@redhat.com>
2705         * gensupport.c (process_rtx): Don't assume filename is the first
2706         argument of any rtl.
2708 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2710         * vax-protos.h (reg_was_0_p): New prototype.
2711         * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
2712         * vax.c (follows_p, reg_was_0_p): New functions.
2714 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2716         * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
2717         (casesi1): Likewise.  Define new pattern which arises by simplification
2718         when operand 1 is a constant int.  Correct pattern which arises by
2719         simplification when operand 1 is zero.
2721 2001-11-16  David O'Brien  <obrien@FreeBSD.org>
2723         * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
2724         arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
2725         arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
2726         arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
2727         arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
2728         arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
2729         xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
2730         * config/arm/aof.h: Don't include arm.h.
2731         * config/arm/aout.h: Likewise.
2732         * config/arm/coff.h: Don't include semi.h and aout.h.
2733         * config/arm/elf.h: Don't include aout.h.
2734         * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
2735         (TARGET_VERSION): Undef before defining.
2736         (ARM_OS_NAME): Likewise
2737         (TARGET_DEFAULT): Likewise
2738         (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
2739         * config/arm/pe.h: Don't include arm/coff.h.
2740         * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
2741         SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
2742         * config/arm/riscix1-1.h: Likewise.
2743         * config/arm/rix-gas.h: Don't include riscix.h.
2744         (DBX_CONTIN_LENGTH): Undef before defining.
2745         * config/arm/semi.h: Don't include aout.h.
2746         * config/arm/semiaof.h: Don't include aof.h.
2747         * config/arm/strongarm-coff.h: Don't include coff.h.
2748         * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
2749         * config/arm/vxarm.h: Don't include arm/coff.h.
2750         * config/arm/xscale-coff.h: Don't include coff.h.
2752 Fri Nov 16 15:22:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2754         * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
2755         emit_cmp_insn.
2757 2001-11-16  Andreas Jaeger  <aj@suse.de>
2759         * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
2760         to ....
2761         (fixup_fallthru_exit_predecessor): ... this.
2762         Change callers and prototype.
2764 2001-11-16  Bernd Schmidt  <bernds@redhat.com>
2766         * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
2767         hand; don't use gen_setcc_2.
2768         (ix86_expand_builtin): Fix pshufw.
2769         * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
2770         case UNORDERED to emit the right assembler instruction.
2771         (mmx_pshufw): Lose operand 2.
2772         (cvtsi2ss): Fix representation.
2773         From Graham Stott:
2774         (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
2776 2001-11-16  Joseph S. Myers  <jsm28@cam.ac.uk>
2778         * doc/include/linux-and-gnu.texi: Remove.
2779         * doc/gnu.texi: New.
2780         * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
2781         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2783 2001-11-16  Kazu Hirata  <kazu@hxi.com>
2785         * config/a29k/a29k.c: Fix comment formatting.
2786         * config/a29k/a29k.h: Likewise.
2787         * config/arc/arc.c: Likewise.
2788         * config/arc/arc.h: Likewise.
2789         * config/vax/vax.c: Likewise.
2790         * config/vax/vax.h: Likewise.
2791         * config/we32k/we32k.c: Likewise.
2792         * config/we32k/we32k.h: Likewise.
2794 2001-11-16  Jeff Law  <law@redhat.com>
2796         * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
2797         creating a new jump insn.
2799 Fri Nov 13 09:06:25 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2801         * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
2802         copy misaligned data.
2803         * varasm.c (assemble_variable): Set alignment into MEM when changed.
2805 2001-11-16  Graham Stott  <grahams@redhat.com>
2807         * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
2808         OPALIGN type.
2810 2001-11-16  Olivier Hainque <hainque@act-europe.fr>
2812         * except.c: Support for catching a list of types with a single handler
2813         (struct eh_region): Change type and filter to lists for catch regions.
2814         (mark_eh_region): Mark the filter list for GC also.
2815         (expand_start_catch): Always build a list if argument not NULL and
2816         register each type of the list through add_type_for_runtime.
2817         (duplicate_eh_region_1): Change type into type_list for catch regions.
2818         (assign_filter_values): Assign a filter to each type associated with a
2819         catch region. Assign filter for NULL types in a unique entry in the
2820         filter list.
2821         (build_post_landing_pads): Emit compare and jump for each filter of
2822         the list associated with a catch region.
2823         (reachable_next_level): When the type thrown is known, stop the search
2824         as soon as one type within a catch list matches. Also, a handler is
2825         potentially reachable only if at least one of the types it catches
2826         has not been previously caught.
2827         (collect_one_action_chain): Retrieve the filter for a NULL type list
2828         from the first filter list entry. For non NULL type lists, add an
2829         action record for every filter assigned.
2830         * except.h: Reflect changes in comment before expand_start_catch.
2832 Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2834         * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
2835         BLKmode.
2837 Fri Nov 16 06:37:05 2001  Andreas Tobler  <a.tobler@schweiz.ch>
2839         * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
2841 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
2843         * c-lang.c (finish_file): Don't emit static inline functions if
2844         they weren't referenced.
2846 2001-11-15  Stan Shebs  <shebs@apple.com>
2848         * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
2850 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2852         * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
2853         call.
2854         * config/i386/i386.md: Likewise.
2856 Thu Nov 15 21:40:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2858         * timevar.c (rtl.h): Include so get fancy abort.
2860 2001-11-15  Dale Johannesen  <dalej@apple.com>
2862         * config/darwin.h (SELECT_RTX_SECTION):  Force address
2863         initializers into 'const' section
2864         * config/rs6000/rs6000.c (rs6000_emit_cmove):  Fix mode of
2865         if_then_else to match result, not operands
2867 Thu Nov 15 17:57:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2869         * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
2870         * emit-rtl.c (change_address): Fix typo in default alignment.
2871         (adjust_address_1): Use mode of NEW, not MODE, when setting size.
2872         * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
2873         * rtl.h (REGNO_PTR_FRAME_P): New macro.
2875         * expr.c (store_field): Pass tree instead of max size; callers changed.
2876         Change handling of alignment.
2877         Only copy to_rtx if is TARGET.
2878         (expand_expr_unaligned): Delete; callers now use expand_expr.
2879         (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
2880         (expand_assignment): Change handling of alignment.
2881         Only copy to_rtx if was original.
2882         (get_inner_reference): No longer return alginment; callers changed.
2883         (expand_expr, case COMPONENT_REF): Change handling of alignment.
2884         (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
2885         (compare_from_rtx): Delete ALIGN parm; all callers changed.
2886         (do_compare_rtx_and_jump): Likewise.
2887         * expr.h: Reflect above changes.
2888         * tree.h: Likewise.
2889         * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
2890         to get_inner_reference.
2891         * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
2892         * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
2893         * optabs.c: Likewise.
2894         (prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
2895         (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
2896         * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
2897         compare_rtx_and_jump, and emit_cmp_jump_insns.
2898         * fold-const.c: Remove PALIGN in calls to get_inner_reference.
2899         * function.c (assign_stack_temp_for_type): No longer static.
2900         * optabs.h (emit_cmp_insn): Remove ALIGN parm.
2901         (prepare_cmp_insn): Delete declaration.
2902         * rtl.h (assign_stack_temp_for_type): Add declaration.
2903         * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
2904         * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
2905         * config/i386/i386.c,config/mips/mips.c: Likewise.
2906         * config/i860/i860.c, config/ia64/ia64.c: Likewise.
2907         * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
2909 2001-11-15  Stan Shebs  <shebs@apple.com>
2911         * config/rs6000/rs6000.h: Fix a comment typo.
2912         (RTX_COSTS): Sort processor versions better.
2914 2001-11-15  Kazu Hirata  <kazu@hxi.com>
2916         * config/h8300/h8300.md: Fix insn length of bit insns.
2918 2001-11-15  Jason Merrill  <jason@redhat.com>
2920         * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
2921         DIEs if there were errors in the source.
2923         * config/alpha/alpha-interix.h, config/alpha/elf.h,
2924         config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
2925         config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
2926         config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
2927         config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
2928         config/elfos.h, config/lynx.h, config/netware.h,
2929         config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
2930         config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
2931         uses to use ASM_LONG.
2933 2001-11-15  Alan Matsuoka  <alanm@redhat.com>
2935         * gensupport.c  process_include : Change call to alloca to
2936         xmalloc.
2938 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
2940         * config/rs6000/rs6000.md: Use spaces instead of tabs in output
2941         templates.
2943 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2945         * final.c (alter_subreg): If simplify_subreg can't do anything,
2946         handle REG ourselves and abort for others.
2948 2001-11-15  Richard Hodson  <hodsonr@dionecorp.com>
2950         * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
2951         routines.
2953 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2955         * fix-header.c (read_scan_file): Update.
2957 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2959         * toplev.c (toplev_main): Don't start timing until after
2960         command-line options are parsed.
2962 2001-11-15  Andreas Schwab  <schwab@suse.de>
2964         * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
2965         makefile frag, not host makefile frag.
2966         (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
2967         (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
2968         used.
2969         (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
2970         * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
2971         * config/m88k/t-dgux (STMP_FIXPROTO): Define.
2972         * config/i386/t-cygwin (STMP_FIXPROTO): Define.
2973         * config/i386/t-dgux (STMP_FIXPROTO): Define.
2974         * config/x-interix: Don't define STMP_FIXPROTO and
2975         FIXPROTO_DEFINES.
2976         * config/t-interix: New file, define STMP_FIXPROTO.
2977         * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
2978         * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
2979         * config/t-svr4 (FIXPROTO_DEFINES): Define.
2980         * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
2981         * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
2982         * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
2983         * config/m68k/t-hp3200: Renamed from x-hp3200.
2984         * config/i370/t-oe: Renamed from x-oe.
2985         * config/mips/t-iris: Renamed from x-iris.
2986         * config/pa/t-bsd: Renamed from x-pa.
2987         * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
2988         * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
2989         config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
2990         config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
2991         config/rs6000/x-cygwin: Remove files.
2993         * configure.in: Check for target objdump and use that in eh_frame
2994         optimization test.
2995         * configure: Regenerated.
2997 2001-11-15  Jakub Jelinek  <jakub@redhat.com>
2999         * jump.c (squeeze_notes): Return true if no real insns were found.
3000         * rtl.h (squeeze_notes): Adjust prototype.
3001         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
3002         squeeze_notes finds no real instructions, abort.
3003         (merge_blocks_move_successor_nojumps): Likewise.
3004         * loop.c (find_and_verify_loops): Likewise.
3005         * stmt.c (expand_end_case): Likewise.
3006         * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
3007         find any real instructions.
3009         * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
3011         * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
3012         conditional jump, request updating life into for the block
3013         containing it.  Fix a typo which prevented life info update.
3014         Clear blocks bitmap before using it.
3016 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3018         * c-common.c: Include c-lex.h.
3019         (c_common_lang_init): Change prototype.  Call init_c_lex and
3020         init_pragma from here.
3021         * c-common.h (c_common_lang_init): Change prototype.
3022         * c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
3023         * c-lang.c (c_init): Change prototype.  Update.
3024         (c_init_options): Update.
3025         * c-lex.c (cpp_filename): Remove.
3026         (init_c_lex): Update.  Read the main file, and get the original
3027         file name.
3028         (yyparse): Finish the command line options.
3029         * c-parse.in (c_parse_init): Call init_reswords here.
3030         (init_parse): Remove.
3031         * c-tree.h (c_init_decl_processing): New.
3032         * cpphash.c (_cpp_init_hashtable): After initializing the hash
3033         table, populate it.
3034         * cppinit.c (read_original_filename, cpp_finish_options): New.
3035         (cpp_create_reader): New prototype. Defer hash table initialization.
3036         (cpp_start_read): Rename cpp_read_main_file.  Initialize the
3037         hash table.  Get the original filename.
3038         * cpplib.h (cpp_create_reader): Update.
3039         (cpp_start_read): Remove.
3040         (cpp_read_main_file, cpp_finish_options): New.
3041         * cppmain.c (main, do_preprocessing): Update.
3042         * langhooks.h (struct langhooks): Update init prototype.
3043         * toplev.c (general_init, parse_options_and_default_flags,
3044         process_options, lang_indpendent_init, lang_dependent_init,
3045         init_asm_output): New; perform the bulk of initialization.
3046         (compile_file): Move most of initialization to above functions.
3047         (debug_hooks): Initialize statically.
3048         (set_Wunused): Relocate.
3049         (toplev_main): Move most of initialization to other init functions.
3050         Have a clear logic flow.
3051         * tree.h (init_parse, init_decl_processing): Remove.
3052 objc:
3053         * objc-act.c (objc_init): Update prototype, combine with old
3054         init_parse.
3055         (objc_init_options): Update.
3058 2001-11-15  Andreas Jaeger  <aj@suse.de>
3060         * cfgrtl.c (purge_all_dead_edges): Use int as argument for
3061         portability.
3062         * basic-block.h: Adjust prototype.
3064 2001-11-15  Kazu Hirata  <kazu@hxi.com>
3066         * config/rs6000/aix31.h: Fix comment formatting.
3067         * config/rs6000/beos.h: Likewise.
3068         * config/rs6000/darwin.h: Likewise.
3069         * config/rs6000/eabi.asm: Likewise.
3070         * config/rs6000/linux.h: Likewise.
3071         * config/rs6000/linux64.h: Likewise.
3072         * config/rs6000/lynx.h: Likewise.
3073         * config/rs6000/netbsd.h: Likewise.
3074         * config/rs6000/rs6000.c: Likewise.
3075         * config/rs6000/rs6000.h: Likewise.
3076         * config/rs6000/rs6000.md: Likewise.
3077         * config/rs6000/sol2.h: Likewise.
3078         * config/rs6000/tramp.asm: Likewise.
3079         * config/rs6000/xcoff.h: Likewise.
3080         * config/rs6000/xm-beos.h: Likewise.
3082 2001-11-14  Alan Matsuoka  <alanm@redhat.com>
3084         * rtl.def (INCLUDE) : Define.
3085         * gensupport.c  (init_include_reader, process_include,
3086         save_string) :  New functions to implement an include facility
3087         in .md files.
3088         * gensupport.h : Add prototype for init_md_reader_args.
3089         * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
3090         genextract.c genflags.c genopinit.c genoutput.c
3091         genpeep.c genrecog.c: Change call to init_md_reader to
3092         init_md_reader_args.
3093         * md.texi: Document (include "path") and -I directives for RTL
3094         generation tools.
3096 2001-11-14  DJ Delorie  <dj@redhat.com>
3098         * integrate.c (get_hard_reg_initial_reg): New.
3099         * integrate.h (get_hard_reg_initial_reg): Prototype.
3100         * local-alloc.c (block_alloc): Don't tie pseudos that
3101         represent call-saved hard regs' initial values.
3103 2001-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3105         * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
3106         recursion.
3108 2001-11-14  Roger Sayle <roger@eyesopen.com>
3110         * fold-const.c (fold): Optimize strlen comparisons against zero.
3112 2001-11-14  David O'Brien  <obrien@FreeBSD.org>
3114         * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
3115         sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
3116         sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
3117         sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
3118         sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
3119         sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
3120         sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
3121         Include various CPU headers via tm_file.  a.out based platforms now
3122         properly include sparc/aout.h.  sol2.h usage now implies including
3123         elfos.h, svr4.h, and sparc/sysv4.h.
3124         * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
3125         Also define to '1'.
3126         * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
3127         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
3128         DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
3129         Remove.  They are a.out specific and belong in sparc/aout.h.
3130         * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
3131         ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3132         DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
3133         sparc/sparc.h.
3134         * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
3135         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
3136         Moved here from sparc/sparc.h.
3137         * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
3138         defining.
3139         * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
3140         * config/sparc/lynx.h:  Don't include lynx.h.
3141         (SELECT_SECTION): Do not undef.
3142         * config/sparc/openbsd.h: Don't include sparc/sparc.h.
3143         * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
3144         and sparc/sysv4.h.
3145         * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
3146         * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
3147         sparc/aout.h now.
3148         * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
3149         Don't undef, there is no need.
3150         * config/sparc/splet.h (CPP_PREDEFINES): Define.
3151         * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
3152         * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
3153         Don't include sparc/sparc.h.
3154         * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
3155         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
3156         DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
3157         elfos.h and svr4.h.
3158         (TARGET_VERSION): Define.
3159         * config/sparc/vxsim.h (TARGET_VERSION): Define.
3161 Wed Nov 14 19:46:08 CET 2001  Jan Hubicka  <jh@suse.cz>
3163         * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
3164         (cfg_layout_finalize): Use it.
3165         * bb-reorder.c (HAVE_epilogue): Remove.
3166         (make_reorder_chain): Do not care special placement of
3167         last basic block.
3169         * predict.c (expected_value_to_br_prob): Delete the note
3170         once transformed.
3172         * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
3173         measure integration time separately.
3175 Wed Nov 14 12:30:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3177         * function.c (struct temp_slot): ALIGN now unsigned.
3179 2001-11-14  Kazu Hirata  <kazu@hxi.com>
3181         * config/dsp16xx/dsp16xx.c: Fix comment formatting.
3182         * config/dsp16xx/dsp16xx.h: Likewise.
3183         * config/dsp16xx/dsp16xx.md: Likewise.
3185 2001-11-14  Kazu Hirata  <kazu@hxi.com>
3187         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
3188         that deals with 7-bit shifts in HImode.
3190 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
3192         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
3193         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
3194         (final_scan_insn): Update call of alter_subreg.
3195         (cleanup_subreg_operands): Likewise.
3196         (alter_subreg): Rewrite using simplify_subreg.
3197         (output_address, output_operand): Update call of alter_subreg.
3198         * output.h (alter_subreg): Update prototype.
3199         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
3200         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
3201         * Makefile.in (final.o): Add dependency on expr.h
3203 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3205         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
3207 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
3209         * doc/install.texi (sparc-*-linux*): Mention requirements for
3210         binutils and glibc.
3212 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
3214         * Makefile.in (POD2MAN): Don't include --section=1.
3215         (manext): Rename to man1ext.  All users changed.
3216         (man7ext): New.
3217         (man7dir): New.
3218         (generated-manpages): Also depend on $(docdir)/gfdl.7,
3219         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
3220         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
3221         --section=1 in calls to $(POD2MAN).
3222         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
3223         (maintainer-clean, install, uninstall): Handle the new man pages.
3224         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
3225         (installdirs): Create man7dir.
3226         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
3227         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
3228         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
3229         the SEE ALSO man page section.
3230         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
3231         and fsf-funding(7) in the SEE ALSO man page section.
3232         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
3233         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
3234         * doc/include/fdl.texi, doc/include/funding.texi,
3235         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
3236         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
3238 2001-11-13  Richard Henderson  <rth@redhat.com>
3240         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
3241         as appropriate for the artificial decl.
3243 2001-11-13  Richard Henderson  <rth@redhat.com>
3245         * loop.c (combine_movables): Turn off combination until
3246         move_movables validation bugs are fixed.
3248 2001-11-13  DJ Delorie  <dj@redhat.com>
3250         * config.gcc (powerpc|rs6000): Set default cpp options based
3251         on --with-cpu settings.
3252         * config/rs6000/softfloat.h: New.
3254 2001-11-13  Kazu Hirata  <kazu@hxi.com>
3256         * config/h8300/h8300.c (shift_alg_si): Use special code for
3257         25-bit shifts on H8/S.
3258         (get_shift_alg): Generate special code for 25-bit shifts on
3259         H8/S.
3261 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
3263         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
3264         (adjust_automodify_address_1): New.
3265         * expr.h (adjust_address, adjust_address_nv): Adjust.
3266         (adjust_automodify_address, adjust_automodify_address_nv): Define.
3267         (adjust_address_1): Update prototype.
3268         (adjust_automodify_address_1): Add prototype.
3269         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
3270         (store_by_pieces_2): Likewise.
3272 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3274         * Makefile.in (explow.o): Now depends on ggc.h.
3275         * explow.c (ggc.h): Include.
3276         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
3278         * Makefile.in (expr.o): Depends on insn-attr.h.
3279         * expr.c (insn-attr.h): New include.
3280         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
3281         of MEM.
3282         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
3283         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
3284         clean up related usage in ADDR_EXPR.
3285         (expand_expr_unaligned): Likewise.
3287         * emit-rtl.c (change_address): Fix typo in alias setting.
3289 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3291         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
3293 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3295         PR bootstrap/3451
3296         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
3297         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
3299 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
3301         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
3302         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
3303         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
3304         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
3305         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
3306         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
3307         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
3308         sparc64-*-linux*):  Include various CPU headers via tm_file.
3309         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
3310         (SELECT_SECTION): Likewise.
3311         (SELECT_RTX_SECTION): Likewise.
3312         * config/sparc/sparc_bi.h: New file.
3313         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
3314         * config/sparc/linux-aout.h: Likewise.
3315         * config/sparc/linux.h: Don't include sparc/sysv4.h.
3316         * config/sparc/linux64.h: Likewise.
3317         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
3318         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
3319         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
3320         and dbxcoff.h
3321         (ASM_OUTPUT_IDENT): Do not #undef.
3322         (SELECT_SECTION): Likewise.
3323         (SELECT_RTX_SECTION): Likewise.
3324         * config/sparc/liteelf.h: Don't include gofast.h.
3325         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
3326         * config/sparc/lynx.h: Don't include sparc/sparc.h.
3327         * config/sparc/pbd.h: Likewise.
3328         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
3329         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
3330         * config/sparc/rtemself.h: Don't include rtems.h.
3331         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
3332         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
3333         sparc_bi.h instead.
3334         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
3335         * config/sparc/sol2.h: Include sparc/sparc.h directly.
3336         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
3337         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
3338         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
3339         * config/sparc/sp86x-elf.h: Don't include gofast.h.
3340         * config/sparc/splet.h: Don't include sparc/aout.h.
3341         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
3342         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
3343         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
3344         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
3345         * config/sparc/vxsparc64.h: Don't include gofast.h.
3346         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
3348 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
3350         * doc/standards.texi: Mention C99 TC1.
3352 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3354         * mips-protos.h (mips_output_conditional_branch): Const-ify.
3355         * mips.c (mips_output_conditional_branch): Likewise.
3357 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3359         * config/h8300/h8300.c (shift_alg_si): Use special code for
3360         15-bit logical shifts and 31-bit logical shifts.
3361         (get_shift_alg): Generate special code for 15-bit and 31-bit
3362         logical shifts.
3364 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3366         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
3367         doing 6-bit logical shifts on H8/S.
3368         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
3369         (get_shift_alg): Generate special code for 21-bit shifts on
3370         H8/S.
3372 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3374         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
3375         label.
3377 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3379         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
3380         if both size and offset known.
3382 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
3384         * config/ia64/freebsd.h: Fix misspelling.
3386 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
3388         * doc/gcc.texi: Move several chapters out to ...
3389         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
3390         doc/include/linux-and-gnu.texi, doc/interface.texi,
3391         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
3392         ... here.  New files.
3393         * doc/gcc.texi, doc/contrib.texi: Move section headings into
3394         contrib.texi.
3395         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
3397 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3399         * config/alpha/alpha-interix.h: Fix comment formatting.
3400         * config/alpha/alpha.c: Likewise.
3401         * config/alpha/alpha.h: Likewise.
3402         * config/alpha/alpha32.h: Likewise.
3403         * config/alpha/freebsd.h: Likewise.
3404         * config/alpha/unicosmk.h: Likewise.
3405         * config/alpha/vms.h: Likewise.
3407 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3409         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
3411 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
3413         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
3414         numbers.
3416 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3418         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
3419         from type.
3420         (replace_equiv_address): Call update_temp_slot_address.
3422         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
3424         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
3426 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3428         * config/h8300/h8300.c (shift_alg_qi): New.
3429         (shift_alg_hi): Likewise.
3430         (shift_alg_si): Likewise.
3431         (get_shift_alg): Change the type of count to unsigned int.
3432         Use the tables.
3434 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
3436         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
3437         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
3438         to decide whether to defer a function.
3439         (finish_function): Adjust.
3440         (c_expand_deferred_function): New function.
3441         * c-lang.c (deferred_fns): New variable.
3442         (c_init): Initialize it, and mark it as a root.
3443         (defer_fn): New function.
3444         (finish_file): Expand all deferred functions.
3445         * c-tree.h (defer_fn): Declare.
3446         (c_expand_deferred_function): Likewise.
3447         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
3448         * objc-act.c (deferred_fns): New variable.
3449         (objc_init): Initialize it, and mark it as a root.
3450         (defer_fn): New function.
3451         (finish_file): Expand all deferred functions.
3453 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3455         * alpha.c (unicosmk_special_name): Prototype.
3456         (unicosmk_ssib_name): Delete unused variable.
3457         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
3458         * alpha/vms.h (PREFIX): Undef before defining.
3459         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
3460         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
3461         controlling usage.  Const-ify.
3462         (alias_number): Delete unused variable.
3463         * m32r/m32r.c (m32r_sched_init): Add missing argument.
3464         (m32r_expand_block_move): Fix uninitialized warnings.
3465         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
3466         always true' warnings.
3467         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
3468         * sh/sh.c: Include "integrate.h".
3469         (output_far_jump): Fix uninitialized warning.
3470         * final.c (shorten_branches): Avoid automatic aggregate
3471         initialization.
3472         * integrate.c (subst_constants): Likewise.
3474 2001-11-11  Kazu Hirata  <kazu@hxi.com>
3476         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
3477         (get_shift_alg): Remove redundant code.
3479 2001-11-11  Kazu Hirata  <kazu@hxi.com>
3481         * config/pa/milli64.S: Fix comment formatting.
3482         * config/pa/pa-64.h: Likewise.
3483         * config/pa/pa-linux.h: Likewise.
3484         * config/pa/pa-protos.h: Likewise.
3485         * config/pa/pa.c: Likewise.
3486         * config/pa/pa.h: Likewise.
3487         * config/pa/pa32-linux.h: Likewise.
3488         * config/pa/pa32-regs.h: Likewise.
3489         * config/pa/pa64-hpux.h: Likewise.
3490         * config/pa/pa64-regs.h: Likewise.
3491         * config/pa/som.h: Likewise.
3493 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
3495         * doc/gcc.texi: Move several chapters out to ...
3496         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
3497         doc/service.texi, doc/standards.texi, doc/trouble.texi,
3498         doc/vms.texi: ... here.  New files.
3499         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
3501 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
3503         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
3504         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
3505         collect2.c, combine.c, config.in, configure, configure.in,
3506         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
3507         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
3508         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
3509         spelling errors.
3511 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3513         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
3514         Adjust operand number in CONST_DOUBLE.
3516         * expmed.c (extract_bit_field): No longer pass in alignment.
3517         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
3518         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
3519         Likewise.
3520         * expr.c (store_constructor, store_constructor_field): Likewise.
3521         (store_field, emit_group_load, emit_group_store): Likewise.
3522         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
3523         (store_bit_field, extract_bit_field): Likewise.
3524         * calls.c, expr.c, function.c: Change calls to above functions.
3525         * ifcvt.c, stmt.c: Likewise.
3527         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
3528         constant and one is on frame.
3529         If know memref offset, adjust size from decl.
3531 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3533         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
3534         format specifier warning.
3535         * convex.h (ASM_OUTPUT_BYTE): Likewise.
3536         * elfos.h (ALIGN_ASM_OP): Undef before defining.
3537         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
3538         warning.
3539         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3540         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3541         * i386-interix.h (gen_stdcall_suffix): Prototype.
3542         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3543         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
3544         ASM_OUTPUT_LONG_DOUBLE): Likewise.
3545         * i386/interix.c (gen_stdcall_suffix): Const-ify.
3546         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
3547         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
3548         specifier warnings.
3549         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3550         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
3551         ASM_OUTPUT_LONG_DOUBLE): Likewise.
3552         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3553         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3554         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3555         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3556         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
3557         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
3558         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
3559         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
3560         Likewise.
3561         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
3562         Likewise.
3563         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
3564         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
3565         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
3566         Likewise.
3567         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
3568         Likewise.
3569         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
3570         Likewise.
3571         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
3572         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3573         * m68k/news.h (PRINT_OPERAND): Likewise.
3574         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
3575         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
3576         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
3577         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
3578         definition.
3579         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
3580         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
3581         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
3582         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
3583         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
3584         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
3585         PRINT_OPERAND): Likewise.
3586         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
3587         Likewise.
3588         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
3589         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
3590         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
3591         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3592         * mips.c (mips_output_external_libcall): Mark parameter with
3593         ATTRIBUTE_UNUSED.
3594         (mips_asm_file_start): Move variable into the scope where it's
3595         used.
3596         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
3597         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3598         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
3599         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3600         * ns32k.c (print_operand): Likewise.
3601         * pa.c (print_operand, output_div_insn): Likewise.
3602         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
3603         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
3604         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
3605         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
3606         specifier warnings.
3607         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3608         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3609         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
3610         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
3611         specifier warnings.
3612         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3614         * sdbout.c (sdbout_end_epilogue): Mark parameter with
3615         ATTRIBUTE_UNUSED.
3616         * varasm.c (assemble_global): Likewise.
3618 2001-11-11  H.J. Lu <hjl@gnu.org>
3620         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
3622 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3624         * final.c (*_MAX_SKIP): Use *_max_skip variables.
3625         * flags.h (align_loops_max_skip, align_jumps_max_skip,
3626         align_labels_max_skip): New global variables.
3627         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
3628         align_labels_max_skip): New global variables.
3629         (toplev_main): Set new variables.
3630         * i386.c (override_options): Set max_skip values.
3632 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
3634         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
3635         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
3636         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
3637         don't print an @fptr for labels either.
3638         (xstormy16_output_addr_vec): Don't print @fptr here.
3639         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
3641 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
3643         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
3644         an ANSI/ISO definitino.
3645         (ssa_const_prop): Likewise.
3647 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
3649         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
3650         altivec registers.
3652 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3654         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
3655         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
3656         * cppmain.c (general_init): Call hex_init.
3657         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
3659         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
3661         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
3662         of dgux.c:output_file_start().
3664         * i386/dgux.c: Delete file.
3666 2001-11-09  Richard Henderson  <rth@redhat.com>
3668         * config/alpha/alpha.c (decl_in_text_section): New.
3669         (current_file_function_operand): Use it.
3670         (alpha_encode_section_info, alpha_end_function): Likewise.
3672 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
3674         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
3675         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
3676         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
3677         so OS specific files and use CPP_PREDEFINES for their needs.
3678         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
3679         target headers to tm_file.
3680         * config/ia64/aix.h (TARGET_VERSION): Likewise.
3681         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
3682         * config/ia64/linux.h (TARGET_VERSION): Likewise.
3683         (FUNCTION_PROFILER): Remove.
3684         * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
3685         version in config/ia64/linux.h.
3686         * config/ia64/freebsd.h: New file.
3687         * config/freebsd.h: Tidy up.
3688         (_USING_CONFIG_FREEBSD): Define.
3689         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
3690         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
3691         (FBSD_STARTFILE_SPEC): Likewise.
3692         (FBSD_ENDFILE_SPEC): Likewise.
3693         (FBSD_LIB_SPEC): Likewise.
3694         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
3695         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
3696         set an ELF-improper one.
3698 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3700         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
3701         constant can be loaded in a single instruction to a register.  When
3702         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
3703         depdi for insertion of most significant 32-bits on 64-bit hosts.
3704         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
3705         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
3706         * pa.md: New addmove pattern for adding constant_int to HImode
3707         register and moving result to HImode register.  Remove HImode HIGH
3708         and LO_SUM patterns.
3710 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3712         * Makefile.in: Update.
3713         * c-decl.c (print_lang_decl, print_lang_type): Remove.
3714         (print_lang_identifier): Rename c_print_identifier.
3715         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
3716         (print_lang_statistics, lang_print_xnode): Remove.
3717         * c-parse.in (set_yydebug): Rename c_set_yydebug.
3718         * c-tree.h (c_set_yydebug, c_print_identifier): New.
3719         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
3720         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
3721         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
3722         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
3723         (LANG_HOOKS_INITIALIZER): Update.
3724         * langhooks.h (struct lang_hooks): New members.
3725         (lang_print_tree_hook): New.
3726         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
3727         * print-tree.c: Include langhooks.h.
3728         (print_node): Update.
3729         * toplev.c (decode_d_option): Update.
3730         * tree.c: Include langhooks.h.
3731         (dump_tree_statistics): Update.
3732         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
3733         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
3734 objc:
3735         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
3736         LANG_HOOKS_SET_YYDEBUG): Override.
3737         (lang_print_xnode, print_lang_statistics): Remove.
3739 2001-11-09  Richard Henderson  <rth@redhat.com>
3741         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
3742         on the symbol string.
3744 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3746         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
3747         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
3748         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
3750         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
3752         * tlink.c (recompile_files): Copy strings passed to `putenv'.
3754 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
3756         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
3757         (TYPE_READONLY): Likewise.
3759         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
3761         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
3762         don't pass --gdwarf2 to the assembler if the compiler will also
3763         provide debug info.
3765         * config/stormy16/stormy16.c (xstormy16_expand_casesi):
3766         Don't change INDEX.
3768 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3770         * alias.c (nonoverlapping_memrefs_p): New function.
3771         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
3773         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
3775 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
3777         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
3778         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
3779         generating altivec code.
3780         (FIXED_REGISTERS): VRSAVE is fixed.
3781         (CALL_USED_REGISTERS): VRSAVE is call used.
3783 2001-11-09  Jason Eckhardt  <jle@rice.edu>
3785         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
3786         code the branch target as ".+16/.+12", but rather use labels.
3788 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
3790         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
3791         to work around limitations of certain versions of GAS.
3793         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
3794         (muldi3): Update due to SUBREG_BYTE changes.
3795         (casesi): Similarly.
3797 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
3799         * doc/invoke.texi: Remove comment referring to -xf77-version.
3801 2001-11-09  Kazu Hirata  <kazu@hxi.com>
3803         * config/convex/convex.c: Fix comment formatting.
3804         * config/convex/convex.h: Likewise.
3806 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
3808         * Makefile.in (.po.pox): Look both in srcdir and builddir
3809         for $(PACKAGE).pot.
3810         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
3811         to the source directory.
3813 2001-11-09 Ben Elliston  <bje@redhat.com>
3814            Michael Meissner  <meissner@redhat.com>
3815            Andrew MacLeod  <amacleod@redhat.com>
3816            Richard Henderson  <rth@redhat.com>
3817            Nick Clifton  <nickc@redhat.com>
3818            Catherine Moore  <clm@redhat.com>
3820         * m32r.c: Add support for m32rx processor.
3821         * m32r.h: Ditto.
3822         * m32r.md: Ditto.
3823         * t-m32r: Ditto.
3824         * m32r-protos.h: Add prototypes for m32rx functions.
3825         * doc/invoke.texi: Document -m32rx option.
3827 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
3829         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
3830         or after reload.
3832 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3834         * doc/install.texi2html: Use $MAKEINFO --no-split.
3836 2001-11-09  Andreas Schwab  <schwab@suse.de>
3838         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
3839         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
3840         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
3841         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
3842         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
3844 2001-11-09  H.J. Lu <hjl@gnu.org>
3846         * config/mips/mips.c (mips_output_function_prologues): Cast
3847         `tsize' to long for output.
3849 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3851         * c-lang.c (LANG_HOOKS_NAME): New.
3852         (lang_hooks): Constify.
3853         (c_init_options): Update.
3854         (lang_identify): Remove.
3855         * c-parse.in (language_string): Remove.
3856         * dbxout.c: Include langhooks.h.
3857         (dbxout_symbol_location): Update.
3858         * dwarf2out.c: Include langhooks.h.
3859         (gen_compile_unit_die): Update.
3860         * dwarfout.c: Include langhooks.h.
3861         (prototyped_attribute, output_compile_unit_die): Update.
3862         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
3863         (LANG_HOOKS_INITIALIZER): Update.
3864         * langhooks.h (struct lang_hooks): New members.  Constify.
3865         * stringpool.c: Don't include toplev.h.
3866         (set_identifier_size): Remove.
3867         * toplev.c (toplev_main): Initialize identifier size.
3868         (print_version): Update.
3869         * tree.h (language_string, init_lex, lang_identify,
3870         set_identifier_size): Remove.
3871         * Makefile.in: Update dependencies.
3872         * config/darwin.c: Include langhooks.h.
3873         (func_name_maybe_scoped): Update.
3874         * config/darwin.h (ASM_END_FILE): Update.
3875         * config/nextstep.h (ASM_END_FILE): Update.
3876         * config/nextstep21.h (ASM_END_FILE): Update.
3877         * config/i386/sun386.h (ASM_END_FILE): Update.
3878         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
3879         (rs6000_output_function_epilogue): Update.
3880 objc:
3881         * objc-act.c (LANG_HOOKS_NAME): Override.
3882         (struct lang_hooks): Constify.
3883         (objc_init_options): Update.
3884         (lang_identify): Remove.
3886 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
3888         * fold-const.c (lshift_double): Honor PREC.
3889         (rshift_double): Likewise.
3891 2001-11-08  Kazu Hirata  <kazu@hxi.com>
3893         * config/1750a/1750a.c: Fix comment formatting.
3894         * config/1750a/1750a.h: Likewise.
3896 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
3898         * configure.in (--enable-languages): Be more permissive about
3899         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
3900         * configure: Regenerated.
3902 2001-11-08  Richard Henderson  <rth@redhat.com>
3904         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
3906 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
3908         * config.gcc: Rename stormy16 to xstormy16.
3909         * config/stormy16/stormy-abi: Likewise.
3910         * config/stormy16/stormy16-protos.h: Likewise.
3911         * config/stormy16/stormy16.c: Likewise.
3912         * config/stormy16/stormy16.h: Likewise.
3913         * config/stormy16/stormy16.md: Likewise.
3915 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
3917         * tree.h (TYPE_VOLATILE): Add enable-checking code.
3918         (TYPE_READONLY): Likewise.
3920 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3922         * reload1.c (reload): Don't delete equiv insn if can throw.
3924         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
3925         (clear_storage): Likewise, for OBJECT.
3927 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
3929         * pa.c (emit_move_sequence): Fix SUBREG expression to
3930         use proper byte offset when extending a constant from
3931         SImode to DImode.
3933 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
3935         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
3936         which cannot throw.
3938 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3940         * explow.c (convert_memory_address, case SUBREG): Only return
3941         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
3943 2001-11-08  Richard Henderson  <rth@redhat.com>
3945         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
3946         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
3947         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
3949 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
3951         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
3953 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
3955         * dwarf2out.c (debug_str_hash): New.
3956         (struct indirect_string_node): New.
3957         (struct dw_val_struct): Change type of val_str to it.
3958         (DEBUG_STR_SECTION_FLAGS): Define.
3959         (add_AT_string): Push string into hashtable, increment reference
3960         counter.
3961         (AT_string): Return string from ht_identifier.
3962         (AT_string_form): New.
3963         (free_AT): For dw_val_class_str, just decrement reference counter.
3964         (size_of_string): Remove.
3965         (size_of_die): Use AT_string_form to decide what size the string
3966         occupies in DIE.
3967         (size_of_pubnames): Use strlen instead of size_of_string.
3968         (value_format): Use AT_string_form for dw_val_class_str.
3969         (output_die): Output DW_FORM_strp strings using
3970         dw2_asm_output_offset.
3971         (indirect_string_alloc, output_indirect_string): New.
3972         (dwarf2out_finish): Emit .debug_str strings if there are any.
3974 2001-11-08  Andreas Franck  <afranck@gmx.de>
3976         * configure.in: Add AC_ARG_PROGRAM to support program name
3977         transformation with --program-prefix, --program-suffix and
3978         --program-transform-name.
3979         * configure: Regenerated.
3980         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
3981         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
3982         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
3983         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
3984         program_transform_name the way suggested by autoconf.
3985         (GCC_TARGET_INSTALL_NAME): Define.
3986         (install-driver): Use the transformed target alias name.
3988 2001-11-08  Richard Henderson  <rth@redhat.com>
3990         * config/mips/mips.c (save_restore_insns): Remove GP from the
3991         restore registers mask early instead of special casing it inside
3992         the loop.
3994 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3996         * cp/decl.c (shadow_warning): New function.
3997         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
3998         and an error when a block scope decl shadows a parameter.
4000 2001-11-08  Richard Henderson  <rth@redhat.com>
4002         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
4003         case as well.
4005 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4007         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
4008         to implement floating negation on processors prior to PA 2.0.
4010 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
4012         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
4013         (USE_LINKONCE_INDIRECT): Define.
4014         (dw2_output_indirect_constant_1): Try to output indirect constants
4015         into linkonce sections if possible.
4016         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
4017         (dw2_output_indirect_constants): Likewise.
4019 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
4021         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
4023 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4025         * c-decl.c (pushdecl): Remove file and line.
4026         * c-typeck.c (pop_init_level): Remove size.
4028 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
4030         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
4031         for rs6000.
4033         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
4034         (TARGET_ALTIVEC): New.
4035         (TARGET_SWITCHES): Add altivec.
4036         (FIRST_PSEUDO_REGISTER): Change to 109.
4037         (CALL_USED_REGISTERS): Same.
4038         (FIRST_ALTIVEC_REGNO): New.
4039         (LAST_ALTIVEC_REGNO): New.
4040         (ALTIVEC_REGNO_P): New.
4041         (UNITS_PER_ALTIVEC_WORD): New.
4042         (ALTIVEC_VECTOR_MODE): New.
4043         (FIXED_REGISTERS): Add altivec registers.
4044         (REG_ALLOC_ORDER): Same.
4045         (HARD_REGNO_NREGS): Adjust for altivec registers.
4046         (HARD_REGNO_MODE_OK): Same.
4047         (MODES_TIEABLE_P): Same.
4048         (REGISTER_MOVE_COST): Same.
4049         (REGNO_REG_CLASS): Same.
4050         (reg_class): Add ALTIVEC_REGS.
4051         (REG_CLASS_NAMES): Same.
4052         (REG_CLASS_CONTENTS): Same.
4053         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
4054         (ALTIVEC_ARG_RETURN): New.
4055         (FUNCTION_VALUE): Handle VECTOR_TYPE.
4056         (LIBCALL_VALUE): Handle altivec vector modes.
4057         (VECTOR_MODE_SUPPORTED_P): New.
4058         (ALTIVEC_ARG_MIN_REG): New.
4059         (ALTIVEC_ARG_MAX_REG): New.
4060         (ALTIVEC_ARG_NUM_REG): New.
4061         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
4062         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
4063         (REGISTER_NAMES): Add altivec regs.
4064         (DEBUG_REGISTER_NAMES): Same.
4065         (ADDITIONAL_REGISTER_NAMES): Same.
4066         (rs6000_builtins): New.
4067         (MD_EXPAND_BUILTIN): New.
4068         (MD_INIT_BUILTINS): New.
4069         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
4070         for AltiVec instructions.
4071         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
4072         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
4073         registers.
4074         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
4075         (TARGET_SWITCHES): Add no-altivec.
4076         (DATA_ALIGNMENT): Align vectors to 128 bits.
4077         (TARGET_OPTIONS): Add abi= option.
4078         Add rs6000_abi_string extern.
4079         (LOCAL_ALIGNMENT): New.
4080         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
4081         (MASK_ALTIVEC_ABI): New.
4082         (TARGET_ALTIVEC_ABI): New.
4083         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
4084         call-saved.
4085         (STACK_BOUNDARY): Adjust for altivec.
4086         (BIGGEST_ALIGNMENT): Same.
4087         (rs6000_args): Add vregno.
4088         (USE_ALTIVEC_FOR_ARG_P): New.
4089         (FIXED_REGISTERS): Add vrsave register.
4090         (CALL_USED_REGISTERS): Same.
4091         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
4092         (VRSAVE_REGNO): New.
4093         (reg_class): Add VRSAVE_REGS.
4094         (REG_CLASS_NAMES): Same.
4095         (REG_CLASS_CONTENTS): Same.
4096         (REGNO_REG_CLASS): Same.
4098         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
4099         (ABI_STACK_BOUNDARY): Same.
4100         (BIGGEST_ALIGNMENT): Same.
4101         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
4102         (ROUND_TYPE_ALIGN): Same.
4104         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
4105         to 64.
4107         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
4108         to 64.
4110         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
4111         to 64.
4113         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
4114         (altivec_expand_builtin): New.
4115         (altivec_init_builtins): New.
4116         (TARGET_EXPAND_BUILTIN): New.
4117         (TARGET_INIT_BUILTINS): New.
4118         (rs6000_init_builtins): New.
4119         (struct builtin_description): New.
4120         (bdesc_2arg): New.
4121         (rs6000_reg_names): Add altivec registers.
4122         (alt_reg_names): Same.
4123         (secondary_reload_class): Altivec regs can hold altivec regs and
4124         memory.
4125         (rs6000_emit_move): Force constants into memory for AltiVec moves.
4126         (print_operand): Add 'y' case for printing altivec memory
4127         operands.
4128         (rs6000_legitimize_address): Legitimize vector addresses into
4129         [REG+REG] or [REG].
4130         (altivec_expand_binop_builtin): New.
4131         New string rs6000_current_abi.
4132         (rs6000_override_options): Call rs6000_parse_abi_options.
4133         (rs6000_parse_abi_options): New.
4134         (function_arg_boundary): Vector arguments must be 16
4135         byte aligned.
4136         (function_arg_advance): Handle vector arguments.
4137         (function_arg_partial_nregs): Same.
4138         (init_cumulative_args): Same.
4139         (function_arg): Same.
4141         * config/rs6000/rs6000.md (altivec_lvx): New.
4142         (type): Add altivec attribute.
4143         (movv4si): New.
4144         (*movv4si_internal): New.
4145         (movv16qi): New.
4146         (*movv16qi_internal): New.
4147         (movv8hi): New.
4148         (*movv8hi_internal1): New.
4149         (movv4sf): New.
4150         (*movv4sf_internal1): New.
4151         (altivec_stvx): New.
4152         (vaddubm): New.
4153         (vadduhm): New.
4154         (vadduwm): New.
4155         (vaddfp): New.
4156         (vaddcuw): New.
4157         (vaddubs): New.
4158         (vaddsbs): New.
4159         (vadduhs): New.
4160         (vaddshs): New.
4161         (vadduws): New.
4162         (vaddsws): New.
4163         (vand): New.
4164         (vandc): New.
4165         (vavgub): New.
4166         (vavgsb): New.
4167         (vavguh): New.
4168         (vavgsh): New.
4169         (vavguw): New.
4170         (vavgsw): New.
4171         (vcmpbfp): New.
4172         (vcmpequb): New.
4173         (vcmpequh): New.
4174         (vcmpequw): New.
4175         (vcmpeqfp): New.
4176         (vcmpgefp): New.
4177         (vcmpgtub): New.
4178         (vcmpgtsb): New.
4179         (vcmpgtuh): New.
4180         (vcmpgtsh): New.
4181         (vcmpgtuw): New.
4182         (vcmpgtsw): New.
4183         (vcmpgtfp): New.
4184         (vcmpgefp): New.
4185         (vcmpgtub): New.
4186         (vcmpgtsb): New.
4187         (vcmpgtuh): New.
4188         (vcmpgtsh): New.
4189         (vcmpgtuw): New.
4190         (vcmpgtsw): New.
4191         (vcmpgtfp): New.
4192         (vmaxub): New.
4193         (vmaxsb): New.
4194         (vmaxuh): New.
4195         (vmaxsh): New.
4196         (vmaxuw): New.
4197         (vmaxsw): New.
4198         (vmaxfp): New.
4199         (vmrghb): New.
4200         (vmrghh): New.
4201         (vmrghw): New.
4202         (vmrglb): New.
4203         (vmrglh): New.
4204         (vmrglw): New.
4205         (vminub): New.
4206         (vminsb): New.
4207         (vminuh): New.
4208         (vminsh): New.
4209         (vminuw): New.
4210         (vminsw): New.
4211         (vminfp): New.
4212         (vmuleub): New.
4213         (vmulesb): New.
4214         (vmuleuh): New.
4215         (vmulesh): New.
4216         (vmuloub): New.
4217         (vmulosb): New.
4218         (vmulouh): New.
4219         (vmulosh): New.
4220         (vnor): New.
4221         (vor): New.
4222         (vpkuhum): New.
4223         (vpkuwum): New.
4224         (vpkpx): New.
4225         (vpkuhss): New.
4226         (vpkshss): New.
4227         (vpkuwss): New.
4228         (vpkswss): New.
4229         (vpkuhus): New.
4230         (vpkshus): New.
4231         (vpkuwus): New.
4232         (vpkswus): New.
4233         (vrlb): New.
4234         (vrlh): New.
4235         (vrlw): New.
4236         (vslb): New.
4237         (vslh): New.
4238         (vslw): New.
4239         (vsl): New.
4240         (vslo): New.
4241         (vsrb): New.
4242         (vrsh): New.
4243         (vrsw): New.
4244         (vsrab): New.
4245         (vsrah): New.
4246         (vsraw): New.
4247         (vsr): New.
4248         (vsro): New.
4249         (vsububm): New.
4250         (vsubuhm): New.
4251         (vsubuwm): New.
4252         (vsubfp): New.
4253         (vsubcuw): New.
4254         (vsububs): New.
4255         (vsubsbs): New.
4256         (vsubuhs): New.
4257         (vsubshs): New.
4258         (vsubuws): New.
4259         (vsubsws): New.
4260         (vsum4ubs): New.
4261         (vsum4sbs): New.
4262         (vsum4shs): New.
4263         (vsum2sws): New.
4264         (vsumsws): New.
4265         (vxor): New.
4267 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
4269         * Makefile.in (df.o): Add fibheap.h to dependencies.
4271         * df.h: Add prototypes for transfer functions, iterative_dataflow
4272         functions.
4273         (enum df_flow_dir): New enum.
4274         (enum df_confluence_op): New enum.
4275         (struct df): Add inverse_rts_map.
4277         * df.c: Add sbitmap.h to the list of includes.
4278         (df_rd_global_compute): Removed.
4279         (df_ru_global_compute): Removed.
4280         (df_lr_global_compute): Removed.
4281         (df_rd_transfer_function): New function.
4282         (df_ru_transfer_function): New function.
4283         (df_lr_transfer_function): New function.
4284         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
4285         Use iterative_dataflow_bitmap instead of df_*_global_compute.
4286         (iterative_dataflow_sbitmap): New function.
4287         (iterative_dataflow_bitmap): New function.
4289 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
4291         * doc/gcc.texi: Move terminology and spelling conventions to
4292         htdocs/codingconventions.html.
4294 2001-11-07  Graham Stott  <grahams@redhat.com>
4296         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
4298 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
4300         * expmed.c (expand_mult): Force operand to register before computing
4301         cost.
4302         * i386.c (x86_decompose_lea): New global vairable.
4303         * i386.h (x86_decompose_lea): Declare.
4304         (TARGET_DECOMPOSE_LEA): New macro.
4305         (RTX_COST): Handle leas properly.
4307 2001-11-06  Richard Henderson  <rth@redhat.com>
4309         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
4310         defined for a CONSTRUCTOR; don't check it.
4312 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
4314         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
4315         test for absolute pathnames.
4317 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
4319         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
4320         instructions up to the target pc inclusive.
4322 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
4324         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
4326 2001-11-06  Eric Christopher  <echristo@redhat.com>
4328         * config/mips/mips.md(movdf_internal2): Add constraints for float
4329         to general register move.
4330         * config/mips/elf64.h: Add default ABI.
4332 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4334         * alias.c:: Include langhooks.h.
4335         * emit-rtl.c: Similarly.
4336         * toplev.c: Similarly.
4337         * tree-inline.c: Similarly.
4338         * langhooks-def.h: New, the old langhooks.h.  Give the default
4339         hooks a common prefix.
4340         * langhooks.h: Contents extracted from toplev.h.
4341         * toplev.h: Move langhook stuff to langhooks.h.
4342         * langhooks.c: Give default hooks a common prefix.
4344         * c-lang.c: Include langhooks-def.h.
4345         * objc/objc-act.c: Similarly.
4346         * Makefile.in: Update.
4347         * objc/Make-lang.in: Update.
4349 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
4351         * doc/install.texi: Document that configure options not listed in
4352         this file are unsupported.  Document --with-system-zlib.
4354 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4356         * rtl.h (mem_for_const_double): New declaration.
4357         * varasm.c (mem_for_const_double): New function.
4358         * config/convex/convex.md (movdf): Use it.
4359         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
4360         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
4361         * config/m68k/m68kv4.h: Likewise.
4363         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
4364         of new GP reg classes.
4366         * expr.c (store_field): When making temp object for unaligned
4367         component, set it to alias set 0.
4369 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
4371         * c-common.c (c_expand_expr_stmt): Apply default conversions to
4372         non-lvalue arrays if C99.
4373         * c-typeck.c (default_conversion): Split out code handling
4374         array-to-pointer and function-to-pointer conversions into a
4375         separate default_function_array_conversion function.
4376         (default_function_array_conversion): New function.  Keep track of
4377         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
4378         arrays unchanged outside C99 mode instead of giving an error for
4379         them.
4380         (build_component_ref): Use pedantic_non_lvalue when handling
4381         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
4382         (convert_arguments): Use default_function_array_conversion.
4383         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
4384         non-lvalues are OK.
4385         (unary_complex_lvalue): Likewise.
4386         (internal_build_compound_expr): Use
4387         default_function_array_conversion.  Apply default conversions to
4388         function in compound expression.
4389         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
4390         Use default_function_array_conversion.
4391         * doc/extend.texi: Update documentation of subscripting non-lvalue
4392         arrays.
4393         Fixes PR c/461.
4395 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
4397         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
4398         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
4399         corresponding to the complete set of .po and .gmo files in
4400         the source directory's po subdir, modified by LINGUAS.  Don't
4401         look at ALL_LINGUAS.
4402         * configure.in: Don't set ALL_LINGUAS.
4403         * configure: Regenerate.
4405         * Makefile.in (.po.gmo): Don't move into source directory.
4406         (.po.pox): Clarify comments.
4407         (install-po): Look for .gmo files in both srcdir and objdir;
4408         don't fail if a file is totally missing.
4409         (distclean): rmdir ada subdirectory too.
4411 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
4413         * config/rs6000/rs6000.c (rs6000_select_section): Handle
4414         CONSTRUCTORs _correctly_.
4416 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4418         * c-decl.c (delete_block): Remove.
4419         * c-tree.h (delete_block): Remove.
4421 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4423         * cppexp.c (lex, parse_defined): Update warning about defined.
4425 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
4427         * config/rs6000/rs6000.c (rs6000_select_section): Handle
4428         CONSTRUCTORs too.
4430 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
4432         * config/arm/arm.c (arm_return_in_memory): Cope with
4433         int_size_in_bytes returning -1.
4435         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
4436         DECL being NULL.
4438 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
4440         * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
4441         remove unneeded dependencies;
4442         (cfglayout.o): New.
4443         * cfglayout.c, cfglayout.h: New files; break out from ...
4444         * bb-reorder.c: ... here; Remove unneeded includes;
4446 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
4448         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
4450 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
4452         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
4453         mode as well.  Do not explicitly create intermediate regs.
4455 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4457         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
4458         (common_section): Delete unused variable.
4459         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
4460         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
4461         * arm-protos.h (arm_poke_function_name, aof_add_import,
4462         aof_delete_import): Const-ify.
4463         * arm.c (legitimize_pic_address): Wrap variables in the macro
4464         controlling their usage.
4465         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
4466         (arm_poke_function_name, pic_chain, import, aof_add_import,
4467         aof_delete_import): Const-ify.
4468         * i386.c (ix86_osf_output_function_prologue): Const-ify.
4469         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
4470         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
4471         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
4472         * i860/sysv3.h: Add missing comment closure.
4473         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
4474         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
4475         to symbolic_operand.
4477         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
4478         (i960-*-*): Set tmake_file.
4479         (sparc86x-*-elf*): Fix typo in header name.
4481         * sched-rgn.c (schedule_insns): Delete unused variable.
4483 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4485         PR c/2820
4486         * c-typeck.c (lookup_field): Rework to return a chain down to
4487         the looked-up field.
4488         (build_component_ref): Use the new lookup_field to handle
4489         nested anonymous entities correctly.
4491 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4493         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
4494         Change parameters to gen_rtx_CONST_DOUBLE.
4495         (GEN_INT64, sparc_emit_set_const64): Likewise.
4496         * config/sparc/sparc.md (movdf split): Likewise.
4498 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
4500         * unroll.c (calculate_giv_inc): Use find_last_value rather
4501         than just hoping the last instruction is the right SET.
4502         [Fixes 990604-1.c on stormy16.]
4504         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
4505         library at all if -T is used.
4507         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
4508         some uses of uninitialized variables in error cases.
4510         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
4511         look at 'temp' if we won't be using it.
4513         * config/stormy16/stormy16.h (CONST_COSTS): Define.
4514         (RTX_COSTS): Define.
4515         (ADDRESS_COST): Define.
4516         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
4518         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
4520         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
4521         stormy16_asm_output_mi_thunk.
4522         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
4523         function.
4524         * config/stormy16/stormy16-protos.h
4525         (stormy16_asm_output_mi_thunk): New prototype.
4527 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4529         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
4530         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
4531         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
4532         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
4533         sched-int.h, toplev.c, config/alpha/alpha.c,
4534         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
4535         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
4536         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
4537         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
4538         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
4539         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
4540         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
4542 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4544         * Makefile.in (dbxout.o): Depend on function.h.
4545         * collect2.c (is_in_list): Hide unused function.
4546         * dbxout.c: Include function.h.
4547         (source_label_number, dbxout_source_line, dbxout_source_file,
4548         dbxout_function_end, dbxout_begin_function): Wrap/move inside
4549         macros controlling usage.
4550         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
4551         * output.h (exports_section): Prototype.
4553         * convex.c (convex_output_function_prologue): Fix format specifier
4554         warning.
4555         (asm_declare_function_name): Fix signed/unsigned warning.
4556         (print_operand): Fix format specifier warning.
4557         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
4558         * dsp16xx-protos.h (uns_comparison_operator,
4559         num_1600_core_shifts): Prototype.
4560         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
4561         (frame_size, frame_pointer_offset): Delete.
4562         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
4563         Make static.  Fix format specifier warnings.
4564         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
4565         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
4566         * dsp16xx.md: Add default case in switches.
4567         * fr30.h (IN_RANGE): Delete.
4568         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
4569         * mcore-protos.h (mcore_output_cmov): Const-ify.
4570         * mcore.c (mcore_output_cmov): Likewise.
4571         * mcore.h (switch_to_section): Make static and prototype.
4572         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
4573         unsigned>=0 warnings.
4574         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
4575         * rs6000-protos.h (read_only_data_section,
4576         read_only_private_data_section): Prototype.
4577         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
4578         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
4579         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
4581 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4583         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
4584         ATTRIBUTE_UNUSED.
4585         * final.c (final_scan_insn): Add brackets around body of if-stmt.
4586         * gcc.c (convert_filename): Add static prototype.  Const-ify.
4587         Wrap variable in macros controlling its use.
4588         * output.h (sdata_section): Add prototype.
4590         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
4591         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
4592         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
4593         (ASM_FILE_START): Const-ify.
4594         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
4595         specifier warning.
4596         * c4x.md: Don't use the 'U' integer suffix.
4597         * clipper.md (clipper_movstr): Delete declaration.
4598         * d30v-protos.h (d30v_move_2words): Const-ify.
4599         (debug_stack_info): Add prototype.
4600         * d30v.c: Include "integrate.h".
4601         (d30v_function_arg_boundary, d30v_function_arg,
4602         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
4603         signed/unsigned warnings.
4604         (d30v_print_operand_memory_reference, d30v_move_2words):
4605         Const-ify.
4606         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
4607         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
4608         * fr30.md: Const-ify.
4609         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
4610         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
4611         (mvs_get_label_page): Hide unused static function.
4612         * i860.c (current_function_original_name): Const-ify.
4613         * i860/sysv3.h (current_function_original_name): Likewise.
4614         * i860/sysv4.h (current_function_original_name): Likewise.
4615         * i960.md: Add default case in switches.  Remove unused variable.
4616         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
4617         * m32r.md: Const-ify.
4618         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
4619         * m68hc11.c: Include "reload.h".
4620         (static_chain_reg, print_options, m68hc11_asm_file_start):
4621         Const-ify.
4622         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
4623         around & in comparison.
4624         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
4625         * mn10200.c (shift_mode): Remove trailing comma.
4626         * mn10300-protos.h (output_tst): Const-ify.
4627         * mn10300.c (output_tst): Likewise.
4628         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
4629         warnings.
4630         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
4631         * pa.c (output_ascii): Likewise.
4632         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
4633         * pdp11.md (expand_unop): Delete declarations.
4634         * pj-protos.h (pj_output_addsi3): Const-ify.
4635         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
4636         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
4637         unique_src_operand): Add prototypes.
4638         (pj_output_store_into_lval): Make definition static.
4639         (pj_function_incoming_arg): Don't use unary plus.
4640         (pj_output_addsi3): Const-ify.
4641         * romp.md (get_symref): Delete declarations.
4642         * v850-c.c (mark_current_function_as_interrupt): Don't return
4643         value from void function.
4644         * v850.c: Include "integrate.h".
4645         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
4646         * vax-protos.h (const_section): Add prototype.
4648 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
4650         * machmode.def: Add documentation for the seventh argument in
4651         vector modes.
4653 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
4655         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
4656         consistently.
4657         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
4658         <-melf>: Don't have markup for ELF acronym.
4660 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
4662         * config.gcc (mmix-*-*): New target.
4663         * doc/invoke.texi: Document MMIX options.
4664         * doc/contrib.texi: Add note about MMIX port to my entry.
4665         * config/mmix/t-mmix: New file.
4666         * config/mmix/mmix.h: New file.
4667         * config/mmix/mmix-protos.h: New file.
4668         * config/mmix/mmix.c: New file.
4669         * config/mmix/mmix.md: New file.
4670         * config/mmix/crti.asm: New file.
4671         * config/mmix/crtn.asm: New file.
4673 2001-11-03  Kazu Hirata  <kazu@hxi.com>
4675         * config/sparc/linux-aout.h: Fix comment formatting.
4676         * config/sparc/linux.h: Likewise.
4677         * config/sparc/linux64.h: Likewise.
4678         * config/sparc/lynx.h: Likewise.
4679         * config/sparc/pbd.h: Likewise.
4680         * config/sparc/sol2-sld-64.h: Likewise.
4681         * config/sparc/sol2.h: Likewise.
4682         * config/sparc/sparc.c: Likewise.
4683         * config/sparc/sparc.h: Likewise.
4684         * config/sparc/sparc.md: Likewise.
4685         * config/sparc/sunos4.h: Likewise.
4686         * config/sparc/vxsim.h: Likewise.
4687         * config/sparc/vxsparc.h: Likewise.
4688         * config/sparc/vxsparc64.h: Likewise.
4690 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4692         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
4693         reference to CONST_DOUBLE_MEM in comment.
4694         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
4695         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
4696         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
4697         * function.c (pop_function_context_from): Don't call
4698         restore_varasm_status.
4699         * function.h (restore_varasm_status): Delete declaration.
4700         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
4701         * rtl.c: Likewise.
4702         * rtl.def (CONST_DOUBLE): Update comment.
4703         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
4704         (CONST_DOUBLE_CHAIN): Likewise.
4705         (CONST_DOUBLE_MEM): Delete.
4706         (gen_rtx_CONST_DOUBLE): Update parameters.
4707         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
4708         Remove reference to CONST_DOUBLE_MEM.
4709         (const_alias_set): New variable.
4710         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
4711         (immed_real_const_1): Adjust tests for 0, 1, and 2.
4712         Don't set CONST_DOUBLE_MEM.
4713         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
4714         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
4715         Put constant in const_alias_set.
4716         (struct pool_constant): ALIGN now unsigned.
4717         OFFSET now HOST_WIDE_INT.
4718         Delete LABEL.
4719         (restore_varasm_status): Deleted.
4720         (mark_pool_constant): Mark desc->rtl.
4721         (force_const_mem): Rework to store rtl in hash table,
4722         not CONST_DOUBLE_MEM.
4723         Put constant in const_alias_set.
4724         (find_pool_constant): Check desc->rtl.
4725         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
4726         (init_varasm_once): Initialize const_alias_set.
4728         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
4729         force_const_mem.
4731         * reload.c (combine_reloads): Don't combine an output reload if there
4732         are other reloads around for part of the output.
4734         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
4735         constant expression.
4736         (set_mem_decl): New function.
4737         * expr.h (set_mem_decl): New declaration.
4738         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
4739         (output_asm_operand_names): Add tab.
4740         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
4742         * builtins.c (get_memory_rtx): Properly set MEM alias set and
4743         attributes.
4745 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4747         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
4748         Use "invalid" instead of "illegal".  Use @r in comments in
4749         examples.
4751 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4753         * c-decl.c (pushdecl): Move block inside if conditional to remove
4754         possibility of a segfault.  Lookup block-level extern
4755         variables in enclosing scopes correctly.
4757         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
4759 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
4761         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
4762         SUBREG so we avoid SUBREGing memory.
4764         * expmed.c (store_bit_field): Same.
4766 2001-11-02  DJ Delorie  <dj@redhat.com>
4768         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
4769         using FP registers for DImode mem-mem moves is acceptable.
4771 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
4773         * builtins.c (apply_args_size): Handle vector arguments.
4774         (apply_result_size): Same.
4776         * machmode.def: Set WIDER mode field for all vector entries.
4778 2001-11-02  Graham Stott  <grahams@redhat.com>
4780         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
4782 2001-11-01  Eric Christopher  <echristo@redhat.com>
4784         * config.gcc: Revert part of earlier patch.
4785         * config/mips/linux.h: Ditto.
4786         * df.c: Include tm_p.h to avoid warnings.
4787         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
4788         #if/#endif.
4789         * config/mips/mips.c: Define mips_abi regardless.
4790         (mips_output_function_prologues): Add long casts for .frame
4791         output.
4792         (override_options): Allow use of ABI_32.
4794 2001-11-01  Kazu Hirata  <kazu@hxi.com>
4796         * config/m68hc11/m68hc11.c: Fix comment formatting.
4797         * config/m68hc11/m68hc11.h: Likewise.
4798         * config/m68hc11/m68hc11.md: Likewise.
4800 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4802         * c-typeck.c (default_conversion): Retain the original expression
4803         codes.
4804         * gcc.dg/Wparentheses.c: New tests.
4806 2001-11-01  David S. Miller  <davem@redhat.com>
4808         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
4809         64-bit Sparc description more in line with reality.
4811 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4813         * Makefile.in (GCOV_OBJS): Add version.o.
4814         * gcov.c: Include "version.h" and <getopt.h>.
4815         (gcov_version_string): Remove.
4816         (print_usage): Take a parameter to determine whether this is a
4817         call from --help or an error message.  Give fuller output that
4818         follows the GNU Coding Standards for --help.
4819         (print_version): New function.
4820         (options): New.
4821         (process_args): Use getopt_long.  Support long options.  Follow
4822         GNU Coding Standards for --help and --version.
4823         * doc/gcov.texi: Document long options.
4824         Addresses part of PR other/704.
4826 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4828         * pa.c (output_move_double): Fix typo in double load.
4830 2001-11-01  Kazu Hirata  <kazu@hxi.com>
4832         * config/h8300/h8300.c (h8300_encode_label): Compute a string
4833         before passing it to ggc_alloc_string.
4835 2001-11-01  Kazu Hirata  <kazu@hxi.com>
4837         * config/m68k/3b1.h: Fix comment formatting.
4838         * config/m68k/3b1g.h: Likewise.
4839         * config/m68k/a-ux.h: Likewise.
4840         * config/m68k/amix.h: Likewise.
4841         * config/m68k/apollo68.h: Likewise.
4842         * config/m68k/atari.h: Likewise.
4843         * config/m68k/aux-exit.c: Likewise.
4844         * config/m68k/ccur-GAS.h: Likewise.
4845         * config/m68k/crds.h: Likewise.
4846         * config/m68k/dpx2.h: Likewise.
4847         * config/m68k/dpx2g.h: Likewise.
4848         * config/m68k/hp310.h: Likewise.
4849         * config/m68k/hp320.h: Likewise.
4850         * config/m68k/isi.h: Likewise.
4851         * config/m68k/linux.h: Likewise.
4852         * config/m68k/lynx.h: Likewise.
4853         * config/m68k/m68k-psos.h: Likewise.
4854         * config/m68k/m68k.c: Likewise.
4855         * config/m68k/m68k.h: Likewise.
4856         * config/m68k/m68k.md: Likewise.
4857         * config/m68k/m68kelf.h: Likewise.
4858         * config/m68k/m68kv4.h: Likewise.
4859         * config/m68k/mot3300.h: Likewise.
4860         * config/m68k/news.h: Likewise.
4861         * config/m68k/next.h: Likewise.
4862         * config/m68k/pbb.h: Likewise.
4863         * config/m68k/plexus.h: Likewise.
4864         * config/m68k/sgs.h: Likewise.
4865         * config/m68k/sun3.h: Likewise.
4866         * config/m68k/tower.h: Likewise.
4867         * config/m68k/vxm68k.h: Likewise.
4869 2001-10-31  DJ Delorie  <dj@redhat.com>
4871         * config/mips/mips.h (mips_cache_flush_func): Prototype.
4872         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
4873         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
4874         * config/mips/mips.c (mips_cache_flush_func): New.
4875         * doc/invoke.texi: Document the new options.
4877 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
4879         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
4880         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
4882         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
4884         * config/cris/cris.c: Include output.h after tree.h but before
4885         target.h.
4887 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
4889         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
4890         (INTL_SUBDIRS): Just intl.
4891         (.SUFFIXES): Add .gmo .po .pox.
4892         (native): Also depend on build-@POSUB@.
4893         (intl.all, intl.install): Depend on config.h and things it includes.
4894         (po-generated): New target; depend on c-parse.c and tradcif.c.
4895         (install-normal): Also depend on install-@POSUB@.
4896         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
4897         (build-, install-, build-po, update-po, install-po,
4898         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
4900         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
4901         * configure.in: Don't munge XGETTEXT.  Don't generate
4902         po/Makefile.in.
4903         * configure: Regenerate.
4905         * exgettext: Delete.
4906         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
4907         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
4909 2001-10-31  Kazu Hirata  <kazu@hxi.com>
4911         * config/h8300/h8300.md (two anonymous patterns): New.
4913 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
4915         * tree.h (tree_index): Add support for V16QI and V8HI.
4916         (V8HI_type_node): New.
4917         (V16QI_type_node): New.
4919         * tree.c (build_common_tree_nodes_2): Same.
4921         * c-common.c (type_for_mode): Same.
4923 2001-10-31  Kazu Hirata  <kazu@hxi.com>
4925         * config/i386/att.h: Fix comment formatting.
4926         * config/i386/beos-elf.h: Likewise.
4927         * config/i386/bsd.h: Likewise.
4928         * config/i386/bsd386.h: Likewise.
4929         * config/i386/crtdll.h: Likewise.
4930         * config/i386/cygwin.asm: Likewise.
4931         * config/i386/cygwin.h: Likewise.
4932         * config/i386/djgpp.h: Likewise.
4933         * config/i386/freebsd-aout.h: Likewise.
4934         * config/i386/freebsd.h: Likewise.
4935         * config/i386/gas.h: Likewise.
4936         * config/i386/i386-interix.h: Likewise.
4937         * config/i386/i386-protos.h: Likewise.
4938         * config/i386/i386.c: Likewise.
4939         * config/i386/i386.h: Likewise.
4940         * config/i386/i386.md: Likewise.
4941         * config/i386/i386elf.h: Likewise.
4942         * config/i386/interix.c: Likewise.
4943         * config/i386/isc.h: Likewise.
4944         * config/i386/isccoff.h: Likewise.
4945         * config/i386/iscdbx.h: Likewise.
4946         * config/i386/linux.h: Likewise.
4947         * config/i386/lynx.h: Likewise.
4948         * config/i386/mingw32.h: Likewise.
4949         * config/i386/netbsd-elf.h: Likewise.
4950         * config/i386/next.h: Likewise.
4951         * config/i386/osf1elf.h: Likewise.
4952         * config/i386/osfrose.h: Likewise.
4953         * config/i386/sco5.h: Likewise.
4954         * config/i386/seq-gas.h: Likewise.
4955         * config/i386/seq-sysv3.h: Likewise.
4956         * config/i386/sequent.h: Likewise.
4957         * config/i386/sol2.h: Likewise.
4958         * config/i386/sun386.h: Likewise.
4959         * config/i386/uwin.asm: Likewise.
4960         * config/i386/uwin.h: Likewise.
4961         * config/i386/vxi386.h: Likewise.
4962         * config/i386/win32.h: Likewise.
4963         * config/i386/winnt.c: Likewise.
4964         * config/i386/xm-cygwin.h: Likewise.
4965         * config/i386/xm-mingw32.h: Likewise.
4967 2001-10-31  Kazu Hirata  <kazu@hxi.com>
4969         * builtins.def: Fix comment typos.
4970         * config/alpha.c: Likewise.
4971         * config/arm/arm.c: Likewise.
4972         * config/avr/avr.h: Likewise.
4973         * config/d30v/d30v.c: Likewise.
4974         * config/d30v/d30v.h: Likewise.
4975         * config/d30v/d30v.md: Likewise.
4976         * config/dsp16xx/dsp16xx.c: Likewise.
4977         * config/fr30/fr30.c: Likewise.
4978         * config/fr30/fr30.md: Likewise.
4979         * config/i386/i386.c: Likewise.
4980         * config/i860/i860.c: Likewise.
4981         * config/i960/i960.c: Likewise.
4982         * config/ia64/ia64.c: Likewise.
4983         * config/mips/mips.c: Likewise.
4984         * config/pa/pa.c: Likewise.
4985         * config/rs6000/rs6000.c: Likewise.
4986         * config/s390/s390.c: Likewise.
4987         * config/sparc/sparc.c: Likewise.
4989 2001-10-30  Kazu Hirata  <kazu@hxi.com>
4991         * config/mips/elf.h: Fix comment formatting.
4992         * config/mips/elf64.h: Likewise.
4993         * config/mips/iris5.h: Likewise.
4994         * config/mips/iris5gas.h: Likewise.
4995         * config/mips/iris6.h: Likewise.
4996         * config/mips/isa3264.h: Likewise.
4997         * config/mips/linux.h: Likewise.
4998         * config/mips/mips.c: Likewise.
4999         * config/mips/mips.h: Likewise.
5000         * config/mips/mips.md: Likewise.
5001         * config/mips/mips16.S: Likewise.
5002         * config/mips/netbsd.h: Likewise.
5003         * config/mips/osfrose.h: Likewise.
5004         * config/mips/r3900.h: Likewise.
5005         * config/mips/sni-svr4.h: Likewise.
5006         * config/mips/svr4-t.h: Likewise.
5007         * config/mips/ultrix.h: Likewise.
5009 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
5011         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
5012         when we update head->current.
5014 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
5016         * tree.c (id_string_size): Remove.
5017         (dump_tree_statistics): Update.
5018         * toplev.c (compile_file): If dumping stats, dump tree stats too.
5020 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
5022         * sched-rgn.c (schedule_insns): Fix comment.
5024 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
5026         * configure.in: Correct previous change: don't assume that
5027         gas's version number _isn't_ the last thing on the line, or
5028         isn't the only number on the line, either.
5029         * configure: Regenerate.
5031 2001-10-30  Kazu Hirata  <kazu@hxi.com>
5033         * cfgcleanup.c: Fix a comment typo.
5035 2001-10-30  Kazu Hirata  <kazu@hxi.com>
5037         * alias.c: Fix comment formatting.
5038         * recog.c: Likewise.
5039         * config/cris/cris.c: Likewise.
5040         * config/cris/cris.h: Likewise.
5041         * config/i960/i960.c: Likewise.
5042         * config/i960/i960.h: Likewise.
5044 2001-10-30  Kazu Hirata  <kazu@hxi.com>
5046         * config/arm/arm.c: Fix a comment typo.
5047         * config/arm/arm.h: Likewise.
5048         * config/ia64/ia64.c: Likewise.
5050 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
5052         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
5053         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
5054         * rtl.h (set_unique_reg_note): Change return value.
5055         * gcse.c (try_replace_reg): Use set_unique_reg_note.
5056         * cse.c (cse_insn): Likewise.
5057         * expr.c (emit_move_insn): Likewise.
5058         * explow.c (force_reg): Likewise.
5059         * local-alloc (update_equiv_regs): Likewise.
5060         * loop.c (move_moveables, load_mems): Likewise.
5061         * reload (find_reloads): Likewise.
5063 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
5065         Localization fixes.
5066         * c-decl.c (parmlist_tags_warning, start_struct,
5067         check_for_loop_decls): Separate messages for struct, union and
5068         enum cases to allow for languages in which they have different
5069         genders.
5070         * c-format.c (scanf_flag_specs): Separate short and long name of
5071         the assignment suppression feature.
5072         (check_format_types): Localize "pointer" and "different types"
5073         strings.
5074         * c-lex.c (lex_number): Localize "an unsigned long int" and
5075         related strings.
5076         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
5077         warning message.
5078         * c-typeck.c (build_unary_up): Separate messages for increment and
5079         decrement cases to allow for languages in which they use different
5080         articles.  Localize the strings "increment" and "decrement" in one
5081         case.
5083 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
5085         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
5086         when no changes has been made.
5088         * gcse.c (reg_set_bitmap): Turn into reg_set.
5089         (modify_mem_list_set, canon_modify_mem_list_set)
5090         (clear_modify_mem_tables, free_modify_mem_tables): New.
5091         (gcse_main); Use free_modify_mem_tables.
5092         (free_gcse_mem): Likewise; free the bitmaps.
5093         (alloc_gcse_main): Initialize the bitmaps.
5094         (canon_list_insert): Set canon_modify_mem_list_set.
5095         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
5096         (compute_hash_table): Use clear_modify_mem_tables.
5097         (reset_opr_set_tables): Likewise.
5098         (oprs_not_set_p): reg_set_bitmap is regset.
5099         (mark_set, mark_clobber): Likewise.
5101         * df.h (DF_EQUIV_NOTES): New constant.
5102         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
5103         when asked for.
5105         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
5106         (init_regions, schedule_insns): Conditionalize the checking
5107         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
5109 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
5111         * i386.md (movti_rex64 splitter): Fix condition.
5113 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
5115         * configure.in: Do not assume that gas's version number is the
5116         last thing on the first line of as --version output.
5117         * configure: Regenerate.
5119         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
5120         MT_WARNING, MT_ERROR, MT_FATAL.
5121         (main): Call gcc_init_libintl.
5122         (v_message): Call gettext on msgid and "warning: "
5123         * tradcif.y: Include intl.h.
5124         (yyerror): Make parameter definition consistent with
5125         prototype.  Call gettext on msgid argument.
5127 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5129         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
5130         warnings.
5132         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
5134 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5136         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
5137         before referencing it.
5139 2001-10-26  DJ Delorie  <dj@redhat.com>
5141         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
5142         override -G, and force -G0.
5144 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
5146         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
5147         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
5148         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
5149         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
5151         * loop.h (struct induction): Rename ext_dependant to
5152         ext_dependent.
5153         * loop.c: Change all uses.
5154         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
5155         All callers changed.
5156         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
5158 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
5160         * c-parse.in (expr_no_commas, primary), c-typeck.c
5161         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
5163 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
5165         Undo assemble_name change in earlier patch.
5167 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
5169         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
5170         determining the type of the receiver, do not check that TREE_CODE
5171         of receiver is CALL_EXPR before calling receiver_is_class_object().
5172         (receiver_is_class_object): For the GNU runtime: recognize
5173         the case that the receiver is self in a class method context.
5174         Check that TREE_CODE of receiver is CALL_EXPR when checking that
5175         the receiver is a call to objc_get_class.
5177 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5179         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
5181 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5183         * Makefile.in (OBJS): Put all files in alphabetical order.
5185         * dwarf2out.c (add_const_value_attribute): Fix error in last
5186         change.
5188 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
5190         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
5191         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
5192         fix warning.
5193         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
5194         (life_analysis): call purge_all_dead_edges after deleting noops.
5195         (delete_noop_move): Do not purge CFG.
5196         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
5198 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
5200         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
5201         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
5202         (ASM_GLOBALIZE_LABEL): Use assemble_name.
5203         (ASM_OUTPUT_COMMON): Likewise.
5204         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
5205         (rs6000_output_function_epilogue): Likewise.
5206         (output_mi_thunk): Fix typo.
5207         (rs6000_output_symbol_ref): Use assemble_name.
5208         (output_toc): Likewise.
5209         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
5210         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
5211         assemble_name calls STRIP_NAME_ENCODING.
5212         (ASM_OUTPUT_LABEL): Use assemble_name.
5213         (ASM_GLOBALIZE_LABEL): Likewise.
5214         (ASM_DECLARE_FUNCTION_NAME): Likewise.
5215         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
5216         (ASM_OUTPUT_LOCAL): Likewise.
5218 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5220         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
5221         (expand_builtin_apply, expand_builtin_return): Likewise.
5222         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
5224 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
5226         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
5227         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
5228         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
5229         configure, configure.in, except.c, except.h, flow.c, function.c,
5230         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
5231         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
5232         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
5233         unroll.c: Fix spelling errors.
5235         * doc/extend.texi, doc/invoke.texi: Fix spelling.
5237         * doc/gcc.texi: Document use of "dependent" and American spelling.
5239 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
5241         * expr.c (emit_group_load): Support CONCATs by storing them to memory
5242         and reloading.
5244 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5246         * expr.c (store_constructor_field): Only call adjust_address on MEM.
5248 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
5250         * genrecog.c (write_switch):  Output if before switch for
5251         DT_elt_zero_wide_safe.
5253 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5255         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
5256         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
5257         (FUNCTION_PROFILER): Const-ify.
5258         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
5259         (eliminate_constant_term, assemble_name, output_addr_const):
5260         Remove declarations.
5261         (ptr_half_pic_address_p, half_pic_hash): Prototype.
5262         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
5263         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
5264         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
5265         (half_pic_declare, half_pic_external): Const-ify.
5266         * toplev.c: Include "halfpic.h".
5268 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
5270         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
5271         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
5272         config/i386/i386.c, config/i386/i386-interix.h,
5273         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
5274         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
5275         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
5276         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
5277         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
5278         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
5279         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
5280         spelling errors.
5282         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
5283         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
5284         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
5285         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
5286         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
5287         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
5288         system.h, toplev.c: Fix spelling errors.
5290 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5292         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
5294         * dwarf2out.c (reg_number): Abort if pseudo.
5295         (reg_loc_descriptor): Return 0 if pseudo.
5296         (is_based_loc): Return 0 if pseudo.
5297         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
5298         recursive calls.
5299         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
5300         (loc_descriptor): Return 0 if can't find location and handle 0
5301         return from recursive calls.
5302         (loc_descriptor_from_tree): Likewise.
5303         Fix handling of indirect.
5304         Also return 0 for PLACEHOLDER_EXPR.
5305         Clean up COMPONENT_REF cases.
5306         (add_AT_location_descriptor): Simplify, but handle 0 return from
5307         loc_descriptor.
5308         (add_const_value_attribute): Avoid shift count warning.
5309         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
5310         Set comp_unit_die as context if not in function.
5312         * config/mips/mips-protos.h: Break up long lines.
5313         Remove needless #ifdef/#endif blocks.
5314         Don't declare functions declared in file made by genpreds or recog.h.
5315         * config/mips/mips.c (mips_output_function_prologue): TSIZE
5316         is now HOST_WIDE_INT; delete unneeded casts.
5317         * config/mips/mips.h: Don't use #elif.
5319         * expr.c (stor_constructor_field): Always call adjust_address.
5320         Copy TARGET before changing its alias set.
5321         (store_field): Likewise, for TO_RTX.
5322         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
5323         replacement.
5324         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
5325         (find_placeholder): Return 0 if can't find object.
5326         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
5327         returns 0.
5329 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
5331         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
5333 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
5335         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
5336         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
5337         (merge_blocks): Properly udpate life after making edge nonfallthru.
5338         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
5340 2001-10-26  Kazu Hirata  <kazu@hxi.com>
5342         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
5344 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5346         * c-typeck.c (convert_arguments): When comparing for enumeral
5347         type equality, use TYPE_MAIN_VARIANT.
5348         * gcc.dg/Wconversion.c: New tests.
5350 2001-10-26  Kazu Hirata  <kazu@hxi.com>
5352         * s390/s390.c: Fix comment typos.
5353         * s390/s390.h: Likewise.
5354         * s390/s390.md: Likewise.
5356 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
5358         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
5359         (walk_tree): Use it for tail calls where appropriate.
5361 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
5363         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
5364         non-local label_refs.
5366 2001-10-26  Kazu Hirata  <kazu@hxi.com>
5368         * config/h8300/h8300.md (4 anonymous patterns): New.
5370 2001-10-26  Kazu Hirata  <kazu@hxi.com>
5372         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
5373         algorithm through the shift_info structure.
5374         (emit_a_shift): Update the use of get_shift_alg.
5376 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
5378         * sched-rgn.c: Remove bitset typedef.
5379         Change bitset to sbitmap in prototypes / variable types.
5380         Remove bbset_size.
5381         Remove edgeset_bits.
5382         Remove edgeset_size.
5383         s/BITSET_ADD/SET_BIT/g
5384         s/BITSET_INVERT/sbitmap_ones/g
5385         s/BITSET_INTER/sbitmap_a_and_b/g
5386         s/BITSET_UNION/sbitmap_a_or_b/g
5387         s/BITSET_DIFFER/sbitmap_difference/g
5388         s/bitset_member/TEST_BIT/g
5389         (BITSET_*): Removed.
5390         (bitset_member): Removed.
5391         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
5392         EXECUTE_IF_SET_IN_SBITMAP.
5393         (split_edges): Rewrite, use sbitmap functions instead of bitset
5394         operations.
5395         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
5397 2001-10-26  Andreas Schwab  <schwab@suse.de>
5399         * reload1.c (emit_input_reload_insns): Fix parens in last
5400         (undocumented) change that was supposed to change only whitespace.
5402 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5404         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
5406         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
5407         ASM_OPERANDS.
5409 2001-10-26  Andreas Jaeger  <aj@suse.de>
5411         * flow.c (clear_log_links): Remove unused variable.
5412         * cfgcleanup.c (cleanup_cfg): Likewise.
5414 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
5416         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
5417         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
5419 2001-10-26  Richard Henderson  <rth@redhat.com>
5421         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
5422         rename PV_REG to R27_REG.
5423         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
5424         (REG_CLASS_FROM_LETTER): Update.
5425         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
5426         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
5427         (udivsi3, modsi3, umodsi3): Likewise.
5428         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
5430 2001-10-26  Richard Henderson  <rth@redhat.com>
5432         * cfg.c (clear_aux_for_blocks): Split out of ...
5433         (free_aux_for_blocks): here.
5434         (clear_aux_for_edges): Split from ...
5435         (free_aux_for_edges): here.
5436         * basic-block.h: Declare them.
5437         * lcm.c (compute_antinout_edge): Use them.
5438         (compute_laterin, compute_available, compute_nearerout): Likewise.
5439         (optimize_mode_switching): Likewise.
5441 2001-10-26  Richard Henderson  <rth@redhat.com>
5443         * Makefile.in (unstage*): Remove as, ld, collect-ld before
5444         moving everything back to the main build directory.
5446 2001-10-26  Christopher Faylor  <cgf@redhat.com>
5448         * config/i386/cygwin.h: Search target specific include directory, if
5449         appropriate.
5451 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5453         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
5454         of macro guards. Fix #endif comment.
5456         * output.h (default_exception_section, default_eh_frame_section):
5457         Move prototypes outside of macro guard.
5459         * crtstuff.c: Fix #endif comment.
5461 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
5463         * doc/md.texi (movMM): Clarify semantics of storing into a
5464         non-paradoxical SUBREG.
5466 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
5468         * langhooks.c (lang_hook_default_clear_binding_stack): New.
5469         (lang_hook_default_get_alias_set): Move next to other alias
5470         hooks.
5471         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
5472         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
5473         (LANG_HOOKS_INITIALIZER): Add it.
5474         * toplev.h (struct lang_hooks): Add clear_binding_stack.
5475         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
5476         instead of a loop calling poplevel.
5478 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
5480         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
5481         occurrences of #elif with #if...#endif.
5483 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5485         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
5487 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5489         * alias.c (can_address_p): No longer static.
5490         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
5491         Return 0 if all parameters are default values.
5492         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
5493         (adjust_address_1): Try harder to compute a size.
5494         * expr.c (expand_assignment, store_constructor): If can't address,
5495         set MEM_KEEP_ALIAS_SET_P.
5496         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
5497         (store_field): Likewise.
5498         (store_constructor): Simplify call to store_constructor_field.
5499         * expr.h (can_address_p): New declaration.
5500         * gensupport.c (gen_rtx_CONST_INT): New function.
5501         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
5502         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
5503         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
5505         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
5507 2001-10-24  Christopher Faylor  <cgf@redhat.com>
5509         * config/i386/cygwin.h: Use proper path for mingw crt files when
5510         -mno-cygwin.
5512 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5514         * dwarf2out.c (file_info_cmp): Always return consistent results.
5516 2001-10-24  Roger Sayle <roger@eyesopen.com>
5518         * stmt.c (expand_end_case): Index jumptables from zero for
5519         suitably small values of minval.
5521 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
5523         * stor-layout.c (place_union_field): If any field was aligned with
5524         attribute aligned, set record type's TYPE_USER_ALIGN.
5525         (place_field): Likewise.
5526         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
5527         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
5529 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
5531         * c-common.h (struct c_common_identifier): Remove rid_code field.
5532         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
5534         * c-typeck.c (constructor_designated): New local flag.
5535         (struct constructor_stack): Add "designated" field to match.
5536         (start_init): Clear it.
5537         (really_start_incremental_init, push_init_level): Push and
5538         clear it.
5539         (pop_init_level): Pop it.
5540         (set_designator): Set it.
5542         (pop_init_level): Suppress "missing initializer" warnings if
5543         constructor_designated is true.
5544         (process_init_element): Suppress warning about union
5545         initialization under traditional C, if constructor_designated
5546         is true.
5548 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5550         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
5551         change.
5553 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
5555         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
5557 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
5559         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
5560         the node was already a set to a constant.
5562 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5564         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
5565         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
5567 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5569         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
5570         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
5571         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
5572         * s390.c (s390_final_chunkify): Don't use string concatenation.
5573         (s390_function_prologue, s390_function_epilogue): Const-ify.
5574         * s390.h (FUNCTION_PROFILER): Remove unused variable.
5576 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
5578         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
5579         prototypes.
5581 2001-10-23  Stan Shebs  <shebs@apple.com>
5583         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
5584         -traditional-cpp in first-stage compilation.
5586 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5588         * gensupport.c (target_flags): Add.
5590 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
5592         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
5593         if needed.
5594         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
5595         * except.c (expand_builtin_frob_return_addr): Likewise.
5596         (expand_builtin_eh_return): Likewise.
5597         * stmt.c (expand_computed_goto): Likewise.
5598         * explow.c (memory_address): Likewise.
5599         (allocate_dynamic_stack_space): Clean up predicate testing.
5600         (probe_stack_range): Convert SIZE to Pmode.
5601         * calls.c (rtx_for_function_call): Only call convert_memory_address
5602         if needed.
5603         Pass function call operand as ptr_mode, not Pmode.
5604         * expr.c (expand_assignment): Clean up calls to convert_memory
5605         address by only doing so when needed and making offsets Pmode.
5606         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
5607         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
5608         is in Pmode, not ptr_mode.
5610 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5612         * darwin-protos.h (constructor_section, destructor_section,
5613         mod_init_section, mod_term_section): Prototype.
5614         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
5615         Const-ify.
5616         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
5617         Likewise.
5618         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
5619         objc_section_init declaration.
5620         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
5621         (objc_section_init, try_section_alias): Make static.
5622         (alias_section): Make static and hide unused function.
5623         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
5625 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5627         * alias.c (can_address_p): Compnonents are not addressable if
5628         the containing type has alias set 0.
5629         (get_alias_set): Rework to use STRIP_NOPS.
5630         Only call front-end routine on object, type, or object with
5631         NOPs stripped, not inner values.
5632         Use language hook to call front-end routine.
5633         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
5634         (expand_builtin_apply): Call set_mem_align on MEMs we make.
5635         Don't pass alignment to emit_block_move.
5636         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
5637         (expand_builtin_memset): Likewise, but for clear_storage.
5638         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
5639         and remove C++ specific parts.
5640         * c-common.h (c_common_get_alias_set): Add declaration.
5641         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
5642         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
5643         (save_fixed_argument_area): Call set_mem_align.
5644         Remove alignment in call to emit_block_move.
5645         (emit_library_call_value_1, store_one_arg): Likewise.
5646         (target_for_arg): Remove; disabled long ago.
5647         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
5648         once and similar cleanups.
5649         (offset_address): Use proper introductory comment.
5650         * expr.c (emit_block_move): Use alignment from that of MEM args, not
5651         from explicit operand; all callers changed.
5652         (clear_storage): Likewise.
5653         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
5654         (store_field): Remove kludge on alias set used for to_rtx.
5655         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
5656         (expand_expr_unaligned): Call set_mem_attributes instead of
5657         set_mem_alias_set.
5658         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
5659         * function.c (assign_stack_temp_for_type): Set MEM alignment.
5660         (expand_function_end): Track MEM attributes of trampolines.
5661         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
5662         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
5663         attributes from original.
5664         * langhooks.c (lang_hook_default_get_alias_set): New function.
5665         (hook_get_alias_set_0): New function.
5666         * langhooks.h (hook_get_alias_set_0): New declaration.
5667         (lang_hook_default_get_alias_set): Likewise.
5668         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
5669         * reload1.c (alter_reg): Use adjust_address_nv.
5670         * rtl.c (get_mode_alignment): Moved to here.
5671         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
5672         change default if unknown from 1 to BITS_PER_UNIT.
5673         * stor-layout.c (get_mode_alignment): Remove from here.
5674         * toplev.h (struct lang_hoks): Add get_alias_set field.
5675         * tree.h (lang_get_alias_set): Delete declaration.
5676         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
5677         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
5678         (ix86_va_arg): Likewise.
5679         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
5680         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
5681         * config/sparc/sparc.c (sparc_va_arg): Likewise.
5682         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
5683         (expand_block_move_mem): Remove dead code.
5685 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5687         * c-common.c (warn_div_by_zero): New.
5688         * c-common.h (warn_div_by_zero): New.
5689         * c-decl.c (c_decode_option): Take it on the command line.
5690         * c-typeck.c (build_binary_op): Warn about division by zero.
5691         * doc/invoke.texi: Document the new command line option, fix
5692         documentation of -Wmultichar.
5693         * testsuite/gcc.dg/divbyzero.c: New tests.
5694         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
5696 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
5698         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
5700         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
5701         to avoid update_life_info call.
5702         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
5703         * cfgcleanup.c (bb_flags): New enum.
5704         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
5705         (notice_new_block, update_forwarder_flag): New functions.
5706         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
5707         (try_forward_edges): Likewise; update flags.
5708         (merge_blocks): Likewise.
5709         (outgoing_edges_match): Likewise.
5710         (try_crossjump_to_edge): Likewise.
5711         (try_optimize_cfg): Likewise; initialize and clear the flags;
5712         recompute life info if needed.
5713         (cleanup_cfg): No need to clear aux pointers.
5715 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
5717         * config/i386/i386.c (override_options): Default to minimum
5718         stack alignment when optimizing for code size.
5719         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
5720         change.
5722         * config/i386/i386.c (override_options): Set upper limit of
5723         -mpreferred-stack-boundary to 12.
5725 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
5727         * recog.c (peephole2_optimize): Add default case to switch.
5729 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5731         * doc/gcc.texi (Sending Patches): Remove.
5733 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
5735         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
5736         fields when comparing.
5738 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5740         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
5741         * arm.c (HOST_INT, HOST_UINT): Likewise.
5743 2001-10-22  Stan Shebs  <shebs@apple.com>
5745         * config/darwin-protos.h (darwin_exception_section): Declare.
5746         (darwin_eh_frame_section): Declare.
5748 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
5750         * i386.md (movti_rex64): Fix mode.
5752 2001-10-22  Stan Shebs  <shebs@apple.com>
5754         * target.h (struct gcc_target): Add asm_out.exception_section,
5755         asm_out.eh_frame_section.
5756         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
5757         (TARGET_ASM_EH_FRAME_SECTION): New.
5758         (TARGET_INITIALIZER): Update.
5759         * output.h (default_exception_section): Declare.
5760         (default_eh_frame_section): Declare.
5761         * dwarf2out.c: Include target.h.
5762         (output_call_frame_info): Call target hook for eh frames.
5763         (default_eh_frame_section): New function.
5764         * except.c: Include target.h.
5765         (output_function_exception_table): Call target hook for exception
5766         section.
5767         * varasm.c (default_exception_section): Rename from
5768         exception_section, remove EXCEPTION_SECTION macro.
5770         * config/darwin.h (darwin_eh_frame_section): New function.
5771         (EXCEPTION_SECTION): Remove.
5772         (TARGET_ASM_EXCEPTION_SECTION): Define.
5773         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
5774         (nextstep_exception_section): New function.
5775         (nextstep_eh_frame_section): New function.
5776         (TARGET_ASM_EXCEPTION_SECTION): Define.
5777         (TARGET_ASM_EH_FRAME_SECTION): Define.
5779         * config/pa/som.h (EXCEPTION_SECTION): Remove.
5780         (TARGET_ASM_EXCEPTION_SECTION): Define.
5781         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
5782         (EXCEPTION_SECTION): Remove.
5783         (TARGET_ASM_EXCEPTION_SECTION): Define.
5784         * config/stormy16/stormy16.h: Remove comments referencing
5785         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
5787         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
5788         TARGET_ASM_EH_FRAME_SECTION.
5790 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
5792         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
5793         terms.
5795         * c-format.c: Fix spelling typo in comment.
5797         * sched-int.h: Fix typo in GCC preamble.
5799 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5801         PR debug/4252
5802         * doc/invoke.texi: Remove references to -fdump-translation-unit.
5804 2001-10-22  Richard Henderson  <rth@redhat.com>
5806         * config/i386/i386.c (ix86_expand_clear): New.
5807         * config/i386/i386-protos.h: Declare it.
5808         * config/i386/i386.md (setcc peep2s): Use it.
5809         (movsi_xor): Unexport.
5811 2001-10-22  Richard Henderson  <rth@redhat.com>
5813         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
5814         free_EXPR_LIST_list for LOG_LINKS.
5816 2001-10-21  Robert Lipe  <robertlipe@usa.net>
5818         * config/i386/i386.c (sco_asm_named_section): Delete.
5819         (sco_asm_out_constructor): Delete.
5820         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
5821         (ASM_OUTPUT_DOUBLE_INT): Likewise.
5822         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
5823         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
5824         (EXCEPTION_SECTION): Delete EH scn renaming hack.
5826 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5828         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
5829         and/or fold extra calls into fewer ones.
5830         * collect2.c (dump_file): Likewise.
5831         * cppexp.c (parse_number): Likewise.
5832         * cpplex.c (_cpp_lex_direct): Likewise.
5833         * final.c (output_asm_insn, asm_fprintf): Likewise.
5834         * fix-header.c (inf_scan_ident, main): Likewise.
5835         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
5836         Likewise.
5837         * fold-const.c (real_hex_to_f): Likewise.
5838         * gen-protos.c (parse_fn_proto): Likewise.
5839         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
5840         * genrecog.c (change_state, write_action): Likewise.
5841         * gensupport.c (shift_output_template): Likewise.
5842         * local-alloc.c (requires_inout): Likewise.
5843         * mips-tfile.c (IS_ASM_IDENT): Likewise.
5844         * protoize.c (is_id_char, main): Likewise.
5845         * real.c (asctoeg): Likewise.
5846         * recog.c (asm_operand_ok): Likewise.
5847         * reload.c (find_reloads): Likewise.
5848         * scan.c (scan_identget_token): Likewise.
5849         * sched-vis.c (print_value): Likewise.
5850         * stringpool.c (ggc_alloc_string): Likewise.
5851         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
5852         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
5853         * tradcpp.c (rescan): Likewise.
5854         * tree.c (clean_symbol_name): Likewise.
5855         * varasm.c (decode_reg_name): Likewise.
5857         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
5858         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
5859         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
5860         * m88k.c (output_ascii): Likewise.
5861         * m88k.h (OVERRIDE_OPTIONS): Likewise.
5862         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
5863         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
5864         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
5866 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5868         * langhooks.c (lang_hook_default_do_nothing,
5869         lang_hook_default_decode_option): New defaults.
5870         * langhooks.h: Make hooks unconditional and non-NULL.
5871         * toplev.c (compile_file, toplev_main): Update.
5872         * toplev.h: Update comments.
5873         * objc/objc-act.c (lang_hooks): Update to new paradigm.
5875 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5877         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
5879         * system.h (IN_RANGE): New macro.
5881 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
5883         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
5884         INTLDEPS variable, which does not include $LIBICONV.
5885         * Makefile.in: Use INTLDEPS in LIBDEPS.
5886         * configure: Regenerate.
5888 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5890         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
5891         * cpplex.c (lex_percent, lex_dot): Remove.
5892         (get_effective_char, skip_block_comment, skip_line_comment,
5893         parse_identifier_slow, parse_number, parse_string, save_comment,
5894         _cpp_lex_direct): Update to do lookback freely.
5895         (IF_NEXT_IS, BACKUP): New macros.
5896         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
5897         * cppmacro.c (paste_tokens): Update.
5899 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
5901         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
5903 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
5905         * reload1.c (reload): Check CONSTANT_P before calling
5906         LEGITIMATE_PIC_OPERAND_P.
5907         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
5908         workaround of 2001-10-13.
5910 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
5912         * i386.c (split_di): Handle splitting of DFmode.
5914 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5916         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
5917         (adjust_address_1, offset_address): Likewise.
5919         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
5920         (output_asm_insn): Call it for each line output.
5921         Don't record an operand more than once.
5923         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
5924         * main.c: Include config.h and system.h, but not ansidecl.h.
5925         * Makefile.in (main.o): Update accordingly.
5927 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
5929         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
5931 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
5933         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
5934         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
5935         Break out from ...
5936         (find_sub_basic_blocks): ... here;
5937         (find_many_sub_basic_blocks): New.
5938         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
5940         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
5942         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
5944         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
5946         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
5947         * flow.c (update_life_info): Measure time.
5948         * c-decl.c: Include timevar.h
5949         (c_expand_body): Measure time.
5950         * toplev.c (rest_of_compilation): Measure time of mode switching
5951         separately.
5952         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
5954         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
5955         (lang_independent_options): Add asynchronous-unwind-tables
5956         (toplev_main): flag_asynchronous_unwind_tables implies
5957         flag_unwind_tables.
5958         * flags.h (flag_asynchronous_unwind_tables): Declare.
5959         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
5960         flag_asynchronous_unwind_tables.
5961         (output_call_frame_info): Likewise.
5962         * invoke.texi (-fasynchronous-unwind-tables): Document.
5963         * i386.c (optimization_options): Enable
5964         flag_asynchronous_unwind_tables.
5966         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
5967         * i386.md (s* expanders): Destination is QImode.
5969         * toplev.c (rest_of_compilation): Do not call clear_log_links.
5970         * rtl.h (clear_log_links): Kill.
5971         * flow.c (clear_log_links): Make static; accept blocks parameter;
5972         do no clear life info.
5973         (update_life_info): Call clear_log_links.
5975         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
5977 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5979         * cpplex.c (handle_newline, skip_escaped_newlines,
5980         get_effective_char, skip_block_comment, skip_line_comment,
5981         parse_identifier_slow, parse_number, parse_string,
5982         _cpp_lex_direct): Update to do more stepping back.
5983         (trigraph_ok): Similarly.  Rename trigraph_p.
5984         (SAVE_STATE, RESTORE_STATE): Remove.
5985         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
5987         * cpplib.c (destringize): Rename destringize_and_run, and
5988         call run_directive directly.
5989         (_cpp_do__Pragma): Simplify.
5991 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5993         * pe.c (arm_pe_unique_section): Const-ify.
5994         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
5995         (switch_to_section): Add static prototype.
5997         * output.h (drectve_section): Prototype.
5999 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6001         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
6002         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
6003         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
6004         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
6005         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
6006         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
6007         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
6008         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
6009         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
6010         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
6011         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
6012         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
6013         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
6014         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
6015         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
6016         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
6017         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
6018         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
6019         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
6020         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
6021         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
6022         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
6023         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
6024         cris-*-none, cris-*-linux*: Update ${tmfile} list.
6025         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
6026         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
6027         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
6028         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
6029         v850-*-*): Delete superflous ${cpu_type} setting.
6030         * config/linux.h: Delete svr4.h include.
6031         (SET_ASM_OP): Delete.
6032         * config/netware.h (INT_ASM_OP): Undef before define.
6033         * config/ptx4.h: Delete elfos.h include.
6034         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
6035         * config/svr4.h: Delete elfos.h include. Update commentary.
6036         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
6037         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
6038         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
6039         config/v850/v850.h: Delete svr4.h include.
6040         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
6041         config/m68k/m68kv4.h, config/m88k/sysv4.h,
6042         config/sparc/sysv4.h: Update includes.
6043         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
6044         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
6045         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
6046         config/m88k/dguxbcs.h: Delete includes.
6047         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
6048         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
6049         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
6050         it.
6051         * config/m88k/dgux.h: Delete include.
6052         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
6053         defining it.
6054         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
6055         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
6056         * config/sh/elf.h: Update include.
6057         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
6058         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
6060 2001-10-19  Catherine Moore  <clm@redhat.com>
6062         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
6063         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
6064         base and count fields.
6065         (stormy16_expand_builtin_va_start):  last_reg_count changed to
6066         size_of_reg_args.  Use count + size in first comparison.
6068 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6070         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
6071         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
6072         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
6073         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
6074         Set alignment from type if INDIRECT_REF.
6075         (adjust_address_1, offset_address): Simplify alignment compuitation.
6076         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
6077         here; done by set_mem_attributes.
6079 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6081         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
6082         * arm-protos.h (rdata_section, zero_init_section, common_section):
6083         Prototype.
6084         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
6085         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
6086         traditional mode stringification.
6087         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
6088         in macros controling its use.
6089         * rtlanal.c: Include tm_p.h.
6090         * varasm.c (asm_output_aligned_bss): Mark parameter with
6091         ATTRIBUTE_UNUSED.
6092         (assemble_constant_align, assemble_start_function, assemble_align,
6093         assemble_variable, assemble_trampoline_template,
6094         output_constant_def_contents): Wrap potentially empty if-stmt body
6095         in brackets.
6097 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6099         * a29k-protos.h (literal_section): Prototype.
6100         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
6101         * a29k.md: Ensure function pointers are prototyped.
6102         * genattrtab.c (write_eligible_delay): Mark parameter with
6103         ATTRIBUTE_UNUSED.
6105 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6107         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
6108         * 1750a.c (print_operand): Fix format specifier warning.
6109         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
6110         * 1750a.md: Likewise.
6111         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
6112         * genemit.c (output_add_clobbers): Mark parameter with
6113         ATTRIBUTE_UNUSED.
6114         * genrecog.c (write_subroutine): Likewise.
6115         * integrate.c (expand_inline_function): Delete unused variable.
6116         * varasm.c (remove_from_pending_weak_list): Wrap with
6117         ASM_WEAKEN_LABEL.
6119 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
6121         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
6122         field is different to previous argument's neg field.
6124         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
6126 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6128         * final.c (get_decl_from_op): New function.
6129         (output_asm_insn): Call it; write "*" when item with decl is address.
6131 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
6133         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
6134         about 64-bit support from the 3.0_branch version.
6136 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
6138         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
6139         USE_INCLUDED_LIBINTL when appropriate.
6140         * configure, config.in: Regenerate.
6141         * Makefile.in (datadir): Set to @datadir@.
6142         (intl.o): Also depend on $(CONFIG_H) and system.h.
6144         * intl.c: Factor out common gettext initialization sequence.
6145         (gcc_init_libintl):  New function.
6146         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
6147         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
6148         off NLS.  Add multiple include guard.  No need to #ifdef-guard
6149         an #undef.  Prototype gcc_init_libintl here.
6151         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
6152         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
6153         Use gcc_init_libintl.
6155 2001-10-19  Catherine Moore  <clm@redhat.com>
6157         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
6159         * config/stormy16/stormy16.c (stormy16_split_move):  Make
6160         sure that REG_INC notes are present for auto_inc operands.
6162 2001-10-19  Andreas Jaeger  <aj@suse.de>
6164         * configure: Regenerated.
6165         * configure.in: Add x86_64 to switch statements.
6167 2001-10-18  Richard Henderson  <rth@redhat.com>
6169         * config/alpha/alpha.md (sibcall_osf_1): Load destination
6170         address into $27 explicitly.
6171         (sibcall_value_osf_1): Likewise.
6173 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6175         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
6176         (offset_address): New function.
6177         (free_emit_status): Free regno_decl.
6178         (init_emit): Pass proper number of elements to xcalloc.
6179         Allocate regno_decl.
6180         (mark_emit_status): Mark regno_decl values.
6181         * expr.c (highest_pow2_factor): New function.
6182         (expand_assigment): Use it and offset_address.
6183         Properly handle ptr_mode vs. Pmode in offset calculation.
6184         (store_constructor, expand_expr_unaligned): Likewise.
6185         (expand_expr, case COMPONENT_EXPR): Likewise.
6186         * expr.h (offset_address): New decl.
6187         * function.h (struct emit_status): Add regno_decl.
6188         (REGNO_DECL): New macro.
6189         * final.c (output_asm_name): Move in file and don't conditionalize
6190         on flag_print_asm_name.
6191         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
6192         Output names of operands, if known.
6193         * function.c (assign_parms): Set REGNO_DECL.
6194         * integrate.c (integrate_decl_tree): Likewise.
6195         * stmt.c (expand_decl): Likewise.
6196         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
6198 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
6200         * attribs.c (handle_noinline_attribute): New function.
6201         (handle_used_attribute): Likewise.
6202         (c_common_attribute_table): Added noinline and used.
6203         * doc/extend.texi (Function Attributes): Document them.
6204         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
6205         Warn when merging inline with attribute noinline.
6206         (start_decl, start_function): Warn if inline and attribute
6207         noinline appear in the same declaration.
6209 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6211         * config.gcc: Update c4x and i370 for C front end-specific
6212         dependencies.
6213         * config/c4x/c4x-c.c: New.
6214         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
6215         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
6216         New declarations.
6217         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
6218         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
6219         Make extern.
6220         (c4x_init_pragma): Remove.
6221         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
6222         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
6223         c4x_pr_ignored): Move to c4x-c.c.
6224         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
6225         * config/c4x/t-c4x: Update.
6226         * config/i370/i370-c.c: New.
6227         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
6228         (i370_pr_map): Move to i370-c.c.
6229         * config/i370/t-i370: New.
6231         * doc/tm.texi: Update.
6233 2001-10-17  Stan Shebs  <shebs@apple.com>
6235         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
6236         typo fixes throughout.
6237         (machopic_output_stub): Remove some dead code.
6239 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
6241         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
6242         leak.
6244 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6246         * Makefile.in (print-rtl.o): Depend on TREE_H.
6247         * alias.c (get_alias_set): Make two passes over objects to first
6248         see if inner object is access via restricted pointer.
6249         Defer allocating alias set for restricted pointer until here.
6250         Call find_placeholder with second arg nonzero.
6251         Minor cleanups.
6252         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
6253         set for restricted pointer types.
6254         * emit-rtl.c (set_mem_attributes): Set more attributes.
6255         (set_mem_align, change_address, adjust_address_1): New functions.
6256         (change_address_1): Now static.
6257         (adjust_address, adjust_address_nv): Deleted.
6258         (replace_equiv_address): Call change_address_1.
6259         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
6260         (find_placeholder): Get starting point from PLIST arg.
6261         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
6262         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
6263         (adjust_address, adjust_address_nv): New macros.
6264         * print-rtl.c (tree.h): New include.
6265         (print_rtx, case MEM): Print all memory attributes.
6267 2001-10-17  Richard Henderson  <rth@redhat.com>
6269         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
6271 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6273         * c-tree.texi: Eliminate duplicated word.
6274         * cpp.texi: Likewise.
6275         * install.texi: Likewise.
6276         * invoke.texi: Likewise.
6277         * tm.texi: Likewise.
6279 2001-10-17  Michael Collison  <collison@isisinc.net>
6281         * dsp16xx.c: Fix comment formatting to match GNU standards.
6282         (dsp16xx_output_function_prologue): Change type of 'size'
6283         parameter from 'int' to HOST_WIDE_INT.
6284         (dsp16xx_output_function_epilogue): Change type of 'size'
6285         parameter from 'int' to HOST_WIDE_INT.
6287 2001-10-16  Richard Henderson  <rth@redhat.com>
6289         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
6290         * configure, config.in: Rebuild.
6292         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
6293         (ix86_output_addr_diff_elt): New.
6294         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
6295         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6296         (JUMP_TABLES_IN_TEXT_SECTION): New.
6297         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
6298         * config/i386/i386-protos.h: Update.
6300         * config/i386/386bsd.h, config/i386/beos-elf.h,
6301         config/i386/freebsd-aout.h, config/i386/freebsd.h,
6302         config/i386/i386-interix.h, config/i386/i386elf.h,
6303         config/i386/linux.h, config/i386/netbsd-elf.h,
6304         config/i386/netbsd.h, config/i386/openbsd.h,
6305         config/i386/ptx4-i.h, config/i386/rtemself.h,
6306         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
6307         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
6309 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
6311         * stmt.c (expand_asm_operands): Update commentary.
6313 2001-10-16  Stan Shebs  <shebs@apple.com>
6315         * config/darwin.h (GCC_NAME): Remove, no longer used.
6316         (NO_MATH_LIBRARY): Ditto.
6317         (MATH_LIBRARY): Define to emptiness.
6318         (DWARF2_DEBUGGING_INFO): Define.
6319         (PREFERRED_DEBUGGING_TYPE): Define.
6320         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
6321         (EXCEPTION_SECTION): Define.
6322         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6323         * config/darwin.c (darwin_encode_section_info): Handle case of
6324         DECL_INITIAL being error_mark_node.
6326 2001-10-16  Richard Henderson  <rth@redhat.com>
6328         * alpha.c (current_file_function_operand): Don't fail for profiling.
6329         (direct_call_operand): New.
6330         * alpha-protos.h: Declare it.
6331         * alpha.h (EXTRA_CONSTRAINT): Use it.
6332         (PREDICATE_CODES): Add it.
6333         (ASM_OUTPUT_MI_THUNK): Remove.
6334         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
6335         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
6337 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
6339         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
6340         (JUMP_TABLES_IN_TEXT_SECTION): Define.
6342 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
6344         * cfg.c (free_edge): Break out from ....
6345         (remove_edge): ... here.
6346         (clear_edges): Use free_edge.
6348         * att.h (ASM_QUAD): Add comment.
6349         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
6351 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
6353         * i386.c (split_ti): New function.
6354         (ix86_split_to_parts): Support TImodes.
6355         * i386.h (VALID_INT_MODE_P): Add TImode.
6356         * i386.md (movdi splitter): Fix.
6357         (movti): Support 64bit integer registers.
6358         (movti_rex64): New function and splitter.
6360         * i386.c (*_cost): Add movsx/movzx cost.
6361         * i386.h (struct processor_costs): Add movsx/movzx fields.
6362         (RTX_COSTS): Handle zero/sign extend + avoid believing that
6363         64bit operations require split on 64bit machine.
6364         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
6366         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
6367         (ix86_expand_move): Avoid pushes of memory if size does not match;
6368         move long constants to register.
6369         (x86_initialize_trampoline): Fix mode.
6370         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
6371         Use ASM_QUAD on 64bit.
6372         * i386.md (test pattern): Disallow impossible constants.
6373         (tablejump PIC expander): Fix emitting of sum.
6374         (movdicc_rex64): Rename to movdicc.
6375         * linux64.h (LINK_SPEC): Add missing '%'.
6377 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
6379         * tree-inline.c (inlinable_function_p): Leave it up to the
6380         front-end to turn -finline-functions into DECL_INLINE set for all
6381         functions.
6383 2001-10-16  Stan Shebs  <shebs@apple.com>
6385         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
6387 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
6389         * recog.c: Formatting and comment typo fixes.
6391         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
6392         version in single tree build.
6393         * configure: Regenerate.
6395 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
6397         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
6398         MODE arguments to gen_rtx and compare operand with const0_rtx.
6400 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6402         * system.h: Poison old unused target macros.
6403         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
6404         * config/stormy16/stormy16.c: Update references to obsolete macros.
6405         * config/stormy16/stormy16.h: Similarly.
6406         * config/stormy16/stormy16.md: Similarly.
6407         * config/cris/cris.h: Similarly.
6409 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6411         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
6412         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
6413         cpp_register_pragma): Update accordingly.
6415 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6417         * c-pragma.h (cpp_register_pragma_space): Remove.
6418         * cpplib.h (cpp_register_pragma_space): Remove.
6419         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
6420         (cpp_register_pragma_space): Remove.
6421         (cpp_register_pragma): Simplify using lookup_pragma_entry,
6422         add sanity checks.
6423         (do_pragma): Similarly.
6424         (_cpp_init_internal_pragmas): Don't register namespaces.
6426         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
6427         Don't register namespaces.
6428         * cp/lex.c (init_cp_pragma): Similarly.
6429         * doc/tm.texi: Update.
6431 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6433         PR c/4157
6434         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
6436 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
6438         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
6439         add scheduling support.
6440         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
6441         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
6442         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
6445 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
6447         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
6448         missing CONSTANT_P test in core GCC.
6450 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
6452         * cppmain.c (struct printer): New member source.
6453         (scan_translation_unit): Fix spacing at start of lines.
6454         (cb_line_change): Update.
6456         * gcc.dg/cpp/spacing2.c: New test.
6458 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
6460         * config/cris/arit.c: Use __builtin_labs, not abs.
6462         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
6464         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
6465         misplaced sprintf and fprintf argument.
6467 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
6469         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
6470         * configure.in, Makefile.in: Take out obsolete check-po logic.
6471         * configure, config.in: Regenerate.
6473 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
6475         * objc/objc-act.c (finish_objc): Correct precondition for emitting
6476         symtab declarations.
6478 2001-10-12  Stan Shebs  <shebs@apple.com>
6480         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
6481         declarations of arguments and local variables.
6483 2001-10-12  Christopher Faylor  <cgf@redhat.com>
6485         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
6486         ENDFILE_SPEC definition.
6488 2001-10-12  Kazu Hirata  <kazu@hxi.com>
6490         * gthr-dce.h: Fix comment formatting.
6491         * gthr-posix.h: Likewise.
6492         * gthr-single.h: Likewise.
6493         * gthr-solaris.h: Likewise.
6494         * gthr-vxworks.h: Likewise.
6495         * gthr-win32.h: Likewise.
6497 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
6499         * final.c (output_asm_insn): Make sure assembly dialects are
6500         terminated, not nested.  Output `|' and `}' characters if they
6501         don't appear inside assembly dialect selection.
6502         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
6503         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
6504         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
6505         strsetsi_rex_1): Add {} braces.
6507 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
6509         * toplev.c (compile_file): Ignore return value from yyparse.
6510         Always pop any nested binding levels after yyparse returns.
6512 2001-10-11  Richard Henderson  <rth@redhat.com>
6514         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
6516 2001-10-11  Richard Henderson  <rth@redhat.com>
6518         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
6519         fall back to add_AT_long_long for large CONST_INT.
6521 2001-10-11  Richard Henderson  <rth@redhat.com>
6523         * config/i386/i386.md (setcc splitters): Add four splitters to
6524         simplify compound compares that simplify_comparison can't handle.
6526 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
6528         * cpplex.c (digraph_spellings, token_spellings): Make static.
6530 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6532         * unroll.c (loop_iterations): Fixup last patch.
6534 2001-10-11  Richard Henderson  <rth@redhat.com>
6536         * rtl.h (REG_VTABLE_REF): New.
6537         * rtl.c (reg_note_name): Add it.
6538         * combine.c (distribute_notes): Handle it.
6539         * final.c (final_scan_insn): Handle it.
6540         * tree.def (VTABLE_REF): New.
6541         * expr.c (expand_expr): Handle it.
6542         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
6543         * output.h: Declare them.
6545 2001-10-11  Richard Henderson  <rth@redhat.com>
6547         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
6548         for a DECL_INITIAL.
6550 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
6552         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
6553         available in 64-bit mode.
6555 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
6557         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
6558         cris-*-linux* cases.
6559         * config/cris/cris-protos.h: New file.
6560         * config/cris/cris.c: New file.
6561         * config/cris/cris.h: New file.
6562         * config/cris/cris.md: New file.
6563         * config/cris/linux.h: New file.
6564         * config/cris/aout.h: New file.
6565         * config/cris/arit.c: New file.
6566         * config/cris/cris_abi_symbol.c: New file.
6567         * config/cris/mulsi3.asm: New file.
6568         * config/cris/t-aout: New file.
6569         * config/cris/t-cris: New file.
6570         * config/cris/t-elfmulti: New file.
6571         * config/cris/t-linux: New file.
6572         * doc/invoke.texi: Add CRIS options.
6573         * doc/install.texi (Specific): Add blurb for CRIS.
6575 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
6577         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
6578         before using it.
6579         * config/float/i32.h: Likewise.
6580         * config/float-i386.h: Likewise.
6581         * config/float-i64.h: Likewise.
6582         * config/float-m68k.h: Likewise.
6583         * config/float-sh.h: Likewise.
6584         * config/float-sparc.h: Likewise.
6586 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
6588         * doc/contrib.texi: Add note about CRIS port to my entry.
6590 2001-10-11  Kazu Hirata  <kazu@hxi.com>
6592         * basic-block.h: Fix formatting.
6593         * bitmap.h: Likewise.
6594         * cpplib.h: Likewise.
6595         * c-tree.h: Likewise.
6596         * diagnostic.h: Likewise.
6597         * flags.h: Likewise.
6598         * ggc.h: Likewise.
6599         * longlong.h: Likewise.
6600         * real.h: Likewise.
6601         * reload.h: Likewise.
6602         * rtl.h: Likewise.
6603         * tree.h: Likewise.
6605 2001-10-10  Richard Henderson  <rth@redhat.com>
6607         * c-parse.in (asm_operand): Allow named operands.
6608         * genconfig.c (max_recog_operands): Set to 29.
6609         * local-alloc.c (requires_inout): Skip multiple digits.
6610         * recog.c (asm_operand_ok): Likewise.
6611         (preprocess_constraints): Use strtoul for matching constraints.
6612         (constrain_operands): Likewise.
6613         * regmove.c (find_matches): Likewise.
6614         * reload.c (find_reloads): Likewise.
6615         * stmt.c (parse_output_constraint): Don't reject in-out
6616         constraint on operands > 9.  Reject '[' in constraint.
6617         (expand_asm_operands): Handle named operands.  Use strtoul
6618         for matching constraints.
6619         (check_operand_nalternatives): Split out from expand_asm_operands.
6620         (check_unique_operand_names): New.
6621         (resolve_operand_names, resolve_operand_name_1): New.
6623         * doc/extend.texi (Extended Asm): Document named operands.
6624         * doc/md.texi (Simple Constraints): Document matching constraints
6625         on operands > 9.
6627 2001-10-10  Richard Henderson  <rth@redhat.com>
6629         * combine.c (try_combine): Handle a SEQUENCE of one insn.
6631         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
6632         (jcc splitters): Add two splitters to simplify compound compares
6633         that simplify_comparison can't handle.
6635 2001-10-10  Richard Henderson  <rth@redhat.com>
6637         * langhooks.c: Include langhooks.h.
6638         * Makefile.in (langhooks.o): Depend on it.
6640 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
6642         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
6643         should not be considered as a no-op.
6644         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
6646 2001-10-10  Stan Shebs  <shebs@apple.com>
6648         * alias.c: Remove uses of "register" specifier in declarations
6649         of arguments and local variables.
6650         * c-common.c: Ditto.
6651         * c-convert.c: Ditto.
6652         * c-decl.c: Ditto.
6653         * c-format.c: Ditto.
6654         * c-semantics.c: Ditto.
6655         * c-typeck.c: Ditto.
6656         * caller-save.c: Ditto.
6657         * calls.c: Ditto.
6658         * cfg.c: Ditto.
6659         * cfgbuild.c: Ditto.
6660         * cfgrtl.c: Ditto.
6661         * collect2.c: Ditto.
6662         * combine.c: Ditto.
6663         * convert.c: Ditto.
6664         * cppexp.c: Ditto.
6665         * cppfiles.c: Ditto.
6666         * cse.c: Ditto.
6667         * dbxout.c: Ditto.
6668         * defaults.h: Ditto.
6669         * df.c: Ditto.
6670         * dwarf2out.c: Ditto.
6671         * dwarfout.c: Ditto.
6672         * emit-rtl.c: Ditto.
6673         * explow.c: Ditto.
6674         * expmed.c: Ditto.
6675         * expr.c: Ditto.
6676         * final.c: Ditto.
6677         * fix-header.c: Ditto.
6678         * floatlib.c: Ditto.
6679         * flow.c: Ditto.
6680         * fold-const.c: Ditto.
6681         * function.c: Ditto.
6682         * gcc.c: Ditto.
6683         * gcse.c: Ditto.
6684         * gen-protos.c: Ditto.
6685         * genattrtab.c: Ditto.
6686         * gencheck.c: Ditto.
6687         * genconfig.c: Ditto.
6688         * genemit.c: Ditto.
6689         * genextract.c: Ditto.
6690         * genflags.c: Ditto.
6691         * gengenrtl.c: Ditto.
6692         * genoutput.c: Ditto.
6693         * genpeep.c: Ditto.
6694         * genrecog.c: Ditto.
6695         * gensupport.c: Ditto.
6696         * global.c: Ditto.
6697         * gmon.c: Ditto.
6698         * graph.c: Ditto.
6699         * haifa-sched.c: Ditto.
6700         * hard-reg-set.h: Ditto.
6701         * hash.c: Ditto.
6702         * integrate.c: Ditto.
6703         * jump.c: Ditto.
6704         * lists.c: Ditto.
6705         * local-alloc.c: Ditto.
6706         * loop.c: Ditto.
6707         * mips-tdump.c: Ditto.
6708         * mips-tfile.c: Ditto.
6709         * optabs.c: Ditto.
6710         * prefix.c: Ditto.
6711         * print-rtl.c: Ditto.
6712         * read-rtl.c: Ditto.
6713         * real.c: Ditto.
6714         * recog.c: Ditto.
6715         * reg-stack.c: Ditto.
6716         * regclass.c: Ditto.
6717         * regmove.c: Ditto.
6718         * reload.c: Ditto.
6719         * reload1.c: Ditto.
6720         * reorg.c: Ditto.
6721         * resource.c: Ditto.
6722         * rtl.c: Ditto.
6723         * rtlanal.c: Ditto.
6724         * scan.c: Ditto.
6725         * sched-deps.c: Ditto.
6726         * sched-rgn.c: Ditto.
6727         * sdbout.c: Ditto.
6728         * simplify-rtx.c: Ditto.
6729         * stmt.c: Ditto.
6730         * stor-layout.c: Ditto.
6731         * toplev.c: Ditto.
6732         * tradcif.y: Ditto.
6733         * tradcpp.c: Ditto.
6734         * tree.c: Ditto.
6735         * unroll.c: Ditto.
6736         * varasm.c: Ditto.
6737         * xcoffout.c: Ditto.
6739 2001-10-10  Richard Henderson  <rth@redhat.com>
6741         * rtl.h (can_reverse_comparison_p): Remove.
6743 2001-10-10  Christopher Faylor <cgf@redhat.com>
6745         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
6746         used.
6748 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
6750         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
6751         (Thanks to Chris Faylor for suggesting macro name).
6752         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
6753         WIN32 defines.
6754         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
6755         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
6756         (MATH_LIBRARY): Undef before definition.
6757         (OUTPUT_QUOTED_STRING): Likewise.
6758         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
6760 2001-10-10  Richard Henderson  <rth@redhat.com>
6762         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
6763         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
6764         a tristate comparison value.
6765         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
6767 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6769         PR c++/4512
6770         * unroll.c (loop_iterations): Ignore insns generated by loop
6771         unrolling.
6773         * config.gcc (mips*-*-gnu*): Delete support.
6774         * config/mips/gnu.h: Remove.
6776 2001-10-10  Kazu Hirata  <kazu@hxi.com>
6778         * calls.c: Fix formatting.
6779         * c-decl.c: Likewise.
6780         * cfgcleanup.c: Likewise.
6781         * combine.c: Likewise.
6782         * cppfiles.c: Likewise.
6783         * cpplib.c: Likewise.
6784         * cppmacro.c: Likewise.
6785         * crtstuff.c: Likewise.
6786         * cse.c: Likewise.
6787         * dwarf2out.c: Likewise.
6788         * expmed.c: Likewise.
6789         * expr.c: Likewise.
6790         * fold-const.c: Likewise.
6791         * function.c: Likewise.
6792         * gcse.c: Likewise.
6793         * genattrtab.c: Likewise.
6794         * ggc-page.c: Likewise.
6795         * integrate.c: Likewise.
6796         * libgcc2.c: Likewise.
6797         * loop.c: Likewise.
6798         * optabs.c: Likewise.
6799         * profile.c: Likewise.
6800         * protoize.c: Likewise.
6801         * real.c: Likewise.
6802         * recog.c: Likewise.
6803         * reload1.c: Likewise.
6804         * reload.c: Likewise.
6805         * reorg.c: Likewise.
6806         * resource.c: Likewise.
6807         * sched-rgn.c: Likewise.
6808         * sdbout.c: Likewise.
6809         * stmt.c: Likewise.
6810         * toplev.c: Likewise.
6811         * varasm.c: Likewise.
6813 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
6815         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
6816         * Makefile.in (langhooks.o): Add dependencies.
6818 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
6820         * rs6000.c (rs6000_emit_load_toc_table): Don't
6821         strdup the toc label.
6822         (create_TOC_reference): Likewise.
6824 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
6826         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
6827         version default.
6829 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
6831         * config/i386/i386.c (ix86_attribute_table): Correct
6832         min_len, max_len fields for dllimport, dllexport and shared.
6834 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
6836         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
6837         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
6838         Consistently use "nonzero" instead of "non-zero".
6840 2001-10-09  Kazu Hirata  <kazu@hxi.com>
6842         * acconfig.h: Fix comment formatting.
6843         * c-dump.h: Likewise.
6844         * c-tree.h: Likewise.
6845         * conditions.h: Likewise.
6846         * expr.h: Likewise.
6847         * function.h: Likewise.
6848         * gthr.h: Likewise.
6849         * hwint.h: Likewise.
6850         * integrate.h: Likewise.
6851         * intl.h: Likewise.
6852         * loop.h: Likewise.
6853         * optabs.h: Likewise.
6855 2001-10-09  Kazu Hirata  <kazu@hxi.com>
6857         * c-common.h: Fix comment formatting.
6858         * c-dump.c: Likewise.
6859         * cfg.c: Likewise.
6860         * diagnostic.h: Likewise.
6861         * except.c: Likewise.
6862         * gcc.h: Likewise.
6863         * gcov-io.h: Likewise.
6864         * genattrtab.c: Likewise.
6865         * output.h: Likewise.
6866         * predict.h: Likewise.
6867         * reload1.c: Likewise.
6868         * reload.h: Likewise.
6869         * resource.h: Likewise.
6870         * scan.h: Likewise.
6871         * system.h: Likewise.
6872         * tree.h: Likewise.
6873         * tree-inline.c: Likewise.
6874         * tsystem.h: Likewise.
6875         * varasm.c: Likewise.
6876         * xcoffout.h: Likewise.
6878 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
6880         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
6882 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
6884         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
6885         config/i386/i386elf.h, config/i386/netbsd-elf.h,
6886         config/i386/netware.h, config/mcore/gfloat.h,
6887         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
6888         config/netware.h, gccbug.in: Update FSF address.
6890 2001-10-09  Kazu Hirata  <kazu@hxi.com>
6892         * c-common.c: Fix comment typos.
6893         * cfgrtl.c: Likewise.
6894         * collect2.c: Likewise.
6895         * cpplex.c: Likewise.
6896         * doloop.c: Likewise.
6897         * dwarf2out.c: Likewise.
6898         * dwarfout.c: Likewise.
6899         * expr.c: Likewise.
6900         * fold-const.c: Likewise.
6901         * gcc.c: Likewise.
6902         * gcov.c: Likewise.
6903         * gcse.c: Likewise.
6904         * global.c: Likewise.
6905         * ifcvt.c: Likewise.
6906         * loop.c: Likewise.
6907         * optabs.c: Likewise.
6908         * protoize.c: Likewise.
6909         * regclass.c: Likewise.
6910         * reorg.c: Likewise.
6911         * rtl.h: Likewise.
6912         * stmt.c: Likewise.
6913         * tree.h: Likewise.
6914         * doc/cpp.texi: Likewise.
6915         * doc/c-tree.texi: Likewise.
6916         * doc/extend.texi: Likewise.
6917         * doc/invoke.texi: Likewise.
6918         * doc/objc.texi: Likewise.
6919         * doc/tm.texi: Likewise.
6921 2001-10-08  Richard Henderson  <rth@redhat.com>
6923         * varasm.c (set_named_section_flags): Initialize "declared".
6925 2001-10-08  Robert Lipe  <robertlipe@usa.net>
6927         * varasm.c (struct in_named_entry): Add declared.
6928         (named_section_first_declaration): New function.
6929         (default_elf_asm_named_section): Use it.
6930         * output.h (named_section_first_declaration): New.
6932 2001-10-08  Richard Henderson  <rth@redhat.com>
6934         * i386.md (movsi_xor): Export.
6935         (setcc peep2): Use it when available; add an alternative to
6936         match zero_extendhisi2_and.
6938 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6940         * romp-protos.h (romp_initialize_trampoline): New function.
6941         * romp.c (romp_initialize_trampoline): Likewise.
6942         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
6943         romp_initialize_trampoline.
6945 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6947         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
6948         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
6949         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
6950         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
6952 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6954         * unroll.c (loop_iterations): Extend check for multiple back edges.
6956 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
6958         * langhooks.h: New file.
6959         * Makefile.in (OBJS): Added langhooks.o.
6960         (c-lang.o): Depend on langhooks.h.
6961         (c-common.o): Don't depend on tree-inline.h.
6962         (tree-inline.o): Depend on toplev.h.
6963         (langhooks.o): New rule.
6964         * c-common.c: Don't include tree-inline.h.
6965         (c_mark_lang_decl): Mark argument c as unused.
6966         (c_common_lang_init): Don't initialize hooks here.
6967         * c-lang.c: Include langhooks.h, then override some macros.
6968         (lang_hooks): Initialize with macros in langhooks.h.
6969         (c_init): Don't initialize hooks here.
6970         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
6971         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
6972         * tree-inline.c: Include toplev.h.  Don't define hook variables.
6973         * tree-inline.h: Don't define hook types nor declare hook
6974         variables.  Move macros to...
6975         * langhooks.c: ... new file, as functions.  Adjust all callers.
6977 2001-10-08  Jeffrey A Law  <law@cygnus.com>
6979         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
6980         purge_mem_unchanging_flag on all instructions, not just on those
6981         before NOTE_INSN_FUNCTION_BEG.
6983 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6985         * cppmacro.c (_cpp_create_definition): Leave comments off.
6987         * doc/cpp.texi: Update.
6989 2001-10-08  DJ Delorie  <dj@redhat.com>
6991         * c-decl.c (grokfield): Make sure the only unnamed fields
6992         we're allowing are either structs or unions.
6993         * doc/extend.texi: Add documentation for the unnamed field
6994         extension.
6996 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
6998         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
6999         * configure.in: Use it.
7000         * configure: Regenerated.
7001         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
7002         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
7004 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
7006         * cppfiles.c (open_file): Don't mark zero-length files
7007         never-reread here.  Don't output diagnostics here either.
7008         (stack_include_file): Mark them never-reread here.
7009         (_cpp_read_file): Update.
7011 2001-10-08  Richard Henderson  <rth@redhat.com>
7013         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7015 2001-10-08  Richard Henderson  <rth@redhat.com>
7017         * expr.c (store_expr): When converting a CONST_INT for storage
7018         in a SUBREG, convert it to both SUBREG modes before stripping
7019         the SUBREG.
7021 2001-10-08  Richard Henderson  <rth@redhat.com>
7023         * varasm.c (restore_varasm_status): New.
7024         * function.h: Declare it.
7025         * function.c (pop_function_context_from): Call it.
7027 2001-10-08  Richard Henderson  <rth@redhat.com>
7029         * c-common.h (struct c_lang_decl): Add declared_inline.
7030         * c-tree.h (DECL_DECLARED_INLINE_P): New.
7031         * c-lang.c (c_disregard_inline_limits): Use it.
7032         * c-decl.c (duplicate_decls): Likewise.
7033         (pushdecl, redeclaration_error_message): Likewise.
7034         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
7035         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
7036         Set DECL_INLINE if -finline-functions.
7037         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
7039 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
7041         * cppmacro.c (funlike_invocation_p): Move some logic to caller
7042         in enter_macro_context.  Create a padding token in its own context
7043         if necessary when the search for '(' fails.
7044         (enter_macro_context): Update.
7046 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
7048         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
7049         genmultilib, toplev.c: Fix spelling errors of "separate" as
7050         "seperate", and corresponding spelling errors of related words.
7052 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7054         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
7055         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
7056         Likewise.
7057         * c-dump.c (dump_option_value_info): Likewise.
7058         * c-format.c (format_length_info, format_char_info,
7059         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
7060         * collect2.c (names): Likewise.
7061         * cppdefault.h (default_include): Likewise.
7062         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
7063         * flow.c (life_analysis): Likewise.
7064         * gcc.c (dir_separator_str, modify_target, option_map,
7065         target_option_translations, spec_list_1, extra_specs_1,
7066         init_spec): Likewise.
7067         * gcov.c (gcov_version_string): Likewise.
7068         * genattr.c (write_units): Likewise.
7069         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
7070         * gengenrtl.c (rtx_definition, defs): Likewise.
7071         * genrecog.c (pred_table): Likewise.
7072         * global.c (global_alloc): Likewise.
7073         * lcm.c (optimize_mode_switching): Likewise.
7074         * local-alloc.c (find_free_reg): Likewise.
7075         * params.h (param_info): Likewise.
7076         * predict.c (predictor_info): Likewise.
7077         * protoize.c (unexpansion_struct): Likewise.
7078         * real.c (bmask): Likewise.
7079         * recog.h (insn_operand_data, insn_data): Likewise.
7080         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
7081         * stmt.c (expand_nl_goto_receiver): Likewise.
7082         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
7083         target_switches, target_options): Likewise.
7084         * tradcif.y (token, tokentab2, yylex): Likewise.
7085         * tree.h (attribute_spec): Likewise.
7087         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
7088         Likewise.
7089         * arc.c (arc_output_function_epilogue): Likewise.
7090         * arm.c (processors, all_cores, all_architectures,
7091         arm_override_options, isr_attribute_arg, isr_attribute_args,
7092         arm_isr_value): Likewise.
7093         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
7094         Likewise.
7095         * c4x.c (c4x_int_reglist): Likewise.
7096         * d30v.c (override_options): Likewise.
7097         * h8300.c (shift_insn): Likewise.
7098         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
7099         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
7100         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
7101         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
7102         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
7103         * i386.h (processor_costs, ix86_cost): Likewise.
7104         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
7105         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
7106         * m68k.c (codes_68881, codes_FPA): Likewise.
7107         * m88k.c (mode_from_align, max_from_align, all_from_align,
7108         best_from_align, m_options): Likewise.
7109         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
7110         * mcore.c (mode_from_align): Likewise.
7111         * mips/elf64.h (UNIQUE_SECTION): Likewise.
7112         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
7113         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
7114         * mips.h (mips_regno_to_class): Likewise.
7115         * ns32k.c (scales): Likewise.
7116         * pa.c (import_string, magic_milli): Likewise.
7117         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
7118         * sparc.c (leaf_reg_remap, sparc_override_options,
7119         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
7120         Likewise.
7121         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
7123 2001-10-07  Dale Johannesen  <dalej@apple.com>
7125         * reload1.c (reload_reg_free_p): Teach register interference
7126         checking that multiple output reloads are emitted in
7127         reverse order.
7128         reload1.c (reload_reg_reaches_end_p):  Ditto.
7129         reload1.c (reloads_conflict):  Ditto.
7131 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
7133         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
7134         NULL_TREE inside @code.
7136 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
7138         * doc/gcc.texi: Document consistent style of "32-bit",
7139         "Objective-C", and "@code{NULL}".
7141 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
7143         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
7144         (cpp_token_len, cpp_spell_token, cpp_output_token,
7145         _cpp_equiv_tokens): Handle it.
7146         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
7147         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
7148         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
7149         error messages.
7151 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7153         * gcc.c (default_compilers): Remove .ada.
7155 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7157         * doc/cppinternals.texi: Update.
7159 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
7161         * gcc.c (main): Set this_file_error if the appropriate
7162         compiler for a language has not been installed.
7164 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
7166         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
7168 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
7170         * gccbug.in (CATEGORIES): Add ada.
7172 2001-10-05  Catherine Moore  <clm@redhat.com>
7174         * config/stormy16/stormy-abi:  Document abi changes.
7175         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
7176         (ICALL_REGS): New register class.
7177         (NUM_ARGUMENT_REGISTERS): Now 6.
7178         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
7179         in registers.
7180         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
7181         * config/stormy16.md (call_internal, call_value_internal,
7182         indirect_jump): Use new 'z' constraint.
7184 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7186         * doc/cppinternals.texi: Update.
7188 2001-10-05  Richard Henderson  <rth@redhat.com>
7190         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
7191         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
7192         the gas section-name-as-label feature.
7194 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7196         * doc/cppinternals.texi: Update.
7198 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7200         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
7201         to ensure valid SImode constants.
7203 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
7205         * Makefile.in (c-decl.o): Depend on tree-inline.h.
7206         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
7207         * c-decl.c: Include tree-inline.h.
7208         (c_expand_body): Call optimize_inline_calls. Determine whether
7209         a function is inlinable upfront, and only clear
7210         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
7211         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
7212         (c_disregard_inline_limits): New function.
7213         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
7214         (c_post_options): Enable tree inlining if inlining is enabled.
7215         Don't inline trees when instrumenting functions.
7216         (c_init): Initialize lang_disregard_inline_limits and
7217         lang_cannot_inline_tree_fn.
7218         * tree-inline.c (initialize_inlined_parameters): Handle calls
7219         with fewer arguments than declared parameters, and fewer
7220         parameters than passed arguments.  Don't assume value is a
7221         DECL.
7222         (declare_return_variable): Convert return value back to the
7223         original type, if it was promoted.
7224         (tree_inlinable_function_p): New function.
7225         (inlinable_function_p): Don't look at DECL_INLINE if we're
7226         inlining all functions.  Make it work with a NULL id.
7227         Re-check DECL_UNINLINABLE after language-specific checks.
7228         * tree-inline.h (tree_inlinable_function_p): Declare it.
7229         * integrate.c (save_for_inline): Don't bother to prepare argvec
7230         when not inlining.
7231         * cse.c (check_for_label_ref): Don't check deleted labels.
7233         * Makefile.in (tree-inline.o): Depend on newly-included headers.
7234         * tree-inline.c: Include headers needed for the functions moved in.
7235         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
7236         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
7237         (copy_body, initialize_inlined_parameters): Likewise.
7238         (declare_return_variable, inlinable_function_p): Likewise.
7239         (expand_call_inline, expand_calls_inline): Likewise.
7240         (optimize_inline_calls, clone_body): Likewise.
7241         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
7242         (copy_tree_r, remap_save_expr): Likewise.
7244 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
7246         * Makefile.in (OBJS): Added tree-inline.o.
7247         (c-common.o): Depend on tree-inline.h.
7248         (tree-inline.o): New target.
7249         * c-common.c: Include tree-inline.h.
7250         (c_mark_lang_decl): Don't mark saved_tree.
7251         (c_common_lang_init): Set lang_anon_aggr_type_p.
7252         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
7253         (struct c_lang_decl): Moved saved_tree to tree_decl.
7254         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
7255         * integrate.h (function_attribute_inlinable_p): Declare it.
7256         * integrate.c (function_attribute_inlinable_p): Export it.
7257         * tree-inline.c: New file.  Define variables declared in...
7258         * tree-inline.h: New file.  Declare functions to be moved to
7259         tree-inline.c.  Define macros and declare types and hooks for
7260         language-specific tree inlining.
7261         (flag_inline_trees): Moved definition from cp/decl2.c.
7262         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
7263         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
7264         (struct tree_decl): Moved saved_tree from c_lang_decl and
7265         inlined_fns from C++'s lang_decl.
7267 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
7269         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
7270         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
7272 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7274         * doc/cppinternals.texi: Update.
7276 2001-10-04  Eric Christopher  <echristo@redhat.com>
7278         * config/mips/mips.c (init_cumulative_args): Remember to set
7279         cum->prototype.
7280         * config.gcc: Redo linux configuration. Add target_cpu_default
7281         of soft-float to all mipsisa32 combinations and tx39.
7282         * config/mips/linux.h: Remove include of mips.h.
7284 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
7286         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
7287         HOST_LDFLAGS and HOST_CPPFLAGS.
7289 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
7291         * c-parse.in (objc_inherit_code, objc_pq_context,
7292         objc_public_flag): Make static.
7293         (objc_interface_context, objc_implementation_context,
7294         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
7295         global tree array in objc/objc-act.[ch].
7296         (methoddef): Remove unnecessary code.
7298         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
7299         Hoist struct definitions to objc-act.h.
7300         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
7301         cat_count): Place declaration in objc-act.h.
7302         (objc_tree_index): Move enumeration to objc-act.h.
7303         (objc_global_trees): Place declaration and macro accessors in
7304         objc-act.h.
7305         (implementation_context): Remove duplicate; use
7306         objc_implementation_context instead:
7307         (method_context): Remove duplicate; use objc_method_context
7308         instead.
7309         (objc_ellipsis_node, objc_method_prototype_template,
7310         implemented_classes, function_type): Move global vars to
7311         objc_global_trees.
7312         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
7313         (build_message_expr): Move actual construction of ObjC message
7314         send nodes to finish_message_expr.
7315         (finish_message_expr): New routine, contains code formerly in
7316         build_message_expr.
7317         * objc/objc-act.h (finish_message_expr): New prototype.
7318         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
7319         declarations; these vars are now part of objc_global_trees.
7320         (objc_tree_index, objc_global_trees): Move definitions from
7321         objc-act.c.
7322         * objc/objc-tree.def: Update copyright info.
7324 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
7326         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
7327         op is NULL.
7328         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
7329         only if TARGET_ARCH64.
7331 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
7333         * doc/extend.texi: Fix some problems with previous checkin.
7334         * doc/invoke.texi: Likewise.
7336 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7338         * cpphash.h: Update comments.
7339         (cpp_context): Update.
7340         (spec_nodes): Remove n__Pragma.
7341         * cppinit.c (cpp_create_reader): Update.
7342         (builtin_array): Add _Pragma.
7343         * cpplib.h: Update comments.
7344         (NODE_DISABLED, BT_PRAGMA): New.
7345         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
7346         * cppmacro.c (struct cpp_macro): Remove disabled.
7347         (builtin_macro): Return int, handle _Pragma, push the new token
7348         on the context stack.
7349         (funlike_invocation_p): Unconstify, update.
7350         (enter_macro_context): Handle builtins here.
7351         (replace_args, push_token_context, push_ptoken_context):
7352         Update for prototype changes.
7353         (_cpp_pop_context): Update.
7354         (cpp_get_token): Don't handle buitins, nor _Pragma here.
7355         (cpp_sys_macro_p): Update.
7356         (_cpp_free_definition): Clear disabled flag.
7357         (_cpp_create_definition): Upate.
7358         * cppmain.c: Update comments.
7360 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
7361                                 Andreas Jaeger <aj@suse.de>,
7362                                 Jan Hubicka    <jh@suse.cz>
7364         * doc/invoke.texi (i386 Options): Document x86-64 options.
7365         (i386 and x86-64 Options): Rename i386 options section.
7367         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
7368         (TARGET_SWITCHES): Add -munwind-info.
7369         (MASK_NO_UNWIND_INFO): New.
7370         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
7371         biarch compilation.
7372         (ASM_OUTPUT_DOUBLE_INT): New.
7374         * config/i386/linux64.h: New spec file for Linux x86-64 support.
7375         * config.gcc: Fix tm_file settings for x86-64.
7376         * config/i386/x86-64.h: New file with OS independent x86-64
7377         definitions.
7378         * config/i386/biarch64.h: New file used to configure compiler
7379         to biarch/64bit compilation.
7381         * config/i386/i386.c: (override_options): Set flags default
7382         for 64bit compilation.
7384 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
7386         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
7387         (ix86_expand_int_movcc): Optimize DImode conditional moves with
7388         constants on x86_64.
7389         (ix86_attr_length_immediate_default): Support MODE_DI.
7390         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
7391         condition.
7392         (indirect_jump, tablejump): Turn into expander.
7394 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7396         * c-common.c (c_format_attribute_table): Make format and
7397         format_arg attributes apply to function types rather than to
7398         decls.
7399         (is_valid_printf_arglist): Construct an attribute list and pass
7400         that to check_function_format rather than a name.
7401         * c-common.h (check_function_format): Adjust prototype.
7402         * c-decl.c (duplicate_decls): Preserve attributes from type of
7403         built-in decl when allowing for harmless conflict in types.
7404         * c-format.c (record_function_format,
7405         record_international_format, function_format_list,
7406         international_format_info, international_format_list): Remove.
7407         (function_format_info): Remove next, name and assembler_name.
7408         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
7409         (decode_format_attr): New.
7410         (handle_format_attribute): Handle receiving a type rather than a
7411         decl.  Call decode_format_attr.  Store format information in a
7412         function_format_info.
7413         (handle_format_arg_attribute): Correct comment.  Handle receiving
7414         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
7415         arg_num.
7416         (check_format_info_recurse, check_format_info_main): Take argument
7417         numbers as unsigned HOST_WIDE_INT.
7418         (check_function_format): Take a list of attributes from the
7419         function type rather than a name or assembler name.  Check for
7420         format attributes in that list and the attributes on the type of
7421         the current function rather than looking through
7422         function_format_list.
7423         (check_format_info): Use unsigned HOST_WIDE_INT for argument
7424         numbers.
7425         (check_format_info_recurse): Take format_arg attributes from the
7426         type of the function calls rather than using
7427         international_format_list.  Allow for multiple format_arg
7428         attributes.
7429         * c-typeck.c (build_function_call): Pass type attributes to
7430         check_function_format rather than name or assembler name.  Don't
7431         require there to be a name or assembler name to check formats.
7433 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7435         * attribs.c (decl_attributes): Possibly call
7436         insert_default_attributes to insert default attributes on
7437         functions in a lazy manner.
7438         * builtin-attrs.def: New file; define the default format and
7439         format_arg attributes.
7440         * c-common.c (c_format_attribute_table): Move to earlier in the
7441         file.
7442         (c_common_nodes_and_builtins): Initialize format_attribute_table.
7443         (enum built_in_attribute, built_in_attributes,
7444         c_attrs_initialized, c_init_attributes,
7445         c_common_insert_default_attributes): New.
7446         (c_common_lang_init): Don't initialize format_attribute_table.  Do
7447         call c_init_attributes.
7448         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
7449         * c-common.h (init_function_format_info): Don't declare.
7450         (c_common_insert_default_attributes): Declare.
7451         * c-decl.c (implicitly_declare, builtin_function): Call
7452         decl_attributes.
7453         (init_decl_processing): Don't call init_function_format_info.
7454         (insert_default_attributes): New.
7455         * c-format.c (handle_format_attribute,
7456         handle_format_arg_attribute): Be quiet about inappropriate
7457         declaration when applying default attributes.
7458         (init_function_format_info): Remove.
7459         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
7460         (insert_default_attributes): Declare.
7462 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7464         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
7466 2001-10-01  Jim Wilson  <wilson@redhat.com>
7468         * sched-deps.c (add_dependence): When elide conditional dependence,
7469         check that insn doesn't modify cond2.
7471 2001-10-01  Dale Johannesen  <dalej@apple.com>
7473         * config/rs6000/rs6000.h (enum processor_type): Add support
7474         for 7400 (G4) and 7450.
7475         (RTX_COSTS): Ditto.
7476         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
7477         (rs6000_issue_rate): Ditto.
7478         (rs6000_adjust_cost): Fix cycle counts for compares.
7479         (debug_stack_info):  Fix an obvious typo.
7480         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
7481         * doc/invoke.texi: Document.
7482         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
7483         for Darwin.
7484         (PROCESSOR_DEFAULT): Ditto.
7486 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
7488         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
7489         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
7490         later recursive make invocation.
7492 2001-10-01  Hans Boehm  <boehm@acm.org>
7494         * optabs.c (emit_libcall_block): When using non-call exceptions,
7495         don't add REG_LIBCALL reg notes to trapping calls.
7497 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
7499         * flow.c (propagate_block_delete_libcall): Remove unused first arg
7500         (propagate_one_insn):  Update for above change
7502 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
7504         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
7505         _Unwind_GetTextRelBase): Argument is unused.
7507 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7509         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
7510         Loop through NOPs, placeholders, and components.
7511         Don't go through NOPs if change mode.
7512         (record_alias_subset): Do nothing if SUBSET and SET are the same.
7513         * emit-rtl.c (set_mem_alias_set): Enable check.
7514         * expr.c (find_placeholder): New function.
7515         (expand_expr, case PLACEHOLDER_EXPR): Use it.
7516         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
7517         to modify it and avoid unneeded copies.
7518         * expr.h (expand_expr): Always define.
7519         (find_placeholder): New declaration.
7521 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7523         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
7524         operand 2 is the stack pointer.
7525         ("addr-peephole"): Fix address computation peephole when operand 2
7526         is the stack pointer.
7528 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7530         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
7531         (ix86_setup_incoming_varargs): Likewise.
7533 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
7535         * stor-layout.c (layout_type): Don't complain about too-large
7536         array here.
7538 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7540         * function.c (keep_stack_depressed): Don't use delete_insn.
7542         * expr.h (set_mem_alias_set): Move decl to here.
7543         * rtl.h (mem_attrs): New typedef and struct.
7544         (union rtunion_def): Add field for mem_attrs.
7545         (X0MEMATTR, MEM_ATTRS): New macros.
7546         (MEM_ALIAS_SET): Use MEM_ATTRS.
7547         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
7548         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
7549         (set_mem_alias_set): Delete decl from here.
7551         * alias.c (set_mem_alias_set): Delete from here.
7552         * emit-rtl.c (mem_attrs_htab): New variable.
7553         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
7554         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
7555         (mem_attrs_mark, get_mem_attrs): Likewise.
7556         (gen_rtx_MEM): Clear MEM_ATTRS.
7557         (set_mem_attributes): Move to here.
7558         (set_mem_alias_set): Likewise, and call get_mem_attrs.
7559         (init_emit_once): const_int_htab now deletable htab.
7560         Initialize mem_attrs_htab.
7561         * explow.c (set_mem_attributes): Delete from here.
7562         * function.c (put_var_into_stack): Clear MEM_ATTRS.
7563         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
7564         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
7565         * reload1.c (reload): Rework changing REG to MEM.
7567 2001-09-30  H.J. Lu <hjl@gnu.org>
7569         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
7570         * config.in: Rebuild.
7572 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7574         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
7575         ("tsthi_1"): Avoid allocation in register y.
7576         ("*movqi_68hc12"): Reorganize and fix constraints.
7577         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
7578         ("addqi3"): Likewise.
7579         ("addhi3"): Fix constraints.
7580         ("*logicalhi3_zexthi"): Disparage soft registers.
7582 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7584         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
7585         to tmp reg.
7587 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7589         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
7590         that we use setjmp/longjmp exceptions.
7592 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
7594         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
7595         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
7596         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
7597         _cpp_pool_alloc, _cpp_next_chunk): Remove.
7598         (_cpp_extend_buff, BUFF_ROOM): Update.
7599         (_cpp_append_extend_buff): New.
7600         (struct cpp_reader): Remove macro_pool, add a_buff.
7601         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
7602         macro_pool.
7603         (cpp_destroy): Free a_buff instead of macro_pool.
7604         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
7605         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
7606         _cpp_pool_alloc, ): Remove.
7607         (parse_number, parse_string): Update use of _cpp_extend_buff.
7608         (_cpp_extend_buff): Update.
7609         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
7610         * cpplib.c (glue_header_name, parse_answer):
7611         Update use of _cpp_extend_buff.
7612         (cpp_register_pragma, cpp_register_pragma_space): Use
7613         _cpp_aligned_alloc.
7614         (do_assert, do_unassert): Check for EOL, update.
7615         * cppmacro.c (stringify_arg, collect_args): Update to use
7616         _cpp_extend_buff and _cpp_append_extend_buff.
7617         (save_parameter, parse_params, alloc_expansion_token,
7618         _cpp_create_definition): Rework memory management.
7620 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
7622         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
7623         update md_exec_prefix.
7624         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
7625         to string constant.
7627 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
7629         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
7630         (SELECT_CC_MODE): Use s390_select_ccmode.
7631         * config/s390/s390-protos.h (s390_select_ccmode): Add.
7632         * config/s390/s390.c (s390_select_ccmode): New.
7633         (s390_match_ccmode): Add CCLmode.
7634         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
7635         (output_branch_condition, output_inverse_branch_condition): Removed.
7636         (print_operand): Use s390_branch_condition_mnemonic.
7637         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
7638         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
7639         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
7641         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
7642         when converting conditional branches to far branches.
7643         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
7644         cmpint_di): Use CCSmode instead of CCUmode.
7646         * config/s390/s390.c (legitimate_la_operand_p): New.
7647         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
7648         * config/s390/s390.md (movsi): Convert load address patterns to
7649         arithmetic operations when necessary.
7650         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
7651         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
7652         (*do_la_reg_0): Don't use before reload.
7654         * config/s390/s390.c (legitimize_address): Make more efficient
7655         use of two-register addressing mode.
7657         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
7658         with -mno-backchain in some corner cases.
7660         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
7662 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
7664         * reload.c (find_reloads): Mark new USE insns with QImode.
7665         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
7666         find_reloads_subreg_address): Likewise.
7667         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
7668         encountered.
7669         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
7670         CLOBBERs.
7671         (reload): Make sure there are no USEs with mode other than
7672         VOIDmode.  At the end, remove those marked with QImode.
7674 2001-09-29  Per Bothner  <per@bothner.com>
7676         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
7677         * Makefile.in (includedir):  Rename to local_includedir.
7678         (includedir):  Define as $(prefix)/include.
7679         * config.in (PREFIX_INCLUDE_DIR):  New variable.
7680         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
7682 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
7684         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
7685         storehps builtins.
7686         * doc/extend.texi (Vector Extensions): New node.
7687         * doc/invoke.texi (Machine Dependent Options): Add documentation for
7688         i386 -mmmx, -msse, -m3dnow.
7690 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
7692         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
7694 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
7696         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
7698         * doc/invoke.texi (Optimize Options): Delete spurious @table.
7700 2001-09-28  Richard Henderson  <rth@redhat.com>
7702         * varasm.c (assemble_integer): Bound alignment check by
7703         BIGGEST_ALIGNMENT.
7705         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
7707 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7709         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
7711 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
7713         Mostly from Graham Stott  <grahams@redhat.com>
7714         * c-common.c (type_for_mode): Add support for V2SFmode.
7715         * tree.c (build_common_tree_nodes_2): Likewise.
7716         * tree.h (enum tree_index, global_trees): Likewise.
7717         * config/i386/i386.c (x86_3dnow_a): New variable.
7718         (override_options): Support 3Dnow extensions.
7719         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
7720         Athlon's version of 3Dnow.
7721         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
7722         (ix86_expand_builtin): Handle them.
7723         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
7724         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
7725         TARGET_3DNOW_A): New macros.
7726         (TARGET_SWITCHES): Add 3Dnow switches.
7727         (VALID_MMX_REG_MODE_3DNOW): New macro.
7728         (VECTOR_MODE_SUPPORTED_P): Use it.
7729         (enum ix86_builtins): Add entries for 3Dnow builtins.
7730         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
7731         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
7732         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
7733         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
7734         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
7735         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
7736         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
7737         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
7738         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
7739         sfence_insn, prefetch): Make these available if TARGET_SSE or
7740         TARGET_3DNOW_A.
7742 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
7744         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
7745         ix86_va_start, ix86_build_va_list): Declare.
7746         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
7747         ix86_va_start, ix86_build_va_list): New global functions.
7748         * i386.md (sse_prologue_save_insn): New insn.
7749         (sse_prologue_save): New expander.
7750         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
7751         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
7753 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7755         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
7756         Use size_t everywhere, make definitions consistent with
7757         prototypes.
7759 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
7761         * gcse.c (replace_store_insn): Use delete_insn.
7762         * loop.c (move_movables): Likewise; avoid delete_insn
7763         from clobbering notes moved elsewhere.
7764         (check_dbra_loop): Use delete_insn.
7765         * ssa.c (convert_from_ssa): Likewise.
7766         * cse.c (cse_insn): Use delete_insn.
7768 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7770         * cpphash.h (struct cpp_buff): Make unsigned.
7771         (_cpp_get_buff): Take length of size_t.
7772         (_cpp_unaligned_alloc): New.
7773         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
7774         (struct cpp_reader): Remove ident_pool.  Add u_buff.
7775         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
7776         (cpp_destroy): Destroy u_buff, not ident_pool.
7777         * cpplex.c (parse_number, parse_string, save_comment,
7778         cpp_token_as_text): Update to use the unaligned buffer.
7779         (new_buff): Make unsigned.
7780         (_cpp_unaligned_alloc): New.
7781         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
7782         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
7783         Similarly.
7784         (collect_args): Make unsigned.
7786 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
7788         * cpplex.c (cpp_output_token): Use a putc loop for
7789         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
7791         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
7792         * configure, config.in: Regenerate.
7793         * system.h: Replace fwrite and fprintf with their unlocked
7794         variants if available.
7796 2001-09-27  Richard Henderson  <rth@redhat.com>
7798         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
7799         in favour of .eh_frame.
7801 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
7803         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
7804         to macros.
7805         (LIBCALL_VALUE): Likewise.
7807 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7809         * cpphash.h: Update comment.
7810         * cpplex.c: Update comments.
7811         (_cpp_can_paste): Remove.
7812         * cpplib.h (_cpp_can_paste): Remove.
7813         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
7814         lexer rather than _cpp_can_paste.
7816 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7818         * doc/cppinternals.texi: Update.
7820 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7822         * cpphash.h (struct cpp_pool): Remove locks and locked.
7823         (struct cpp_context): Add member buff.
7824         (struct cpp_reader): Remove member argument_pool.
7825         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
7826         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
7827         * cpplex.c (chunk_suitable): Remove pool argument.
7828         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
7829         (new_buff, _cpp_extend_buff): Update.
7830         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
7831         which buffer is returned.
7832         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
7833         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
7834         * cppmacro.c (lock_pools, unlock_pools): Remove.
7835         (push_ptoken_context): Take a _cpp_buff.
7836         (enter_macro_context): Pool locking removed.
7837         (replace_args): Use a _cpp_buff for the replacement list with
7838         arguments replaced.
7839         (push_token_context): Clear buff.
7840         (expand_arg): Use _cpp_pop_context.
7841         (_cpp_pop_context): Free a context's buffer, if any.
7843 2001-09-26  DJ Delorie  <dj@redhat.com>
7845         * c-typeck.c (digest_init): Check for sizeless arrays.
7847 2001-09-26  Richard Henderson  <rth@redhat.com>
7849         * optabs.c (init_one_libfunc): Create a dummy function type
7850         instead of using error_mark_node.
7852 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7854         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
7855         _cpp_extend_buff, _cpp_free_buff): New.
7856         (struct cpp_reader): New member free_buffs.
7857         * cppinit.c (cpp_destroy): Free buffers.
7858         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
7859         _cpp_extend_buff, _cpp_free_buff): New.
7860         * cpplib.h (struct cpp_options): Remove unused member.
7861         * cppmacro.c (collect_args): New.  Combines the old parse_arg
7862         and parse_args.  Use _cpp_buff for memory allocation.
7863         (funlike_invocation_p, replace_args): Update.
7865 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
7867         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
7869 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
7871         * except.c (sjlj_mark_call_sites): Change address inside sequence.
7873 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
7875         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
7876         glibc.
7878 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
7879             Jim Wilson  <wilson@redhat.com>
7881         * doc/install.texi (Specific, ia64-*-linux): Document.
7883 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
7885         * Makefile.in (cfgrtl.o): Add.
7886         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
7887         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
7888         free_aux_for_edge): Declare.
7889         * cfg.c
7890         (HAVE_return): Undefine.
7891         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
7892         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
7893         free_aux_for_edge): New global functions.
7894         (first_delete_block): New static variable.
7895         (init_flow): Clear first_delete_block.
7896         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
7897          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
7898          try_redirect_by_replacing_jump, last_loop_beg_note,
7899          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
7900          delete_insn, delete_insn_chain, create_basic_block_structure,
7901          create_basic_block, flow_delete_block, compute_bb_for_insn,
7902          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
7903          set_block_for_new_insns, split_block, merge_blocks_nomove,
7904          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
7905          redirect_edge_and_branch, force_nonfallthru_and_redirect,
7906          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
7907          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
7908          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
7909          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
7910          purge_all_dead_edges): Move to ....
7911         * cfgrtl.c: New file; .... Here.
7913         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
7914         (reroder_basic_block): Use alloc_aux_for_blocks.
7915         * predict.c (estimate_bb_frequencies): Likewise; use
7916         alloc_aux_for_edges.
7917         * profile.c (compute_branch_probabilities): Likewise.
7918         (branch_prob): Likewise.
7919         * reg-stack.c (reg_to_stack): Likewise.
7921         * emit-rtl.c (emit_insns_after): Never return NULL.
7923         * basic-block.h (set_block_for_new_insns): Delete.
7924         * cfgrtl.c (set_block_for_new_insns): Delete.
7926         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
7927         calls when crossjumping.
7929         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
7930         * unroll.c (copy_loop_body): Use delete_insn.
7932         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
7933         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
7934         keep_stack_depressed): Likewise.
7935         * gcse.c (cprop_cc0_jump): Likewise.
7936         * local-alloc.c (update_equiv_regs): Likewise.
7937         * loop.c (scan_loop, loop_delete_insns): Likewise.
7938         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
7939         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
7940         delete_output_reload, delete_address_reloads_1,
7941         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
7942         Likewise.
7943         * sibcall.c (replace_call_placeholder): Likewise.
7944         * cse.c (cse_insn): Likewise.
7946 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
7948         From Graham Stott  <grahams@redhat.com>
7949         (def_builtin): Only define builtins appropriate for target_flags.  All
7950         callers changed.
7951         (builtin_decsription): Add new field mask which is used to determine
7952         when to define the builtin via the macro def_builtin.
7954         (bdesc_comi): Initialise new mask fields.
7955         (bdesc_2srg): Likewise.
7956         (bdesc_1arg): Likewise.
7958         * config/i386/i386.c (ix86_init_builtins): Correct return type
7959         building v4hi_ftype_v4hi_int_int tree node.
7960         (ix86_expand_sse_comi): Fix typo swapping operands.
7961         Don't swap comparision condition, it is already swapped.
7962         (ix86_expand_sse_compare): Before swapping operands
7963         move operand 1 into new rtx and not the target rtx.
7964         Don't swap comparison condition, it is already swapped.
7965         Always check whether we need to create a new TARGET.
7967         * config/i386/i386.md: (sse_comi) Fix typos.
7968         (sse_ucomi): Likewise.
7969         (cvtss2si): Fix operand 0 contraint.
7970         (cvttss2si): Likewise.
7971         (sse_unpckhps): Fix mode for operand 2.
7972         (sse_unpcklps): Likewise.
7974 2001-09-25  Graham Stott  <grahams@redhat.com>
7976         * sibcall.c (skip_copy_to_return_value): Tighten return value
7977         copy check.
7979 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
7981         * rs6000.c (lwa_operand): Address must be word aligned.
7983 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7985         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
7986         number has been set.
7987         (type_hash_mark): Mark type itself.
7989 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
7991         * c-lex.c (cb_def_pragma): Update.
7992         (c_lex): Update, and skip padding.
7993         * cppexp.c (lex, parse_defined): Update, remove unused variable.
7994         * cpphash.h (struct toklist): Delete.
7995         (union utoken): New.
7996         (struct cpp_context): Update.
7997         (struct cpp_reader): New members eof, avoid_paste.
7998         (_cpp_temp_token): New.
7999         * cppinit.c (cpp_create_reader): Update.
8000         * cpplex.c (_cpp_temp_token): New.
8001         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
8002         (cpp_output_token): Don't print leading whitespace.
8003         (cpp_output_line): Update.
8004         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
8005         do_include_common, do_line, do_ident, do_pragma,
8006         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
8007         parse_assertion): Update.
8008         (get_token_no_padding): New.
8009         * cpplib.h (CPP_PADDING): New.
8010         (AVOID_LPASTE): Delete.
8011         (struct cpp_token): New union member source.
8012         (cpp_get_token): Update.
8013         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
8014         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
8015         replace_args, quote_string, stringify_arg, parse_arg, next_context,
8016         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
8017         _cpp_backup_tokens, _cpp_create_definition): Update.
8018         (push_arg_context): Delete.
8019         (padding_token, push_token_context, push_ptoken_context): New.
8020         (make_string_token, make_number_token): Update, rename.
8021         (cpp_get_token): Update to handle tokens as pointers to const,
8022         and insert padding appropriately.
8023         * cppmain.c (struct printer): New member prev.
8024         (check_multiline_token): Constify.
8025         (do_preprocessing, cb_line_change): Update.
8026         (scan_translation_unit): Update to handle spacing.
8027         * scan-decls.c (get_a_token): New.
8028         (skip_to_closing_brace, scan_decls): Update.
8029         * fix-header.c (read_scan_file): Update.
8031         * doc/cpp.texi: Update.
8033 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8035         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
8036         leak by passing malloc'ed pointer to reconcat, not concat.
8038 2001-09-24  DJ Delorie  <dj@redhat.com>
8040         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
8042 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
8044         * flow.c (delete_dead_jumptables): Delete jumptable if the only
8045         reference is from the literal pool.
8047 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
8049         * doc/install.texi (Final install): Request additional information
8050         in mail about successful builds.
8052 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8054         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
8055         initial value of return pointer register instead of value in frame-20.
8056         Revise comments.
8058 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8060         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
8061         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
8062         the libcall if there isn't a referenced identifier for the symbol.
8064 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8066         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
8067         non 64-bit machines.  Use these as a plabel for the trampoline.
8068         (TRAMPOLINE_SIZE): Adjust size for new words.
8069         (INITIALIZE_TRAMPOLINE): Initialize new words.
8070         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
8071         pointer to the plabel in the trampoline.
8073 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8075         * pa.c (function_arg): Pass floating arguments in both general and
8076         floating registers in indirect (dynamic) calls when generating code
8077         for the 32 bit ABI and the HP assembler.
8079 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8081         * doc/install.texi: Markup fixes.
8082         Use Solaris 2, SunOS 4 as appropriate.
8083         (Specific, *-*-solaris2*): Explain this.
8084         Unconditionally warn against /usr/ucb tools.
8085         Remove Sun as warning, obsolete.
8086         Move X11 header bug workaround here, update patches.
8087         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
8088         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
8090 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
8092         * errors.h (warning, error, fatal, internal_error): Don't mark
8093         with ATTRIBUTE_PRINTF_n.
8094         * toplev.h (internal_error, fatal_io_error, warning, error,
8095         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
8096         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
8097         Likewise.
8099 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8101         * function.c (pop_function_context_from): var_refs_queue
8102         and temp slots now in GC memory.
8103         (mark_function_status, free_after_compilation): Likewise;
8104         also struct function now in GC memory.
8105         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
8106         (combine_temp_slots): Likewise.
8107         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
8108         (prepare_function_start): Use GC memory for struct function.
8109         (mark_temp_slot): Deleted.
8110         (gcc_mark_struct_function): struct function now in GC memory.
8112         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
8113         code for division, not modulus.
8115         * rtl.def (MEM): Remove obsolete part of comment.
8117 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
8119         * c-format.c (init_function_format_info): Check __builtin_printf
8120         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
8121         in gnu89 mode.
8123 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8125         * c-common.c (format_attribute_table): Remove decl.
8126         * tree.h (format_attribute_table, lang_attribute_table): New decls.
8127         (lang_attribute_common): Likewise.
8129         * function.c (fix_lexical_address): Use set_mem_alias_set.
8130         (expand_function_start): Likewise.
8131         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
8133         * varasm.c (output_constant): Fix unused variable warning.
8135         * attribs.c: New file, from c-common.c.
8136         (attribute_tables): Now four elements.
8137         (format_attribute_table, lang_attribute_common): New variables.
8138         (init_attributes): Reflect above changes.
8139         (handle_mode_attribute): Delete check for wider than uintmax.
8140         * c-common.c: Delete parts moved to attribs.c.
8141         (enum attrs): Deleted; unused.
8142         (c_format_attribute_table): New variable.
8143         (c_common_lang_init): Initialize format_attribute_table with it.
8144         * c-common.h (decl_attributes): Remove decl.
8145         * tree.h (decl_attribute): Move it to here.
8146         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
8147         (attribs.o): New rule.
8149 2001-09-22  Andreas Jaeger  <aj@suse.de>
8151         * builtins.c (c_getstr): Remove unused variable.
8153 2001-09-21  Richard Henderson  <rth@redhat.com>
8155         * reload1.c (reload): Use delete_insn instead of splatting
8156         NOTE_INSN_DELETED.
8158 2001-09-21  Richard Henderson  <rth@redhat.com>
8160         * reload.c (push_secondary_reload): Don't check for "=" in output
8161         constraint after ""->ALL_REGS check.
8163 2001-09-21  Richard Henderson  <rth@redhat.com>
8165         * predict.c (expected_value_to_br_prob): Use pc_set.
8167         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
8168         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
8170 2001-09-21  Richard Henderson  <rth@redhat.com>
8172         * rtl.h (LCT_RETURNS_TWICE): New.
8173         * calls.c (emit_call_1): Set current_function_calls_setjmp for
8174         ECF_RETURNS_TWICE.
8175         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
8176         to ECF_RETURNS_TWICE.
8177         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
8178         call to setjmp.
8180         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
8182         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
8183         (JMP_BUF_SIZE): New.
8185 2001-09-21  Richard Henderson  <rth@redhat.com>
8187         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
8188         to R8_REGS.
8190 2001-09-21  Richard Henderson  <rth@redhat.com>
8192         * tree.def (FDESC_EXPR): New.
8193         * expr.c (expand_expr): Handle it.
8194         * varasm.c (initializer_constant_valid_p): Likewise.
8195         (output_constant): Likewise.
8196         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
8197         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
8198         (ASM_OUTPUT_FDESC): New.
8199         * doc/tm.texi: Document the new macros.
8201 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
8203         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
8204         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
8205         once merging is complete.
8207 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8209         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
8211 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
8213         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
8214         that would be invalid after a merge.
8216 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
8218         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
8219         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
8220         remove some labels.
8221         (flow_delete_insn): This one.
8222         (delete_insn_chain): Rename from ...; do not care labels.
8223         (flow_delete_insn_chain): ... this one.
8224         (flow_delete_block): Remove the insns one BB has been expunged.
8225         (merge_blocks_nomove): Likewise.
8226         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
8227         updating BB boundaries.
8228         (tidy_fallthru_edge): Likewise.
8229         (commit_one_edge_insertion): Likewise.
8230         * cfgbuild.c (find_basic_block): Likewise.
8231         (find_basic_blocks_1): Likewise.
8232         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
8233         (try_crossjump_to_edge): Likewise.
8234         (try_optimize_cfg): Likewise.
8235         * cse.c (delete_trivially_dead_insns): Likewise.
8236         * df.c (df_insn_delete): Likewise.
8237         * doloop.c (doloop_modify): Use delete_related_insns.
8238         * emit-rtl.c (try_split): Likewise.
8239         (remove_insn): Update BB boundaries.
8240         * expect.c (connect_post_landing_pads): Use delete_related_insns.
8241         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
8242         updating BB boundaries.
8243         (propagate_block_delete_insn): Likewise.
8244         (propagate_block_delete_libcall): Likewise.
8245         * function.c (delete_handlers): Use delete_related_insns.
8246         (thread_prologue_and_epilogue_insns): Likewise.
8247         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
8248         * genpeep.c (gen_peephole): Use delete_related_insns.
8249         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
8250         BB boundaries.
8251         (find_cond_trap): Likewise.
8252         * integrate.c (save_for_inline): Use delete_related_insns.
8253         (copy_insn_list): Likewise.
8254         * jump.c (pruge_linie_number_notes): Likewise.
8255         (duplicate_loop_exit_test): Likewise.
8256         (delete_computation): Likewise.
8257         (delete_related_insn): Rename from ...; use delete_insn
8258         (delete_insn): ... this one.
8259         (redirect_jump): Use delete_related_insns.
8260         * loop.c (scan_loop): Likewise.
8261         (move_movables): Likewise.
8262         (find_and_verify_loops): Likewise.
8263         (check_dbra_loop): Likewise.
8264         * recog.c (peephole2_optimize): Likewise.
8265         * reg-stack.c (delete_insn_for_stacker): Remove.
8266         (move_for_stack_reg): Use delete_insn.
8267         * regmove.c (combine_stack_adjustments_for_block): Likewise.
8268         * reload1.c (delete_address_reloads): Use delete_related_insns.
8269         (fixup_abnormal_edges): Use delete_insn.
8270         * recog.c (emit_delay_sequence): Use delete_related_insns.
8271         (delete_from-delay_slot): Likewise.
8272         (delete_scheduled_jump): likewise.
8273         (optimize_skip): Likewise.
8274         (try_merge_delay_insns): Likewise.
8275         (full_simple_delay_slots): Likewise.
8276         (fill_slots_from_thread): Likewise.
8277         (relax_delay_slots): Likewise.
8278         (make_return_insns): Likewise.
8279         (dbr_schedule): Likewise.
8280         * rtl.h (delete_insn): Rename to delete_related_insns.
8281         (delete_insn, delete_insn_chain): New prototypes.
8282         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
8283         by df_insn_delete already.
8284         * ssa-dce.c (delete_insn_bb): Use delete_insn.
8285         * ssa.c (convert_from_ssa): Use delete_related_insns.
8286         * unroll.c (unroll_loop): Likewise.
8287         (calculate_giv_inc): Likewise.
8288         (copy_loop_body): Likewise.
8290         * i386-protos.h (ix86_libcall_value, ix86_function_value,
8291         ix86_function_arg_regno_p, ix86_function_arg_boundary,
8292         ix86_return_in_memory, ix86_function_value): Declare.
8293         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
8294         new static valurables.
8295         (x86_64_reg_class): New enum
8296         (x86_64_reg_class_name): New array.
8297         (classify_argument, examine_argument, construct_container,
8298          merge_classes): New static functions.
8299         (optimization_options): Enable flag_omit_frame_pointer and disable
8300         flag_pcc_struct_return on 64bit.
8301         (ix86_libcall_value, ix86_function_value,
8302         ix86_function_arg_regno_p, ix86_function_arg_boundary,
8303         ix86_return_in_memory, ix86_function_value): New global functions.
8304         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
8305         (function_arg_advance): Handle x86_64 passing conventions.
8306         (function_arg): Likewise.
8307         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
8308         (RETURN_IN_MEMORY): Move offline.
8309         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
8310         (FUNCTION_VALUE_REGNO_P): New macro.
8311         (FUNCTION_ARG_REGNO_P): Move offline.
8312         (struct ix86_args): Add maybe_vaarg.
8313         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
8314         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
8316 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
8318         * s390.md: Changed attributes for scheduling.
8319         * s390.c: (s390_adjust_cost, s390_adjust_priority)
8320         Changed scheduling
8322 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8324         Table-driven attributes.
8325         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
8326         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
8327         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
8328         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
8329         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
8330         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
8331         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
8332         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
8333         * tree.h (struct tree_decl): Change machine_attributes to
8334         attributes.
8335         * doc/c-tree.texi: Document that all attributes are now attached
8336         to decls and types.
8337         * c-common.c (add_attribute, attrtab, attrtab_idx,
8338         default_valid_lang_attribute, valid_lang_attribute): Remove.
8339         (attribute_tables, attributes_initialized,
8340         c_common_attribute_table, default_lang_attribute_table): New
8341         variables.
8342         (handle_packed_attribute, handle_nocommon_attribute,
8343         handle_common_attribute, handle_noreturn_attribute,
8344         handle_unused_attribute, handle_const_attribute,
8345         handle_transparent_union_attribute, handle_constructor_attribute,
8346         handle_destructor_attribute, handle_mode_attribute,
8347         handle_section_attribute, handle_aligned_attribute,
8348         handle_weak_attribute, handle_alias_attribute,
8349         handle_no_instrument_function_attribute,
8350         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
8351         handle_no_limit_stack_attribute, handle_pure_attribute): New
8352         functions.
8353         (init_attributes, decl_attributes): Rewrite to implement
8354         table-driven attributes.
8355         * c-common.h (enum attribute_flags): Move to tree.h.
8356         * c-format.c (decl_handle_format_attribute,
8357         decl_handle_format_arg_attribute): Rename to
8358         handle_format_attribute and handle_format_arg_attribute.  Update
8359         for table-driven attributes.
8360         * c-common.h (decl_handle_format_attribute,
8361         decl_handle_format_arg_attribute): Remove prototypes.
8362         (handle_format_attribute, handle_format_arg_attribute): Add
8363         prototypes.
8364         * c-decl.c (grokdeclarator): Handle attributes nested inside
8365         declarators.
8366         * c-parse.in (setattrs, maybe_setattrs): Remove.
8367         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
8368         Update to handle nested attributes properly.
8369         (maybe_resetattrs, after_type_declarator,
8370         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
8371         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
8372         properly.
8373         (make_pointer_declarator): Update to handle nested attributes
8374         properly.
8375         * doc/extend.texi: Update documentation of limits of attributes
8376         syntax.  Warn about problems with attribute semantics in C++.
8377         * target.h (struct target): Remove valid_decl_attribute and
8378         valid_type_attribute.  Add attribute_table and
8379         function_attribute_inlinable_p.
8380         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
8381         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
8382         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
8383         Add.
8384         (TARGET_INITIALIZER): Update.
8385         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
8386         definition.
8387         (function_attribute_inlinable_p): New function.  Check for the
8388         presence of any machine attributes before using
8389         targetm.function_attribute_inlinable_p.
8390         (function_cannot_inline_p): Update.
8391         * Makefile.in (integrate.o): Update dependencies.
8392         * doc/tm.texi: Update documentation of target attributes and
8393         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
8394         * tree.c (default_valid_attribute_p, valid_machine_attribute):
8395         Remove.
8396         (default_target_attribute_table,
8397         default_function_attribute_inlinable_p): New.
8398         (lookup_attribute): Update comment to clarify handling of multiple
8399         attributes with the same name.
8400         (merge_attributes, attribute_list_contained): Allow multiple
8401         attributes with the same name but different arguments to appear in
8402         the same attribute list.
8403         * tree.h (default_valid_attribute_p): Remove prototype.
8404         (struct attribute_spec): New.
8405         (default_target_attribute_table): Declare.
8406         (enum attribute_flags): Move from c-common.h.  Add
8407         ATTR_FLAG_TYPE_IN_PLACE.
8408         (default_function_attribute_inlinable_p): Declare.
8409         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
8410         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8411         (TARGET_ATTRIBUTE_TABLE): Define.
8412         (vms_attribute_table): New.
8413         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
8414         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8415         (TARGET_ATTRIBUTE_TABLE): Define.
8416         (arc_attribute_table, arc_handle_interrupt_attribute): New.
8417         * config/arm/arm.c (arm_valid_type_attribute_p,
8418         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
8419         Remove.
8420         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
8421         define.
8422         (TARGET_ATTRIBUTE_TABLE): Define.
8423         (arm_attribute_table, arm_handle_fndecl_attribute,
8424         arm_handle_isr_attribute): New.
8425         * config/avr/avr.c (avr_valid_type_attribute,
8426         avr_valid_decl_attribute): Remove.
8427         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
8428         define.
8429         (TARGET_ATTRIBUTE_TABLE): Define.
8430         (avr_attribute_table, avr_handle_progmem_attribute,
8431         avr_handle_fndecl_attribute): New.
8432         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
8433         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8434         (TARGET_ATTRIBUTE_TABLE): Define.
8435         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
8436         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
8437         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8438         (TARGET_ATTRIBUTE_TABLE): Define.
8439         (h8300_attribute_table, h8300_handle_fndecl_attribute,
8440         h8300_handle_eightbit_data_attribute,
8441         h8300_handle_tiny_data_attribute): New.
8442         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
8443         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
8444         Remove prototypes.
8445         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
8446         declarations.
8447         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
8448         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
8449         define.
8450         (TARGET_ATTRIBUTE_TABLE): Define.
8451         (ix86_attribute_table, ix86_handle_cdecl_attribute,
8452         ix86_handle_regparm_attribute): New.
8453         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
8454         i386_pe_valid_type_attribute_p): Remove.
8455         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
8456         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
8457         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8458         (TARGET_ATTRIBUTE_TABLE): Define.
8459         (ia64_attribute_table): New.
8460         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
8461         interrupt_ident2, model_ident1, model_ident2): Remove.
8462         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8463         (TARGET_ATTRIBUTE_TABLE): Define.
8464         (init_idents): Update.
8465         (m32r_attribute_table, m32r_handle_model_attribute): New.
8466         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
8467         Remove.
8468         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8469         (TARGET_ATTRIBUTE_TABLE): Define.
8470         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
8471         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
8472         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8473         (TARGET_ATTRIBUTE_TABLE): Define.
8474         (mcore_attribute_table, mcore_handle_naked_attribute): New.
8475         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
8476         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8477         (TARGET_ATTRIBUTE_TABLE): Define.
8478         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
8479         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
8480         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8481         (TARGET_ATTRIBUTE_TABLE): Define.
8482         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
8483         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
8484         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8485         (TARGET_ATTRIBUTE_TABLE): Define.
8486         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
8487         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
8488         New.
8489         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
8490         Remove.
8491         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
8492         (TARGET_ATTRIBUTE_TABLE): Define.
8493         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
8494         New.
8495         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
8496         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8497         (TARGET_ATTRIBUTE_TABLE): Define.
8498         (v850_attribute_table, v850_handle_interrupt_attribute,
8499         v850_handle_data_area_attribute): New.
8500         * config/v850/v850-c.c (mark_current_function_as_interrupt):
8501         Return void.  Call decl_attributes instead of
8502         valid_machine_attribute.
8504 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
8506         * sh-protos.h (sh_pr_n_sets): Declare.
8507         * sh.c (calc_live_regs): If the initial value for PR has been copied,
8508         look at the copy to determine if PR needs to be saved.
8509         sh_pr_n_sets: New function.
8510         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
8511         (ALLOCATE_INITIAL_VALUE): Define.
8513         * sh.c (initial_elimination_offset):
8514         Fix RETURN_ADDRESS_POINTER_REGNUM case.
8516 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
8518         * integrate.c (allocate_initial_values): New function.
8519         * integrate.h (allocate_initial_values): Declare.
8520         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
8521         here...
8522         * reload1.c (reload): And initialization of reg_equiv_memory_loc
8523         from here...
8524         * toplev.c (rest_of_compilation): To here.
8525         Call allocate_initial_values.
8526         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
8528 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8530         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
8532 2001-09-20  DJ Delorie  <dj@redhat.com>
8534         * c-typeck.c (really_start_incremental_init): Discriminate
8535         between zero-length arrays and flexible arrays.
8536         (push_init_level): Detect zero-length arrays and handle them
8537         like fixed-sized arrays.
8538         * expr.c (store_constructor): Handle zero-length arrays and
8539         flexible arrays correctly.
8540         * doc/extend.texi: Update zero-length array notes.
8542 2001-09-20  Jim Wilson  <wilson@redhat.com>
8544         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
8545         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
8546         for issue port conflicts.
8547         (cycle_end_fill_slots): TYPE_L instructions take two slots.
8549 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
8551         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
8552         on ia64.
8554 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8556         * fold-const.c (hashtab.h): Include.
8557         (int_const_binop): Remove FORSIZE arg and compute from type; all
8558         callers changed.
8559         Call size_int_type_wide for all single-word constants.
8560         (size_htab_hash, size_htab_eq): New functions.
8561         (size_int_type_wide): Rework to use hash table.
8562         * ggc-common.c (hashtab.h): Include.
8563         (struct d_htab_root): New struct.
8564         (d_htab_roots): New variable.
8565         (ggc_add_deletable_htab, ggc_htab_delete): New functions
8566         (ggc_mark_roots): Handle deletable htabs.
8567         * ggc-page.c (ggc_marked_p): New function.
8568         * ggc-simple.c (ggc_marked_p): Likewise.
8569         * ggc.h: Reformatting throughout.
8570         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
8571         * tree.c (init_obstacks): Make type_hash_table a deletable root.
8572         (type_hash_add): Allocate struct type_hash from GC memory.
8573         (mark_hash_entry, mark_type_hash): Deleted.
8574         (type_hash_marked_p, type_hash_mark): New functions.
8575         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
8577 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
8579         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
8580         than SImode.
8582 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8584         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
8585         array-too-large test for signed sizetype.
8587 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
8589         * i386.md (indirect_jump): Allow Pmode operand.
8590         (tablejump): LIkewise; perform expansion to 64bit mode.
8591         * i386.c (symbolic_operand): Allow 64bit PIC references.
8592         (pic_symbolic_operand): Likewise.
8593         (ix86_find_base_term): Strip the 64bit PIC references.
8594         (legitimate_pic_address_disp_p): Handle 64bit PIC.
8595         (legitimize_pic_address): Likewise.
8596         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
8597         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
8599 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
8601         * stringpool.c (get_identifier_with_length): New function.
8602         * tree.h (get_identifier_with_length): New prototype.
8604 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
8605             David Edelsohn  <edelsohn@gnu.org>
8607         Revert:
8608         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
8609         already sign-extended.
8611         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
8612         * config/rs6000/rs6000.c (logical_operand): Always compare op as
8613         HOST_WIDE_INT.
8614         (rs6000_emit_set_long_const): Avoid unnecessary shift.
8615         (output_profile_hook): Declare label_name const.
8616         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
8617         to match constraints.
8619 2001-09-19  Stan Shebs  <shebs@apple.com>
8621         * alias.c: Fix typos in comments.
8622         * sched-rgn.c (init_ready_list): Ditto.
8623         * unwind-dw2.c (uw_frame_state_for): Ditto.
8624         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
8625         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
8626         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
8628 2001-09-19  Richard Henderson  <rth@redhat.com>
8630         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
8631         to the exit block.
8632         * Makefile.in (cfg.o): Depend on TM_P_H.
8634 2001-09-19  Richard Henderson  <rth@redhat.com>
8636         * config/alpha/alpha.c (local_symbol_p): Split out from ...
8637         (local_symbolic_operand): ... here.
8638         (small_symbolic_operand): Check mode.
8639         (global_symbolic_operand): New.
8640         (input_operand): Reject symbolics if explicit relocs.
8641         (call_operand): Tidy.
8642         (alpha_legitimize_address): Use movdi_er_high_g.
8643         (alpha_expand_mov): Likewise.
8644         * config/alpha/alpha-protos.h: Update.
8645         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8646         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
8647         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
8648         (UNSPECV_LDGP2): Remove.
8649         (all call patterns): Use 's' not 'i' for symbolic constraint.
8650         (call_osf call_value_osf): Use call_operand.
8651         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
8652         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
8653         (prologue_ldgp_1_er): Remove.
8654         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
8655         (builtin_setjmp_receiver_er patterns): Use them.
8656         (exception_receiver_er): Likewise.
8658 2001-09-19  Richard Henderson  <rth@redhat.com>
8660         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
8662         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
8663         and NON_LOCAL_GOTO notes.
8664         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
8665         copy over CALL_INSN_FUNCTION_USAGE.
8667 2001-09-18  Catherine Moore  <clm@redhat.com>
8669         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
8670         Define as 0.
8672 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
8674         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
8675         new-style tm_file specification.  Specify correct tm_p_file,
8676         md_file, and out_file for s390x.
8678         * config/s390/linux.h, linux64.h:  Don't include other target
8679         macro header files.  Now handled via tm_file.
8681         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
8682         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
8683         are defined before use.
8685 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
8687         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
8688         code generation only for Gnu assembler.
8690 2001-09-18  Catherine Moore  <clm@redhat.com>
8692         * config/stormy16 (LIB_SPEC): Remove -lnosys.
8694 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
8696         * config/mips/mips.c (mips_frame_set): New.
8697         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
8698         a parallel frame-related expression with a set for each register.
8700 2001-09-18  Philip Blundell  <philb@gnu.org>
8702         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
8703         header files.
8705 2001-09-17  Dale Johannesen  <dalej@apple.com>
8707         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
8708         * config/rs6000/aix.h (FIXED_R2): Define.
8709         * config/rs6000/darwin.h (FIXED_R2): Define.
8710         * config/rs6000/sysv4.h (FIXED_R2): Define.
8712 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
8714         * except.c (dw2_build_landing_pads): New local
8715         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
8716         barrier after clobbers.  Fixes c++/4012.
8718 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8720         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
8722 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
8724         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
8725         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
8727 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8729         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
8730         alloca/strcpy.
8732 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8734         * cpphash.h (_cpp_lex_direct): New.
8735         * cpplex.c (_cpp_lex_token): Update.
8736         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
8737         and increment that pointer.
8738         * cppmacro.c (alloc_expansion_token): New.
8739         (lex_expansion_token): Lex macro expansion directly into
8740         macro storage.
8742 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
8744         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
8746 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
8748         * basic-block.h (free_bb_for_insn): Declare.
8749         * bb-reorder.c (label_for_bb): Use block_label.
8750         (emit_jump_to_block_after): Remove.
8751         (insert_intra_1): Do not update block_for_insn.
8752         (insert_inter_bb_scope_notes): Likewise; update bb->end
8753         * cfg.c (free_bb_for_insn): New.
8754         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
8755         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
8756         (commit_one_edge_insertion): Likewise.
8757         (commit_one_edge_insertion): Do not update BB boundary.
8758         (commit_edge_insertions): Do not call compute_bb_for_insn.
8759         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
8760         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
8761         (merge_blocks_move_successor_nojumps): Likewise.
8762         (try_crossjump_to_edge): Do not update block_for_insn.
8763         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
8764         * df.c (df_pattern_emit_later): Do not update BB boundary.
8765         (df_jump_pattern_emit_after): Likewise.
8766         (df_insn_move_before): Use emit_insn_before.
8767         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
8768          properly.
8769         (add_insn_after, add_insn_before, emit_insns_after): Update BB
8770         boundaries and basic_block_for_insn.
8771         (reorder_insns_nobb): Rename from reorder_insns.
8772         (reorder_insns): New.
8773         (emit_block_insn_before, emit_block_insn_after): Kill.
8774         * flow.c (check_function_return_warnings): Do not call
8775         compute_bb_for_insn; Do not free basic_block_for_insn.
8776         (attempt_auto_inc): Do not update basic_block_for_insn.
8777         * function.c (emit_return_into_block): Likewise;
8778         do not update BB boundaries.
8779         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
8780         (insert_insn_end_bb): Use emit_insn_before; Likewise.
8781         (pre_insert_copy_insn): Likewise.
8782         (update_ld_motion_notes): Likewise.
8783         (insert_insn_start_bb): Likewise.
8784         (replace_store_insn): Likewise.
8785         * ifcvt.c (noce_process_if_block): Likewise.
8786         (if_convert): Do not call compute_bb_for_insn.
8787         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
8788         Use emit_insn_before and emit_insn_after.
8789         * recog.c (split_all_insns): Do not update BB boundaries;
8790         Do not call compute_bb_for_insn.
8791         (peephole2_optimize): Do not update BB boundaries.
8792         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
8793         emit_insn_before.
8794         (emit_swap_insn): Likewise.
8795         (convert_regs_1): Likewise.
8796         * reload1.c (reload): Call compute_bb_for_insn.
8797         * rtl.h (reorder_insns_nobb): Declare.
8798         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
8799         * toplev.c (rest_of_compilation): Call free_bb_for_insn
8800         at places CFG is invalidated; do not call compute_bb_for_insn.
8802         * cfg.c (expunge_block): Invalidate BB structure.
8804         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
8805         array.
8807         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
8809 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8811         * cpphash.h (_cpp_lex_token): Update prototype.
8812         * cpplex.c (_cpp_lex_token): New prototype.
8813         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
8814         lex_macro_node, read_flag, do_pragma_poison): Update.
8815         * cppmacro.c (cpp_get_token, parse_params,
8816         lex_expansion_token): Update.
8818 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8820         * cppmain.c (scan_translation_unit): Don't worry about
8821         putting a space after hashes.
8822         * cpplib.c (directive_diagnostics): New.
8823         (_cpp_handle_directive): Update to use directive_diagnostics.
8824         (run_directive): Don't toggle prevent_expansion.
8825         (do_line): Backup in case of the line extension.
8826         * cpplib.h (cpp_lexer_pos): Remove.
8827         * cppmacro.c (_cpp_create_definition): Precede a leading #
8828         with whitespace.
8830 2001-09-15  Richard Henderson  <rth@redhat.com>
8832         * c-typeck.c (comptypes): Handle zero-length arrays properly.
8834 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8836         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
8838 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8840         PR preprocessor/3571
8841         * tradcpp.c (handle_directive): Skip non-vertical space.
8843 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8845         * cppmain.c (setup_callbacks): Set line callback only
8846         if outputting preprocessed source.
8848 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8850         * collect2.c (main): Const-ification.
8851         * gcc.c (translate_options, process_command): Use xstrdup in
8852         lieu of xmalloc/strcpy.
8853         (main): Use concat in lieu of xmalloc/strcpy/strcat.
8855 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8857         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
8858         example.
8860 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8862         * scan-decls.c (scan_decls): Fix typo.
8864 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8866         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
8867         Split mlstring_pos into mls_line and mls_col.
8868         * cppinit.c (cpp_create_reader): Initialize line to 1.
8869         (cpp_destroy): Free tokenruns.
8870         (push_include): Don't update lexer_pos.
8871         * cpplex.c (unterminated, parse_string): Update.
8872         (lex_token): Don't update lexer_pos, update.
8873         * cpplib.c (if_stack): Save line instead of line + col.
8874         (start_directive, _cpp_do__Pragma, do_else, do_elif,
8875         push_conditional, _cpp_pop_buffer): Update.
8876         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
8877         (_cpp_create_definition): Update.
8879 2001-09-15  Eric Christopher  <echristo@redhat.com>
8881         * config/mips/abi64.h: Add support for MEABI.
8883 2001-09-15  Eric Christopher  <echristo@redhat.com>
8885         * config/mips/mips.md: Add unspec #2.
8886         (reload_indi): Use.
8887         (reload_outdi): Ditto.
8888         (reload_outsi): Ditto.
8889         (HILO_delay): New.
8891 2001-09-15  Eric Christopher  <echristo@redhat.com>
8892             Jason Eckhardt  <jle@redhat.com>
8894         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
8895         * config/mips/isa32-linux.h: New file.
8896         * config/mips/isa3264.h: Ditto.
8897         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
8898         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
8899         (output_block_mode): Support MEABI.
8900         (function_arg): Ditto. Fix floating point arg passing.
8901         (mips_va_start): Ditto.
8902         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
8903         processors.
8904         (mips_asm_file_start): Add new section to pass abi to gdb.
8905         (function_arg_pass_by_reference): Support MEABI.
8906         (mips_parse_cpu): Support mips32 and mips64 processors.
8907         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
8908         TARGET_MIPS5KC.  Support isa32 and isa64.
8909         (processor_type): Add r4kc, r5kc, r20kc.
8910         (GENERATE_MULT3_SI): New.
8911         (GENERATE_MULT3_DI): Ditto.
8912         (GENERATE_MULT3): Remove.
8913         (ISA_HAS_64BIT_REGS): Add isa == 64.
8914         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
8915         (ISA_HAS_MADD_MSUB): New.
8916         (ISA_HAS_CLZ_CLO): Ditto.
8917         (ISA_HAS_DCLZ_DCLO): Ditto.
8918         (ABI_GAS_ASM_SPEC): New.
8919         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
8920         (ASM_SPEC): Ditto.
8921         (LINK_SPEC): Ditto.
8922         (SUBTARGET_CC1_SPEC): Ditto.
8923         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8924         (PAD_VARARGS_DOWN): Support MEABI.
8925         (HARD_REGNO_NREGS): Move to mips.c.
8926         (ASM_OUTPUT_IDENT): Add #undef.
8927         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
8928         (mulsi3): Use GENERATE_MULT3_SI.
8929         (mulsi3_mult3): Ditto.  Support mips32, mips64.
8930         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
8931         (mul_sub_si): New pattern.
8932         (unnamed splitters): New.
8933         (muldi3): Use GENERATE_MULT3_DI.
8934         (muldi3_internal2): Ditto.
8935         (movdicc): Support mips32.
8936         * config/mips/t-isa3264: New file.
8938 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
8940         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
8941         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
8942         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
8944         * reorg.c (fill_slots_from_thread): After call to
8945         steal_delay_list_from_target, update own_thread as new_thread may
8946         have branched.
8948 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8950         * cpperror.c (print_location): Take line and column, for
8951         default positioning use the previously lexed token.
8952         (_cpp_begin_message): Take line and column.
8953         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
8954         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
8955         * cpphash.h (_cpp_begin_message): Update prototype.
8956         * cppinit.c (push_include): Don't set output line.
8957         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
8958         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
8959         (do_pragma): Kludge for front ends.  Don't expand macros at all.
8960         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
8961         (struct cpp_token): Remove output_line.
8962         (struct cpp_callbacks): New member line_change.
8963         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
8964         cpp_get_token): Preserve BOL flag.
8965         (cpp_get_line): Remove.
8966         (_cpp_backup_tokens): Remove useless abort().
8967         * cppmain.c (cb_line_change): New.
8968         (scan_translation_unit): Don't worry about starting new lines here.
8969         * scan-decls.c (scan_decls): Update.
8970         * c-lex.c (c_lex, init_c_lex): Update.
8971         (cb_line_change, src_lineno): New.
8973 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
8975         * tree.c (append_random_chars): Generate the random
8976         characters in a reproducable fashion.
8978 2001-09-14  Richard Henderson  <rth@redhat.com>
8980         * config/i386/i386.c (internal_label_prefix): New.
8981         (internal_label_prefix_len): New.
8982         (override_options): Set them.
8983         (local_symbolic_operand): New.
8984         (legitimate_pic_address_disp_p): Use it.
8985         (legitimize_pic_address): Likewise.
8987 2001-09-14  Marc Espie <espie@openbsd.org>
8989         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
8990         correctly.
8992 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8994         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
8995         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
8997 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
8999         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
9000         invocation of SUBREG_REGNO_OFFSET.
9002         * haifa-sched.c: Fix typo in FSF copyright statement.
9003         * sched-deps.c: Fix typo in FSF copyright statement.
9004         * sched-ebb.c: Fix typo in FSF copyright statement.
9005         * sched-rgn.c: Fix typo in FSF copyright statement.
9006         * sched-vis.c: Fix typo in FSF copyright statement.
9008         * config.gcc: Move inclusion of arm elf specific header files
9009         from the files themselves into the tm_file variable.  Make
9010         sure that elfos.h is included before target specific elf
9011         headers.
9012         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
9013         already defined.
9014         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
9015         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
9016         ASM_OUTPUT_CASE_LABEL): Protect definition.
9017         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
9018         not already defined.
9019         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
9020         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
9021         Remove duplicate definition.
9022         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
9023         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
9024         (RDATA_SECTION_FUNCTION): Remove redundant definition.
9025         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
9026         Remove inclusion of arm/elf.h.
9027         * config/arm/unknown-elf.h: as for conix-elf.h.
9028         (STARTFILE_SPEC): Include crti.o and crtn.o.
9029         * config/arm/linux-elf.h: as for conix-elf.h.
9030         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
9031         * config/arm/strongarm-elf.h: Remove inclusion of
9032         unknown-elf.h.
9033         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
9034         * config/arm/unknown-elf-oabi.h: Remove inclusion of
9035         unknown-elf.h and elf.h.
9036         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
9037         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
9038         ASM_WEAKEN_LABEL): Remove redundant definition.
9039         * config/arm/elf.h: Test for inclusion of elfos.h
9040         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
9041         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
9042         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
9043         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
9044         redundant definition.
9045         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
9046         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
9047         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
9048         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
9049         Add rules to build crti.o and crtn.o
9050         * crti.asm: New file.
9051         * crtn.asm: New file.
9053 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
9055         * c-parse.in (_yylex): Use _cpp_backup_tokens.
9056         * cpphash.h (struct tokenrun): Add prev.
9057         (struct lexer_state): Remove bol.
9058         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
9059         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
9060         : Remove.
9061         * cppinit.c (cpp_create_reader): Don't set bol.
9062         (cpp_destroy): Don't free lookaheads.
9063         * cpplex.c (lex_directive): Remove.
9064         (next_tokenrun): Update.
9065         (_cpp_lex_token): Clean up logic.
9066         (lex_token): Update to return a pointer to lexed token, since it
9067         can move to the start of the buffer.  Simpify newline handling.
9068         * cpplib.c (SEEN_EOL): Update.
9069         (skip_rest_of_line): Remove lookahead stuff.
9070         (end_directive): Line numbers are already incremented.  Revert
9071         to start of lexed token buffer if we can.
9072         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
9073         parse_answer): Use _cpp_backup_tokens.
9074         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
9075         instead.  Don't check for EOL.
9076         (do_include_common, do_line, do_pragma_system_header): Use
9077         skip_rest_of_line.
9078         * cpplib.h (BOL, _cpp_backup_tokens): New.
9079         * cppmacro.c (save_lookahead_token, take_lookahead_token,
9080         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
9081         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
9082         (builtin_macro): Don't use cpp_get_line.
9083         (cpp_get_line): Short term kludge.
9084         (parse_arg): Handle directives in arguments here.  Back up when
9085         appropriate.  Store EOF at end of argument list.
9086         (funlike_invocation_p): Use _cpp_backup_tokens.
9087         (push_arg_context): Account for EOF at end of list.
9088         (cpp_get_token): Remove lookahead stuff.  Update.
9090 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9092         * c-parse.in (yyerror): Const-ification and/or static-ization.
9093         * c-typeck.c (push_member_name): Likewise.
9094         * collect2.c (main): Likewise.
9095         * dbxout.c (dbxout_parms): Likewise.
9096         * diagnostic.c (format_with_decl): Likewise.
9097         * dwarf2out.c (output_ranges): Likewise.
9098         * dwarfout.c (fundamental_type_code): Likewise.
9099         * except.c (dw2_output_call_site_table): Likewise.
9100         * gcc.c (do_spec_1): Likewise.
9101         * genopinit.c (optabs): Likewise.
9102         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
9103         gen_declaration_1, handle_impent): Likewise.
9104         * protoize.c (default_include, in_system_include_dir, abspath):
9105         Likewise.
9106         * sched-vis.c (visualize_stall_cycles): Likewise.
9107         * sdbout.c (plain_type_1, sdbout_end_function,
9108         sdbout_end_epilogue): Likewise.
9109         * varasm.c (decode_reg_name): Likewise.
9111         * 1750a.c (mod_regno_adjust): Likewise.
9112         * alpha.c (alpha_write_one_linkage,
9113         unicosmk_output_default_externs): Likewise.
9114         * arm.c (arm_condition_codes): Likewise.
9115         * arm.h (arm_condition_codes): Likewise.
9116         * avr.c (output_movsisf, encode_section_info): Likewise.
9117         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
9118         Likewise.
9119         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
9120         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
9121         * m88k.c (output_function_profiler): Likewise.
9122         * mips.c (mips_output_conditional_branch): Likewise.
9123         * ns32k.c (ns32k_out_reg_names): Likewise.
9124         * ns32k.h (ns32k_out_reg_names): Likewise.
9125         * pj.c (pj_output_rval): Likewise.
9126         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
9127         * sparc.c (sparc_flat_function_prologue,
9128         sparc_flat_function_epilogue): Likewise.
9130 2001-09-13  Markus Werle <numerical.simulation@web.de>
9131             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9133         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
9134         Aachen University of Technology".
9136 2001-09-13  Andreas Schwab  <schwab@suse.de>
9138         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
9139         C99.
9141 2001-09-13  Richard Henderson  <rth@redhat.com>
9143         * config/alpha/alpha.c (small_symbolic_operand): New.
9144         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
9145         (some_operand, input_operand): Don't handle HIGH.
9146         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
9147         (alpha_expand_mov): Likewise.
9148         (print_operand) [H]: Just print HIGH symbol.
9149         (print_operand_address): Handle small data.
9150         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
9151         (TARGET_SWITCHES): Add -msmall-data/large-data.
9152         (PIC_OFFSET_TABLE_REGNUM): New.
9153         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
9154         (PREDICATE_COES): Update.
9155         * config/alpha/alpha.md (adddi_er_high): New.
9156         (adddi_er_low): Handle small data.
9157         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
9158         prefer .sdata to .rodata.
9159         (SELECT_RTX_SECTION): Likewise.
9161 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
9163         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
9164         defining __size_t and leaving size_t undefined.
9166 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
9168         * basic-block.h (expunge_block): Declare.
9169         * cfg.c (expunge_block): Remove static declaration.
9171 2001-09-12  Richard Henderson  <rth@redhat.com>
9173         * integrate.c (copy_insn_list): Copy label name from
9174         NOTE_INSN_DELETED_LABEL.
9176 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9178         * c-common.c (c_tree_code_name): Const-ification.
9179         * c-decl.c (c_decode_option): Likewise.
9180         * c-typeck.c (warn_for_assignment): Likewise.
9181         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
9182         Likewise.
9183         * cppinit.c (output_deps): Likewise.
9184         * dependence.c (dependence_string, direction_string): Likewise.
9185         * dwarf2out.c (output_ranges): Likewise.
9186         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
9187         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
9188         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
9189         standard_startfile_prefix, standard_startfile_prefix_1,
9190         standard_startfile_prefix_2, tooldir_base_prefix,
9191         standard_bindir_prefix, find_a_file): Likewise.
9192         * genattrtab.c (make_length_attrs): Likewise.
9193         * gencheck.c (tree_codes): Likewise.
9194         * genemit.c (gen_split): Likewise.
9195         * genrecog.c (special_mode_pred_table): Likewise.
9196         * graph.c (graph_ext): Likewise.
9197         * protoize (default_include): Likewise.
9198         * reload.c (reload_when_needed_name): Likewise.
9199         * sched-vis.c (visualize_stall_cycles): Likewise.
9200         * tlink.c (recompile_files): Likewise.
9201         * toplev.c (decode_g_option): Likewise.
9202         * tradcpp.c (output_deps): Likewise.
9203         * varasm.c (decode_reg_name): Likewise.
9205         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
9206         Const-ification.
9207         * arm.md: Likewise.
9208         * avr.c (avr_regnames, encode_section_info): Likewise.
9209         * c4x.c (float_reg_names): Likewise.
9210         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
9211         * elfos.h (const_section): Likewise.
9212         * i386.c (ix86_comp_type_attributes): Likewise.
9213         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
9214         * ia64/aix.h (UNIQUE_SECTION): Likewise.
9215         * ia64.c (type_names): Likewise.
9216         * m68hc11.c (reg_class_names): Likewise.
9217         * m88k.c (m_options): Likewise.
9218         * mips.c (mips_output_conditional_branch, mips_unique_section):
9219         Likewise.
9220         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9221         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
9222         ultra_code_names): Likewise.
9223         * sparc.h (OVERRIDE_OPTIONS): Likewise.
9225 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
9227         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
9228         Use --fatal-warnings option for gas.
9229         * configure: Rebuilt.
9231 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9233         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
9235 2001-09-11  Jim Wilson  <wilson@redhat.com>
9237         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
9239 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9241         * builtins.c (c_strlen): Treat an offset too large for a
9242         HOST_WIDE_INT as out of range.
9244 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
9246         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
9247         (EDGE_CRITICAL_P): New predicate.
9248         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
9249         handling.
9250         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
9251         (dump_edge_info): Remove "crit".
9252         * cfganal.c (mark_critical_edges): Kill.
9253         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
9254         * cfgcleanup.c (cleanup_cfg): Likewise.
9255         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
9256         (find_spanning_tree): Likewise.
9257         * reg-stack.c (convert_regs_1): Likewise.
9258         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
9260         * basic-block.h (create_basic_block_structure): New.
9261         (create_basic_block): Update prototype.
9262         (force_nonfallthru): New.
9263         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
9264         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
9265         handle updating of block_for_insn, creating of empty BBs and BBs at
9266         the end of INSN chain.
9267         (create_basic_block): New function.
9268         (split_block): Use create_basic_block.
9269         (force_nonfallthru_and_redirect): Break out from ...; cleanup
9270         (redirect_edge_and_branch_force): ... here.
9271         (force_nonfallthru): New.
9272         (split_edge): Rewrite to use force_nonfallthru and create_block.
9273         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
9274         (find_basic_blocks): Free basic_block_for_insn.
9275         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
9277         * cfg.c: Fix formating.
9278         * cfgcleanup.c: Fix formating.
9279         (merge_blocks, tail_recursion_label_p): Return bool.
9280         (merge_blocks_move_predecessor_nojumps,
9281          merge_blocks_move_successor_nojumps): Return void.
9283 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
9285         * configure.in: Check whether assembler supports section merging.
9286         * config.in: Rebuilt.
9287         * configure: Rebuilt.
9288         * varasm.c (variable_section, output_constant_pool): Pass alignment
9289         to SELECT_SECTION and SELECT_RTX_SECTION.
9290         (mergeable_string_section): New.
9291         (mergeable_constant_section): New.
9292         (default_elf_asm_named_section): Output SECTION_MERGE and
9293         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
9294         * output.h (mergeable_string_section): New.
9295         (mergeable_constant_section): New.
9296         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
9297         * toplev.c (flag_merge_constants): New.
9298         (f_options): Add -fmerge-constants and -fmerge-all-constants
9299         options.
9300         (toplev_main): Default to -fno-merge-constants if not optimizing.
9301         * flags.h (flag_merge_constants): Add extern.
9302         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
9303         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
9304         argument.
9305         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
9306         Define if assembler has working .subsection -1 support.
9307         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
9308         Put constant into special SHF_MERGE sections if the linker should
9309         attempt to merge duplicates.
9310         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
9311         macro argument.
9312         Put constant into special SHF_MERGE sections if the linker should
9313         attempt to merge duplicates.
9314         * config/alpha/elf.h: Likewise.
9315         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
9316         has working .subsection -1 support.
9317         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
9318         SELECT_SECTION.
9319         * config/svr3.h: Likewise.
9320         * config/darwin.h: Likewise.
9321         * config/arm/aof.h: Likewise.
9322         * config/arm/linux-elf.h: Likewise.
9323         * config/avr/avr.h: Likewise.
9324         * config/c4x/c4x.h: Likewise.
9325         * config/d30v/d30v.h: Likewise.
9326         * config/i386/dgux.h: Likewise.
9327         * config/i386/osfrose.h: Likewise.
9328         * config/i386/sco5.h: Likewise.
9329         * config/i386/svr3gas.h: Likewise.
9330         * config/ia64/aix.h: Likewise.
9331         * config/m32r/m32r.h: Likewise.
9332         * config/m68k/m68k.h: Likewise.
9333         * config/m88k/dgux.h: Likewise.
9334         * config/m88k/m88k.h: Likewise.
9335         * config/mcore/mcore-pe.h: Likewise.
9336         * config/mips/mips.h: Likewise.
9337         * config/pa/pa.h: Likewise.
9338         * config/pa/pa-linux.h: Likewise.
9339         * config/romp/romp.h: Likewise.
9340         * config/rs6000/sysv4.h: Likewise.
9341         * config/rs6000/xcoff.h: Likewise.
9342         * config/s390/linux.h: Likewise.
9343         * config/sparc/sparc.h: Likewise.
9344         * config/sparc/sysv4.h: Likewise.
9345         * config/stormy16/stormy16.h: Likewise.
9346         * config/v850/v850.h: Likewise.
9347         * config/vax/vms.h: Likewise.
9348         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
9349         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
9350         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
9351         default_elf_asm_named_section for SHF_MERGE sections.
9353 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
9355         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
9356         is OK.
9358 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9360         * c-common.c (split_specs_attrs): Allow for empty attributes with
9361         empty TREE_PURPOSE.  Fixes PR c/4294.
9363 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
9365         * basic-block.h (cached_make_edge, make_single_succ): New.
9366         (make_edge): Remove first parameter.
9367         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
9368         * cfg.c (cached_make_edge): Rename from make_edge; return newly
9369         created edge; use obstack allocation.
9370         (make_edge, make_single_succ_edge): New.
9371         (first_removed_edge): New static variable.
9372         (init_flow): Initialize first_removed_edge and n_edges.
9373         (clear_edges): Use remove_edge.
9374         (flow_delete_block): Likewise.
9375         (remove_edge): Add removed edges to the removed edges list.
9376         (split_block, redirect_edge_and_branch_force, split_edge):
9377         Use make_edge.
9378         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
9379         (add_noreturn_fake_exit_edges): Likewise.
9380         (connect_infinite_loops_to_exit): Liekwise.
9381         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
9382         Use cached_make_edge.
9383         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
9384         * profile.c (branch_prob): Update make_edge call.
9385         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
9387 2001-09-11  Richard Henderson  <rth@redhat.com>
9389         * config/alpha/alpha.c: Tidy formatting.
9390         (local_symbolic_operand): Verify mode.
9391         (alpha_sa_mask): Ignore unicos for eh_return.
9392         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
9393         * config/alpha/alpha.md (umk divsi patterns): Remove.
9394         (extendsfdf2): Remove unicos check.
9395         (tablejump): Merge vms and unicos code; always use direct set
9396         plus label_ref use.
9398 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9400         * config.gcc (alpha*-*-unicosmk*): New target.
9402         * config/alpha/alpha-protos.h (symbolic_operand,
9403         unicosmk_add_call_info_word, unicosmk_add_extern,
9404         unicosmk_defer_case_vector, unicosmk_unique_section,
9405         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
9406         unicosmk_asm_file_start, unicosmk_asm_file_end,
9407         unicosmk_output_common): Declare.
9409         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
9410         direct_return, function_arg, alpha_va_start, alpha_va_arg,
9411         alpha_does_function_need_gp, alpha_end_function): Support Cray
9412         Unicos/Mk.
9413         (alpha_init_machine_status, alpha_mark_machine_status,
9414         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
9415         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
9416         unicosmk_asm_named_section, unicosmk_insert_attributes,
9417         unicosmk_section_type_flags, symbolic_operand,
9418         unicosmk_output_module_name, unicosmk_output_default_externs,
9419         unicosmk_output_dex, unicosmk_output_externs,
9420         unicosmk_output_addr_vec, unicosmk_ssib_name,
9421         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
9422         unicosmk_asm_file_end, unicosmk_output_common,
9423         unicosmk_section_type_flags, unicosmk_unique_section,
9424         unicosmk_add_call_info_word, unicosmk_text_section,
9425         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
9426         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
9427         unicosmk_dex_count, unicosmk_special_name): New.
9428         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
9429         TARGET_ABI_UNICOSMK.
9430         (get_aligned_mem, alpha_expand_unaligned_load,
9431         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
9432         alpha_expand_unaligned_store_words): Support big-endian mode.
9433         (print_operand): Likewise. New format specifier 't'. Use
9434         TARGET_AS_SLASH_BEFORE_SUFFIX.
9435         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
9436         (alpha_pv_save_size): Update with above change.
9437         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
9438         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
9439         Unicos/Mk.
9441         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
9442         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
9443         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
9444         (EXTRA_CONSTRAINT): New constraint 'U'.
9445         (PREDICATE_CODES): Add symbolic_operand.
9447         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
9448         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
9449         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
9450         (integer division and modulus patterns): Split in default and
9451         Unicos/Mk versions.
9452         (*divmodsi_internal, *divmoddi_internal): Disable for
9453         TARGET_ABI_UNICOSMK.
9454         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
9455         little-endian and big-endian versions.
9456         (ext, ins, msk): Likewise.
9457         (extv, extzv, insv): Support big-endian mode.
9458         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
9459         (call_umk, call_value_umk, *call_umk, tablejump_umk,
9460         *tablejump_umk_internal, *call_value_umk): New.
9461         (*movdi_nofix): Add pattern for loading an address into a register on
9462         TARGET_ABI_UNICOSMK.
9463         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
9464         (umk_mismatch_args, arg_home_umk): New.
9465         (various insns): Don't use mov, fmov, nop, fnop and unop.
9466         (realign): Support TARGET_ABI_UNICOSMK.
9468         * config/alpha/unicosmk.h: New file.
9469         * config/alpha/t-unicosmk: New file.
9471         * fixinc/inclhack.def (unicosmk_restrict): New.
9472         * fixinc/fixincl.x: Regenerate.
9474         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
9475         (wchar_t): Check for and define __WCHAR_T__.
9477 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
9479         * combine.c (simplify_shift_const): Treat shifts by the mode
9480         size as undefined.
9482 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9484         * cpphash.h (struct tokenrun): New.
9485         (struct cpp_context): New member bol.
9486         (struct cpp_reader): New members.
9487         (_cpp_init_tokenrun): New.
9488         * cppinit.c (cpp_create_reader): Set up the token runs.
9489         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
9490         (lex_token): New internalised version of _cpp_lex_token.  Don't
9491         handle directives or the multiple include optimization here any
9492         more.  Simply lex a token.
9493         * cpplib.c (run_directive): Clear bol.
9494         (_cpp_pop_buffer): Set bol.
9495         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
9496         arguments.
9498 2001-09-11  Michael Meissner  <meissner@redhat.com>
9500         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
9501         give an error if the user uses -mfp32.
9502         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
9503         default options.
9504         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
9505         floating point register size.
9506         (EXTRA_SPECS): Add CPP_FPR_SPEC.
9508         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
9509         HOST_WIDE_INT_PRINT_DEC to properly print the result of
9510         int_size_in_bytes.
9511         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
9512         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
9514 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
9516         * dbxout.c (dbxout_parms): Fix typo in comment.
9517         * unroll.c (loop_find_equiv_value): Ditto.
9518         * toplev.c (rest_of_compilation): Ditto.
9519         * loop.c (scan_loop): Ditto.
9520         * dwarf2out.c (struct dw_fde_struct): Ditto.
9522 2001-09-10  Zack Weinberg  <zackw@panix.com>
9524         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
9525         copying identifier when we're just going to throw it away.
9526         (parse_identifier_slow): New routine to handle abnormal cases.
9527         (_cpp_lex_token): Update call site.
9529         * hashtable.c (ht_lookup): Don't assume that the string we've
9530         been given is NUL-terminated.
9531         * system.h: #define __builtin_expect(a, b) to (a) if not
9532         GCC >=3.0.
9534 2001-09-10  Michael Meissner  <meissner@redhat.com>
9536         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
9537         binutils, gdb.
9539 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
9541         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
9543 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9545         * builtins.c (c_getstr): Correct thinko in last change and further
9546         cleanup.
9548 2001-09-10  Tim Freeman <tim@fungibole.com>
9550         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
9551         into varray's and register them as roots with the garbage
9552         collector so they are not collected too soon.
9554 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
9556         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
9557         New.
9558         * basic-block.h (flow_obstack, label_value_list,
9559         tail_recursion_label_list): Declare
9560         (tidy_fallthru_edges): Declare.
9561         (expunge_block, last_loop_beg_note): Delete.
9562         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
9563         * cfg.c: New file
9564         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
9565         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
9566         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
9567         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
9568         expunge_block, flow_delete_block, compute_bb_for_insn,
9569         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
9570         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
9571         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
9572         try_redirect_by_replacing_jump, last_loop_beg_note,
9573         redirect_edge_and_branch, redirect_edge_and_branch_force,
9574         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
9575         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
9576         commit_edge_insertions, dump_flow_info, debug_flow_info,
9577         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
9578         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
9579         Move here from flow.c
9580         * cfganal.c: New file.
9581         (forwarder_block_p, can_fallthru, mark_critical_edges,
9582          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
9583          find_unreachable_blocks, create_edge_list, free_edge_list,
9584          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
9585          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
9586          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
9587          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
9588          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
9589          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
9590         Move here from flow.c
9591         * cfgbuild.c: New file
9592         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
9593          make_edges, find_basic_blocks_1, find_basic_blocks,
9594          find_sub_basic_blocks): Move here from flow.c
9595         * cfgcleanup.c: New file.
9596         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
9597          merge_blocks_move_predecessor_nojumps,
9598          merge_blocks_move_successor_nojumps, merge_blocks,
9599          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
9600          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
9601         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
9602         if succeeded.
9603         * cfgloop.c: New file
9604         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
9605          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
9606          flow_loop_exit_edges_find, flow_loop_nodes_find,
9607          flow_loop_pre_header_scan, flow_loop_pre_header_find,
9608          flow_loop_tree_node_add, flow_loops_tree_build,
9609          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
9610          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
9611         Move here from flow.c
9612         * flow.c: Remove everything moved elsewhere
9613         * output.h (cleanup_cfg): Return bool.
9615         * bb-reorder.c (reorder_block_def): Remove 'index'.
9616         (insert_intra_1): Add argument BB, set block for new note.
9617         (make_reorder_chain): Do not depdent on BB indexes.
9618         (make_reorder_chain_1): Do not use BB indexes.
9619         (label_for_bb): Likewise; set BB for new insn.
9620         (emit_jump_to_block_after): Likewise.
9621         (fixup_reorder_chain): Sanity check that all basic blocks
9622         are chained; verify newly created insn chain; remove
9623         undocnitional jump simplifying; Do not use BB indexes;
9624         properly initialize count and frequency information;
9625         dump reordered sequence.
9626         (insert_intra_bb_scope_notes): update call of insert_intra_1.
9627         (insert_inter_bb_scope_notes): Set block for new insn.
9628         (reorder_basic_blocks): Dump flow info before reoredering.
9630 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9632         * alias.c (clear_reg_alias_info): Use K&R format definition.
9633         Avoid unsigned warning.
9634         * builtins.c: Use "unsigned int", not "unsigned".
9635         (target_char_cast): Use host_integerp and tree_low_cst.
9636         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
9637         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
9638         (c_getstr): Likewise.
9639         (std_expand_builtin_va_arg): Use int_size_in_bytes.
9640         (builtin_memcpy_read_str): Avoid unsigned warning.
9641         (expand_builtin_memcpy): Alignments are unsigned.
9642         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
9643         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
9644         * predict.c (expensive_function_p): LIMIT now unsigned.
9645         * resource.c (mark_target_live_regs): Make some vars unsigned.
9646         * sdbout.c: Use "unsigned int", not "unsigned".
9647         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
9648         (sdbout_source_line): Likewise.
9649         (sdbout_record_type_name): Remove "const" for NAME declaration.
9650         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
9652 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
9654         * calls.c (store_one_arg): Expand comment.
9656 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9658         * calls.c (store_one_arg): Make sure that the entire argument is
9659         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
9661 2001-09-09  Richard Henderson  <rth@redhat.com>
9663         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
9665 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
9667         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
9669 2001-09-09  Richard Henderson  <rth@redhat.com>
9671         * config/alpha/alpha.c (alpha_next_sequence_number): New.
9672         (alpha_this_literal_sequence_number): New.
9673         (alpha_this_gpdisp_sequence_number): New.
9674         (some_operand, input_operand): Add HIGH.
9675         (local_symbolic_operand): New.
9676         (alpha_encode_section_info): New.
9677         (alpha_legitimate_address_p): Allow LO_SUM.
9678         (alpha_legitimize_address): Generate HIGH+LO_SUM.
9679         (alpha_expand_mov): Likewise.
9680         (secondary_reload_class): Check memory_operand not general_operand
9681         for FP_REGS test.
9682         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
9683         (alpha_expand_unaligned_store): Likewise.
9684         (alpha_expand_unaligned_load_words): Likewise.
9685         (alpha_expand_unaligned_store_words): Likewise.
9686         (alpha_expand_block_clear): Likewise.
9687         (print_operand): Handle %#, %*, %H.
9688         (print_operand_address): Handle LO_SUM.
9689         (find_lo_sum): New.
9690         (alpha_does_function_need_gp): Use it.
9691         (alpha_expand_block_move): Fix signed compare warnings.
9692         (alpha_sa_mask, alpha_align_insns): Likewise.
9693         * config/alpha/alpha-protos.h: Update.
9694         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
9695         (MASK_EXPLICIT_RELOCS): New.
9696         (TARGET_SWITCHES): Add -mexplicit-relocs.
9697         (EXTRA_CONSTRAINT): Add 'T'.
9698         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
9699         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
9700         (ENCODE_SECTION_INFO): Out line.
9701         (REDO_SECTION_INFO_P): New.
9702         (STRIP_NAME_ENCODING): New.
9703         (ASM_OUTPUT_LABELREF): New.
9704         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
9705         (PREDICATE_CODES): Update.
9706         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
9707         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
9708         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
9709         builtin_setjmp_receiver_er, exception_receiver_1_er,
9710         call_value_osf_1_er): New patterns.
9711         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
9712         (movqi, movhi, movsi): Add explicit $31 base register to lda.
9713         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
9714         (FINAL_PRESCAN_INSN): New.
9716 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
9718         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
9720 2001-09-08  Andreas Jaeger  <aj@suse.de>
9722         * i386.h (TARGET_SWITCHES): Fix description.
9724 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
9726         * rs6000.c (num_insns_constant): Compute number of instructions
9727         more accurately.
9729         * doc/install.texi: Explain AIX exception handling work-around.
9730         Update URL for AIX fixes.
9732 2001-09-07  Jim Wilson  <wilson@redhat.com>
9734         * alias.c (clear_reg_alias_info): New.
9735         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
9736         * rtl.h (clear_reg_alias_info): Declare.
9738 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9740         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
9741         available.
9742         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
9743         (m16m,edivm,emulm): Change declaration to match definition.
9745 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
9747         * reload.c (push_reload): Check for subreg_lowpart_p instead of
9748         SUBREG_BYTE being 0 when determining if the inner part of a subreg
9749         can be reloaded.
9751 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9753         * c-common.c (signed_or_unsigned_type): Handle machine mode types
9754         which have no corresponding C type.
9755         * fold_const.c (target_isinf,target_isnan,target_negative): Update
9756         the representation of 64-bit doubles to work with 64-bit ints.
9758 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
9760         * config/mips/mips.c (override_options): Do not override ISA when ABI
9761         specified if MIPS_CPU_STRING_DEFAULT was specified.
9763 2001-09-07  Richard Henderson  <rth@redhat.com>
9765         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
9766         (express_from_1): Wrap lines.
9767         * rtlanal.c (commutative_operand_precedence): Rename from
9768         operand_preference; export.
9769         * rtl.h: Declare it.
9770         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
9771         (simplify_binary_operation): Invoke simplify_plus_minus on
9772         (CONST (PLUS ...)) as well.
9773         (struct simplify_plus_minus_op_data): New.
9774         (simplify_plus_minus_op_data_cmp): New.
9775         (simplify_plus_minus): Use them.  Avoid infinite recursion with
9776         simplify_binary_operation wrt CONST.
9778 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
9780         * h8300-protos.h (general_operand_dst_push): Remove.
9781         * h8300.c (general_operand_dst_push): Likewise.
9782         * h8300.h (OK_FOR_T): Likewise.
9783         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
9784         * h8300.md (pushqi_h8300): New.
9785         (pushqi_h8300hs): Likewise.
9786         (pushqi): Likewise.
9787         (pushhi_h8300): Likewise.
9788         (pushhi_h8300hs): Likewise.
9789         (pushhi): Likewise.
9791 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9793         * genattrtab.c (attr_printf): First arg is unsigned.
9794         Clean up formatting of callers.
9796 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
9798         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
9799         registers.
9801 2001-09-07  Andreas Jaeger  <aj@suse.de>
9803         * i386.h (TARGET_SWITCHES): Fix descriptions.
9805 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9807         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
9809 2001-09-06  Ira Ruben  <ira@apple.com>
9811         Remove OP_IDENTIFIER.
9812         * tree.def (OP_IDENTIFIER): Remove.
9813         * tree.c (tree_node_kind enum): Remove op_id_kind.
9814         (tree_node_kind_names): Remove "op_identifiers".
9815         (make_node): Remove OP_IDENTIFIER test.
9816         (build_op_identifier): Removed because it isn't being used.
9817         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
9818         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
9820 2001-09-06  Richard Henderson  <rth@redhat.com>
9822         * simplify-rtx.c (simplify_binary_operation): Revert last change.
9824 2001-09-06  Richard Henderson  <rth@redhat.com>
9826         * simplify-rtx.c (simplify_binary_operation): Simplify contents
9827         of CONST.
9829 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9831         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
9832         number used for CR register.
9834 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
9835                           Joern Rennecke (amylaar@cygnus.com)
9837         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
9838         * h8300.c (initial_offset): Handle offset between RP and FP.
9839         (h8300_return_addr_rtx): New function.
9840         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
9841         return register.
9842         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
9843         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9844         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
9845         (CAN_ELIMINATE, REGISTER_NAMES):
9846         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
9848 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
9850         Remove TYPE_NONCOPIED_PARTS.
9851         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
9852         (struct tree_type): Remove noncopied_parts.
9853         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
9854         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
9855         (fixed_type_p): Remove.
9856         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
9857         (expand_expr, MODIFY_EXPR): Likewise.
9858         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
9859         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
9861 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
9863         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
9864         compiler warnings.
9865         (mask64_operand): Likewise.
9866         (includes_rldic_lshift_p): Likewise.
9867         (includes_rldicr_lshift_p): Likewise.
9869 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
9871         * objc/objc-act.c (build_message_expr): If a class method cannot
9872         be found, do not issue a warning if a corresponding instance
9873         method exists in the root class.
9875 2001-09-05  Richard Henderson  <rth@redhat.com>
9877         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
9879 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
9881         * function.c (ggc_mark_struct_function): Mark f->outer.
9882         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
9883         * integrate.c (output_inline_function): ... not here.
9885 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
9887         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
9889         * i386.c (size_cost): New static variable.
9890         (override_function): Use size_cost when -Os is specified.
9892         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
9893         properly;  Use current_function_calls_eh_return.
9894         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
9895         use leave to avoid dependency chain.
9897         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
9898         get BB loop_depth instead of computing it from LOOP notes.
9900         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
9902 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9904         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9905         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9906         UNALIGNED_DOUBLE_INT_ASM_OP): Define
9908 2001-09-05  Jeffrey A Law  (law@cygnus.com)
9909             Jason Merrill (jason@redhat.com)
9911         * stor-layout.c (layout_type): Complain if an array's size can
9912         not be represented in a size_t.
9914         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
9916 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
9918         * gcc.c: (process_command) Add parentheses around assignment
9919         used as truth value.
9921 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
9923         * config/mips/mips.c (save_restore_insns): Don't mark any register
9924         save slots as unchanging if current_function_calls_eh_return.
9926 2001-09-05  Richard Henderson  <rth@redhat.com>
9928         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
9929         * config/alpha/alpha-protos.h: Declare it.
9930         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
9931         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
9932         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
9933         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
9934         (REG_OK_FOR_BASE_P): Select one of the above.
9936 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
9938         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
9939         (crti.o): Prefix name of object file with $(T).
9940         (crtn.o): Likewise.
9942 2001-09-05  David S. Miller  <davem@redhat.com>
9944         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9945         * config/sparc/linux64.h: Likewise.
9947 2001-09-05  Andreas Jaeger  <aj@suse.de>
9949         * doc/invoke.texi (i386 Options): -mwide-multiply is not
9950         available anymore, remove the documentation.
9951         (i386 Options): Fix typo, cleanup index entries.
9953         * prefix.c (concat): Remove, we can use the version from liberty.
9955 2001-09-05  Richard Henderson  <rth@redhat.com>
9957         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
9958         New functions split out of md file expanders.
9959         * config/alpha/alpha-protos.h: Declare them.
9960         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
9962 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9964         * cppmacro.c (funlike_invocation_p): No need to restore context.
9966 2001-09-04  Richard Henderson  <rth@redhat.com>
9968         * reload.c (push_reload): Export.
9969         * reload.h (push_reload): Declare it.
9971         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
9972         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
9973         * config/alpha/alpha.c (alpha_legitimize_address): New.
9974         (alpha_legitimize_reload_address): Likewise.
9975         * config/alpha/alpha-protos.h: Declare them.
9977 2001-09-04  Stan Shebs  <shebs@apple.com>
9979         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
9980         * config/darwin.c (machopic_stub_name): Account for internally
9981         generated lib calls such as memcpy.
9983 2001-09-04  Richard Henderson  <rth@redhat.com>
9985         * unwind.h (_UA_END_OF_STACK): New flag.
9986         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
9988 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
9990         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
9992 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
9994         * config/mips/mips.c (save_restore_insns): Change base_offset to
9995         fp_offset in second call to mips_emit_frame_related_store.
9997 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
9999         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
10000         sometimes be represented as a NOTE of type
10001         NOTE_INSN_DELETED_LABEL.
10002         (Insns): Document NOTE_INSN_DELETED_LABEL.
10004 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
10006         * c-common.h (tree_dump_index): Add more comments.
10007         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
10008         (dump_option_value_info): New struct.
10009         (dump_options): New array.
10010         (dump_switch_p): Parse switch options symbolically.
10011         * doc/invoke.texi (-fdump-ast): Rename to ...
10012         (-fdump-tree): ... here. Document that options are symbolic, and
10013         not all are applicable.
10015 2001-09-04  David S. Miller  <davem@redhat.com>
10017         * config/sparc/sparc.md (define_splits): Kill constraints.
10019         Cleanup redundant and unused insn attributes.
10020         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
10021         binary, and move.  Mark ialu as default.
10022         (commented out define_function_unit "alu"): Kill.
10023         (define_attr "use_clobbered"): Kill.
10024         (whole file): Kill address insn type references.  Replace
10025         all unary/binary/move references with ialu.
10026         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
10027         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
10028         TYPE_IALU.
10030         Simplify length insn attribute and make more judicious use
10031         of insn attribute defaulting.
10032         * config/sparc/sparc.md (all insns with length > one): Mark as
10033         insn type multi if real instructions, else use default if
10034         it is a forced splitter.
10035         (all insns with length == one): Use default insn length.
10036         (all insns of type ialu): Use default insn type.
10038         Fix erroneous insn attribute settings.
10039         (addx): Set insn type to misc.
10040         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
10041         const_umulsidi3_sp64): Set insn type to imul.
10043         Track SFmode vs DFmode insns according to UltraSPARC
10044         scheduling rules.
10045         * config/sparc/sparc.md ("fptype"): New attribute, default
10046         to "single".
10047         (all DFmode single insns): Mark as fptype "double".
10049 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
10051         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
10053 2001-09-03  Richard Henderson  <rth@redhat.com>
10055         * function.h (struct function): Add arg_pointer_save_area_init.
10056         * function.c (expand_function_end): Init arg_pointer_save_area.
10057         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
10058         when called from a nested function.
10060 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
10062         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
10063         is enabled.
10065 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
10067         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
10069 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
10071         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
10072         (emit_push_insn): Use specified padding direction when
10073         STACK_PUSH_CODE is POST_INC.
10075         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
10077 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10079         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
10081 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10083         * cppinit.c (cpp_start_read): Free the imacros list as we
10084         traverse it.  Don't free the chains before returning.
10085         (_cpp_push_next_buffer): Only try pushing buffers if we've
10086         completed -imacros handling.
10088 2001-08-31  Eric Christopher  <echristo@redhat.com>
10090         * gcc.c (handle_braces): Add explaination for abort.
10092 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
10094         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
10095         move adjustment of bitpos instead.
10097 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
10099         * function.c: Remove all_functions.  Make outer_function_chain
10100         static.
10101         (init_function_start): Don't add new function structure to
10102         all_functions.
10103         (find_function_data, push_function_context_to,
10104         pop_function_context_from, put_var_into_stack,
10105         trampoline_address): Update for changed structure element names.
10106         (push_function_context_to): Disentangle.
10107         (free_after_compilation): Also free F.
10108         (expand_dummy_function_end): Don't free cfun here.
10109         (put_var_into_stack): Comment why we can't use find_function_data here.
10110         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
10111         (mark_function_chain): Split into maybe_mark_struct_function and
10112         ggc_mark_struct_function.  Export the latter.
10113         (init_function_once): Mark from cfun and outer_function_chain;
10114         not all_functions.
10116         * function.h (struct function): Kill next_global.  Rename next
10117         to outer.  All users updated to match.
10118         (all_functions, outer_function_chain): Don't declare.
10120         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
10121         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
10122         don't touch f->inlinable, after calling rest_of_compilation.
10124         * tree.h: Forward-declare struct function.  Prototype
10125         ggc_mark_struct_function.
10127 2001-08-31  Kazu Hirata  <kazu@hxi.com>
10129         * config/h8300/h8300.md (*andorhi3): Fix typos.
10131 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10133         * calls.c (emit_library_call_value): Don't use a fixed
10134         argument after VA_CLOSE, i.e. out of scope in traditional C.
10136         * emit-rtl.c (gen_rtvec): Likewise.
10138 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10140         * Makefile.in (c-pragma.o): Depend on output.h.
10141         (reorg.o): Depend on except.h.
10143         * c-pragma.c: Include output.h.
10145         * reorg.c: Include except.h.
10147         * unwind-dw2.c: Call __builtin_alloca, not alloca.
10149 2001-08-31  Richard Henderson  <rth@redhat.com>
10151         * sched-deps.c (add_dependence): Don't elide dependency if the
10152         conditional used by insn is modified in elem.
10154 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
10156         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
10158 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
10160         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
10161         dump_switch_p.
10163 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
10165         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
10166         function.
10167         (stormy16_asm_out_constructor): New function.
10168         (TARGET_ASM_CONSTRUCTOR): Define.
10169         (TARGET_ASM_DESTRUCTOR): Define.
10171 2001-08-31  Andreas Jaeger  <aj@suse.de>
10173         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
10174         * loop.c (add_label_notes): Likewise.
10175         * reload.c (find_reloads): Likewise.
10176         * config/sh/sh.c (machine_dependent_reorg): Likewise.
10178 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
10180         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
10181         code here.  Take _Unwind_{W,Sw}ord*.
10182         (read_encoded_value_with_base): Use them.
10183         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
10184         words.
10185         (extract_cie_info): Simplify read_?leb128 handling.
10186         (execute_stack_op, execute_cfa_program): Likewise.
10187         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
10189 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
10191         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
10192         the frame pointer to pop the stack if convenient.
10194         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
10195         Don't use post-increment before combine.
10196         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
10197         a call-saved register.
10199 2001-08-31  Andreas Jaeger  <aj@suse.de>
10201         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
10202         code was correct.
10204 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
10206         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
10207         not DIV/MOD, of course.
10209 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
10211         * rtl.def: Undo my patch commited 2001-08-27.
10213         * genattrtab.c: Ditto.
10215         * rtl.h: Ditto.
10217         * sched-int.h: Ditto.
10219         * target-def.h: Ditto.
10221         * target.h: Ditto.
10223         * haifa-sched.c: Ditto.
10225         * sched-rgn.c: Ditto.
10227         * sched-vis.c: Ditto.
10229         * Makefile.in: Ditto.
10231         * doc/md.texi: Ditto.
10233         * doc/tm.texi: Ditto.
10235         * doc/contrib.texi: Ditto.
10237         * doc/gcc.texi: Ditto.
10239         * genattrtab.h: Remove it.
10241         * genautomata.c: Remove it.
10243         * genattr.c: Undo my patch and Richard Henderson's patch commited
10244         2001-08-27.
10246 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
10248         * config.gcc (h8300-*-elf*): New case.
10249         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
10250         (SUBTARGET_CPP_SPEC): Define.
10251         (EXTRA_SPECS): Define.
10252         (SUBTARGET_EXTRA_SPECS): Define.
10253         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
10254         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
10256 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
10258         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
10259         (LIB2FUNCS_EXTRA): Define.
10260         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
10261         config/h8300/fixunssfsi.c: New file.
10263 2001-08-30  Kazu Hirata  <kazu@hxi.com>
10265         * config/h8300/h8300.md (zero_extendqihi2): Changes to
10266         define_expand to accommodate target-specific attributes.
10267         (anonymous zero_extendqihi2 patterns): New.
10269 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
10271         * h8300.md (*andorhi3): New pattern.
10273 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
10275         * h8300.c (dosize): Fix test for "sub".
10277 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
10279         * c-typeck.c (pointer_diff): Try to eliminate common term before
10280         doing conversions.
10282 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
10284         * config/arm/arm.c (arm_compute_initial_elimination_offset):
10285         Account for the saves of the FP registers.
10287         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
10288         (TEXT_SECTION_ASM_OP): Define.
10289         (INIT_SECTION_ASM_OP): Define.
10290         (FINI_SECTION_ASM_OP): Define.
10291         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
10292         (RDATA_SECTION_FUNCITON): Provide prototype.
10294 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
10296         * reload1.c (move2add_note_store): Correct typo checking for
10297         argument pushes.
10299 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
10301         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
10302         note should not be considered outside the libcall block.
10304 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10306         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
10308 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10310         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
10312 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10314         * config/h8300/h8300-protos.h: Add a prototype for
10315         emit_logical_op.
10316         * config/h8300/h8300.c (emit_logical_op): New.
10317         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
10318         (andsi3): Likewise.
10319         (iorhi3): Likewise.
10320         (iorsi3): Likewise.
10321         (xorhi3): Likewise.
10322         (xorsi3): Likewise.
10324 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10326         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
10327         comparison with rtx INTVAL.
10328         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
10329         expression.
10330         * pa.h (FUNCTION_ARG_SIZE): Likewise.
10332 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10334         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
10335         comment typos.
10337 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10339         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
10340         (reg n) to (mem (pre_dec (reg n))
10341         (anonymous movsi pattern): Likewise.
10343 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10345         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
10347 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10349         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
10350         several special constants.
10352 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10354         * config/h8300/lib1funcs.asm: Fix comment typos.
10356 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10358         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
10359         Fix format specifier warnings.
10361         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
10362         inet_makeaddr, semctl): Prototype.
10364         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
10365         (save_restore_insns): Use base_offset, not gp_offset.
10367         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
10368         (ASM_OUTPUT_BYTE): Fix format specifier warning.
10370 2001-08-29  Richard Henderson  <rth@redhat.com>
10372         * bb-reorder.c (function_tail_eff_head): New.
10373         (record_effective_endpoints): Set it.
10374         (fixup_reorder_chain): Use it.
10376 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10378         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
10380 2001-08-28  Dale Johannesen  <dalej@apple.com>
10382         * config/darwin.c (machopic_function_base_name): Add const
10383         qualifier to a string.
10384         (darwin_encode_section_info): Ditto.
10386 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10388         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
10389         function definition.
10391 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
10393         * df.h (struct df): Add rts_order variable.
10395         * df.c (df_visit_next_rts): New function.
10396         (df_visit_next): Renamed to df_visit_next_rc
10397         (df_analyse_1): Allocate/compute/free rts_order as well.
10398         (df_rd_global_compute): Use df_visit_next_rc instead of
10399         df_visit_next.
10400         (df_ru_global_compute): Use df_visit_next_rts instead of
10401         df_visit_next.
10403         * flow.c (flow_reverse_top_sort_order_compute): New function.
10405         * basic-block.h: Add prototype.
10407 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
10409         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
10410         blocks, the BB_REACHABLE is now set, rather than aux being
10411         non-NULL. Update the test to reflect this.
10413 2001-08-28  Eric Christopher  <echristo@redhat.com>
10415         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
10416         config/mips/crti.asm: Ditto.
10418 2001-08-28  Eric Christopher <echristo@redhat.com>
10419             Richard Henderson <rth@redhat.com>
10421         * c-pragma.h (add_weak): Move prototype from here...
10422         * output.h (add_weak): ... to here.
10423         * varasm.c (add_weak): Fix typo.
10424         * config/mips/crti.asm: New file.
10425         * config/mips/crtn.asm: Ditto.
10426         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
10427         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
10428         (INVOKE__main): Ditto.
10429         (INIT_SECTION_ASM_OP): New.
10430         (FINI_SECTION_ASM_OP): Ditto.
10431         (STARTFILE_SPEC): Add crti.
10432         (ENDFILE_SPEC): Add crtn.
10433         * config/mips/elf64.h: Same.
10434         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
10435         Remove.
10436         * config/mips/vxworks.h: Ditto.
10437         * config/mips/t-elf: Support crti and crtn.
10439 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10441         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
10442         INSN_LIST.
10444 2001-08-28  Richard Henderson  <rth@redhat.com>
10446         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
10447         (one_cmplbi2 splitter): Remove redundant test.
10449 2001-08-28  Dale Johannesen  <dalej@apple.com>
10451         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
10453 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
10455         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
10457 2001-08-28  Stan Shebs  <shebs@apple.com>
10459         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
10460         (UNALIGNED_SHORT_ASM_OP): Define.
10461         (UNALIGNED_INT_ASM_OP): Define.
10463 2001-08-28  Will Cohen  <wcohen@redhat.com>
10465         * config/rs6000/rs6000.md (store_multiple): Correct RTL
10466         generation for first set.
10468 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
10470         * flow.c (redirect_edge_succ_nodup): Return new edge.
10471         (try_simplify_condjump): Use new edge.
10472         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
10474         * cse.c (cse_basic_block): Skip note instructions.
10476 2001-08-27  Richard Henderson  <rth@redhat.com>
10478         * combine.c (combine_simplify_rtx): Don't reverse condition
10479         if there is no reverse for the condition.
10480         (simplify_comparison): Don't simplify subregs from INT to FP.
10482         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
10483         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
10484         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
10485         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
10486         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
10487         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
10489 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
10491         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
10492         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
10493         (pushqi1): New.
10494         (adddi_dilshr32, adddi_dishl32): Only data register can be
10495         source for mem destination.
10497         * expmed.c (store_bit_field): Ignore adjustment to bitpos
10498         and use bitnum to decide about register move.
10500 2001-08-27  Richard Henderson  <rth@redhat.com>
10502         * genattr.c (main): Emit state_t even when not doing scheduling.
10504 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
10505             Richard Henderson  <rth@redhat.com>
10507         * gcse.c (reg_first_set, reg_last_set): Replace with ...
10508         (reg_avail_info, current_bb): ... these.
10509         (oprs_unchanged_p, record_last_reg_set_info): Use them.
10510         (compute_hash_table): Likewise.
10512 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
10514         * flow.c (verify_flow_info): Use checksums to verify edges.
10516 2001-08-27  Richard Henderson  <rth@redhat.com>
10518         * genautomata.c (expand_automata): Always create a description.
10520 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
10522         * optabs.c (expand_binop): Correctly handle the carry in multiword
10523         add/subtract operations.
10525 2001-08-27  Fred Fish  <fnf@be.com>
10527         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
10528         __SIZE_TYPE__.
10530 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
10532         * reload.c (find_reloads_toplev): Back out this change:
10534         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
10536         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
10537         mem if the address is a mode_dependent_address_p.
10539 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
10541         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
10542         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
10543         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
10544         RTL constructions.
10546         * genattr.c (main): New variable num_insn_reservations.  Increase
10547         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
10548         pipeline hazard recognizer interface.
10550         * genattrtab.h: New file.
10552         * genattrtab.c: Include genattrtab.h.
10553         (attr_printf, check_attr_test, make_internal_attr,
10554         make_numeric_value): Move protypes into genattrtab.h.  Define them
10555         as external.
10556         (num_dfa_decls): New global variable.
10557         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
10558         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
10559         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
10560         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
10562         * genautomata.c: New file.
10564         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
10566         * sched-int.h: (curr_state): Add the external definition for
10567         automaton pipeline interface.
10568         (haifa_insn_data): Add comments for members blockage and units.
10570         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10571         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10572         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10573         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10574         TARGET_SCHED_DFA_POST_CYCLE_INSN,
10575         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10576         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
10577         macros.
10578         (TARGET_SCHED): Use the new macros.
10580         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
10581         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
10582         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
10583         dfa_bubble): New members in gcc_target.sched.
10585         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
10586         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
10587         (insn_queue): Redefine it as pointer to array.
10588         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
10589         INSN_QUEUE_SIZE.
10590         (max_insn_queue_index_macro_value): New variable.
10591         (curr_state, dfa_state_size, ready_try): New varaibles for
10592         automaton interface.
10593         (ready_element, ready_remove, max_issue): New function prototypes
10594         for automaton interface.
10595         (choose_ready): New function prototype.
10596         (insn_unit, blockage_range): Add comments.
10597         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
10598         FUNCTION_UNITS_SIZE == 0.
10599         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
10600         actual_hazard, potential_hazard): Add comments.
10601         (insn_cost): Use cost -1 as undefined value.  Remove
10602         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
10603         pipeline interface.
10604         (ready_element, ready_remove): New functions for automaton
10605         interface.
10606         (schedule_insn): Add new code for automaton pipeline interface.
10607         (queue_to_ready): Add new code for automaton pipeline interface.
10608         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
10609         (debug_ready_list): Print newline when the queue is empty.
10610         (max_issue): New function for automaton pipeline interface.
10611         (choose_ready): New function.
10612         (schedule_block): Add new code for automaton pipeline interface.
10613         Print ready list before scheduling each insn.
10614         (sched_init): Add new code for automaton pipeline interface.
10615         Initiate insn cost by -1.
10616         (sched_finish): Free the current automaton state and finalize
10617         automaton pipeline interface.
10619         * sched-rgn.c: Include target.h.
10620         (init_ready_list, new_ready, debug_dependencies): Add new code for
10621         automaton pipeline interface.
10623         * sched-vis.c: Include target.h.
10624         (get_visual_tbl_length): Add code for automaton interface.
10625         (target_units, print_block_visualization):  Add comments.
10627         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
10628         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
10629         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
10630         (getruntime.o, genautomata.o): New entries.
10631         (genattrtab.o): Add new dependency file genattrtab.h.
10632         (genattrtab): Add new dependencies.  Link it with `libm.a'.
10633         (getruntime.o, hashtab.o): New entries for canadian cross.
10635         * doc/md.texi: Description of automaton based model.
10637         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
10638         Add comments.
10639         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10640         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10641         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10642         TARGET_SCHED_DFA_POST_CYCLE_INSN,
10643         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10644         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10645         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
10646         hook descriptions.
10647         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
10648         MAX_DFA_ISSUE_RATE): New macro descriptions.
10650         * doc/contrib.texi: Add dfa based scheduler contribution.
10652         * doc/gcc.texi: Add more information about genattrtab.
10654 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
10656         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
10657         an RTL basic block.
10659 2001-08-27  Richard Henderson  <rth@redhat.com>
10661         * function.c (expand_function_end): Don't init arg_pointer_save_area.
10662         (get_arg_pointer_save_area): New.  Create an init it here.
10663         (fix_lexical_addr): Use it.
10664         * function.h: Declare it.
10665         * builtins.c (expand_builtin_setjmp_receiver): Use it.
10666         * stmt.c (expand_nl_goto_receiver): Use it.
10668 2001-08-27  Richard Henderson  <rth@redhat.com>
10670         * final.c (final_scan_insn): Don't enter APP_ON mode for
10671         empty asm strings.
10673         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
10674         alignment for assemble_integer for DW_EH_PE_aligned.
10675         * except.c (output_function_exception_table): Likewise.
10677 2001-08-26  Andreas Jaeger  <aj@suse.de>
10679         * c-tree.h: Add prototyp for c_sizeof_nowarn.
10681 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
10683         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
10685 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
10687         * config/rs6000/rs6000.c (mask_operand): Rewrite without
10688         bit-shifting loop.
10689         (mask64_operand): Likewise.
10690         (rldic_operand): Delete.
10691         (includes_lshift64_p): Delete.
10692         (includes_rldic_lshift_p): New function.
10693         (includes_rldicr_lshift_p): New function.
10694         (print_operand): Don't call rldic_operand in case 'W'.
10695         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
10696         (includes_lshift64_p): Remove.
10697         (includes_rldic_lshift_p): Declare.
10698         (includes_rldicr_lshift_p): Declare.
10699         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
10700         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
10701         Replace match_operand rldic_operand predicate with
10702         const_int_operand.  Replace includes_lshift64_p condition with
10703         includes_rldic_lshift_p.
10704         <ashldi3_internal 64 bit rldicr patterns>: New.
10706 2001-08-27  Andreas Jaeger  <aj@suse.de>
10708         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
10709         * errors.c: Likewise.
10710         * final.c: Likewise.
10711         * dwarf2asm.c: Likewise.
10712         * doprint.c (checkit): Likewise.
10713         * diagnostic.c: Likewise.
10714         * collect2.c: Likewise.
10715         * calls.c: Likewise.
10716         * c-semantics.c (build_stmt): Likewise.
10717         * c-format.c (status_warning): Likewise.
10718         * c-errors.c (pedwarn_c99): Likewise.
10719         * builtins.c (validate_arglist): Likewise.
10720         * config/pj/pj.c (pj_printf): Likewise.
10721         * fix-header.c: Likewise.
10722         * gcc.c: Likewise.
10723         * gcov.c (fnotice): Likewise.
10724         * gensupport.c (message_with_line): Likewise.
10725         * mips-tfile.c: Likewise.
10726         * protoize.c (notice): Likewise.
10727         * read-rtl.c (fatal_with_file_and_line): Likewise.
10728         * rtl-error.c: Likewise.
10729         * tradcpp.c: Likewise.
10730         * tree.c: Likewise.
10731         * cp/tree.c (build_min_nt): Likewise.
10732         (build_min): Likewise.
10733         * cp/lex.c: Likewise.
10734         * cp/errfn.c: Likewise.
10735         * cp/rtti.c (create_pseudo_type_info): Likewise.
10737 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
10739         * df.c (df_uses_record): Return after recording all uses
10740         in ASM_OPERANDS.
10742 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
10744         * df.c (df_insn_modify): Realloc the INSN table here, if
10745         necessary, here, too.
10747 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
10749         * config/mips/mips.c (mips_function_value): Handle complex return
10750         values.
10752 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
10754         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
10755         unshared.
10756         * reload.c (make_memloc): Copy result if it is still
10757         reg_equiv_memory_loc[regno] on return.
10758         (subst_reloads) [ENABLE_CHECKING]: Check that none of
10759         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
10760         reg_equiv_mem are modified by the substitutions.
10762 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
10764         * predict.c (expensive_function_p): New.
10765         * rtl.h (expensive_function_p): Declare.
10766         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
10767         (use_fast_prologue_epilogue): New static variable.
10768         (expand_prologue): Set it; emit short prologues if unset.
10769         (expand_epilogue): Likewise.
10771 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
10773         * config.gcc: Add stormy16-*-elf case.
10774         * config/stormy16/stormy-abi: New file.
10775         * config/stormy16/stormy16-lib2.c: New file.
10776         * config/stormy16/stormy16-protos.h: New file.
10777         * config/stormy16/stormy16.c: New file.
10778         * config/stormy16/stormy16.h: New file.
10779         * config/stormy16/stormy16.md: New file.
10780         * config/stormy16/t-stormy16: New file.
10782 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
10784         * i386.h (no-accumulate-outgoing-args): Use proper mask.
10786 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
10788         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
10789         descriptor members are pointer size, not constant 4.
10790         * config/rs6000/rs6000.md (define_splits): Remove more unused
10791         constraints.
10793 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10795         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
10797 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
10799         * cp/rtti.c (VPARAMS): Fix parameter.
10801 2001-08-24  Zack Weinberg  <zackw@panix.com>
10803         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
10804         to zero.
10805         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
10806         to switch.
10807         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
10808         in if controlling use of insv.
10809         (extract_bit_field): Likewise, for extv and extzv.
10811 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
10813         * i386.md (movcc peep2): Fix load of 0.
10815 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10817         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
10818         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
10820 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
10822         * c-pragma.h: Move weak_syms and weak_decls...
10823         * varasm.c: ...here.  Now static.
10824         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
10825         depend on HANDLE_PRAGMA_WEAK.
10827         * c-common.c (c_alignof, c_alignof_expr): Move here...
10828         * c-typeck.c: ...from here.
10829         * c-tree.h, c-common.h: Adjust.
10831 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
10833         * config/ia64/ia64.c (rws_update): If !pred, set write_count
10834         instead of incrementing it.
10836         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
10837         asm ready, don't try to move them all into the same array element.
10839 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
10841         * function.c (thread_prologue_and_epilogue_insns): Avoid
10842         fallthru flag on edge to exit.
10844         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
10846         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
10847         dead edges.
10849 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
10851         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
10852         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
10853         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
10854         Remove prototype.
10856 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
10858         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
10859         replace "GNU CC" with "GCC".
10861 2001-08-23  Richard Henderson  <rth@redhat.com>
10863         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
10864         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
10865         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
10866         Need GR between FR and not GR_AND_FR.
10867         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
10868         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
10869         AR regs before GR regs.
10870         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
10871         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
10872         (REGISTER_MOVE_COST): Update.
10873         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
10875 2001-08-23  Richard Henderson  <rth@redhat.com>
10877         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
10878         a register class.
10880 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
10882         * reload1.c (emit_reload_insns): Don't look for notes
10883         on a NULL store_insn.
10885 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10887         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
10888         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
10889         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
10890         format specifier warnings.
10891         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
10893 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
10895         * config/i386/i386-protos.h: Correct declaration of
10896         i386_pe_asm_named_section.
10898 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10900         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
10901         variable i.
10902         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
10904 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10906         * cpperror.c (print_location): Don't show _Pragma.
10907         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
10908         and file change callback generation here.
10909         (stack_include_file): Update use of cpp_push_buffer.
10910         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
10911         (struct cpp_buffer): Remove type, pfile members.
10912         * cppinit.c (cpp_handle_option): Use free_chain.
10913         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
10914         (skip_escaped_newlines, get_effective_char, lex_percent): Take
10915         a cpp_reader rather than a cpp_buffer.
10916         (skip_escaped_newlines, get_effective_char, skip_block_comment,
10917         skip_line_comment, parse_string, lex_percent, lex_dot,
10918         _cpp_lex_token): Update accordingly.
10919         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
10920         generation here.
10921         (cpp_push_buffer): Update prototype.
10922         (run_directive): Update use of cpp_push_buffer.
10923         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
10924         handle_assertion): Update use of run_directive.
10925         * cpplib.h (enum cpp_buffer_type): Remove.
10926         (cpp_push_buffer): Update prototype.
10927         * fix-header.c (read_scan_file): Update.
10929 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10931         * gcc.c (struct prefix_list): Change prefix to const char *.
10933 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10935         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
10937 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
10939         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
10940         from a new MEM.
10942         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
10943         a squeezable note.
10944         * rtl.h: Adjust.
10945         * ifcvt.c (dead_or_predicable): Adjust.
10946         * loop.c (find_and_verify_loops): Adjust.
10947         * stmt.c (expand_end_case): Adjust.
10948         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
10949         head and end insn pointers in the basic block, not just local copies.
10950         (merge_blocks_move_predecessor_nojumps): Likewise.
10952 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
10954         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
10955         bitmap.h, builtin-types.def, builtins.c, builtins.def,
10956         c-aux-info.c, c-common.c, c-common.def, c-common.h,
10957         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
10958         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
10959         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
10960         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
10961         conditions.h, config.gcc, configure.frag, configure.in,
10962         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
10963         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
10964         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
10965         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
10966         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
10967         emit-rtl.c, errors.c, errors.h, except.c, except.h,
10968         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
10969         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
10970         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
10971         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
10972         gencheck.c, gencodes.c, genconfig.c, genemit.c,
10973         genextract.c, genflags.c, gengenrtl.c, genmultilib,
10974         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
10975         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
10976         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
10977         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
10978         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
10979         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
10980         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
10981         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
10982         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
10983         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
10984         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
10985         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
10986         params.h, predict.c, predict.def, predict.h, prefix.c,
10987         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
10988         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
10989         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
10990         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
10991         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
10992         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
10993         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
10994         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
10995         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
10996         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
10997         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
10998         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
10999         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
11000         xcoffout.h: replace "GNU CC" with "GCC".
11002 2001-08-21  Richard Henderson  <rth@redhat.com>
11004         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
11005         (final_scan_insn): Consider jump tables data even if we have no
11006         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
11007         ADDR_VEC_ALIGN.
11008         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
11009         (ASM_OUTPUT_CASE_END): Remove.
11010         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
11011         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
11012         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
11014 2001-08-21  Richard Henderson  <rth@redhat.com>
11016         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
11017         at barrier insns.  Emit stop bits before barriers.
11019         * flow.c (flow_find_cross_jump): Don't consider unconditional
11020         return insns for commoning.
11022         * final.c (compute_alignments): Fix typo.
11024         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
11025         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
11026         (store_bit_field): Use mode_for_extraction more places.
11027         (extract_bit_field): Likewise.
11029 2001-08-21  Zack Weinberg  <zackw@panix.com>
11031         * caller-save.c: Don't include insn-codes.h.
11032         (reg_save_code, reg_restore_code): Make arrays of int.
11033         All uses updated to match.
11034         (insert_save, insert_restore): No need to initialize "code"
11035         variable upon declaration.
11036         * Makefile.in: update dependencies; fix typo in clean rule.
11038 2001-08-21  Richard Henderson  <rth@redhat.com>
11040         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
11041         (merge_if_block): Handle fallout from same.
11043 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11045         * builtins.c (type_to_class): Fix typo in last change.
11047 2001-08-21  Richard Henderson  <rth@redhat.com>
11049         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
11050         ia64_asm_output_label.
11052         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
11053         copy of gp while the real gp register contains garbage.
11055 2001-08-21  Zack Weinberg  <zackw@panix.com>
11057         * expmed.c (mode_for_extraction): New function.
11058         (store_bit_field, extract_bit_field): Use it.
11059         * expr.h: Prototype it and provide an enum for its first argument.
11061         * combine.c, function.c, recog.c: Don't include insn-codes.h.
11062         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
11063         and digging through the insn_data tables.
11064         * Makefile.in: Update dependencies.
11066 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11068         * cppfiles.c (stack_include_file): line-map.c now handles include
11069         depth.
11070         (handle_missing_handler): Similarly.
11071         (_cpp_execute_include): Similarly.
11072         (_cpp_pop_file_buffer): Similarly.
11073         * cpphash.h (struct cpp_reader): Remove system_include_depth,
11074         buffer_stack_depth and include_depth.
11075         * cpplib.c (do_include_common): line-map.c now handles include depth.
11076         (cpp_push_buffer): Similarly.
11077         (_cpp_pop_buffer): Similarly.
11078         * cppmacro.c (builtin_macro): Update.
11079         * line-map.c (init_line_maps): Set depth.
11080         (add_line_map): Increment "used" earlier.  Update and use the
11081         include depth.
11082         (trace_include): Use the include depth.
11083         * line-map.h (struct line_maps): New member depth.
11085 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11087         * cppfiles.c (stack_include_file): Don't handle -H here.
11088         * cppinit.c (cpp_start_read): Set include tracing after
11089         cpp_post_options and after stacking the main file.
11090         * line-map.c (trace_include): New.
11091         (init_line_maps, add_line_map): Update.
11092         * line-map.h (struct line_maps): New member trace_includes.
11094 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11096         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
11097         * cppfiles.c (stack_include_file): Only stack a file if there
11098         is something to do.  Return a boolean indicating whether a
11099         buffer was stacked or not.
11100         (_cpp_execute_include): Similarly.
11101         (_cpp_read_file): Similarly.
11102         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
11104 2001-08-21  Sam Steingold  <sds@gnu.org>
11106         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
11107         (RECACHE): keep obufp_before_macroname up to date
11109 2001-08-21  Zack Weinberg  <zackw@panix.com>
11111         * stmt.c: Don't include insn-codes.h.
11112         (expand_end_case): Machine specific logic moved to expr.c.
11113         No need to worry about __builtin_classify_type.
11114         (check_for_full_enumeration_handling, emit_case_nodes):
11115         Kill #if 0 blocks.
11117         * builtins.o (expand_builtin_classify_type): Split up so code
11118         can be shared with fold_builtin_classify_type.
11119         (type_to_class, fold_builtin_classify_type): New functions.
11120         (fold_builtins): Handle __builtin_classify_type.
11122         * expr.c (do_tablejump): Now static.
11123         (case_values_threshold, try_casesi, try_tablejump): New;
11124         code mostly from stmt.c (expand_end_case).
11125         (expr.h): Update prototypes.
11127         * Makefile.in (stmt.o): Update dependencies.
11129 2001-08-21  Will Cohen  <wcohen@redhat.com>
11131         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
11132         declaration of variable i.
11133         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
11134         declaration of variable i.
11136 2001-08-21  Richard Henderson  <rth@redhat.com>
11138         * crtstuff.c: Fix thinko last change.  Move list tails to start
11139         of CRT_END section.  Tidy ifdefs.
11140         (__EH_FRAME_BEGIN__): Always static for ELF.
11141         (__do_global_ctors_1): Rename from __frame_dummy.
11142         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
11143         name change; don't hide __EH_FRAME_BEGIN__.
11145 2001-08-21  Richard Henderson  <rth@redhat.com>
11147         * gdbinit.in: Move break on exit after break on fancy_abort.
11149         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
11150         sized types.
11152 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11154         * cpphash.h (_cpp_push_next_buffer): New.
11155         * cppinit.c (do_includes): Remove.
11156         (push_include, free_chain, _cpp_push_next_buffer): New.
11157         (cpp_start_read): Use them to rework command line option handling.
11158         (cpp_handle_option): Combine handling of -include and -imacros.
11159         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
11160         appropriate.  Always insert missing \n at EOF.
11161         * cpplib.c (start_directive): Get the directive position right.
11162         * cppmain.c (cb_file_change): Always print the first line, unless
11163         preprocessed.
11165 2001-08-20  Andreas Jaeger  <aj@suse.de>
11167         * profile.c (compute_branch_probabilities): Remove extra new-line
11168         in error message.
11169         * flow.c (verify_flow_info): Likewise.
11171 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
11173         * basic-block.h (basic_block): Add new field 'flags'.
11174         (BB_REACHABLE): Define.
11175         (expunge_block): Declare.
11176         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
11177         (EXIT_BLOCK_PTR): Ditto.
11178         (expunge_block): Remove static declaration.
11179         (cleanup_cfg): Clear bb->aux on every basic block.
11180         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
11181         computing reachability.
11182         (delete_unreachable_blocks): Delete block b if b->flags has
11183         BB_REACHABLE unset.
11185 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
11187         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
11189 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11191         * sparc.c (sparc_variable_issue): Fix typo in last change.
11193 2001-08-20  Richard Henderson  <rth@redhat.com>
11195         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
11197 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11199         * pa.h (RETURN_IN_MEMORY): Improve comment.
11201 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
11203         * doc/invoke.texi (Profiling options): Clarify the interactions
11204         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
11206 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
11208         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
11209         command.
11211 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11213         * gcc.c (make_relative_prefix): Allocate a sufficiently large
11214         buffer.
11216 2001-08-20  Richard Henderson  <rth@redhat.com>
11218         * final.c (end_final): Fix typo last change.
11220 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11222         * cppinit.c (init_standard_includes): The returned buffer
11223         is already malloc-ed.
11224         * gcc.c (add_prefix): Similarly.
11225         * prefix.c (translate_name): Update to support clear buffer
11226         ownership rules.
11227         (update_path): Similarly.  Be sure to free any newly allocated
11228         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
11229         (tr): New function.
11230         * prefix.h (update_path): Update prototype and document.
11231         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
11232         up and update to new buffer ownership rules.
11233         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
11235 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
11237         * final.c (compute_alignments): New function.
11238         (init_insn_lengths): Do not care label_align.
11239         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
11240         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
11241         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
11242         (shorted_branches): Realloc label_align array; do
11243         not call init_insn_lengths; Do not care about loop alignments.
11244         * output.h (compute_alignments): Declare.
11245         * toplev.c (rest_of_compilation): Call compute_alignments.
11246         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
11248         * predict.c (block_info_def): Add npredecesors, remove nvisited;
11249         change visited to tovisit.
11250         (propagate_freq): Use faster traversing algorithm.
11251         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
11252         to tovisit; reverse meaning.
11254         * predict.c (struct block_info_def): Remove nvisited.
11255         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
11256         (estimate_bb_frequencies): Call mark_dfs_back_edges.
11258 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
11260         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
11261         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
11262         (TARGET_FUSED_MADD): New.
11263         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
11264         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
11265         the multiply-add instructions.
11267 2001-08-19  Richard Henderson  <rth@redhat.com>
11269         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
11270         is aligned to pointer size.
11272 2001-08-19  Richard Henderson  <rth@redhat.com>
11274         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
11275         display markers during final schedule.
11277 2001-08-19  Richard Henderson  <rth@redhat.com>
11279         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
11281 2001-08-19  Richard Henderson  <rth@redhat.com>
11283         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
11284         in the same string.
11285         (ASM_NAME_TO_STRING): Remove.
11286         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
11287         in the same string.  Remove support for expressions.
11289 2001-08-19  Richard Henderson  <rth@redhat.com>
11291         * config/i386/i386.md (tablejump): Make an expander; handle
11292         pic relative addressing here.
11293         (tablejump_1): Rename from tablejump_pic.
11294         (casesi): Remove.
11296 2001-08-19  Richard Henderson  <rth@redhat.com>
11298         * regclass.c (fix_register): Fix typo.
11300 2001-08-18  Richard Henderson  <rth@redhat.com>
11302         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
11303         (struct _Unwind_Context): Expand br_loc to hold it.
11304         (uw_frame_state_for): Handle leaf functions better.
11305         (uw_update_reg_address): Update for br_loc change.
11307 2001-08-18  Richard Henderson  <rth@redhat.com>
11309         * crtstuff.c: Move list heads before code that uses them.
11310         (__JCR_LIST__): Remove initial null.
11311         (frame_dummy, __frame_dummy): Do java registration here ...
11312         (__do_global_ctors_aux): ... not here.
11314         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
11315         (__do_global_dtors_aux): Update to match.
11316         (__JCR_LIST__, __do_jv_register_classes): New.
11317         (.init): Call it.
11318         * config/ia64/crtend.asm (__JCR_END__): New.
11319         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
11320         instead of an indirect LTOFF22 reloc.
11322 2001-08-18  Richard Henderson  <rth@redhat.com>
11324         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
11325         * regclass.c (init_reg_sets_1): Fix typo.
11326         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
11327         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
11328         (ia64_compute_frame_size): Make ar.unat live when in use.
11329         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
11330         for ar.pfs; remove ar.unat handling.
11331         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
11332         call-saved.
11333         (PREDICATE_CODES): Add ar_pfs_reg_operand.
11334         * config/ia64/ia64-protos.h: Update decls.
11335         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
11336         (sibcall_pic): Likewise.
11338 2001-08-18  Richard Henderson  <rth@redhat.com>
11340         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
11341         pred_rel_mutex when searching for insn_group_barrier.
11342         * config/ia64/ia64.md (cycle_display): Combine the expander
11343         and insn patterns.
11345         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
11346         bit before asm as needed.
11348 2001-08-18  Richard Henderson  <rth@redhat.com>
11350         * timevar.def (TV_MACH_DEP): New.
11351         * toplev.c (rest_of_compilation): Use it.
11352         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
11354 2001-08-18  Zack Weinberg  <zackw@panix.com>
11356         * unwind-dw2.c (execute_stack_op): Add default aborts to
11357         the inner switches to prevent warnings.
11359 2001-08-18  Richard Henderson  <rth@redhat.com>
11361         * timevar.h (struct timevar_time_def): Change element type to float.
11362         (ticks_to_msec, clocks_to_msec): Likewise.
11363         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
11364         (get_time): Likewise.
11365         (timevar_print): Adjust zero check and printing to match.
11367 2001-08-18  Zack Weinberg  <zackw@panix.com>
11369         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
11370         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
11371         Eliminate overfull or underfull hboxes.
11373 2001-08-18  Zack Weinberg  <zackw@panix.com>
11375         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
11377 2001-08-18  Zack Weinberg  <zackw@panix.com>
11379         * haifa-sched.c: Convert to target hooks.  Macros replaced
11380         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
11381         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
11382         MD_SCHED_FINISH, and HAVE_cycle_display.
11383         * target-def.h (TARGET_SCHED_ADJUST_COST,
11384         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
11385         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
11386         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
11387         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
11388         New hook #defines to be overridden.
11389         (TARGET_SCHED): Bring them all together.
11390         (TARGET_INITIALIZER): Update.
11391         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
11392         instead of 'struct rtx_def *' throughout.
11393         (struct sched): New set of hooks for the scheduler.
11394         * Makefile.in (haifa-sched.o): Depend on target.h.
11395         * doc/tm.texi: Document the new scheduler hooks, together in
11396         their own section, instead of scattered around.
11397         Fix a bunch of underfull/overfull hboxes.
11399         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
11400         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
11401         sparc.h: Don't define any of the old scheduler macros.
11403         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
11404         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
11405         sparc.c: Create hook functions from code extracted from
11406         corresponding target header, or make existing hooks static, as
11407         appropriate.  Set the appropriate entries in targetm.
11409         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
11410         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
11411         rs6000-protos.h, s390-protos.h, sparc-protos.h:
11412         Remove prototypes for functions which are now static.
11414         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
11415         related gunk; the Haifa scheduler is now the only choice.
11417 2001-08-18  Zack Weinberg  <zackw@panix.com>
11419         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
11420         * genopinit.c: Put floating point divide insns in sdiv_optab.
11421         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
11422         * config/gofast.h, config/c4x/c4x.h,
11423         config/ia64/hpux_longdouble.h, config/mips/mips.h,
11424         config/pa/long_double.h, config/rs6000/sysv4.h,
11425         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
11426         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
11427         (init_optabs): Use init_optabv for overflow-trapping optabs.
11428         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
11429         cmp_optab RTX codes so have_insn_for can find them.
11431         * optabs.c (expand_simple_binop, expand_simple_unop,
11432         have_insn_for, gen_sub3_insn): New interfaces.
11433         * expr.h: Prototype new functions.
11434         (enum optab_methods): Move here from optabs.h.
11436         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
11437         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
11438         Use new functions instead of working directly with optabs.
11439         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
11440         unroll.c: Don't include optabs.h.
11441         * caller-save.c, combine.c, function.c, stmt.c: Just include
11442         insn-codes.h, not optabs.h.
11443         * Makefile.in: Update dependencies.
11445         * combine.c (make_compound_operation, simplify_comparison):
11446         Fix typos testing for this or that instruction.
11448 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
11450         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
11451         generating libgcc.a.
11453 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11455         * except.c (TYPE_HASH): Delete.
11457         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
11458         HOST_WIDE_INT.
11460         * tree.c (TYPE_HASH): Delete.
11462         * tree.h (TYPE_HASH): Define.
11464 2001-08-18  Graham Stott  <grahams@redhat.com>
11466         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
11467         define_split.
11468         (adddi3_internal_2+2): Likewise.
11469         (eh_set_lr_di+1): Likewise.
11471 2001-08-17  Richard Henderson  <rth@redhat.com>
11473         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
11474         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
11475         * dwarf2asm.c: ... here.
11476         * dwarfout.c: Remove them.
11478         * varasm.c (assemble_integer): Add align parameter.
11479         (assemble_real, output_constant, output_constructor): Likewise.
11480         * output.h: Update decls.
11481         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
11482         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
11483         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
11484         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
11485         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
11486         Update all callers.
11488         * final.c (end_final): Abort profile block generation if we
11489         haven't layed it out properly.
11490         * output.h (assemble_eh_integer): Remove stale decl.
11491         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
11492         (min_align): New.
11493         (assemble_integer): Handle unaligned data.
11494         (assemble_real): Abort on unaligned data.
11495         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
11496         anything useful.
11497         (default_dtor_section_asm_out_destructor): Use assemble_align.
11498         (default_named_section_asm_out_constructor): Likewise.
11499         (default_ctor_section_asm_out_constructor): Likewise.
11500         * config/darwin.c (machopic_asm_out_constructor): Likewise.
11501         (machopic_asm_out_destructor): Likewise.
11502         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
11503         (nextstep_asm_out_destructor): Likewise.
11504         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
11505         (vms_asm_out_destructor): Likewise.
11507 2001-08-17  Richard Henderson  <rth@redhat.com>
11509         * config/mips/iris6.h (TARGET_IRIX6): New.
11510         (current_section_name, current_section_flags): New.
11511         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
11512         (MAX_OFILE_ALIGNMENT): New.
11513         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
11514         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
11515         (copy_file_data): Split out from
11516         (mips_asm_file_end): ... here.
11517         (mips_asm_file_start): Remove extra .section directive.  Use
11518         tmpfile instead of mips_make_temp_file.
11519         (mips_unique_section): Use const char * as needed for warnings.
11520         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
11521         re-add align parameter.
11522         (iris6_asm_named_section): New.
11523         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
11524         (iris6_asm_output_align, iris6_section_align_1): New.
11525         (iris6_asm_file_start, iris6_asm_file_end): New.
11526         * config/mips/mips-protos.h: Update decls.
11528 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
11530         * doc/install.texi (Install GCC): Add links to build status pages.
11531         (Specific): Ditto.
11532         (Final install): Ditto; request updates for specific info
11534 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11536         * cpperror.c (print_location):  Don't take a file name; use the
11537         line map instead.
11538         (_cpp_begin_message): Similarly.
11539         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
11540         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
11541         (cpp_pedwarn_with_file_and_line): Remove.
11542         * cppfiles.c (stack_include_file): Update; set filename to stdin
11543         here when appropriate.
11544         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
11545         (_cpp_begin_message): Don't take a file name.
11546         * cppinit.c: Add comment.
11547         * cpplex.c: Fix end-of-directive indicator.
11548         * cpplib.c: Don't include intl.h.
11549         (run_directive, do_diagnostic): Update.
11550         (do_line): Update to not use nominal_fname.
11551         (cpp_push_buffer): Don't take a filename.
11552         * cpplib.h (struct ht): Remove.
11553         (cpp_push_buffer): Don't take a filename.
11554         (cpp_pedwarn_with_file_and_line): Remove.
11555         * cppmacro.c (struct cpp_macro): Remove file.
11556         (builtin_macro): Update.
11557         (_cpp_create_definition): Update.
11558         * cppmain.c: Correct comment.
11559         * fix-header.c (read_scan_file): Update.
11561 2001-08-17  Kazu Hirata  <kazu@hxi.com>
11563         * sbitmap.c: Fix comment formatting.
11564         * sched-deps.c: Likewise.
11565         * sibcall.c: Likewise.
11566         * simplify-rtx.c: Likewise.
11567         * ssa.c: Likewise.
11568         * ssa-ccp.c: Likewise.
11569         * stor-layout.c: Likewise.
11570         * timevar.c: Likewise.
11571         * toplev.c: Likewise.
11572         * unwind-dw2.c: Likewise.
11573         * unwind-dw2-fde.c: Likewise.
11574         * varasm.c: Likewise.
11576 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11578         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
11579         or larger than an integer in memory.
11581 2001-08-17  Zack Weinberg  <zackw@panix.com>
11583         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
11584         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
11585         * rtl.h: Don't forward-declare union tree_node here.  Don't
11586         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
11587         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
11588         and tree respectively.
11589         * tree.h: Don't forward-declare struct rtx_def here.  Don't
11590         typedef tree here.  Change all uses of struct rtx_def *,
11591         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
11592         and tree respectively.
11594 2001-08-17  Richard Henderson  <rth@redhat.com>
11596         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
11597         config/mips/openbsd.h: Fix typos last change.
11599 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11601         * doc/invoke.texi (Optimize Options): The default for
11602         -finline-limit is 600.
11604 2001-08-17  Richard Henderson  <rth@redhat.com>
11606         * varasm.c (text_section): Allow TEXT_SECTION to override the
11607         printing of TEXT_SECTION_ASM_OP.
11608         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
11609         (DATA_SECTION, BSS_SECTION): Remove.
11610         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
11611         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
11612         Rename from s/_NAME//.
11613         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
11614         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
11615         (TEXT_SECTION): ... here.  New.
11616         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
11617         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
11618         * config/mips/openbsd.h: Likewise.
11619         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
11620         (mips_asm_file_end): Likewise test.
11621         (mips_output_function_epilogue): Likewise.  Switch back to data
11622         section after emitting the function.
11624         * doc/tm.texi (Sections): Document TEXT_SECTION.
11626 2001-08-17  Richard Henderson  <rth@redhat.com>
11628         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
11629         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
11631 2001-08-17  Richard Henderson  <rth@redhat.com>
11633         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
11634         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
11635         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
11636         Add aligned attribute.
11638 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
11640         * config/sh/sh.md: Add modes to unspecs in first insn to match
11641         those in the second.
11643         * Makefile.in: Fix collect2 copy for Cygwin.
11645 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
11647         Install the proper patch.
11648         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
11649         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
11650         (expand_function_start): Likewise.
11651         * stmt.c (expand_decl): Likewise.
11652         * varasm.c (make_decl_rtx): Likewise.
11654 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
11656         * final.c: Undo my previous accidental checkin.
11657         * output.h: Likewise.
11658         * tm.texi: Likewise.
11660 2001-08-16  Richard Henderson  <rth@redhat.com>
11662         * varasm.c (named_section_flags): Remove align parameter.
11663         * varasm.c, dwarf2out.c: Update all callers.
11664         * output.h: Update prototypes.
11666         * target.h (target.asm_out.named_section): Remove align parameter.
11667         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
11668         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
11669         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
11670         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
11671         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
11673         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
11674         (get_named_section_flags, set_named_section_flags): New.
11675         (named_section_flags): Use them.
11676         (named_section): Do decl vs section flags check here...
11677         (default_section_type_flags): ... not here.
11678         (init_varasm_once): Create in_named_htab.
11679         (resolve_unique_section): Mark reloc unused.
11681 2001-08-16  Richard Henderson  <rth@redhat.com>
11683         * varasm.c (force_const_mem): Keep pool alignment in bits.
11684         (output_constant_pool): Use assemble_align.
11686 2001-08-16  Zack Weinberg  <zackw@panix.com>
11688         * doc/tm.texi: Remove extra @table command.
11690 2001-08-16  Zack Weinberg  <zackw@panix.com>
11692         * final.c (shorten_branches): Clear the end of the label_align
11693         array only if we made it larger.  Break up messy expressions
11694         for clarity.
11696         * diagnostic.c (internal_error): Check for error recursion
11697         before doing ICE suppression.
11699         * timevar.c: Timing variables now count in milliseconds.
11700         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
11701         (get_time): Not here.
11702         (timevar_print): Don't print any timer whose user, cpu, and
11703         wall times are all zero as displayed.
11704         * timevar.h: Update comment aboout units.  Make timevar
11705         counters unsigned.
11707 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
11709         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
11710         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
11711         (expand_function_start): Likewise.
11712         * stmt.c (expand_decl): Likewise.
11713         * varasm.c (make_decl_rtx): Likewise.
11715 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
11717         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
11718         (finalize_record_size): Don't set TYPE_USER_ALIGN.
11720 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11722         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
11723         variables.
11725 2001-08-16  Andreas Jaeger  <aj@suse.de>
11727         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
11728         prototype.
11730 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
11732         * rtl.h (only_sets_cc0_p): New prototype.
11733         * jump.c (sets_cc0_p): Handle INSN.
11734         (only_sets_cc0_p): New function.
11735         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
11736         (tidy_fallthru_edge): Likewise.
11737         * integrate.c (copy_insn_list): Likewise.
11738         * unroll.c (unroll_loop): Likewise.
11739         (copy_loop_body): Likewise.
11741 2001-08-15  Jason Eckhardt  <jle@redhat.com>
11743         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
11745 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
11747         * predict.c (struct block_info_def): Remove nvisited.
11748         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
11749         (estimate_bb_frequencies): Call mark_dfs_back_edges.
11751         * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
11752         (ix86_adjust_cost): Teach scheduler that latency to load operand can
11753         be masked.
11755 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
11757         * predict.def: Update hitrates.
11759 2001-08-15  Richard Henderson  <rth@redhat.com>
11761         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
11763 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
11765         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
11766         note from its associated jump.
11768 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
11770         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
11771         also on 64-bit s390x targets.
11773 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
11775         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
11776         function.
11777         (arm_expand_prologue): Handled nested functions which take a
11778         variable argument list.
11779         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
11780         macro with an invocation of
11781         arm_compute_initial_elimination_offset.
11782         * config/arm/arm-protos.h: Prototype
11783         arm_compute_initial_elimination_offset.
11785 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11787         * doc/install.texi (Specific, avr): Fix markup.
11788         (Specific, c4x): Ditto.
11790 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11792         * predict.c (dump_prediction): Change `bool' parameter to `int'.
11794 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
11796         * Makefile.in (OBJS): Add rtl-error.o
11797         (rtl-error.o): New rule.
11798         (diagnostic.o): Adjust dependency.
11799         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
11800         error_for_asm, _fatal_insn, _fatal_insn_not_found,
11801         warning_for_asm): Move to...
11802         rtl-error.c: ...here.  New file.
11804 2001-08-14  Richard Henderson  <rth@redhat.com>
11806         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
11807         if USING_SJLJ_EXCEPTIONS.
11809 2001-08-14  Steve Ellcey <sje@cup.hp.com>
11811         * tlink.c (scan_linker_output): Check string for unsatisfied in
11812         addition to undefined and unresolved.
11814 2001-08-14  Graham Stott  <grahams@redhat.com>
11816         * libgcc2.c (*): Replace EH_FRAME_SECTION with
11817         EH_FRAME_SECTION_NAME.
11819 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
11821         * genattrtab.c (simplify_test_exp_in_temp): New function.
11822         (simplify_test_exp): Avoid explicit use of temporary obstack.
11823         (simplify_cond, insert_right_side, evaluate_eq_attr,
11824         simplify_and_tree, simplify_or_tree, eliminate_known_true):
11825         Use simplify_test_exp_in_temp.
11826         (optimize_attrs): Iterate until expression stabilizes.
11828 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
11830         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
11831         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
11833 2001-08-13  Richard Henderson  <rth@redhat.com>
11835         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
11836         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
11837         * config/arm/conix-elf.h: Likewise.
11839 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
11841         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
11842         in gcc.c.
11843         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11845         * gcse.c (hash_scan_set): Expressions that are set as part of
11846         jump instructions are not available.
11848 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
11850         * config/s390/s390.c (print_operand, s390_function_prologue,
11851         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
11853 2001-08-13  Richard Henderson  <rth@redhat.com>
11855         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
11856         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
11857         * doc/tm.texi (Exception Region Output): Document it.
11859 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
11861         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
11862         DWARF2 instead of stabs by default.
11864 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
11866         * config/rs6000/rs6000.c: Include optabs.h.
11868 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
11870         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
11871         save/restore routines.
11872         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
11874 2001-08-13  Andreas Jaeger  <aj@suse.de>
11876         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
11877         the english is correct.
11879 2001-08-13  Zack Weinberg  <zackw@panix.com>
11881         * expr.h: Split out optab- and libfunc-related code to...
11882         * optabs.h, libfuncs.h: ... these new headers.
11884         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
11885         (OPTABS_H): New.
11886         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
11887         dependencies.
11888         * mkconfig.sh: Don't include insn-codes.h from config.h.
11890         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
11891         enum insn_code is available.  Move reload_in_optab and
11892         reload_out_optab array declarations to optabs.h.
11893         * regmove.c (gen_add3_insn): Move to optabs.c, export from
11894         there, prototype in expr.h.
11895         * gencodes.c: Cleanup: zap global variables, don't use
11896         printf where puts will do, don't bother defining MAX_INSN_CODE
11897         which nothing uses, let CODE_FOR_nothing get its value implicitly.
11899         * genemit.c, genopinit.c: Include optabs.h in generated file.
11900         * genoutput.c: Include insn-codes.h in generated file.
11901         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
11902         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
11903         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
11904         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
11905         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
11906         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
11907         Include optabs.h.
11908         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
11909         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
11910         config/m88k/m88k.c, config/sparc/sparc.c:
11911         Include libfuncs.h.
11912         * reload.c: Include expr.h and optabs.h before reload.h.
11913         * config/alpha/alpha.c: Include tree.h before reload.h.
11914         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
11915         and reload.h in that order.
11916         * config/sparc/sparc.c: Include debug.h.
11917         * recog.c: Include insn-codes.h.
11919 2001-08-13  Andreas Jaeger  <aj@suse.de>
11921         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
11922         s390*linux.
11924 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
11926         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
11927         * gcc.c (init_spec): Fix typo in comment.
11928         * varasm.c (data_section): Fix typo in comment.
11930 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
11932         * predict.c (dump_prediction): New argument "USED".
11933         (combine_predictions_for_insn): Determine the used heuristics,
11934         output the case no heuristic applied.
11935         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
11937 2001-08-13  Andreas Jaeger  <aj@suse.de>
11939         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
11940         register %rip.
11942 2001-08-13  Kazu Hirata  <kazu@hxi.com>
11944         * jump.c: Fix formatting.
11946 2001-08-13  Kazu Hirata  <kazu@hxi.com>
11948         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
11949         length.
11951 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
11953         * loop.c (check_dbra_loop): Use condjump_label to compute
11954         jump_label.
11956         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
11957         to better document the files they're in.
11959 2001-08-12  Zack Weinberg  <zackw@panix.com>
11961         * recog.h (struct insn_operand_data): Shrink 'mode' field
11962         to 16 bits.
11964 2001-08-12  Kazu Hirata  <kazu@hxi.com>
11966         * gcc.c: Fix comment formatting.
11967         * gccspec.c: Likewise.
11968         * gcov.c: Likewise.
11969         * gcse.c: Likewise.
11970         * genemit.c: Likewise.
11971         * gengenrtl.c: Likewise.
11972         * genrecog.c: Likewise.
11973         * gensupport.c: Likewise.
11974         * ggc-page.c: Likewise.
11975         * global.c: Likewise.
11976         * graph.c: Likewise.
11977         * ifcvt.c: Likewise.
11978         * integrate.c: Likewise.
11979         * lcm.c: Likewise.
11980         * libgcc2.c: Likewise.
11981         * loop.c: Likewise.
11982         * mbchar.c: Likewise.
11983         * optabs.c: Likewise.
11984         * predict.c: Likewise.
11985         * prefix.c: Likewise.
11986         * profile.c: Likewise.
11987         * protoize.c: Likewise.
11988         * real.c: Likewise.
11989         * recog.c: Likewise.
11990         * regclass.c: Likewise.
11991         * regmove.c: Likewise.
11992         * reg-stack.c: Likewise.
11993         * reload1.c: Likewise.
11994         * resource.c: Likewise.
11995         * rtlanal.c: Likewise.
11996         * rtl.c: Likewise.
11998 2001-08-12  Kazu Hirata  <kazu@hxi.com>
12000         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
12001         a tree representing a constant is passed to the macro.
12003 2001-08-12  Richard Henderson  <rth@redhat.com>
12005         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
12006         (rs6000_elf_asm_out_destructor): New.
12007         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
12008         (DTORS_SECTION_ASM_OP): Remove.
12009         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12010         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
12012 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
12014         Revert:
12015         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12016         * gcc.c (set_collect_gcc_options): New function, split out from
12017         main.
12018         Ignore elided switches.
12019         (do_spec_1): Invoke before executing command.
12020         (set_input): Export.
12021         Move declaration ...
12022         * gcc.h (set_input): ... here.
12023         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
12024         file.
12026 2001-08-12  Richard Henderson  <rth@redhat.com>
12028         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
12029         thinko wrt TARGET_RELOCATABLE.
12031 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
12033         * fix-header.c (cb_file_change): Update prototype.
12035 2001-08-11  Zack Weinberg  <zackw@panix.com>
12037         * toplev.c (set_float_handler): Make static.
12038         * toplev.h: Don't prototype set_float_handler.
12040         * simplify-rtx.c: Don't include setjmp.h.
12041         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
12042         New functions.
12043         (simplify_unary_operation, simplify_binary_operation): Use them,
12044         via do_float_handler.
12046         * fold-const.c: Don't include setjmp.h.
12047         (exact_real_inverse_1): New function.
12048         (exact_real_inverse): Use it, via do_float_handler.
12050         * varasm.c: Don't include setjmp.h.
12051         (assemble_real_1): New function.
12052         (assemble_real): Use it, via do_float_handler.
12053         Call internal_error if we get a trap here.
12055         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
12056         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
12058 2001-08-11  Zack Weinberg  <zackw@panix.com>
12060         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
12061         STACK_BOUNDARY if not already defined.
12063         * calls.c, function.c, reload1.c, explow.c: Don't default
12064         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
12065         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
12067         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
12068         to run-time test.
12070         * doc/tm.texi: Document that STACK_BOUNDARY is required;
12071         clarify difference between it and PREFERRED_STACK_BOUNDARY.
12073 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
12075         * cppmacro.c (enter_macro_context): Push macro expansions even
12076         if empty.
12078 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12080         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
12081         (rs6000_elf_section_type_flags): Actually return a value.
12083 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
12085         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
12086         Clean up code: add missing comments and prototypes, fix warnings,
12087         remove obsolete code, fix spacing to conform to coding style.
12089 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
12091         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
12092         and TARGET_ASM_CLOSE_PAREN.
12093         (regclass_map): CC register belongs to class NO_REGS.
12094         (legitimize_pic_address): Don't generate unnecessary moves
12095         (to avoid confusing loop optimization).
12096         (check_and_change_labels): Replace jump_long by indirect_jump.
12097         (s390_final_chunkify): Don't start a new literal pool on section
12098         switch in 64-bit code.
12099         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
12101         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
12102         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
12103         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
12104         modes correctly.
12105         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
12106         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
12107         (CONST_COSTS): Fixed incorrect costs.
12109         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
12110         Use emit_jump instead of emit_jump_insn (gen_jump).
12111         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
12112         (to avoid confusing flow analysis).
12113         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
12114         (casesi, casesi_jump): New.
12115         (jump_long): Removed.  Functionality merged into indirect_jump.
12116         (indirect_jump): Accept address_operand, not just register_operand.
12117         (cjump_long, icjump_long): Use same logic as indirect_jump.
12118         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
12119         Fixed broken setjmp/longjmp handling.
12120         (do_builtin_setjmp_setup): Removed.
12122         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
12123         broken GNU as versions that don't accept .quad with large
12124         negative values.  Use hexadecimal output instead.
12125         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
12126         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
12127         FUNCTION_EPILOGUE): Removed.  Now in targetm.
12129         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
12131         * config/s390/fixdfdi.h: Add missing copyright statement.
12132         Fix type conflicts on 64-bit.  Add missing SFmode routines.
12134         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
12135         email address.
12137 2001-08-11  Richard Henderson  <rth@redhat.com>
12139         * rtl.h (REG_EH_RETHROW): Remove.
12140         * rtl.c (reg_note_name): Update.
12141         * combine.c (distribute_notes): Don't check for it.
12143 2001-08-11  Richard Henderson  <rth@redhat.com>
12145         * combine.c (distribute_notes): Place REG_SETJMP.
12147 2001-08-11  Richard Henderson  <rth@redhat.com>
12149         * doc/extend.texi (Arrays and pointers implementation): Discourage
12150         relying on sign-extension of pointers.
12152 2001-08-11  H.J. Lu <hjl@gnu.org>
12154         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
12155         in_dtors.
12156         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
12157         RDATA_SECTION_ASM_OP.
12159 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12161         * doc/install.texi (Specific, c4x): Fix cross-reference to the
12162         main manual to work both for info and HTML versions.
12164 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
12165             Matt Kraai <kraai@alumni.carnegiemellon.edu>
12167         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
12168         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
12169         (struct cpp_pool): New member first.
12170         * cppinit.c (append_include_chain): Plug memory leaks.
12171         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
12172         Allocate pragma structures from the (aligned) macro pool to
12173         avoid leaking memory.
12174         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
12175         so we don't leak memory.
12176         * hashtable.c (ht_destroy): New.
12177         * hashtable.h (ht_destroy): New.
12179 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
12180             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12182         * c-lex.c (map): Make const.
12183         (cb_file_change): Update for callback passing a line map.
12184         Don't assume we have a previous map.  Remove sanity check
12185         about popping too many files.
12186         * cpperror.c (print_location): Make map const.
12187         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
12188         (cpp_make_system_header): Similarly.
12189         (search_from): Similarly.
12190         (_cpp_execute_include): Don't remember where we came from.
12191         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
12192         (struct cpp_reader): Make map const.
12193         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
12194         * cpplib.c (do_line): Update; line maps now hold sysp.
12195         (cpp_push_buffer): Similarly.
12196         (_cpp_do_file_change): Similarly; callback with map instead.
12197         (cpp_get_line_maps): Constify return value.
12198         (_cpp_pop_buffer): Update.
12199         * cpplib.h (struct cpp_file_change): Remove.
12200         (struct cpp_callbacks): Update.
12201         (cpp_get_line_maps): Constify return value.
12202         * cppmacro.c (_cpp_create_definition): Update.
12203         * cppmain.c (struct printer): Constify map.
12204         (maybe_print_line): Similarly.
12205         (print_line): Similarly.  Deduce flags 1 and 2 here.
12206         (cb_file_change): Update.
12207         * line-map.c (free_line_maps): Warn regardless.
12208         (add_line_map): Return pointer to const.  When passed NULL to_file
12209         with LC_LEAVE, use the obvious values for the return point so the
12210         caller doesn't have to figure them out.
12211         (lookup_line): Return pointer to const.
12212         (print_containing_files): Take pointer to const.
12213         * line-map.h (struct line_map): New members reason, sysp.
12214         (add_line_map): Return pointer to const.
12215         (lookup_line): Similarly.
12216         (print_containing_files): Take pointer to const.
12218 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
12219             Richard Henderson  <rth@redhat.com>
12221         * regmove.c (regmove_optimize): Avoid setting a register twice in
12222         a parallel set.
12224 2001-08-10  Richard Henderson  <rth@redhat.com>
12226         * doc/extend.texi (Arrays and pointers implementation): Document
12227         behavior of pointer/integer conversion.
12229 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
12231         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
12233 2001-08-10  Richard Henderson  <rth@redhat.com>
12235         * doc/extend.texi (C Implementation): New chapter.
12236         * doc/gcc.texi (Top): Link it in.
12238 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
12240         * doc/install.texi (Specific): Fix CVS merge botch.
12242 2001-08-10  Richard Henderson  <rth@redhat.com>
12244         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
12245         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
12247 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
12249         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
12250         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
12251         this macro is now required.
12253         * cselib.c (cselib_process_insn), flow.c (propagate_block),
12254         loop.c (find_and_verify_loops), reload.c (reload): Check
12255         for rtx code of CALL_INSN, not CALL, when deciding if we
12256         need to check for REG_SETJMP note.
12258         * gcse.c (compute_hash_table, compute_store_table): Update
12259         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
12260         logic.
12262         * config/avr/avr.c: Fix typo.
12263         * config/convex/convex.c (expand_movstr): Use adjust_address.
12264         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
12265         variable.
12266         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
12267         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
12268         Fix typo.
12269         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
12270         Do define STACK_BOUNDARY.
12271         * config/i370/i370.c: Include expr.h.
12272         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
12273         config/pa/som.h, config/v850/v850.h: Take in_ctors and
12274         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
12275         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
12276         * config/m88k/m88k.c: Include c-tree.h after expr.h.
12277         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
12278         * config/romp/romp.c: Include expr.h after tree.h.
12279         Include toplev.h.
12280         (output_fpop): Use xmalloc, not oballoc.
12281         * config/we32k/we32k.c: Include expr.h.
12283 2001-08-10  Kazu Hirata  <kazu@hxi.com>
12285         * config/h8300/h8300.h: Fix formatting.
12287 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
12289         * c-common.h (RETURN_NULLIFIED_P): Lose.
12290         * c-semantics.c (genrtl_return_stmt): Don't check it.
12292 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
12294         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
12295         (mips_annotate_frame_insn): New function.
12296         (mips_emit_frame_related_store): New function.
12297         (save_restore_insns): Don't mark instructions that set up the base
12298         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
12299         the store instructions instead.
12300         (mips_expand_prologue): If the stack size is moved into a temporary
12301         register, do not mark that move as frame-related.  Add a
12302         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
12304 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
12306         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
12307         stack slot as unchanging if current_function_calls_eh_return.
12309 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
12311         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
12312         access the second half of the TFmode scratch operand.
12314 2001-08-10  Anthony Green  <green@redhat.com>
12316         * java/class.c (emit_register_classes): Conditionalize code on
12317         JCR_SECTION_NAME.
12319 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12321         * doc/install.texi (Specific, avr): Fix cross-reference to the
12322         main manual to work both for info and HTML versions.
12324 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12326         * stmt.c (expand_null_return_1): Remove code to generate simple returns
12327         and "use_goto" argument.
12328         (expand_null_return, expand_value_return): Update all callers.
12329         * function.c (expand_function_end): Remove code to generate simple
12330         return.
12331         * config/vax/vax.md (epilogue): New expander for function return.
12332         * doc/md.texi (epilogue): Remove "if defined".
12334 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
12336         * Makefile.in: Partially revert my previous change:
12337         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
12338         of the hashtab.o and safe-ctype.o rules.
12340 2001-08-09  Richard Henderson  <rth@redhat.com>
12342         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
12343         (USE_COLLECT2): Remove duplicate definition.
12344         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
12345         (use_collect2): Remove dead code.
12346         * configure.in (use_collect2): Remove will_use_collect2 and
12347         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
12348         * configure: Rebuild.
12350         * target.h (targetm.asm_out.constructor): New.
12351         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
12352         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
12353         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
12354         * varasm.c (in_ctors, in_dtors): New.
12355         (assemble_constructor, assemble_destructor): Remove.
12356         (default_stabs_asm_out_destructor): New.
12357         (default_named_section_asm_out_destructor): New.
12358         (dtors_section, default_dtor_section_asm_out_destructor): New.
12359         (default_stabs_asm_out_constructor): New.
12360         (default_named_section_asm_out_constructor): New.
12361         (ctors_section, default_ctor_section_asm_out_constructor): New.
12362         * output.h: Update declarations.
12363         * c-decl.c (c_expand_body): Use target hooks instead of
12364         assemble_constructor and assemble_destructor.
12365         * profile.c (output_func_start_profiler): Likewise.
12366         * objc/objc-act.c (finish_objc): Likewise.
12367         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
12368         for the constructor.
12369         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
12371         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
12372         (DTORS_SECTION_ASM_OP): Likewise.
12373         (__CTOR_LIST__): Use attribute section when possible.
12374         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
12376         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
12377         ASM_OUTPUT_CONSTRUCTOR.
12379         * config/darwin.c (machopic_asm_out_constructor): New.
12380         (machopic_asm_out_destructor): New.
12381         * config/darwin-protos.h: Update declarations.
12382         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12383         (ASM_OUTPUT_DESTRUCTOR): Remove.
12384         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12385         * config/nextstep.c (nextstep_asm_out_constructor): New.
12386         (nextstep_asm_out_destructor): New.
12387         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12388         (ASM_OUTPUT_DESTRUCTOR): Remove.
12389         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12390         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
12391         ASM_OUTPUT_*STRUCTOR.
12392         * config/i386/aix386ng.h: Likewise.
12394         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
12395         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
12396         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
12397         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12398         * config/lynx.h: Likewise.
12399         * config/netware.h: Likewise.
12400         * config/psos.h: Likewise.
12401         * config/alpha/alpha-interix.h: Likewise.
12402         * config/alpha/elf.h: Likewise.
12403         * config/arc/arc.h: Likewise.
12404         * config/arm/aof.h: Likewise.
12405         * config/arm/coff.h: Likewise.
12406         * config/arm/elf.h: Likewise.
12407         * config/c4x/c4x.h: Likewise.
12408         * config/h8300/h8300.h: Likewise.
12409         * config/i386/cygwin.h: Likewise.
12410         * config/i386/djgpp.h: Likewise.
12411         * config/i386/i386-coff.h: Likewise.
12412         * config/i386/i386-interix.h: Likewise.
12413         * config/i386/sco5.h: Likewise.
12414         * config/i386/vsta.h: Likewise.
12415         * config/i386/win32.h: Likewise.
12416         * config/i960/i960-coff.h: Likewise.
12417         * config/ia64/sysv4.h: Likewise.
12418         * config/m68hc11/m68hc11.h: Likewise.
12419         * config/m68k/coff.h: Likewise.
12420         * config/m68k/mot3300.h: Likewise.
12421         * config/m88k/m88k.h: Likewise.
12422         * config/mcore/mcore-pe.h: Likewise.
12423         * config/mcore/mcore.h: Likewise.
12424         * config/mips/elf.h: Likewise.
12425         * config/mips/elf64.h: Likewise.
12426         * config/mips/iris6.h: Likewise.
12427         * config/pa/pa64-hpux.h: Likewise.
12428         * config/rs6000/sysv4.h: Likewise.
12429         * config/sh/sh.h: Likewise.
12430         * config/sparc/litecoff.h: Likewise.
12432         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
12433         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
12434         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12435         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12436         (ASM_OUTPUT_DESTRUCTOR): Remove.
12437         * config/a29k/a29k.c: Move include of tree.h.
12438         * config/a29k/udi.h: Delete file.
12439         * config/alpha/alpha.c (vms_asm_out_constructor): New.
12440         (vms_asm_out_destructor): New.
12441         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
12442         (EXTRA_SECTION_FUNCTIONS): Likewise.
12443         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12444         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12445         * config/c4x/c4x.c: Move include of tree.h.
12446         * config/clipper/clipper.c (clix_asm_out_constructor): New.
12447         (clix_asm_out_destructor): New.
12448         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12449         (ASM_OUTPUT_DESTRUCTOR): Remove.
12450         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12451         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12452         (TARGET_ASM_CONSTRUCTOR): New.
12453         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
12454         (sco_asm_out_constructor): New.
12455         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
12456         * config/i386/svr3gas.h: Remove stack grows up code.
12457         Remove code duplicated from i386/sysv3.h.
12458         (TARGET_ASM_CONSTRUCTOR): New.
12459         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12460         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
12461         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12462         (TARGET_ASM_CONSTRUCTOR): New.
12463         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
12464         (m68hc11_asm_out_destructor): New.
12465         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
12466         (TARGET_ASM_DESTRUCTOR): New.
12467         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
12468         * config/m68k/dpx2.h: Properly undef all the bits inherited from
12469         config/svr3.h pertaining to section manipulation.
12470         * config/m68k/dpx2g.h: Remove #if 0 code.
12471         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
12472         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
12473         (ASM_OUTPUT_CONSTRUCTOR): Remove.
12474         (TARGET_ASM_CONSTRUCTOR): New.
12475         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
12476         (m88k_svr3_asm_out_constructor): New.
12477         (m88k_svr3_asm_out_destructor): New.
12478         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12479         (ASM_OUTPUT_DESTRUCTOR): Remove.
12480         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12481         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
12482         * config/rs6000/aix.h: Likewise.
12483         * config/mips/rtems64.h: Don't undef removed constructor related bits.
12484         * config/mips/vxworks.h: Likewise.
12485         * config/rs6000/lynx.h: Likewise.
12486         * config/sh/elf.h: Likewise.
12487         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
12488         (DTORS_SECTION_ASM_OP): New.
12489         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12490         (ASM_OUTPUT_DESTRUCTOR): Remove.
12491         * config/sparc/sol2-sld-64.h: Likewise.
12492         * config/vax/vax.c (vms_asm_out_constructor): New.
12493         (vms_asm_out_destructor): New.
12494         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12495         (ASM_OUTPUT_DESTRUCTOR): Remove.
12496         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12498         * doc/tm.texi (@node Initialization): Update.
12500 2001-08-09  Richard Henderson  <rth@redhat.com>
12502         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
12503         (__do_global_dtors_aux): Use gp-relative static data to avoid
12504         one dynamic relocation.
12505         (__do_frame_setup): Register Java classes.
12506         * config/alpha/crtend.asm (__JCR_END__): New.
12508 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
12510         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
12511         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
12512         (GEN, STAGESTUFF): Add new files.
12513         (insn-constants.h, s-constants, tm-preds.h, s-preds,
12514         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
12515         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
12516         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
12517         as well as insn-codes.h and insn-flags.h in config.h; and no
12518         extra headers in tconfig.h and hconfig.h.
12520         * gencodes.c: Eliminate code to generate predicate declarations
12521         or #defines for md-file constants.
12522         * genconstants.c, genpreds.c: New files.
12524         * i386.md: Re-order guard expressions such that TARGET_64BIT
12525         comes first, when this permits better optimization.  Add
12526         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
12527         why this is desirable.
12529 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
12531         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
12532         (find_fde_for_dso): Remove.
12533         (_Unwind_IteratePhdrCallback): New.
12534         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
12535         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
12537 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12539         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
12540         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
12542 2001-08-09  Graham Stott  <grahams@redhat.com>
12544         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
12545         (vis_no_unit): Use it.
12546         (visualize_no_unit): Add the insn only if room exists.
12548 2001-08-09  Graham Stott  <grahams@redhat.com>
12550         * predict.c (estimate_probability): Replace magic numbers with
12551         appropriate enumeration.
12553 2001-08-09  Graham Stott  <grahams@redhat.com>
12555         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
12556         parameter.
12557         (EXTRACT_FLAGS): Likewise.
12559 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
12561         * config/mips/mips.c    (mips_legitimate_address_p): Check for
12562         CONST_INT in last patch.
12564 2001-08-08  Anthony Green  <green@redhat.com>
12566         * java/class.c (emit_register_classes): Use assemble_jcr if
12567         possible.  Keep the original mechanism as a fallback.
12568         * defaults.h (JCR_SECTION_NAME): Define if we have named section
12569         and weak symbol support.
12570         * crtstuff.c (__JCR_LIST__): Define.
12571         (__JCR_END__): Define.
12572         (_Jv_RegiserClasses): Define weak symbol if possible.
12573         (__do_global_ctors_aux): Register classes for ELF targets with
12574         weak symbol support.
12576 2001-08-08  Kazu Hirata  <kazu@hxi.com>
12578         * dbxout.c: Fix comment formatting.
12579         * dependence.c: Likewise.
12580         * df.c: Likewise.
12581         * diagnostic.c: Likewise.
12582         * dominance.c: Likewise.
12583         * doprint.c: Likewise.
12584         * dwarf2out.c: Likewise.
12585         * dwarfout.c: Likewise.
12586         * emit-rtl.c: Likewise.
12587         * except.c: Likewise.
12588         * explow.c: Likewise.
12589         * expmed.c: Likewise.
12590         * expr.c: Likewise.
12591         * flow.c: Likewise.
12592         * fold-const.c: Likewise.
12593         * function.c: Likewise.
12595 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12597         * global.c (retry_global_alloc): Avoid shadowing allocno.
12599 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
12601         * except.c (remove_fixup_regions): Fix typo.
12603 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
12605         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
12606         unsigned HOST_WIDE_INT to avoid warning.
12607         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
12608         * flow.c (set_block_for_new_insns): Likewise.
12610 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
12612         * sibcall.c (return_value_pseudo): New static variable.
12613         (skip_copy_to_return_value): Handle return_value_pseudo.
12614         (call_ends_block_p): Ensure that return_value_pseudo is set.
12615         (optimize_sibling_and_tail_recursive_call): Discover the
12616         load of pseudo return value in alternate exit block.
12618 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
12620         * calls.c (ECF_ALWAYS_RETURN): New constant.
12621         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
12622         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
12623         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
12624         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
12625         * rtl.c (reg_note_name): New name.
12626         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
12628 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
12630         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
12632 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
12634         * alias.c (get_alias_set): Return a previously calculated
12635         alias set for a VAR_DECL.
12636         * function.c (gen_mem_addressof): Calculate the alias set before
12637         touching the RTL.
12639 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
12641         * predict.def: Set hitrates according our experimental run.
12643 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
12645         * i386.h (HARD_REGNO_RENAME_OK): New macro.
12647 2001-08-08  H.J. Lu <hjl@gnu.org>
12649         * config/mips/mips.c (mips_unique_section): New. Copied from
12650         config/mips/elf.h.
12652         * config/mips/mips-protos.h (mips_unique_section): New
12653         prototype.
12655         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
12657         * config/mips/little.h: New. Generic little endian mips
12658         targets. Only mips*-*-linux* is converted to use it so far.
12660         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
12661         (WCHAR_TYPE): Defined
12662         (WCHAR_TYPE_SIZE): Likewise.
12663         (INIT_SUBTARGET_OPTABS): Likewise.
12664         (BSS_SECTION_ASM_OP): Likewise.
12665         (SBSS_SECTION_ASM_OP): Likewise.
12666         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12667         (ASM_DECLARE_OBJECT_NAME): Likewise.
12668         (UNIQUE_SECTION): Likewise.
12669         (EXTRA_SECTIONS): Likewise.
12670         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
12671         (ASM_OUTPUT_DESTRUCTOR): Likewise.
12672         (ASM_OUTPUT_DEF): Likewise.
12673         (HANDLE_SYSV_PRAGMA): Removed.
12674         (NO_IMPLICIT_EXTERN_C): Likewise.
12675         (TARGET_MEM_FUNCTIONS): Likewise.
12676         (STARTFILE_SPEC): Likewise.
12677         (ENDFILE_SPEC): Likewise.
12678         (LIB_SPEC): Likewise.
12679         (INVOKE__main): Likewise.
12680         (CTOR_LIST_BEGIN): Likewise.
12681         (CTOR_LIST_END): Likewise.
12682         (DTOR_LIST_BEGIN): Likewise.
12683         (DTOR_LIST_END): Likewise.
12684         (SET_ASM_OP): Likewise.
12685         (ASM_OUTPUT_SOURCE_LINE): Likewise.
12686         (ASM_OUTPUT_DEF): Likewise.
12687         (ASM_OUTPUT_IDENT): Likewise.
12689         * config/mips/mips.h (ASM_SPEC): Undefine before define.
12690         (CPLUSPLUS_CPP_SPEC): Likewise.
12691         (ASM_APP_ON) Redefine only if not defined.
12692         (ASM_APP_OFF): Likewise.
12693         (ASM_OUTPUT_SOURCE_LINE): Likewise.
12694         (ASM_OUTPUT_IDENT): Likewise.
12696         * config.gcc: Update tm_file for Linux/mips.
12698 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
12700         * cselib.c (cselib_record_sets): If insn is predicated, turn
12701         sources into IF_THEN_ELSEs.
12703         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
12704         Turn into define_insn_and_split.
12706         * sched-deps.c: Include "cselib.h".
12707         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
12708         Use cselib to turn memory addresses into VALUEs.
12709         (sched_analyze): Call cselib_init/cselib_finish if necessary.
12710         * sched-int.h (struct sched_info): New member USE_CSELIB.
12711         * sched-ebb.c (ebb_sched_info): Initialize it.
12712         * sched-rgn.c (rgn_sched_info): Likewise.
12713         * Makefile.in (sched-deps.o): Update dependencies.
12715         * cselib.h (cselib_subst_to_values): Declare.
12716         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
12717         that have no value and autoincs to be handled by generating a new
12718         dummy value.
12720 2001-08-08  Graham Stott  <grahams@redhat.com>
12722         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
12723         within fixed length SEQUENCE.
12725 2001-08-08  Graham Stott  <grahams@redhat.com>
12727         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
12728         (diagnostic_prefixing_rule): Likewise.
12729         (diagnostic_line_cutoff): Likewise.
12730         (diagnostic_kind_count): Likewise.
12732 2001-08-08  Graham Stott  <grahams@redhat.com>
12734         * alias.c (find_base_decl): Delete redundent assignment.
12736 2001-08-08  Graham Stott  <grahams@redhat.com>
12738         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
12739         (abs): Uppercase and paranthesize macro parameter.
12740         (MEM_DEPENDENCY): Add whitespace.
12742 2001-08-08  Graham Stott  <grahams@redhat.com>
12744         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
12745         failure check for CONST_INT
12747 2001-08-08  Graham Stott  <grahams@redhat.com>
12749         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
12750         (libcall_dead_p): Likewise.
12752         (mark_used_regs): Constify fmt.
12753         (find_use_as_address): Likewise.
12755 2001-08-08  Graham Stott  <grahams@redhat.com>
12757         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
12758          parameter.
12760 2001-08-08  Graham Stott  <grahams@redhat.com>
12762         * combine.c (combine_simplify_rtx): Update comment and
12763         remove erroneous test.
12765 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
12767         * cppinit.c (cpp_finish): Pop the final buffer without comment.
12768         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
12769         take care to avoid multiple no-newline at EOF warnings in that
12770         case.
12772 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
12774         * calls.c (expand_call): Do not emit INSN_SETJMP note.
12775         (emit_library_call_value_1): Likewise.
12776         (emit_call_1): Emit REG_SETJMP note.
12777         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
12778         of INSN_SETJMP
12779         * cselib.c (cselib_process_insn): Likewise.
12780         * flow.c (propagate_block): Likewise.
12781         * loop.c (find_and_verify_loops): Likewise.
12782         * reload.c (find_equiv_regs): Likewise.
12783         * reload1.c (reload): Likewise.
12784         * resource.c (mark_referenced_resources,
12785         mark_set_resources): Likewise.
12786         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
12787         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
12788         * haifa-sched.c (unlink_other_notes): Likewise.
12789         (reemit_notes): Likewise.
12790         * sched-ebb.c (sched_ebb): Likewise.
12791         * sched-rgc.c (sched_region): Likewise.
12792         * rtl.c (note_insn_name): Likewise.
12793         (reg_note_name): Add REG_SETJMP
12794         * rtl.h (reg_note): Add REG_SETJMP.
12795         (insn_note): Remove NOTE_INSN_SETJMP.
12797         * profile.c (branch_prob): Add fake edges for setjmp.
12799 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
12801         * config.gcc: Quote target_cpu_default2 correctly for
12802         powerpc*-*-* targets.
12804 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
12806         * cpplib.h, line-map.h: Update comments.
12807         * cppmain.c (printer_init): Move inline.
12808         (maybe_print_line, print_line): Take a map pointer.
12809         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
12810         (cb_file_change): Don't use prior value of print.map.
12812 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
12814         * doc/install.texi: Document fine-grained multilib configuration.
12816 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
12818         * rtlanal.c (find_first_parameter_load): Call note_stores
12819         only on the instructions.
12821 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
12823         * alias.c (nonlocal_mentioned_p):
12824         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
12825         * calls.c (emit_call_1): Likewise.
12826         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
12827         * cselib.c (cselib_process_insn): Likewise.
12828         * df.c (df_insns_modify): Likewise.
12829         * flow.c (need_fake_edge_p): Likewise.
12830         (propagate_one_insn): Likewise.
12831         * haifa-sched.c (reemit_notes): Likewise.
12832         * integrate.c (copy_insn_list): Likewise.
12833         * jump.c (delete_prior_computation): Likewise.
12834         * local-alloc.c (validate_equiv_mem): Likewise.
12835         * loop.c (scan_loop): Likewise.
12836         * predict.c (estimate_probability): Likewise.
12837         * reload.c (reload): Likewise.
12838         * sched-deps (sched_analyze): Likewise.
12839         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
12840         * gcse.c (compute_hash_table): Likewise.
12841         (mark_call): Likewise.
12842         (store_killed_in_insn): Likewise.
12844 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
12846         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
12848 2001-08-06  Richard Henderson  <rth@redhat.com>
12850         * varasm.c (assemble_gc_entry): Remove.
12851         * output.h: Likewise.
12853 2001-08-06  Richard Henderson  <rth@redhat.com>
12855         * varasm.c (assemble_constructor): Take a symbol_ref and a
12856         priority instead of a bare string.  Move priority handling
12857         here from cp/decl2.c.
12858         * output.h: Update decls.
12860         * c-decl.c (c_expand_body): Update calls to assemble_constructor
12861         and assemble_destructor.
12862         * profile.c (output_func_start_profiler): Likewise.
12863         * objc/objc-act.c (finish_objc): Likewise.
12864         (build_module_descriptor): Return the symbol not the symbol name.
12866 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
12868         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
12869         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
12870         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
12871         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
12872         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
12873         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
12875 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
12877         * cpperror.c (print_containing_files): Moved to line-map.c.
12878         (print_location): line-map.c handles re-listing or otherwise.
12879         * cpphash.h (struct lexer_state): Remove next_bol.
12880         (struct cpp_buffer): Remove include_stack_listed.
12881         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
12882         Remove faked buffer handling.
12883         (_cpp_do_file_change): Tweak.
12884         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
12885         * cppmain.c (struct printer): Remove filename.
12886         (print_line, cb_file_change): Update accordingly.
12887         * line-map.c: Include intl.h.
12888         (init_line_maps): Initialize last_listed.
12889         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
12890         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
12891         (print_containing_files): New.
12892         * line-map.h (struct line_maps): New member last_listed.
12893         (print_containing_files, INCLUDED_FROM): New.
12894         * Makefile.in: Update.
12895         * po/POTFILES.in: Add line-map.c.
12897 2001-08-06  Richard Henderson  <rth@redhat.com>
12899         * except.c (convert_from_eh_region_ranges_1): Never mark
12900         USE or CLOBBER insns as throwing.
12902         * expr.c (store_constructor): Don't clobber memory targets.
12904 2001-08-06  Andreas Jaeger  <aj@suse.de>
12906         * profile.c (branch_prob): Remove unused variable insn.
12908         * Makefile.in (local-alloc.o): Add dependency on except.h.
12910         * local-alloc.c: Include except.h for can_throw_internal prototype.
12912 2001-08-06  Richard Henderson  <rth@redhat.com>
12914         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
12915         * function.c (expand_main_function): Implement it.
12916         * doc/tm.texi: Document it.
12918 2001-08-06  Stan Shebs  <shebs@apple.com>
12920         * doc/install.texi: Document powerpc-*-darwin* details.
12922 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
12924         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
12925         (ASM_CPU_SPEC): Move back to rs6000.h
12926         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
12928         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
12930         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
12931         readded.
12933         * config/rs6000/linux64.h: Ditto.
12935         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
12936         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
12937         nothing.
12939         Remove accidently readded definitions of FUNCTION_PROLOGUE,
12940         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
12942         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
12943         to rs6000.h
12945 2001-08-05  Richard Henderson  <rth@redhat.com>
12947         * local-alloc.c (update_equiv_regs): Do not move insns that
12948         can throw.
12950 2001-08-05  Jan Hubicka  <jh@suse.cz>
12952         * Makefile.in (reload1.o): Add dedendancy on except.h
12953         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
12954         prototypes.
12955         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
12956         indicating wehther edges has been cleaned up.
12957         * reload1.c: Inlucde except.h
12958         (fixup_abnormal_edges): Accept deleted insns.
12959         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
12960         after combine.
12962 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
12964         * cpplib.c (do_line): Correct line number after pop_buffer.
12966 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
12968         PR preprocessor/3824
12969         * line-map.c: Update comments.
12970         * line-map.h: Update comments.
12971         * tradcif.y: Don't consider large numbers unsigned.
12973 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
12975         PR preprocessor/3081
12976         * c-lex.c (map): New.
12977         (cb_file_change): Update map and use it.
12978         (cb_def_pragma, cb_define, cb_undef): Use map and line.
12979         (c_lex): Update to use map.
12980         * cpperror.c (print_location): Move to using logical line numbers.
12981         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
12982         (cpp_make_system_header): Similarly.
12983         (_cpp_execute_include): Stop line numbering hacks.  Store the
12984         line we will return to.
12985         * cpphash.h (CPP_BUF_LINE): Remove.
12986         (struct cpp_buffer): Remove lineno and pseudo_newlines.
12987         Add map and return_to_line.
12988         (_cpp_do_file_change): Update.
12989         * cppinit.c (cpp_start_read): Update line kludge.
12990         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
12991         (trigraph_ok): Use logical line numbers for diagnostics.
12992         (skip_block_comment): Likewise.
12993         (skip_whitespace): Likewise.
12994         (skip_line_comment): Use pfile->line instead.
12995         (_cpp_lex_token): Update to use logical line numbering exclusively.
12996         Handle BOL locally.  Accept new lines in directives, but keep
12997         pfile->line decremented.  Diagnostics use logical lines.  Update
12998         directive handling.
12999         * cpplib.c (SEEN_EOL): New.
13000         (skip_rest_of_line, check_eol): Use it.
13001         (end_directive): Increase line number when accepting the newline
13002         at the end of a directive.
13003         (run_directive): Simplify.
13004         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
13005         (_cpp_do_file_change): Update to take buffer line number as an
13006         argument, and store the current map in the cpp_reader.  Remove
13007         line number kludges.
13008         (_cpp_do__Pragma): Restore output position after a _Pragma.
13009         (cpp_push_buffer): Don't set output line or lineno.
13010         (_cpp_pop_buffer): Transfer more info from a faked buffer.
13011         Remove line kludge.  Set output_line.
13012         * cppmacro.c (builtin_macro): Update handling of __LINE__.
13013         (parse_arg): Use logical lines.
13014         (save_lookahead_token): Save EOFs too now.
13015         * cppmain.c (struct printer): Fix comments.
13016         (printer_init): Simplify, let caller do errors.
13017         (scan_translation_unit, check_multiline_token, dump_macro): Update.
13018         (maybe_print_line): Simplify.
13019         (print_line): Don't print a linemarker if -P.
13020         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
13021         (cb_file_change): Simplify.
13022         * line-map.h (LAST_SOURCE_LINE): Fix.
13023         (CURRENT_LINE_MAP): New.
13025 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
13027         * doloop.c (doloop_modify_runtime): Properly compute number of
13028         iterations if loop was unrolled.
13030         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
13031         if their CSELIB_VAL_PTRs are.
13033         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
13034         (setup_spill_pointers): Initialize it.
13035         (spill_restore_mem): Set it.
13036         (do_spill, do_restore): Use it to add REG_INC note.
13037         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
13039         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
13040         asms if other insns are available.
13042         * config/ia64/ia64.c (condop_operator): New predicate.
13043         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
13044         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
13045         patterns.
13047         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
13048         temporary register than directly using a MEM.
13050 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
13052         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
13053         parameter in last change.
13055 2001-08-04  Zack Weinberg  <zackw@panix.com>
13057         * sparc.md: Don't use #if inside C test expression.
13059 2001-08-04  Richard Henderson  <rth@redhat.com>
13061         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
13063 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
13065         * cpphash.h (struct cpp_reader): New member directive_line.
13066         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
13067         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
13068         do_pragma): Pass line to callbacks.
13069         (start_directive): Record line of directive.
13070         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
13071         cb_include): Similarly.
13072         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
13073         Similarly.
13075 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
13077         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
13078         comment.
13080 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
13082         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
13084         * reload1.c (fixup_abnormal_edges): New static function.
13085         (reload): Use it.
13087         * flow.c (need_fake_edge_p): New function.
13088         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
13089         avoid call insn to be very last insn in the insn stream.
13091         * profile.c (branch_prob): Call flow_call_edges_add instead of
13092         doing that by hand; cleanup cfg to re-merge basic blocks once
13093         we are done.
13095 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13097         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
13098         are also on line-map.h.
13099         * cppfiles.c (stack_include_file): Update.
13100         * cpphash.h (struct cpp_buffer): New member return_at_eof.
13101         (_cpp_pop_buffer): New.
13102         * cppinit.c (cpp_destroy, cpp_finish): Update.
13103         (do_includes): Mark each buffer to return at EOF.
13104         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
13105         return as requested.
13106         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
13107         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
13108         * cpplib.h (cpp_pop_buffer): Remove.
13109         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
13110         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
13111         buffers.
13112         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
13113         to pop buffers.
13114         (do_preprocessing): Update.
13115         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
13116         * c-parse.in (_yylex): Similarly.
13117         * scan-decls.c (scan_decls): Similarly.
13118         * line-map.h: Update comments.
13120         * objc/Make-lang.in (objc-act.o): Update dependencies.
13122 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13124         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
13125         and soft register for operand 0.
13126         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
13128 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13130         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
13131         register for operand 0.
13132         ("bitcmpqi_z_used"): Allow memory for operand 0.
13133         (split "bitcmpqi"): New split to handle address reg as operand 1.
13135 2001-08-04  Andreas Jaeger  <aj@suse.de>
13137         * gcse.c: Revert Daniel's last patch.
13139 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
13141         * sparc-protos.h: Add prototypes for fp_zero_operand and
13142         reg_or_0_operand.
13143         * sh-protos.h: Add prototype for fpul_operand.
13145 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
13147         * doc/extend.texi (Other Builtins): Fix typo in last change.
13149 2001-08-03  Richard Henderson  <rth@redhat.com>
13151         * target.h (gcc_target): Add asm_out.named_section,
13152         section_type_flags, have_named_sections.
13153         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
13154         (TARGET_HAVE_NAMED_SECTIONS): New.
13155         (TARGET_SECTION_TYPE_FLAGS): New.
13157         * Makefile.in (toplev.o): Depend on TARGET_H.
13158         (varasm.o, dbxout.o): Likewise.
13159         * c-common.c (decl_attributes): Check targetm.have_named_sections
13160         instead of ifdef ASM_OUTPUT_SECTION_NAME.
13161         * dbxout.c (dbxout_function_decl): Likewise.
13162         (dbxout_function_end): Likewise.
13163         * toplev.c (compile_file): Likewise.
13164         * varasm.c (exception_section): Likewise.
13165         * cp/decl2.c (finish_objects): Likewise.
13167         * defaults.h (EH_FRAME_SECTION): Remove.
13168         (EH_FRAME_SECTION_ASM_OP): Remove.
13169         (EH_FRAME_SECTION_NAME): New.
13170         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
13171         (UNIQUE_SECTION_P): Remove.
13172         * dwarf2out.c (SECTION_FORMAT): Remove.
13173         (ASM_OUTPUT_SECTION): Remove.
13174         (output_call_frame_info): Use named_section_flags.
13175         (output_comp_unit, dwarf2out_start_source_file): Likewise.
13176         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
13177         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
13178         * varasm.c (in_eh_frame, eh_frame_section): Remove.
13179         (named_section_flags): New.
13180         (named_section): Use it and targetm.section_type_flags.
13181         (resolve_unique_section): New.
13182         (assemble_start_function): Use it.
13183         (asm_emit_uninitialised, assemble_variable): Likewise.
13184         (default_section_type_flags): New.
13185         (default_no_named_section, default_elf_asm_named_section): New.
13186         (default_coff_asm_named_section, default_pe_asm_named_section): New.
13187         * output.h: Update varasm.c decls.
13188         (SECTION_*): New flags.
13190         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
13191         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
13193         * config/elfos.h (UNIQUE_SECTION_P): Remove.
13194         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
13195         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
13196         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
13197         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
13198         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
13199         * config/mips/elf.h, config/mips/elf64.h: Likewise.
13200         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
13201         * config/pa/pa64-hpux.h,
13203         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
13204         (TARGET_ASM_NAMED_SECTION): New.
13205         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
13206         * config/alpha/vms.h, config/arm/coff.h: Likewise.
13207         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
13208         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
13209         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
13210         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
13211         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
13212         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
13213         * config/i386/sco5.h, config/i386/win32.h: Likewise.
13214         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
13215         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
13216         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
13217         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
13218         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
13219         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
13220         * config/sparc/sysv4.h: Likewise.
13222         * config/nextstep.h: Error until named sections implemented.
13224         * config/a29k/a29k.c (a29k_asm_named_section): New.
13225         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
13226         (vms_section_type_flags, vms_asm_named_section): New.
13227         * config/arm/arm.c (arm_elf_asm_named_section): New.
13228         * config/avr/avr.c (asm_output_section_name): Remove.
13229         * config/avr/avr-protos.h: Update.
13230         * config/c4x/c4x.c (c4x_asm_named_section): New.
13231         * config/h8300/h8300.c (h8300_asm_named_section): New.
13232         * config/i386/i386.c (sco_asm_named_section): New.
13233         * config/i386/winnt.c (SECTION_PE_SHARED): New.
13234         (i386_pe_section_type_flags): New.
13235         (i386_pe_asm_named_section): New.
13236         * config/i386/i386-protos.h: Update.
13237         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
13238         * config/mcore/mcore.c (mcore_asm_named_section): New.
13239         * config/mips/mips.c (iris6_asm_named_section): New.
13240         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
13241         instead of UNIQUE_SECTION_P.
13242         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
13243         (xcoff_asm_named_section): New.
13244         * config/sh/sh.c (sh_asm_named_section): New.
13245         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
13247         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
13248         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
13249         (EH_FRAME_SECTION_NAME): New.
13250         (EXCEPTION_SECTION): New.
13251         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
13252         (DEBUG_*_SECTION): Remove.
13253         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
13254         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
13255         (EH_FRAME_SECTION_ASM_OP): Remove.
13257         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
13258         (ASM_OUTPUT_SECTION_NAME): Remove.
13259         (TARGET_ASM_NAMED_SECTION): New.
13260         (TARGET_HAVE_NAMED_SECTIONS): New.
13261         (TARGET_SECTION_TYPE_FLAGS): New.
13262         (EH_FRAME_SECTION_ASM_OP): Remove.
13263         (EH_FRAME_SECTION_NAME): New.
13265 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
13267         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
13268         for complex expressions when cfun == 0.
13269         * doc/extend.texi: Document that __builtin_constant_p can be
13270         used in data initializers as well as functions.
13272 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
13274         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
13275         variable I locally, instead of expecting a declaration in the
13276         calling context.
13278 2001-08-03  Richard Henderson  <rth@redhat.com>
13280         * except.c (collect_one_action_chain): Add an explicit cleanup
13281         action if regions surrounding a catch were encoded entirely
13282         within the call-site entry.
13284 2001-08-03  Richard Henderson  <rth@redhat.com>
13286         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
13287         don't take REGNO of a non-register.
13289 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13291         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
13292         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
13293         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
13294         (__gthread_mutex_init_function): New function for mutex initialization.
13296 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
13298         * Makefile.in: Revert screwed up commit.
13300 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13302         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
13303         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
13304         merged by linker script to get a final _exit().
13305         (__do_global_dtors): New for destructor handling in specific exit
13306         section.
13307         (__do_global_ctors): New for constructors in specific install section.
13308         (__map_data_section): Map data sections before running constructors.
13309         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
13310         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
13311         (DTORS_SECTION_ASM_OP): Likewise.
13312         (CTORS_SECTION_FUNCTION): Define to force a reference to
13313         __do_global_ctors.
13314         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
13316 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
13318         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
13320         * Makefile.in: Add df.h to gcse.c dependencies.
13322 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13324         * varasm.c (output_constant_def_contents): Use for the length of a
13325         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
13326         depending on which is larger.
13328 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
13330         * gcse.c: Include df.h for use as a dataflow analyzer.
13331         Remove regvec.
13332         Declaration of reg_set_info: gone.
13333         New df_analyzer variable used by store motion.
13334         (reg_set_info): Deleted.
13335         (mark_mem_regs): New function, analyze regs used by a mem.
13336         (store_ops_ok): Use dataflow analyzer results to determine if
13337         necessary regs are changed in the block.
13338         (find_moveable_store): Remove check for symbol ref, we can handle
13339         much more complex expressions now.
13340         (compute_store_table): Remove most of the code, it's unnecessary
13341         now that the dataflow analyzer records the info for us.
13342         (store_killed_after): Add parameter to say whether to do the
13343         store_ops_okay test, used to speed up testing when we already know
13344         the answer, and just want to know if the store itself was killed.
13345         (build_store_vector): Largely rewritten to calculate the various
13346         vectors properly, and somewhat optimized.
13347         (store_motion): Init the df_analyzer, get REG_DEF chains.
13348         Also handle trapping expressions (since mems almost always trap)
13349         (simple_mem): Redefine what a simple mem is.
13351 2001-08-03  DJ Delorie  <dj@redhat.com>
13353         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
13354         set from a constant part of the condition.
13356 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
13358         * mkdeps.c (deps_add_default_target): Make local variable
13359         ``start'' a const char pointer.
13360         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
13362 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13364         * doc/install.texi (Configuration): Fix markup.
13365         (Specific, i?86-*-udk): Likewise.
13366         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
13367         --with-gnu-ld.
13368         Document --enable-threads and --enable-libgcj status.
13369         (Specific, mips-sgi-irix*): Canonicalize triples.
13370         (Specific, mips-sgi-irix5): Warn about problems with this config.
13371         Mention required GNU as patch.
13372         Native assembler problems are fixed.
13373         (Specific, mips-sgi-irix6): Update O32 ABI support status.
13374         Document --enable-threads and --enable-libgcj status.
13376 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
13378         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
13379         of mkinstalldirs.
13381 2001-08-03  Richard Henderson  <rth@redhat.com>
13383         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
13384         constant data.
13386 2001-08-03  Richard Henderson  <rth@redhat.com>
13388         * rtlanal.c (find_first_parameter_load): Stop if we
13389         reach a CODE_LABEL at BOUNDARY.
13391 2001-08-03  Richard Henderson  <rth@redhat.com>
13393         * config/alpha/alpha.md (force_movdi): New insn.
13394         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
13395         Tweek FRP marking of VMS prologue insns.
13396         * config/alpha/vms.h (EPILOGUE_USES): New.
13398 2001-08-02  Richard Henderson  <rth@redhat.com>
13400         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
13402 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
13404         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
13405         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
13406         config/convex/convex.h, config/d30v/d30v.c,
13407         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13408         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
13409         config/mips/mips.h, config/mn10200/mn10200.h,
13410         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
13411         config/v850/v850.h, config/vax/openbsd.h,
13412         config/vax/openbsd1.h, config/vax/ultrix.h,
13413         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
13414         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
13415         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
13416         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
13417         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
13418         in comments and documentation.
13420 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13422         * line-map.c: New.
13423         * line-map.h: New.
13424         * Makefile.in (line-map.o): New.
13425         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
13426         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
13427         * cpperror.c (print_containing_files): Similarly.
13428         (print_location): Update.  Don't output a space before _Pragma.
13429         * cppfiles.c (stack_include_file): Set to line 1 immediately.
13430         (stack_include_filee, cpp_make_system_header): Update.
13431         (_cpp_execute_include): Get logical line number right for calling
13432         as-yet-unterminated #include.
13433         * cpphash.h (struct cpp_reader): Add line_maps.
13434         (_cpp_do_file_change): Update.
13435         * cppinit.c (cpp_create_reader): Initialize line maps.
13436         (cpp_destroy): Destroy line maps.
13437         (cpp_start_read): Get logical line number right.
13438         * cpplex.c (parse_string): Only warn once for multi-line strings.
13439         Use boolean variable for null warning.
13440         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
13441         already.
13442         (do_include_common): End the directive early.
13443         (do_line): Don't warn about out-of-range lines in preprocessed
13444         source.  Update.  Remove unused variables.
13445         (_cpp_do_file_change): Update for new line mapping.
13446         (pragma_cb): New typedef.
13447         (cpp_register_pragma): Stop looking ahead before calling the
13448         handler.  Clean up.
13449         (do_pragma_system_header): End directive early.
13450         (cpp_get_line_maps): New.
13451         (cpp_pop_buffer): Fudge logical line.  Update.
13452         * cpplib.h: Include line-map.h
13453         (enum cpp_fc_reason): Remove.
13454         (struct cpp_file_change): Update.
13455         (cpp_get_line_maps): New.
13456         * cppmain.c (struct_printer): New member map.
13457         (cb_file_change): Update for new mappings.
13458         * fix-header.c (cb_file_change): Similarly.
13460 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
13462         * Makefile.in (libgcc.mk): Define mkinstalldirs.
13463         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
13465 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
13467         * config/vax/vax.c: include expr.h.
13469 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
13471         * Makefile.in ($(srcdir)/configure): Only rebuild in
13472         maintainer mode.
13473         ($(srcdir)/config.in): Only define in maintainer mode.
13474         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
13476 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
13478         * doc/install.texi (Install GCC: Binaries): Update Bull info.
13480 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13482         * gcc.c (set_collect_gcc_options): New function, split out from
13483         main.
13484         Ignore elided switches.
13485         (do_spec_1): Invoke before executing command.
13486         (set_input): Export.
13487         Move declaration ...
13488         * gcc.h (set_input): ... here.
13489         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
13490         file.
13492 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
13494         Kill -fhonor-std.
13495         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
13496         interaction.
13497         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
13499 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
13501         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
13502         for the unnamed instructions it expands to.
13504 2001-08-02  Richard Henderson  <rth@redhat.com>
13506         * regclass.c (call_really_used_regs): Conditionally define.
13507         (init_reg_sets_1): Don't use it if not defined.
13508         (fix_register): Similarly, don't set it.
13510 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13512         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
13513         Correct comment that had been missed in the previous change.
13515 2001-08-01  Stan Shebs  <shebs@apple.com>
13517         * config/darwin.c (machopic_stub_name): Try matching by name.
13518         (update_stubs): New function.
13519         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
13520         unconditionally.
13522 2001-08-01  Richard Henderson  <rth@redhat.com>
13524         * except.c (output_function_exception_table): Use assemble_align.
13525         * varasm.c (assemble_eh_label): Remove.
13526         (assemble_eh_align, assemble_eh_integer): Remove.
13528 2001-08-01  Robert Lipe  <robertl@caldera.com>
13530         * dwarfout.c: Remove reference to README.DWARF.
13532 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
13534         * regclass.c (call_really_used_regs): New array for registers which
13535         are actually used by a call.
13536         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
13537         new array.
13538         (fix_register): Set call_really_used too.
13539         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
13540         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
13542 2001-08-01  Richard Henderson  <rth@redhat.com>
13544         * read-rtl.c (read_name): Consider \r whitespace.
13546 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
13548         * config.gcc: Recognize powerpc-*-netbsd*.
13550         * doc/install.texi (Host/target specific installation notes for
13551         GCC): Mention powerpc-*-netbsd*.
13553         * config/rs6000/netbsd.h: New file.
13554         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
13555         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
13556         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
13557         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
13558         (TARGET_VERSION): Redefine.
13560         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
13561         mcall-netbsd as a match for mcall-sysv.
13562         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
13563         (ncrti.S, ncrtn.S): New targets.
13564         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
13566         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
13567         "netbsd' as a V4 ABI.
13568         (ASM_SPEC): Check for -mcall-netbsd.
13569         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
13570         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
13571         (LIB_SPEC, ENDFILE_SPEC): Ditto.
13572         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
13573         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
13574         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
13575         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
13577         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
13578         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
13580 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13582         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
13583         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
13584         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
13585         including "unwind-pe.h".
13587 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
13589         * rs6000.md (define_splits): Kill unused constraints.
13591 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
13592                               Jan Hubicka  <jh@suse.cz>
13594         * function.c (thread_prologue_and_epilogue_insns): Kill code
13595         dealing with non-existent CFG.
13597 2001-08-01  Kazu Hirata  <kazu@hxi.com>
13599         * alias.c: Fix comment formatting.
13600         * bitmap.c: Likewise.
13601         * builtins.c: Likewise.
13602         * calls.c: Likewise.
13603         * c-common.c: Likewise.
13604         * c-decl.c: Likewise.
13605         * c-dump.c: Likewise.
13606         * c-lex.c: Likewise.
13607         * collect2.c: Likewise.
13608         * combine.c: Likewise.
13609         * conflict.c: Likewise.
13610         * cppfiles.c: Likewise.
13611         * cppinit.c: Likewise.
13612         * cpplex.c: Likewise.
13613         * cpplib.c: Likewise.
13614         * cppmacro.c: Likewise.
13615         * cppspec.c: Likewise.
13616         * c-pragma.c: Likewise.
13617         * crtstuff.c: Likewise.
13618         * cse.c: Likewise.
13619         * cselib.c: Likewise.
13620         * c-semantics.c: Likewise.
13621         * c-typeck.c: Likewise.
13623 2001-08-01  H.J. Lu <hjl@gnu.org>
13625         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
13627 2001-08-01  H.J. Lu <hjl@gnu.org>
13629         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
13631 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
13633         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
13634         contextualizing Objective-C class name lookup by the lexer.
13635         (typespec_reserved_nonattr): Disable ObjC class name lookup after
13636         seeing a TYPESPEC.
13637         (protocoldef): Add support for forward @protocol declarations.
13638         (yylexname): Suppress ObjC class name lookup in certain contexts;
13639         re-enable after lookup is complete.
13640         (_yylex): Re-enable ObjC class name lookup when certain
13641         punctuation marks are seen.
13643         * objc/objc-act.c (check_protocol_recursively): New function used
13644         for finding circular dependencies in protocols.
13645         (objc_declare_protocols): New function for handling forward
13646         @protocol declarations.
13647         (receiver_is_class_object): Detect the case when 'self' is used
13648         inside of a class method.
13649         (build_message_expr): Issue a warning if class method is desired
13650         but instance method is found instead.
13651         (conforms_to_protocol): Streamline.
13652         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
13653         protocol Foo, even if 'Bar foo' does not.
13654         (check_protocols): Streamline.
13655         (start_protocol): Add checks for circular and duplicate protocol
13656         definitions.
13657         (encode_aggregate_within): For typedefs of structs, encode the
13658         underlying struct.
13659         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
13660         (objc_declare_protocols): New prototype.
13662 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13664         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
13665         * cpplex.c (handle_newline): Update prototype.  Maintain logical
13666         line number.
13667         (skip_escaped_newlines, skip_block_comment, parse_string):
13668         Update accordingly.
13669         (_cpp_lex_token): Update, and store token position within the token.
13670         * cpplib.h (struct cpp_token): Add line and column entries.
13671         * cppmacro.c (replace_args): Position stringified tokens correctly.
13673 2001-08-01  Andreas Jaeger  <aj@suse.de>
13675         * basic-block.h: Add prototype for last_loop_beg_note.
13677 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
13679         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
13680         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
13681         comment.
13682         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
13683         while handling WITH_CLEANUP_EXPR node. Use second operand calling
13684         expand_decl_cleanup.
13685         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
13686         the first RTX.
13687         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
13688         operand while calling simple_cst_equal.
13689         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
13690         operand is the cleanup expression, the third is the RTL_EXPR.
13691         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
13693 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
13695         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
13697 2001-07-31  matthew green  <mrg@eterna.com.au>
13699         * config.gcc (i386-*-netbsdelf): New description.
13700         * config/i386/netbsd-elf.h: New file.
13702 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
13704         * loop.c (check_dbra_loop): Use single_set to compute
13705         jump_label.
13707 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
13709         PowerPC reorg and support for powerpc64-*-linux*.
13711         Also fixes emitting of constants on 32 bit and 64 bit
13712         platforms.
13714         * config.gcc: powerpc64-*-linux* is a new target.
13715         Things that needed aix.h now also include xcoff.h
13717         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
13718         xcoff.h.
13719         Move AIX specific stuff into aix.h.
13720         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
13721         with more than just XCOFF now.
13722         (SET_ASM_OP): Remove, now defined where needed.
13723         (FUNCTION_PROLOGUE): New macro definition.
13724         (FUNCTION_EPILOGUE): New macro definition.
13725         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
13727         * config/rs6000/xcoff.h: New file.
13729         * config/rs6000/linux64.h: New file.
13731         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
13733 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
13735         * rs6000.c (print_operand_address): Handle ELF syntax.
13736         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
13737         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
13738         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
13740 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
13742         * rs6000.c (rs6000_override_options): Only disable
13743         flag_function_sections for XCOFF.
13744         (exact_log2_cint_operand): New predicate.
13745         (reg_or_{add,sub}_cint64_operand): New predicates.
13746         (add_operand): Compare CONST_INT with fewer function calls.
13747         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
13748         (print_operand, case 'p'): Ensure positive operand.
13749         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
13750         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
13751         (PREDICATE_CODES): Add new predicates.
13752         * rs6000.md (addsi3): Split 32-bit constants more correctly.
13753         (divsi3, modsi3): Ensure positive power-of-2.
13754         (adddi3): Use new predicate.  Split 32-bit constants more
13755         correctly.  Re-arrange splitter to handle any constant.
13756         (subdi3): Use new predicate.
13757         (divdi3, moddi3): Ensure positive power-of-2.
13758         (movdi): Use rs6000_emit_set_const.
13759         (load_toc_v4_pic_di): Delete.
13761 2001-07-31  Graham Stott <grahams@redhat.com>
13763         * function.c (pad_below): Revert 2001-07-26 patch.
13765 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
13767         * reg-stack (convert_regs_1): Fix best edge condition.
13769 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
13771         * jump.c (duplicate_loop_exit_test): Better test for jumps
13772         entering the loop; create loop pre_header.
13774 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
13776         * doc/install.texi: Add s390 and s390x as new targets.
13777         * doc/invoke.texi: Add documentation of S/390 and zSeries
13778         target options.
13779         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
13781 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
13783         * config/m68k/m68k.md: Replace all general_operand with
13784         nonimmediate_operand for all destinations.
13785         * config/m68k/m68k.c (not_sp_operand): Likewise.
13787 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
13789         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
13791 2001-07-30  Richard Henderson  <rth@redhat.com>
13793         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
13794         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
13796 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
13798         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
13799         Add missing doc strings
13800         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
13801         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
13803 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
13805         * i386.c (ix86_output_main_function_alignment_hack): New function.
13806         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
13808         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
13809         edges by EDGE_DFS_BACK flag.
13810         (dump_edge_info): Add dfs_back flag.
13811         * basic-block.h (EDGE_DFS_BACK): New constant.
13812         (mark_dfs_back_edges): Declare.
13813         * alias.c (loop_p): Remove.
13814         (mark_constant_function): Use mark_dfs_back_edges.
13816         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
13817         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
13818         (compensate_edge): Break out from ...
13819         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
13820         (convert_regs_2): Set block_done once block is really done;
13821         Do updating of the predecessors counts.
13823         * toplev.c (rest_of_compilation): Recompute block_for_insn
13824         before post-reload cfg_cleanup.
13825         * function.c (thread_prologue_epilogue_insns):
13826         Call set_block_for_new_insns when emitting prologue directly.
13828 2001-07-30  Andreas Jaeger  <aj@suse.de>
13830         * jump.c: Add prototype for mark_modified_reg.
13832         * cse.c (set_live_p): Add unused attribute.
13834         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
13835         overflow.
13836         (scan_for_source_files): Use long for count to avoid overflow.
13837         (output_data): Likewise.
13838         (output_data): Don't use string concatatenation to silence gcc
13839         -traditional.
13841         * predict.c: Fix typos and grammar.
13843         * gcse.c (insert_insn_end_bb): Remove unused variables.
13845 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
13847         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
13848         (attempt_auto_inc): LIkewise.
13849         (mark_used_reg): Likewise.
13850         (try_pre_increment_1): Likewise.
13851         * regclass.c (regclass): Likewise.
13852         * global.c (allocno_compare): Update comment; change scaling factor.
13853         * local-alloc.c (QTY_CMP_PRI): Likewise.
13854         * regs.h (REG_FREQ_FROM_BB): New.
13855         (REG_FREQ_MAX): Likewise.
13857 2001-07-30  H.J. Lu <hjl@gnu.org>
13859         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
13860         -D_GNU_SOURCE.
13862 2001-07-30  H.J. Lu  (hjl@gnu.org)
13864         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
13865         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
13866         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
13868 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
13870         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
13871         as -mthumb-interwork when -mcpu=arm7 is specified.
13873 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
13875         * predict.def (noreturn, loop branch, loop exit): Mark as first
13876         match heuristics.
13878 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
13880         * combine.c (try_combine): Avoid barrier after noop jumps.
13882 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13884         * cpphash.h (struct cpp_reader): Remove import_warning.
13885         * cpplib.c (skip_rest_of_line): Don't bother turning off
13886         macro expansion.
13887         (parse_include): Move include handling to...
13888         (do_include_common): ... here.  Move import warning from...
13889         (do_import): ... here.
13890         (do_pragma_poison): Don't do a callback for poison identifiers.
13891         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
13892         * cppmain.c (setup_callbacks): Similarly.
13894 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
13896         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
13897         handle multiple sets.
13898         * except.c (sjlj_mark_call_sites): .... here.
13899         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
13901 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
13903         Suggested by Richard Henderson and Richard Kenner:
13904         * combine.c (recog_for_combine): Use the fake recog
13905         only if instruction does not match.
13906         * rtl.h (NOOP_MOVE_INSN_CODE): New.
13907         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
13909         * combine.c (try_combine): Discover noop jump as direct jump.
13911 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
13913         * df.c (df_rd_global_compute): Add successors to worklist, not
13914         current item.
13915         (df_ru_global_compute): Ditto.
13917 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
13919         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
13920         increment REG_N_SETS.
13922 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
13924         * sbitmap.h: New prototype for sbitmap_a_xor_b.
13926         * sbitmap.c (sbitmap_a_xor_b): New function.
13927         ifdef the basic block stuff on IN_GCC.
13929 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13931         * cppexp.c (parse_defined): Always record the macro name.
13932         (lex): Don't worry about identifiers, or special-case
13933         CPP_NOT here.
13934         (_cpp_parse_expr): Figure out at the end of the routine
13935         whether we saw a valid !defined() expression.
13936         * cppfiles.c (stack_include_file): Update for mi_valid.
13937         (_cpp_pop_file_buffer): Similarly.
13938         * cpplex.c (_cpp_lex_token): Similarly.
13939         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
13940         mi_if_not_defined, mi_lexed): Remove.
13941         (mi_valid): New.
13942         * cpplib.c (do_if): Simplify.
13943         (do_endif, push_conditional, _cpp_handle_directive): Update
13944         for renaming of mi_state to mi_valid.
13945 doc:
13946         * cpp.texi: Add index entries for digraphs, and add comment
13947         that C++ refers to them as alternative tokens.
13949 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
13951         * basic-block.h (CLEANUP_PRE_LOOP): New.
13952         * except.c (finish_eh_generation): Update call of cleanup_cfg.
13953         * sibcall.c (optimize_sibling_calls): Likewise.
13954         * toplev.c (rest_of_compilation): Likewise.
13955         * flow.c (try_forward_edges): Take argument MODE;
13956         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
13957         (try_optimize_cfg): Update call of try_forward_edges.
13959 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
13960                                 Jan Hubicka  <jh@suse.cz>
13962         * (validate_replace_rtx_1): Fix simplification of MINUS.
13964 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
13966         PR preprocessor/3669
13967         * cppinit.c (init_dependency_output): Turn off dump requests
13968         if sending dependencies to stdout.
13970 2001-07-28  Richard Henderson  <rth@redhat.com>
13972         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
13973         not optimizing.
13975 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
13977         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
13979 2001-07-28  Kazu Hirata  <kazu@hxi.com>
13981         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
13982         is VAR_DECL first to prevent an ICE.
13984 2001-07-28  Richard Henderson  <rth@redhat.com>
13986         * varasm.c (immed_real_const_1): Don't elide special cases for
13987         nested functions.
13988         (clear_const_double_mem): Clear const_tiny_rtx too.
13990 2001-07-28  Richard Henderson  <rth@redhat.com>
13992         * dwarf2out.c (dw_val_class_offset): New.
13993         (struct dw_ranges_struct, dw_ranges_ref): New.
13994         (ranges_table, ranges_table_allocated): New.
13995         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
13996         (add_AT_offset, add_ranges, output_ranges): New.
13997         (print_die, output_die): Handle dw_val_class_offset.
13998         (attr_checksum, size_of_die, value_format): Likewise.
13999         (gen_lexical_block_die): Handle non-contiguous blocks.
14000         (gen_block_die): Likewise.
14001         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
14002         if needed.  Dump the ranges table.
14003         * final.c (final_start_function): Remove unnecessary notes and
14004         rebuild the block tree before numbering the blocks.
14005         * function.c (reorder_blocks_0): Walk the existing block tree
14006         to unmark all blocks.
14007         (reorder_blocks_1): Create block fragments when duplicate block
14008         notes are seen.
14009         (reorder_fix_fragments): New.
14010         (reorder_blocks): Call it.
14011         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
14013 2001-07-28  Richard Henderson  <rth@redhat.com>
14015         * emit-rtl.c (adjust_address): Make a copy of the memory address.
14017 2001-07-28  Richard Henderson  <rth@redhat.com>
14019         * flow.c (add_to_mem_set_list): New function.
14020         (init_propagate_block_info): Use it.
14021         (mark_set_1): Likewise.
14022         (insn_dead_p): Canonicalize memory address for dead store
14023         comparison.  Allow wider mode stores to kill narrower mode stores.
14024         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
14025         (invalidate_mems_from_set): Don't handle MEMs.
14027 2001-07-28  Kazu Hirata  <kazu@hxi.com>
14029         * config/h8300/h8300.h: Fix formatting.
14031 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
14033         * basic-block.h (EDGE_FREQUENCY): New macro.
14034         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
14035         for new BB/edges.
14036         * flow.c (find_sub_basic_blocks): Likewise.
14037         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
14038         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
14040         * predict.c (DEF_PREDICTOR): New argument FLAGS.
14041         (HITRATE): New macro.
14042         (PRED_FLAG_FIRST_MATCH): New constant.
14043         (predictor_info): New field flgags.
14044         (combine_predictions_for_insn): Use DS theory to combine
14045         probabilities; set the edge probabilities when finished.
14046         (estimate_probability): Avoid duplicated matches
14047         of LOOP_BRANCH heuristics for nested loops; update comment.
14048         * predict.def: Add flags for each prediction, set probabilities
14049         according to B&L paper.
14050         * predict.h (DEF_PREDICTOR): New argument FLAGS.
14052         * profile.c (compute_branch_probabilities):  Cleanup way the edge
14053         probabilities are computed and REG_BR_PROB notes are dropped; if
14054         values does not match, emit error.
14055         (init_branch_prob): Do error instead of warning when profile driven
14056         feedback is missing or corrupt.
14058 2001-07-27  DJ Delorie  <dj@redhat.com>
14060         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
14061         against a constant, try to adjust the compare to have the desired
14062         constant in it so that min/max optimizations happen more often.
14064 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
14066         * flow.c (last_loop_beg_note): New function.
14067         (redirect_edge_and_branch): Use it.
14068         (split_edge): Likewise.
14070         * alias.c (loop_p): Avoid uninitialized memory access.
14072         * flow.c (try_forward_edges): Avoid accessing freed memory.
14074         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
14075         variable access.
14077 2001-07-26  Andrew Haley  <aph@redhat.com>
14078         Joern Rennecke <amylaar@redhat.com>
14080         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
14081         (SUBTARGET_CPP_ENDIAN_SPEC): New.
14082         (SUBTARGET_CPP_SPEC): New.
14083         (CPP_SPEC): Remove.
14084         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
14085         (SUBTARGET_CPP_PTR_SPEC): New.
14086         (CPP_DEFAULT_CPU_SPEC): New.
14087         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
14088         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
14089         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
14090         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
14091         (SUBTARGET_CPP_SPEC): Define as an empty string.
14093 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14095         * doc/install.texi (Configuration): Properly link the host
14096         specific instructions also when generating HTML.
14098 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
14100         * flow.c (redirect_edge_and_branch_force): Test
14101         target->global_live_at_start.
14103 2001-07-26  Richard Henderson  <rth@redhat.com>
14105         * simplify-rtx.c (avoid_constant_pool_reference): Export.
14106         * rtl.h (avoid_constant_pool_reference): Declare it.
14107         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
14108         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
14110 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
14112         * rtl.h (cleanup_barriers): Declare.
14113         * jump.c (cleanup_barriers): New function.
14114         * toplev.c (rest_of_compilation): Call cleanup_barriers
14115         before loop optimizer and after bb_reorder.
14117         * flow.c (back_edge_of_syntactic_loop_p): New.
14118         (split_edge): Use it.
14120 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14122         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
14124 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
14126         * cse.c (cse_process_notes): Replace any registers if the address
14127         remains valid.
14129 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
14131         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
14132         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
14133         (propagate_block): Update prototype.
14134         * flow.c (update_life_info): Simplify the CFG and
14135         recalculate the global regs which are alive when
14136         removing dead code during a global update.
14137         (propagate_block): Return non-zero if an INSN is
14138         deleted.
14140 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14142         * Makefile.in (LIBICONV): Define.
14144 2001-07-26  Catherine Moore  <clm@redhat.com>
14146         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
14147         of conditional to avoid tree checking errors.
14149 2001-07-26  Kazu Hirata  <kazu@hxi.com>
14151         * regmove.c (regmove_optimize): Don't replace a reg with
14152         another reg of a different mode.
14154 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
14156         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
14157         limit length of dependency flush list.
14158         * params.h (MAX_PENDING_LIST_LENGTH): Define.
14159         * sched-int.h  (struct deps): Add pending_flush_length field.
14160         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
14161         has 1 element in it.
14162         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
14163         (sched_analyze): After a jump, if the pending memory flush list is too
14164         large, flush the pending lists.
14165         (init_deps): Initialize pending_flush_length to 0.
14166         * doc/invoke.texi (max_pending_list_length): Document parameter.
14168 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
14170         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
14171         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
14172         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
14174 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14176         * cpphash.h (struct_lexer_state): Delete was_skipping.
14177         Move skipping here from struct cpp_reader.
14178         * cpplex.c (parse_identifier): Update.
14179         (_cpp_lex_token): Don't skip tokens in a directive.
14180         * cpplib.c (struct if_stack): Update.
14181         (start_directive, end_directive): Don't change skipping state.
14182         (_cpp_handle_directive): Update.
14183         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
14184         (do_else, do_endif): Update; only check for excess tokens if not
14185         in a skipped conditional block.
14186         (push_conditional): Update for new struct if_stack.
14188 2001-07-26  Graham Stott  <grahams@redhat.com>
14190         * function.c (locate_and_pad_parm): Also pad initial offset
14191         so that the total argument size also includes the padding.
14193 2001-07-26  Graham Stott <grahams@redhat.com>
14195         * gensupport.c (alter_output_for_insn): Correct enable checking failure
14196         change XSTR to XTMPL.
14198         (process_one_cond_exec): Likewise
14200 2001-07-25  Richard Henderson  <rth@redhat.com>
14202         * varasm.c (assemble_variable): Create DECL_RTL before setting
14203         TREE_ASM_WRITTEN.
14205 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
14207         * predict.c (estimate_probability): Avoid duplicated predictions.
14209         * loop.c (find_and_verify_loops): Grok multiple barriers.
14211 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14213         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
14215         * dbxout.c: Consistently use putc instead of fputc.
14216         (print_wide_int): New function; call instead of direct fprintf.
14217         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
14218         (dbxout_type_fields, dbxout_type_method_1): Likewise.
14219         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
14220         (print_int_cst_octal): Likewise.
14221         (print_octal): Show we wrote characters.
14222         (dbxout_type): Set have_used_extensions in more places.
14224 2001-07-25  Catherine Moore  <clm@redhat.com>
14226         * config/v850/v850.c (v850_va_arg):  Use addr
14227         instead of valist to build incr.
14229 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
14231         * flow.c (delete_dead_jumptables): New function.
14232         (life_analyzis): Call it.
14233         * bb-reorder.c (skip_insns_after_block): Handle contradictory
14234         sequences.
14236 2001-07-25  Richard Henderson  <rth@redhat.com>
14238         * except.c (reachable_handlers): Handle a region being removed
14239         out from under a RESX.
14241 2001-07-25  Richard Henderson  <rth@redhat.com>
14243         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
14244         swap GE/GT if it is an fp comparison.
14246 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
14248         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
14249         operands.
14251 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
14253         * ssa.c (rename_insn_1): Do not wrap an assignment to a
14254         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
14255         glitch.
14257         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
14258         throw an exception.
14259         (visit_expression): When attempting to simplify an expression,
14260         retrieve any modes for arguments before they are simplified
14261         to constants.
14263 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
14264             Janis Johnson  <janis@us.ibm.com>
14266         * stmt.c (expand_goto): A nonlocal goto can be a call too.
14267         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
14268         pointer parameters to match documented usage of nonlocal_goto.
14269         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
14270         parameters to their correct order.
14271         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
14272         parameters to their correct order.
14274 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
14276         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
14278 2001-07-25  Jan Hubicka  <jh@suse.cz>
14279             Richard Henderson  <rth@redhat.com>
14281         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
14282         the sequence.
14283         (make_edges): New argument update_p; populate the edge cache if set.
14284         (find_basic_blocks): Update make_edges invocation.
14286 2001-07-24  Joel Sherrill <joel@OARcorp.com>
14288         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
14290 2001-07-24  Joel Sherrill <joel@OARcorp.com>
14292         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
14293         -Acpu and -Amachine.h.
14294         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
14295         Corrected header to say ELF not a.out.
14296         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
14297         when given -msoft-float.
14299 2001-07-24  Joel Sherrill <joel@OARcorp.com>
14301         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
14302         extra multilib parts like arm-elf.
14303         (i960-*-coff*, i960-*-rtems): Should not use collect2.
14304         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
14305         crtfini.o as extra multilib parts.
14307 2001-07-24  Joel Sherrill <joel@OARcorp.com>
14309         * configure.in: Add rtems as a supported thread model.
14310         * gthr-rtems.h: Add missing entry point __gthread_active_p.
14311         * configure: Rebuilt.
14313 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
14315         * stor-layout.c (get_mode_alignment): make it work when
14316         BITS_PER_UNIT is not a power of two.
14317         * builtins.c (get_pointer_alignment): Likewise.
14319 2001-07-24  Richard Henderson  <rth@redhat.com>
14321         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
14322         the retrieved constant into the expected mode.
14324 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
14326         * flow.c (try_simplify_condjump): Avoid duplicated edges.
14327         (verify_flow_info): Check for duplicated edges; clarify
14328         error reporting.
14330         * flow.c (block_label): Update basic_block_for_insn.
14331         (commit_edge_insertions): Call compute_bb_for_insn.
14333         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
14334         returns too.
14336         * flow.c (redirect_edge_and_branch,
14337         try_optimize_cfg): Use redirect_edge_succ_nodup
14338         (redirect_edge_succ_nodup): New.
14339         * basic_block.h (redirect_edge_succ_nodup): Declare.
14341         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
14342         after gcse.
14344 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
14346         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
14347         (try_crossjump_to_edge): Update commetns.
14348         (try_crossjump_bb): Likewise.
14350 2001-07-24  Richard Henderson  <rth@redhat.com>
14352         * combine.c (distribute_notes): Move set of need_refresh
14353         for noop_move_p down to catch all cases.
14355 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
14357         * recog.c (split_all_insns_noflow): New.
14358         * rtl.h (split_all_insns_noflow): Declare.
14359         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
14360         * m68hc11.c (m68hc11_reorg): Likewise.
14361         * sh.c (machine_dependent_reorg): Likewise.
14362         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
14363         call.
14365 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
14367         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
14368         (ashlsi3_n splitter): Likewise.
14369         (lshrsi3_n splitter): Likewise.
14371         (GOTaddr2picreg): Make const SImode.
14372         (sym_label2reg): Likewise.
14373         (symGOT2reg): Likewise.
14374         (symGOTOFF2reg) Likewise.
14376         (casesi_worker_0): Make unspec SImode.
14378 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
14380         * config/sh/sh.c (barrier_align): Check that an operand really is
14381         an insn before extracting its INSN_CODE.
14383 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
14385         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
14386         dangling else.
14388         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
14389         for SImode to prevent overflow.
14391 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14393         * config/mips/irix6-libc-compat.c: New file.
14394         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
14395         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
14396         passing workaround.
14398 2001-07-24  lars brinkhoff  <lars@nocrew.org>
14400         * rtl.texi (REG_POINTER): Document.
14401         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
14402         QFmode, HFmode, TQFmode, QCmode, and HCmode.
14404 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
14406         * flow.c (delete_noop_moves): Do not confuse libcall regions.
14408 2001-07-23  Richard Henderson  <rth@redhat.com>
14410         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
14412 2001-07-23  Kazu Hirata  <kazu@hxi.com>
14414         * config/h8300/h8300-protos.h: Add a prototype for
14415         general_operand_dst_push.
14416         * config/h8300/h8300.c (general_operand_dst_push): New.
14417         * config/h8300/h8300.h (OK_FOR_T): New.
14418         (EXTRA_CONSTRAINT): Use it.
14419         * config/h8300/h8300.md (movqi_push): Remove and integrate into
14420         the existing movqi pattern.
14421         (movhi_push): Likewise.
14423         * reload.c: Fix comment typos.
14425 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
14427         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
14429 2001-07-23  H.J. Lu  (hjl@gnu.org)
14431         * doc/extend.texi: Update __builtin_return_address and
14432         __builtin_frame_address.
14434 2001-07-23  Richard Henderson  <rth@redhat.com>
14436         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
14437         before CSE.
14438         * config/i386/i386.md: New setcc+movzbl peephole2.
14440 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14442         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
14443         * objc/objc-act.c: Include debug.h.
14444         (synth_module_prologue): Save and restore debug hooks too.
14446 2001-07-23  lars brinkhoff  <lars@nocrew.org>
14448         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
14449         and C4X_FLOAT_FORMAT.
14450         (BOOL_TYPE_SIZE): Document.
14452 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
14454         * unroll.c (loop_iterations): Fix miscalculation of initial
14455         giv offset.
14457 2001-07-13  Andrew Haley  <aph@redhat.com>
14459         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
14460         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
14461         * config/sh/sh.c (sh_can_redirect_branch): New function.
14462         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
14463         * reorg.c (steal_delay_list_from_target): Use
14464         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
14466 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
14468         * flow.c (try_simplify_condjump): Unlink insn chain on
14469         fallthru edge; use can_fallthru.
14471 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
14473         * basic-block.h (find_sub_basic_block): Declare.
14474         * flow.c (make_edges): New arguments MIN and MAX;
14475         (find_sub_basic_blocks): Revamp to use make_edges
14476         and purge_dead_edges.
14477         (find_basic_blocks): Update call of find_sub_basic_block.
14479         * recog.c (split_all_insns): Always expect CFG to be consistent;
14480         call find_sub_basic_blocks in case something has changed.
14481         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
14482         has been built.
14484         * basic-block.h (delete_noop_moves): Declare.
14485         * combine.c (combine_instructions): Call it.
14486         (recog_for_combine): Tolerate noop moves
14487         (distribute_notes): Force refresh when register dies at noop move.
14488         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
14489         too.
14490         (life_analysis): Update delete_noop_moves call.
14491         (set_noop_p): Move too ...
14492         * rtlanal.c (noop_move_p): ... here.
14493         * rtl.h (noop_move_p): Declare.
14495         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
14496         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
14497         after combine.
14498         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
14499         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
14501 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
14503         * reload.c (push_reload): Fix typo in comment.
14504         (find_reloads_address): Ditto.
14505         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
14507 2001-07-22  Richard Henderson  <rth@redhat.com>
14509         * flow.c: Grammar check and clarify a lot of comments.
14510         (try_simplify_condjump): Rename variables to be clearer.
14511         (try_forward_edges): Skip complex and fallthru edges.
14512         Rearrange tests to avoid duplicate checks.
14513         (flow_find_cross_jump): Likewise.
14514         (outgoing_edges_match): Allow match if neither branch has
14515         probability data.  Loosen probability match to 5%.
14516         (try_crossjump_to_edge): Hoist repeated indirection into
14517         local variables.
14518         (try_crossjump_bb): Don't check complex edges.  Eliminate
14519         redundant crossjump tests.
14520         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
14521         checks before more expensive checks.
14523 2001-07-22  Richard Henderson  <rth@redhat.com>
14525         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
14526         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
14527         arguments.
14529 2001-07-22  Richard Henderson  <rth@redhat.com>
14531         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
14532         (const_sint32_operand): Likewise.
14533         * m68k.md (anon mulsi pattern): Use const_int_operand not
14534         const_sint32_operand.
14535         (umulsi3_highpart): Zero extend a constant input.
14536         (smulsi3_highpart): Don't bother checking SImode constant.
14537         (const_umulsi3_highpart): Give op3 DImode.
14538         (const_smulsi3_highpart): Likewise.
14540 2001-07-22  Richard Henderson  <rth@redhat.com>
14542         * flow.c (split_block): Make sure bb_note is included in the
14543         new block when splitting before a label.
14545 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
14547         * basic-block.h (redirect_edge_and_branch_force,
14548         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
14549         * flow.c (redirect_edge_and_branch_force,
14550         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
14551         (redirect_edge_and_branch_force): Fix copying of lifeness information.
14552         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
14553         * ifcvt.c (dead_or_predictable): Take BB as an new destination
14554         instead of label; update CFG after transformation.
14555         (find_if_case_1): Update call, use redirect_edge_and_branch_force
14556         for finishing the transformation; handle even case where ELSE
14557         does not follow THEN.
14558         (find_if_case_2): Update call of dead_or_predictable; simplify
14559         CFG update.
14561         * emit-rtl.c (split_branch_probability): New global variable.
14562         (try_split): Take care to set split_branch_probability and
14563         create REG_BR_PROB note for new jump insns.
14564         * md.texi (define_split): Document new feature.
14566         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
14568 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
14570         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
14571         (asm_out_file): Remove redundant declaration.
14572         (assemble_asm): Remove old #if 0 block.
14573         (assemble_variable): Remove end of function; debug output is
14574         now handled with global_decl.  Remove old #if 0 block.  Update.
14575         Remove saved_in_section and associated no-op code.
14576         * Makefile.in (varasm.o): Correct dependencies.
14578 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
14580         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
14581         the definition in defaults.h.
14583 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
14585         * jump.c: Update comments.
14586         (delete_barrier_successors, delete_unreferenced_labels,
14587         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
14588         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
14589         jump_optimize, jump_optimize_minimal): Kill.
14590         (rebuild_jump_labels): Move code from jump_optimize_1.
14591         (purge_line_number_notes): Likewise.
14592         (copy_loop_headers): Likewise.
14593         * reg-stack.c: Update comment.
14594         * stmt.c: Likewise.
14595         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
14596         JUMP_AFTER_REGSCAN): Kill.
14597         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
14598         purge_line_number_notes and copy_loop_headers.
14600 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
14601            Richard Henderson  <rth@redhat.com>
14603         * dbxout.c (dbxout_global_decl): New.
14604         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
14605         * sdbout.c (sdbout_finish): New.
14606         (sdbout_debug_hooks): Use it, add comments.
14607         (sdbout_global_decl): Defer initialised public vars to
14608         sdbout_finish.
14609         * varasm.c (assemble_variable): Don't output debug information
14610         for file-scope variables.
14612 2001-07-22  Richard Henderson  <rth@redhat.com>
14614         * config/alpha/alpha.c (get_trap_mode_suffix): New.
14615         (get_round_mode_suffix): New.
14616         (print_operand): Use them for [/].  Remove support for [&'`()+].
14617         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
14618         * config/alpha/alpha.md (attr round_suffix): New.
14619         (attr trap_suffix): New.
14620         (all insns): Set them appropriately.  Use %/ instead of the
14621         myriad punctuators.
14623 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14625         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
14627 2001-07-22  Richard Henderson  <rth@redhat.com>
14629         * regrename.c (regrename_optimize): Compute nregs for each
14630         potential target register.
14632 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
14633            Richard Henderson  <rth@redhat.com>
14635         * dbxout.c (dbxout_global_decl): New.
14636         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
14637         * sdbout.c (sdbout_finish): New.
14638         (sdbout_debug_hooks): Use it, add comments.
14639         (sdbout_global_decl): Defer initialised public vars to
14640         sdbout_finish.
14641         * varasm.c (assemble_variable): Don't output debug information
14642         for file-scope variables.
14644 2001-07-21  H.J. Lu  (hjl@gnu.org)
14646         * config/mips/mips.c (mips_cpu): Moved into ...
14647         (override_options): Here.
14649         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
14650         mips_tune.
14651         (mips_cpu): Removed.
14653 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14655         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
14656         ("iorqi3"): Likewise.
14657         ("xorqi3"): Likewise.
14658         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
14659         ("*subhi3_sp): Likewise.
14660         ("*subhi3"): Likewise.
14661         ("extendhisi2"): Accept D, X and Y as source operand to avoid
14662         reload problems.
14664 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
14666         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
14667         * config/freebsd.h: Likewise.
14668         * config/linux.h: Likewise.
14669         * config/openbsd.h: Likewise.
14670         * config/alpha/linux-elf.h: Likewise.
14671         * config/arm/linux-elf.h: Likewise.
14672         * config/d30v/d30v.h: Likewise.
14673         * config/fr30/fr30.h: Likewise.
14674         * config/ia64/aix.h: Likewise.
14675         * config/ia64/ia64.h: Likewise.
14676         * config/mips/linux.h: Likewise.
14677         * config/pj/pj.h: Likewise.
14678         * config/rs6000/linux.h: Likewise.
14679         * config/sparc/linux.h: Likewise.
14680         * config/sparc/linux64.h: Likewise.
14682 2001-07-20  Bruce Korb  <bkorb@gnu.org>
14684         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
14685         because getc() and char* may disagree on signedness.
14687 2001-07-20  Richard Henderson  <rth@redhat.com>
14689         * doc/rtl.texi (REG_DEAD): Update for current semantics.
14691         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
14692         insns to delete in the presence of cc0 in a jump insn.
14694 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
14695                                 Jan Hubicka  <jh@suse.cz>
14697         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
14698         of doing the change by hand.
14700 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
14702         * rtlanal.c (set_noop_p): Return true for noop jumps.
14704         * expr.c (emit_single_push_insn): Add call to push expander.
14705         * expr.h (optab_index): Add OTI_push
14706         (push_optab): New constant.
14707         * genopinit.c (optabs): Add push_optab.
14708         * optabs.c (init_optab): Init push optab.
14709         * md.texi (push??1): Document
14711 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14713         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
14714         expand to emit the pattern; put a REG_INC note for push/pop
14715         instructions.
14716         ("movdf", "movdf_internal"): Likewise.
14717         ("movsi", "movsi_internal"): Likewise.
14718         ("movsf", "movsf_internal"): Likewise.
14719         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
14721 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14723         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
14724         gen_highpart.
14726 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
14728         * params.def: Change default max inline insns to 100.
14730 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
14732         * combine.c (combine_simplify_rtx): Generate a new shift operation
14733         when simplifying the first operand of a (neg (ashift)) expression.
14735 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
14737         * regclass.c (N_REG_INTS): Use only 32 bits per element.
14739 2001-07-20  Kelley Cook  <kelley.cook@home.com>
14741         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
14742         information.   Move rest into ...
14743         (*-*-solaris): ... here.  Eliminate redundant information and
14744         reword necessary packages section.  Delete 4.x assembler bug info.
14745         (sparc-sun-*): Merge into ...
14746         (sparc-sun-sunos*): here.
14748 2001-07-20  Catherine Moore  <clm@redhat.com>
14750         * config/v850/v850.md (casesi): Generate LABEL_REF
14751         with Pmode.
14753 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
14755         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
14756         * i386.c (ix86_zero_extend_to_Pmode): Make global.
14757         * i386.md (strclrsi expander): Use it.
14759 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
14761         * integrate.c (copy_insn_list): handle
14762         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
14763         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
14764         identically as to CODE_LABEL.
14766         * fold-const (fold): Convert A/B/C to A/(B*C) and
14767         A/(B/C) to (A/B)*C
14769         * except.c (connect_post_landing_pads): Delete the RESX insns.
14771 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
14773         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
14775         * config/mips/mips.md (nmadd/nmsub): Use macro.
14777 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
14779         * cppinit.c (remove_dup_dir): Make static.
14780         (remove_dup_dirs): Make static. Only warn about preempting a
14781         system directory with a non-system directory.
14783 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
14785         * ifcvt.c (noce_try_store_flag_constants): Correct order
14786         of parameters to trunc_int_for_mode.
14788 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
14790         * reorg.c (fill_simple_delay_slots): If an instruction might throw
14791         an exception that will be caught within this function, do not fill
14792         its delay slot with any subsequent instruction.
14794 2001-07-19  Steve Ellcey <sje@cup.hp.com>
14796         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
14797         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
14798         pointer extension instruction.
14799         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
14800         * simplify-rtx.c (simplify_unary_operation) Likewise.
14801         * explow.c (convert_memory_address) Check value of
14802         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
14803         less than zero.
14804         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
14805         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
14806         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
14807         Add Multilib Support.
14808         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
14809         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
14810         Add Multilib Support.
14811         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
14812         support.
14813         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
14814         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
14815         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
14817 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
14819         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
14820         old and new operands in `<', `3' and `b'.
14822 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14824         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
14825         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
14826         (toplev.o): Don't depend on xcoffout.h.
14827         * c-decl.c: Include debug.h
14828         (duplicate_decls): Use debug hook.
14829         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
14830         (dbx_debug_hooks, xcoff_debug_hooks): Update.
14831         (dbxout_types): Remove.
14832         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
14833         * debug.c (do_nothing_debug_hooks): Update.
14834         (debug_true_tree, debug_nothing_rtx): New.
14835         * debug.h (struct rtx_def): New.
14836         (struct gcc_debug_hooks): New hooks ignore_block,
14837         outlining_inline_function and label.
14838         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
14839         dwarf2out_frame_finish): New.
14840         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
14841         Make static, update prototype.
14842         (dwarf2_debug_hooks): Update.
14843         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
14844         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
14845         * dwarfout.c (dwarf_debug_hooks): Update.
14846         * emit-rtl.c: Include debug.h.
14847         (remove_unnecessary_notes): Use debug hook.
14848         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
14849         (final_scan_insn): Use debug hook.
14850         * integrate.c (output_inline_function): Use debug hook.
14851         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
14852         (sdb_debug_hooks): Update.
14853         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
14854         * toplev.c: Don't include xcoffout.h.
14855         (note_outlining_of_inline_function, debug_ignore_block): Remove.
14856         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
14857         Remove.
14858         * tree.h (dwarf2out_do_frame): Remove.
14860 2001-07-19  Catherine Moore  <clm@cygnus.com>
14862         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
14864 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
14866         * reload1.c (eliminate_regs_in_insn): When updating a set
14867         to the frame pointer to the hardware frame pointer, perform
14868         the update always not just when REPLACE is set.
14870         * reload1.c (choose_reload_regs): Don't inherit a reload
14871         that crosses multiple registers if registers past the first
14872         don't fit in the desired class.
14874         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
14875         when negating constants.
14877 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
14879         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
14880         * doc/tree.texi: Ditto.
14882 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
14883             Jakub Jelinek  <jakub@redhat.com>
14885         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
14886         (extract_cie_info): Handle "eh" augmentation properly,
14887         remember eh_ptr.
14888         (struct frame_state, __frame_state_for): New.
14890 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14892         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
14893         HANDLE_SYSV_PRAGMA): Define.
14894         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
14895         previous args.
14896         (copy_object): Caller changed.
14898 2001-07-19  Andreas Schwab  <schwab@suse.de>
14900         * configure.in (assembler dwarf2 debug_line support): Define nop
14901         insn for m68k.
14902         * configure: Regenerated.
14904 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14906         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
14907         dwarfout.h.
14908         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
14909         to conditionally compiled block.
14910         (dbx_debug_hooks, xcoff_debug_hooks): Update.
14911         * dbxout.h (dbxout_function): Remove.
14912         * debug.c (do_nothing_debug_hooks): Update.
14913         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
14914         global_decl, deferred_inline_function.
14915         * dwarf2out.c (dwarf2_debug_hooks): Update.
14916         (dwarf2out_global_decl): New.
14917         * dwarfout.c: Don't include dwarfout.h.
14918         (dwarfout_global_decl, dwarfout_function_decl,
14919         dwarfout_deferred_inline_function): New.
14920         (dwarf_debug_hooks): Update.
14921         * dwarfout.h: Remove.
14922         * final.c: Don't include dwarfout.h.
14923         * sdbout.c (sdbout_global_decl): New.
14924         (sdbout_debug_hooks): Update.
14925         * toplev.c: Don't include dwarfout.h.
14926         (check_global_declarations, rest_of_compilation): Use new debug hooks.
14927         (note_deferral_of_defined_inline_function): Remove.
14928         * toplev.h (note_deferral_of_defined_inline_function): Remove.
14929         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
14930         * ch/lex.c: Don't include dwarfout.h.
14931         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
14932         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
14933         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
14934         * cp/optimize.c: Include debug.h.
14935         (maybe_clone_body): Use debug hook.
14936         * cp/semantics.c: Include debug.h.
14937         (expand_body): Use debug hook.
14938         * po/POTFILES.in: Remove dwarfout.h.
14940 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14942         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
14943         * c-parse.in (yyerror, _yylex): Similarly.
14944         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
14945         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
14946         Update comments.
14947         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
14948         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
14950 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
14952         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
14953         in-class declaration at -g1.  Fixes c++/2814.
14955 2001-07-18  Richard Henderson  <rth@redhat.com>
14957         * doc/md.texi (reload_in/out): Document restrictions in predicates
14958         and constraints for these patterns.  Document empty string matching
14959         ALL_REGS.
14961 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14963         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
14965 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
14967         * cse.c: Undo my previous patch.
14969 2001-07-18  Tom Tromey  <tromey@redhat.com>
14971         For PR java/2812:
14972         * configure: Rebuilt.
14973         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
14974         instead.
14975         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
14977 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
14978                                 Jan Hubicka  <jh@suse.cz>
14980         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
14981         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
14982         * jump.c (mark_jump_label): Do not forward branches.
14984 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
14986         * cse.c (delete_trivially_dead_insns): Delete the libcall block
14987         when return value is unused.
14989 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
14991         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
14993 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
14995         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
14996         on error.  We can't blindly return the result of
14997         pthread_mutex_trylock because it returns a positive number on
14998         error, while we must return -1 on error.
14999         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
15000         fixes.
15001         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
15003 2001-07-18  Andreas Jaeger  <aj@suse.de>
15005         * integrate.c (output_inline_function): Correct type of debug_hooks.
15007 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
15009         * combine.c (combine_simplify_rtx): DIV can be treated
15010         associatively for floats if unsafe math optimisations are enabled.
15012 2001-07-17  Richard Henderson  <rth@redhat.com>
15014         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
15016 2001-07-17  Richard Henderson  <rth@redhat.com>
15018         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
15019         don't force the function address into a register.
15020         (expand_call, emit_library_call_value_1): Update callers.
15021         * builtins.c (expand_builtin_apply): Likewise.
15022         * expr.h (prepare_call_address): Update decl.
15024 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
15026         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
15027         config directory.
15028         * config/i386/chorus.h: Move up.
15029         * config/sparc/chorus.h: Likewise.
15030         * config/rs6000/chorus.h: Likewise.
15031         * config/chorus.h: Moved here.
15033 2001-07-17  Andreas Schwab  <schwab@suse.de>
15035         * configure.in  (assembler eh_frame optimization): Handle big
15036         endian.
15037         * configure: Regenerated.
15039 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
15041         * expr.c (epxand_expr): Convert divisions into multiplications by
15042         reciprocals if -ffast-math.
15044 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
15046         * dbxout.c (dbxout_really_begin_function): Rename to
15047         dbxout_begin_function.
15048         (dbx_debug_hooks, xcoff_debug_hooks): Update.
15049         (dbxout_begin_function): Remove.
15050         (dbxout_function): Update.
15051         (dbxout_source_line): Update prototype.
15052         * dbxout.h (dbxout_begin_function): Remove.
15053         * debug.c (do_nothing_debug_hooks): Update.
15054         (debug_nothing_tree): Update.
15055         (debug_nothing_charstar_rtx): Remove.
15056         * debug.h (union tree_node): Declare.
15057         (struct rtx_def): Remove.
15058         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
15059         begin_function.  Change source_line prototype.
15060         (debug_nothing_tree): New.
15061         (debug_nothing_charstar_rtx): Delete.
15062         (dwarf2out_begin_prologue): Moved from ...
15063         * tree.h: ... here.
15064         * dwarf2out.c (dwarf2_debug_hooks): Update.
15065         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
15066         debug info, call dwarf2out_source_line.
15067         (dwarf2out_souce_line): Update prototype.
15068         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
15069         Change prototype, make static.
15070         (dwarfout_source_line): Update prototype.
15071         (dwarf_debug_hooks): Update.
15072         * dwarfout.h (dwarfout_begin_function): Remove.
15073         * final.c (final_start_function, final_scan_insn): Use appropriate
15074         debug hooks, update to use notice_source_line.
15075         (output_source_line): Rename notice_source_line.  Don't call the
15076         source_line debug hook.
15077         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
15078         make static, update prototype.
15079         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
15080         prototype.
15081         (sdbout_end_prologue): New.
15082         (sdbout_source_line): Update prototype.
15083         (sdbout_debug_hooks): Update.
15084         (sdbout_symbol): Remove unused var.
15085         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
15086         Delete.
15087         * varasm.c: Include debug.h.
15088         (assemble_start_function): Use begin_function debug_hook.
15089         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
15090         update with prototype.
15091         (xcoffout_source_line): Update prototype.
15092         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
15093         update prototype.
15094         (xcoffout_source_line): Update prototype.
15096 2001-07-17  Richard Henderson  <rth@redhat.com>
15098         * c-typeck.c (build_binary_op): Do not shorten unsigned
15099         right shift after sign extension.
15101 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
15103         * combine.c (combine_simplify_rtx): Attempt to simplify
15104         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
15106         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
15107         (simplify_binary_operation, simplify_unary_operation,
15108          simplify_relational_operation): Use it.
15110         * combine.c (combine_simplify_rtx): Don't do associative law
15111         on divisions; allow associative law on floats.
15113 2001-07-17  H.J. Lu <hjl@gnu.org>
15114             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15116         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
15117         ASM_OUTPUT_WEAK_ALIAS are defined.
15118         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
15119         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
15120         Moved ...
15121         * config/mips/iris5.h: ... here.
15122         (HANDLE_SYSV_PRAGMA): Defined as 1.
15123         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
15124         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
15125         symbol.
15127 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
15129         * c-parse.in (all_prefix_attributes): New variable.
15130         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
15131         (maybe_resetattrs): New production.
15132         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
15133         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
15134         notype_initdcl, nested_function, notype_nested_function,
15135         component_decl, components, components_notype,
15136         component_declarator, component_notype_declarator,
15137         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
15138         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
15139         after a comma being applied to more than one declarator.
15140         * doc/extend.texi (Attribute Syntax): Update.  Remove
15141         documentation of bugs that are no longer present.
15143 2001-07-13  Eric Christopher  <echristo@redhat.com>
15145         * config/mips/mips.h: Change TUNE_MIPS* options to use
15146         mips_tune.
15147         (EXTRA_SPECS): Add cc1_cpu_spec.
15148         * config/mips/mips.md (muldf3): Fix typo.
15150 2001-07-16  Richard Henderson  <rth@redhat.com>
15152         * config/m68k/m68k.c: Include expr.h and reload.h.
15153         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
15154         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
15156 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
15157             Richard Henderson  <rth@redhat.com>
15159         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
15160         (insn_live_p): Fix fall off end of function.
15161         (dead_libcall_p): Remove COUNTS argument; update callers.
15162         (delete_trivially_dead_insns): Remove unused variables.
15164 2001-07-17  Andreas Jaeger  <aj@suse.de>
15166         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
15167         x86-64 pic support.
15169         * lcm.c (optimize_mode_switching): Avoid warning for unused
15170         variable if !NORMAL_MODE.
15172         * flow.c (try_crossjump_to_edge): Remove unused variable.
15174 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15176         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
15177         atexit declaration in stdlib.h.
15179 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
15181         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
15183 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
15185         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
15186         * except.c (finish_eh_generation): Update call of cleanup_cfg;
15187         do rebuild_jump_labels instead of jump_optimize
15188         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
15189         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
15190         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
15192         * flow.c: Include timevar.h
15193         (find_basic_block): Push/pop timevar;
15194         (cleanup_cfg): Likewise.
15195         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
15196         * Makefile: Add dependencies on timevar.h
15198         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
15199         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
15201         * rtl.h (delete_trivially_dead_insns): Add new parameter.
15202         * toplev.c (rest_of_compilation): Update calls.
15203         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
15204         (delete_trivially_dead_insns): ... here; accept new argument
15205         preserve_basic_blocks; preserve basic blocks if set.
15207         * reg-stack.c (stack_regs_mentioned): Return 0 if
15208         stack_regs_mentioned_data is not initialized.
15209         (reg_to_stack): Make stack_regs_mentioned survive after the
15210         reg-stack is completted; do not call cleanup_cfg.
15211         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
15212         make cleanup_cfg after bb-reorder to output to debug file.
15214 2001-07-16  Richard Henderson  <rth@redhat.com>
15216         * regclass.c (init_reg_sets): Use only 32 bits per initializer
15217         from int_reg_class_contents.
15219 2001-07-16  Richard Henderson  <rth@redhat.com>
15221         * hard-reg-set.h (regs_invalidated_by_call): Declare.
15222         * regclass.c (regs_invalidated_by_call): Move from cse.c.
15223         (init_reg_sets_1): Move initialization from cse_main.
15224         * cse.c (regs_invalidated_by_call): Move to regclass.c.
15225         (cse_main): Move its initialization also.
15226         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
15227         * flow.c (propagate_one_insn): Likewise.
15228         * gcse.c (compute_hash_table): Likewise.
15229         (compute_kill_rd, compute_store_table): Likewise.
15230         * sched-deps.c (sched_analyze_1): Likewise.
15232 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
15234         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
15235         gen_rtx_SET.
15237 2001-07-16  Steve Ellcey <sje@cup.hp.com>
15239         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
15240         in if statement so we don't access undefined memory.
15242 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
15244         * gcse.c: Update comment at top.
15245         Update comment on mem handling.
15246         mem_last_set, mem_first_set, mem_set_in_block: gone.
15247         Declaration of reg_set_info: gone.
15248         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
15249         pointless with load_killed_in_block_p (they are *more*
15250         conservative then it, not less, and less accurate).
15251         (oprs_not_set_p): Ditto.
15252         (alloc_gcse_mem): Don't allocate mem_set_in_block
15253         (free_gcse_mem): Don't free it, either.
15254         (record_last_mem_set_info): Update comment in front, remove
15255         mem_*set_* stuff. Note the reason we don't handle stores directly
15256         here.
15257         (compute_hash_table): Update comments to reflect reality. Remove
15258         mem_*set_* references.
15259         (reset_opr_set_tables): Remove mem_*set_* references.
15260         (mark_call): Ditto.
15261         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
15262         (mark_clobber): Ditto (on both parts, we double set here too).
15263         (expr_killed_p): Remove mem_set_in_block test.
15264         (compute_transp): Remove mem_set_in_block test.
15266         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
15267         of edge, and removal of phi alternative to dump file.
15268         (ssa_ccp_substitute_constants): Add note about register now being
15269         constant, and which uses were replaced in what insns to dump file.
15271 2001-07-16  Andreas Jaeger  <aj@suse.de>
15273         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
15274         variables of type HOST_WIDEST_INT.
15276         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
15277         (__bb_exit_func): Correct type of count_max to avoid overflow.
15278         (num_digits): Handle long long argument.
15280         * combine.c (gen_lowpart_for_combine): Remove unused variable.
15282 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15284         * output.h (sdb_begin_function_line): Restore as an extern
15285         variable.
15286         * sdbout.c (sdb_begin_function_line): Make extern.
15288 2001-07-15  Richard Henderson  <rth@redhat.com>
15290         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
15291         * genrecog.c (maybe_both_true_mode): New.
15292         (maybe_both_true_2): Use it.
15293         (write_switch): Don't put Pmode in a switch.
15294         * rtl.c (mode arrays): Don't explicitly size them.
15296 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
15298         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
15299         handling; move unconditional splitting before mode switching.
15301         * i386.md (type): Add fistp type.
15302         (i387, length_attr, scheduling definitions): Handle this type.
15303         (fix_trunc?f?i2): Revamp to use mode switching.
15304         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
15305         * i386.h (fp_cw_mode): New enum
15306         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
15307         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
15309 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15311         * Makefile.in (integrate.o): Add debug.h.
15312         * integrate.c (debug.h): Add.
15313         (output_inline_function): Save, reset, and restore debug_hooks.
15315 2001-07-15  Richard Henderson  <rth@redhat.com>
15317         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
15318         instead of COMPARE for the EQUIV expression.
15320 2001-07-15  Richard Henderson  <rth@redhat.com>
15322         * flow.c (redirect_edge_and_branch_force): Initialize
15323         global_live_at_start and global_live_at_end.
15324         (allocate_bb_life_data): Export.
15325         * basic-block.h (allocate_bb_life_data): Declare.
15326         * toplev.c (rest_of_compilation): Call it.
15328 2001-07-15  Richard Henderson  <rth@redhat.com>
15330         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
15331         (alpha_tablejump_best_label): New.
15332         * config/alpha/alpha-protos.h: Declare them.
15333         * config/alpha/alpha.md: Use braced strings for code blocks.
15334         (tablejump_osf): Break out add with r29.
15335         (tablejump_osf_internal): Remove.
15336         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
15337         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
15339 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
15341         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
15342         of the movable.
15344         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
15346         * i386-protos.h (ix86_split_fp_branch): Update prototype.
15347         (ix86_fp_jump_nontrivial_p): New.
15348         * i386.md (fp_jcc_?): Update call of split_fp_branch;
15349         use ix86_fp_jump_nontrivial_p.
15350         * i386.c (ix86_fp_jump_nontrivial_p): New.
15351         (ix86_split_fp_branch): Accept code instead of rtx.
15352         (ix86_expand_compare): Expand comparison early in case
15353         doing so is resonably cheap.
15355 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
15357         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
15358         not 'machine'.
15359         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
15360         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
15362 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
15364         * dbxout.c (dbxout_source_line): Make static, update prototype.
15365         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
15366         (dbxout_init, dbxout_finish, dbxout_source_line,
15367         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
15368         * dbxout.h (dbxout_source_line): Delete.
15369         * debug.c (debug_nothing_file, debug_nothing_file_int,
15370         debug_nothing_file_charstar_rtx): New.
15371         (do_nothing_debug_hooks): Update.
15372         (debug_nothing_void, debug_nothing_charstar_rtx,
15373         dwarf2out_end_epilogue): New.
15374         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
15375         * debug.h (struct rtx_def): Declare.
15376         (gcc_debug_hooks): New hooks source_line, end_epilogue
15377         and end_function.
15378         (debug_nothing_void, debug_nothing_charstar_rtx,
15379         dwarf2out_end_epilogue): New.
15380         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
15381         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
15382         (dwarf2_debug_hooks): Update.
15383         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
15384         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
15385         * dwarf2out.h (dwarf2out_source_line): Remove.
15386         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
15387         Make static, update prototype.
15388         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
15389         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
15390         (dwarf_debug_hooks): Update.
15391         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
15392         dwarfout_end_function): Remove.
15393         * final.c (profile_function): Use debug hooks for ending functions
15394         and epilogues.
15395         (output_source_line, final_end_function): Update prototype,
15396         use debug hooks.
15397         (final_start_function, final_scan_insn): Update.
15398         * output.h (sdb_begin_function_line): Remove.
15399         (final_end_function): Update prototype.
15400         * sdbout.c (sdb_begin_function_line): Make static.
15401         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
15402         (sdbout_source_line): New.
15403         (sdbout_end_epilogue, sdbout_end_function): Make static, update
15404         prototypes.
15405         (sdb_debug_hooks): Update.
15406         (sdbout_init, sdbout_source_line,
15407         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
15408         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
15409         * toplev.c (compile_file, rest_of_compilation): Update.
15410         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
15411         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
15412         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
15413         Update for prototype changes.
15414         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
15415         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
15417 2001-07-15  Richard Henderson  <rth@redhat.com>
15419         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
15420         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
15421         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
15422         * config/alpha/alpha.c: Likewise.
15423         * config/alpha/alpha.md: Likewise.
15424         * config/alpha/alpha32.h: Likewise.
15425         * config/alpha/vms.h: Likewise.
15426         (OPEN_VMS): Remove.
15428 2001-07-14  Richard Henderson  <rth@redhat.com>
15430         * config/alpha/alpha.md: Use define_constants for unspec values.
15431         Substitute throughout.
15433 2001-07-14  Tim Josling  <tej@melbpc.org.au>
15435         * tree.def (EXPON_EXPR) remove. Never supported anyway.
15437 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15439         * pa.md: Remove unused constraints from define_split's.
15441 2001-04-14  Richard Henderson  <rth@redhat.com>
15443         * ifcvt.c (find_cond_trap): Test for exit block.
15445 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
15447         Re-install recently reverted patch.
15448         * emit-rtl.c (try_split): Update mark_jump_label call.
15449         * flow.c (find_sub_basic_blocks): Likewise.
15450         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
15451         jump_back_p): Kill.
15452         (mark_all_labels): Kill second parameter.
15453         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
15454         (rebuild_jump_labels, jump_optimize_minimal): Update call
15455         of jump_optimize_1.
15456         (jump_optimize_1): Kill crossjumping code.
15457         (mark_jump_label): Kill cross_jump parameter.
15458         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
15459         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
15460         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
15461          splitting.
15462         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
15463         DFI_bpro.
15464         (dump_file_info): Likewise.
15465         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
15466         reorganize passes to do reg-stack first, bb-reorder second.
15467         * invoke.texi (-d letters doc): Remove the jump2 pass.
15469 2001-07-14  Richard Henderson  <rth@redhat.com>
15471         * ifcvt.c (find_cond_trap): New.
15472         (find_if_header): Call it.
15473         (merge_if_block): Relax existing jump sanity check.
15474         * jump.c (jump_optimize_1): Remove conditional trap handling.
15476 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
15478         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
15479         millicode.
15480         (insn_refs_are_delayed): Correct comment.
15481         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
15482         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
15483         instead of r31.  Make associated insn !TARGET_64BIT, and
15484         provide an additional 64-bit insn that clobbers r2.
15485         (divsi3): Likewise.
15486         (udivsi3): Likewise.
15487         (modsi3): Likewise.
15488         (umodsi3): Likewise.
15490 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
15492         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
15494         * flow.c (redirect_edge_and_branch_force, split_edge,
15495         try_crossjump_to_edge): Use set_block_for_new_insns.
15496         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
15498 2001-07-13  H.J. Lu  (hjl@gnu.org)
15500         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
15501         the correct patch.
15503 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
15505         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
15507 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
15509         * c-common.c (decl_attributes): Take a pointer to the node to
15510         which attributes are to be attached, and a flags argument.
15511         * c-common.h (enum attribute_flags): New.
15512         (decl_attributes): Update prototype.
15513         * c-decl.c (start_decl, push_parm_decl, finish_struct,
15514         finish_enum, start_function): Update calls to decl_attributes.
15515         * c-parse.in (component_declarator, component_notype_declarator,
15516         label): Update calls to decl_attributes.
15518 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
15520         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
15521         * config/avr/avr.c (legitimate_address_p): Return value changed
15522         from letter to register classes. For better debugging.
15524 2001-07-13  Kazu Hirata  <kazu@hxi.com>
15526         * jump.c (reversed_comparison_code_parts): Fix comment typos.
15528 2001-07-13  H.J. Lu  (hjl@gnu.org)
15530         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
15532 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
15534         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
15535         correctly for shared configurations.
15536         * config/t-libgcc-pic:  New.
15537         * config/{i386,m68k,sparc}/t-openbsd:  New.
15538         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
15539         Support -shared.  Support debugging libraries with -g.
15540         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
15541         frame information does not emit pointer diffs.
15542         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
15543         emit pointer diffs.
15545 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
15547         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
15549 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
15551         * combine.c (try_combine): Ensure const_int pow2 is positive.
15553 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
15555         * config.gcc: Add configuration for s/390.
15556         * config/s390/s390.c: New. Subroutines for code generation.
15557         * config/s390/s390.h: New. Definitions for s/390.
15558         * config/s390/s390-protos.h: New. Prototypes.
15559         * config/s390/linux.h: New. Definitions for linux for s/390.
15560         * config/s390/linux64.h: New. Definitions for linux for zSeries.
15561         * config/s390/t-linux: New. Makefile fragment.
15562         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
15563         * config/s390/fixdfdi.h: New. Fix L_fix*di.
15565 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
15567         * emit-rtl.c (try_split): Update mark_jump_label call.
15568         * flow.c (find_sub_basic_blocks): Likewise.
15569         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
15570         jump_back_p): Kill.
15571         (mark_all_labels): Kill second parameter.
15572         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
15573         (rebuild_jump_labels, jump_optimize_minimal): Update call
15574         of jump_optimize_1.
15575         (jump_optimize_1): Kill crossjumping code.
15576         (mark_jump_label): Kill cross_jump parameter.
15577         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
15578         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
15579         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
15580          splitting.
15581         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
15582         DFI_bpro.
15583         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
15584         reorganize passes to do reg-stack first, bb-reorder second.
15585         * invoke.texi (-d letters doc): Remove the jump2 pass.
15587 2001-07-12  Steve Ellcey <sje@cup.hp.com>
15589         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
15591 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
15593         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
15594         basic blocks.
15595         (verify_flow_info): Make diagnostics prettier.
15597 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
15599         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
15601         * flow.c (outgoing_edges_match): Return early if condition reversal
15602         failed.
15604 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
15606         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
15607         (mips_move_2words): When splitting a move into two instructions,
15608         prefix the second address operand with '%D'.
15610 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
15612         * Makefile.in (final.o): Depend on debug.h.
15613         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
15614         (dbx_debug_hooks): Add new hooks.
15615         (xcoff_debug_hooks): New.
15616         * debug.c (debug_nothing_file_int_int): New.
15617         (do_nothing_debug_hooks): Update.
15618         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
15619         (debug_nothing_file_int_int): New.
15620         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
15621         static, update prototype.
15622         (dwarf2_debug_hooks): Update.
15623         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
15624         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
15625         static, update prototype.
15626         (dwarf_debug_hooks): Update.
15627         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
15628         * final.c: Include debug.h.
15629         (final_scan_insn): Use debug hooks when beginning and ending blocks.
15630         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
15631         static, update prototype.
15632         (sdb_debug_hooks): Update.
15633         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
15634         * toplev.c: Distinguish between xcoff and dbx.
15636         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
15637         Call all debug hooks, not just dwarf ones.
15639 2001-07-11  Timothy Wall  <twall@redhat.com>
15641         * config.gcc: Add configuration for AIX5/IA64.
15642         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
15643         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
15644         support prefix/suffix code.
15645         * config/ia64/t-aix: New.  Makefile fragment.
15646         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
15648 2001-07-11  Kazu Hirata  <kazu@hxi.com>
15650         * recog.c (validate_change): Fix a comment typo.
15652 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
15654         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
15655         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
15656         hooks directly.
15657         * dbxout.c (dbx_debug_hooks): Add new hooks.
15658         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
15659         make static.
15660         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
15661         make static.
15662         * dbxout.h (dbxout_start_new_source_file,
15663         dbxout_resume_previous_source_file): Delete.
15664         * debug.c (do_nothing_debug_hooks): Add new hooks.
15665         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
15666         (debug_nothing_int_charstar, debug_nothing_int): New.
15667         * debug.h (gcc_debug_hooks): New hooks define, undef,
15668         start_source_file and end_source_file.
15669         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
15670         (debug_nothing_int_charstar, debug_nothing_int): New.
15671         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
15672         the conditionally compiled section.
15673         (dwarf2out_start_source_file, dwarf2out_end_source_file,
15674         dwarf2out_define, dwarf2out_undef): Make static.
15675         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
15676         dwarf2out_define, dwarf2out_undef): Remove.
15677         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
15678         (dwarfout_start_source_file, dwarfout_end_source_file,
15679         dwarfout_define, dwarfout_undef): Make static.
15680         (dwarfout_start_source_file_check,
15681         dwarfout_end_source_file_check): New.
15682         (dwarfout_define, dwarfout_finish): Update.
15683         * dwarfout.h (dwarfout_start_new_source_file,
15684         dwarfout_resume_previous_source_file, dwarfout_define,
15685         dwarfout_undef): Remove.
15686         * sdbout.c (sdb_debug_hooks): Add new hooks.
15687         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
15688         make static.
15689         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
15690         make static, take an arg.
15691         * sdbout.h (sdbout_start_new_source_file,
15692         sdbout_resume_previous_source_file): Delete.
15693         * toplev.c (debug_start_source_file, debug_end_source_file,
15694         debug_define, debug_undef): Delete.
15695         * toplev.h (debug_start_source_file, debug_end_source_file,
15696         debug_define, debug_undef): Delete.
15698         * java/jcf-parse.c: Include debug.h.
15699         (parse_class_file): Update to use debug hooks directly.
15700         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
15702 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15704         * alias.c (set_mem_alias_set): New function.
15705         * rtl.h (set_mem_alias_set): Declare it.
15706         * builtins.c (expand_builtin_return_addr): Call it instead of
15707         using MEM_ALIAS_SET accessor.
15708         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
15709         (get_memory_rtx, expand_builtin_va_arg): Likewise.
15710         (expand_builtin_va_copy):Likewise.
15711         * caller-save.c (setup_save_areas): Likewise.
15712         * calls.c (compute_argument_addresses): Likewise.
15713         * explow.c (set_mem_attributes): Likewise.
15714         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
15715         (expand_assignment, store_constructor_field, store_field): Likewise.
15716         (expand_expr_unaligned): Likewise.
15717         * function.c (assign_stack_temp_for_type): Likewise.
15718         (put_reg_into_stack, gen_mem_addressof): Likewise.
15719         * ifcvt.c (noce_try_cmove_arith): Likewise.
15720         * reload1.c (reload, alter_reg): Likewise.
15721         * config/alpha/alpha.c (get_aligned_mem): Likewise.
15722         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
15723         (alpha_expand_unaligned_store): Likewise
15724         (alpha_expand_unaligned_load_words): Likewise.
15725         (alpha_expand_unaligned_store_words): Likewise.
15726         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
15727         (alpha_expand_epilogue): Likewise.
15728         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15729         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
15730         * config/i386/i386.c (legitimize_pic_address): Likewise.
15731         * config/i960/i960.c (setup_incoming_varargs): Likewise.
15732         * config/ia64/ia64.c (spill_restore_mem): Likewise.
15733         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15734         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
15735         * config/mips/mips.c (mips_va_arg): Likewise.
15736         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
15737         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
15738         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
15739         (setup_incoming_varargs, rs6000_va_arg): Likewise.
15740         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
15741         (rs6000_emit_epilogue): Likewise.
15742         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
15743         * config/sparc/sparc.c (sparc_va_arg): Likewise.
15744         * config/v850/v850.c (v850_va_arg): Likewise.
15746 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
15748         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
15749         when fallthru edge is present.
15750         (mege_blocks): Handle case where creation of jump insn
15751         is required.
15753         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
15754         CLEANUP_POST_REGSTACK): New constants.
15755         * except.c (finish_eh_generation): Update call of cleanup_cfg,
15756         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
15757         * output.h (cleanup_cfg): Update prototype.
15758         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
15759         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
15760         cleanup_cfg call; kill missleading comment.
15761         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
15762         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
15763         parameter; control optimizations performed using it.
15764         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
15765         try_crossjump_bb): New functions.
15767 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15769         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
15770         extern.
15771         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
15772         pa_output_function_prologue.
15773         * pa-protos.h (pa_output_function_prologue): New prototype.
15775 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15777         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
15778         and low to get correct sign extension in low+high test.
15780 2001-07-11  Janis Johnson <janis@us.ibm.com>
15782         * gcov.c (arcdata): Use gcov_type to fix branch percentage
15783         for large hit count.
15785         * profile.c (branch_prob): Fix .bbg info for computed gotos
15786         and C++ EH code.
15788 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
15790         * stmt.c (parse_output_constraint): New function, split out
15791         from ...
15792         (expand_asm_operands): ... here.  Use parse_output_constraint.
15793         * tree.h (parse_output_constraint): Declare it.
15795 2001-07-11  Richard Henderson  <rth@redhat.com>
15797         * bitmap.c: Comment some functions; fiddle whitespace.
15798         (bitmap_free): Don't export.
15799         (bitmap_element_allocate): Use memset.
15800         * bitmap.h (bitmap_free): Don't declare.
15802 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
15804         * gcse.c, lcm.c, sched-deps.c:
15805         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
15807         * flow.c (flow_loops_find): Free dom if we found no loops, since
15808         we aren't going to save it.
15810         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
15811         done.
15813 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
15815         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
15817 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15819         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
15820         #ifndef DWARF2_DEBUGGING_INFO.
15822 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
15824         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
15826 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
15828         * config/mips/mips.c (gen_int_relational): Tell the caller not to
15829         reverse a branch if a NE comparison is implemented with GTU.
15831 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
15832             H.J. Lu  <hjl@gnu.org>
15834         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
15835         constant addresses.
15836         (call_internal2): Likewise.
15837         (call_value_internal1): Likewise.
15838         (call_value_internal2): Likewise.
15839         (call_value_multiple_internal1): Likewise.
15840         (call_value_multiple_internal2): Likewise.
15842 2001-07-10  Kazu Hirata  <kazu@hxi.com>
15844         * calls.c (emit_library_call_value_1): Fix a comment typo.
15845         * dwarf2out.c (mem_loc_descriptor): Likewise.
15846         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
15848 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
15850         * simplify-rtx.c (simplify_subreg): Fix typo in comment
15852 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15854         * recog.c (offsettable_address_p): Handle LO_SUM case.
15855         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
15856         instead of plus_constant.
15858 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15860         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
15861         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
15863 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15865         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
15866         adjust_address_nv instead of plus_constant.
15868 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
15870         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
15871         dwarf2out.o): Depend on debug.h, wrap long lines.
15872         * dbxout.c: Include debug.h.
15873         (dbx_debug_hooks): New.
15874         (dbxout_init): Make static, take just 2 args.
15875         (dbxout_finish): Make static.
15876         * dbxout.h (dbxout_init, dbxout_finish): Delete.
15877         * debug.c: New file.
15878         * debug.h: New file.
15879         * dwarf2out.c: Include debug.h.
15880         (dwarf2_debug_hooks): New.
15881         (dwarf2out_init): Make static.
15882         (dwarf2out_finish): Make static, take 2 args.
15883         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
15884         * dwarfout.c: Include debug.h.
15885         (dwarf_debug_hooks): New.
15886         (dwarfout_init): Make static.
15887         (dwarfout_finish): Make static, take 2 args.
15888         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
15889         * sdbout.c: Include debug.h.
15890         (sdb_debug_hooks): New.
15891         (sdbout_init): Make static, take 2 args.
15892         * sdbout.h (sdbout_init): Delete.
15893         * toplev.c: Include debug.h.
15894         (debug_hooks): New.
15895         (compile_file): Set deubg_hooks based on command line options.
15896         Use the hooks unconditionally rather than conditional compilation.
15898 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
15900         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
15901         first_insn_after_basic_block_note instead.
15903         * df.c (df_bb_refs_unlink): #if 0 out for now.
15905 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
15907         * ssa.h: Add prototype for ssa_const_prop
15908         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
15909         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
15910         (ssa_fast_dce): Remove unused variable
15912 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
15914         * diagnostic.c (finish_diagnostic): Rename to
15915         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
15916         calls thourghout.
15918 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
15920         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
15921         .loc support.
15923         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
15924         (dump_file): Only pad the demangled name with spaces if the
15925         mangled name was padded with spaces.
15927 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
15929         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
15930         edge detection.
15932 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15934         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
15935         extraction if no direct load if either EXPAND_CONST_ADDRESS or
15936         EXPAND_INITIALIZER.
15938         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
15939         whether can put offset inside LO_SUM to check mode alignment, not size.
15941 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
15943         * doc/tm.texi (Misc): Fix thinko.
15945 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
15947         * regmove.c (replace_in_call_usage): Fix warnings.
15948         * sched-deps.c (add_dependence): Fix warnings.
15949         * simplify-rtx.c (simplify_subreg): Likewise.
15950         Return NULL_RTX instead of NULL.
15952         * reg-stack.c (emit_swap_insn): Eliminate warnings.
15953         (subst_asm_stack_regs): Likewise.
15955         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
15956         warnings.
15958         * dwarf2out.c (output_call_frame_info): Declare i as int.
15959         (build_abbrev_table): Declare n_alloc as int.
15960         (dwarf2out_finish): Initialize die.
15961         * except.c: Declare sjlj_funcdef_number as unsigned.
15962         (connect_post_landing_pads): Declare j as unsigned.
15963         (convert_to_eh_region_ranges): Initialize call_site.
15964         (output_function_exception_table): Initialize tt_format_size.
15965         * expr.c (move_by_pieces_1): Initialize to1.
15966         (store_constructor): Initialize minelt and maxelt.
15967         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
15968         * function.c (instantiate_decls): Avoid signed/unsigned warning.
15970         * c-decl.c (combine_parm_decls): Unused, remove.
15971         * c-tree.h: Remove prototype for combine_parm_decls.
15973         * reload.c (push_reload): Fix warning.
15974         (regno_clobbered_p): Likewise.
15975         * reload1.c (replace_pseudos_in_call_usage): Likewise.
15976         (reload_combine): Likewise.
15978         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
15979         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
15980         warnings.
15981         * bitmap.c (bitmap_operation): Change user.
15982         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
15984 2001-07-10  Eric Christopher  <echristo@redhat.com>
15986         * config/mips/mips.c (override_options): Fix typo.
15988 2001-07-09  Stan Shebs  <shebs@apple.com>
15990         * target.h (struct gcc_target): New fields init_builtins and
15991         expand_builtin.
15992         * target-def.h (TARGET_INIT_BUILTINS): New macro.
15993         (TARGET_EXPAND_BUILTIN): New macro.
15994         (TARGET_INITIALIZER): Add them.
15995         * builtins.c: Include target.h.
15996         (expand_builtin): Use targetm.expand_builtin.
15997         (default_init_builtins): New function.
15998         (default_expand_builtin): New function.
15999         * expr.h (default_init_builtins): Declare.
16000         (default_expand_builtin): Declare.
16001         * c-common.c (c_common_nodes_and_builtins): Use
16002         targetm.init_builtins.
16003         * defaults.h (MD_INIT_BUILTINS): Remove.
16004         * Makefile.in (builtins.o): Depend on target.h.
16006         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
16007         (TARGET_EXPAND_BUILTIN): Define.
16008         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
16009         (MD_EXPAND_BUILTIN): Remove.
16011         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
16012         (TARGET_EXPAND_BUILTIN): Define.
16013         (c4x_init_builtins): Make endlink arg a local.
16014         (c4x_print_operand): Fix typos in adjust_address usages.
16015         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
16016         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
16017         (MD_EXPAND_BUILTIN): Remove.
16019         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
16020         (TARGET_EXPAND_BUILTIN): Define.
16021         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
16022         (ix86_init_builtins): Call new function only if TARGET_MMX.
16023         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
16024         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
16025         (MD_EXPAND_BUILTIN): Remove.
16027         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
16028         (TARGET_EXPAND_BUILTIN): Define.
16029         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
16030         (MD_EXPAND_BUILTIN): Remove.
16032         * doc/tm.texi: Document these changes.
16034 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
16036         * basic-block.h (tree_node): Forward declare if needed.
16037         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
16038         (BLOCK_HEAD_TREE): Define.
16039         (BLOCK_END_TREE): Define.
16040         (struct loops): Rename field 'tree' to 'tree_root'.
16041         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
16042         'end_tree'.
16043         (flow_loops_tree_build): Rename reference to field 'tree' to
16044         'tree_root'.
16045         (flow_loops_level_compute): Ditto.
16046         * predict.c (estimate_bb_frequencies): Ditto.
16047         * tree.h (struct tree_common): Add field 'aux'.
16049 2001-07-09  Stan Shebs  <shebs@apple.com>
16051         * config/darwin.c (darwin_encode_section_info): Don't mark any
16052         DECL_EXTERNAL node as defined.
16054 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16056         * pa.c (pa_init_machine_status, pa_mark_machine_status,
16057         pa_free_machine_status, hppa_init_pic_save): Delete.
16058         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
16059         (hppa_profile_hook): Use hppa_pic_save_rtx.
16060         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
16061         hppa_init_pic_save): Delete.
16062         (hppa_pic_save_rtx): Declare.
16063         * pa.md (call, call_value, sibcall, sibcall_value,
16064         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
16066 2001-07-09  Kazu Hirata  <kazu@hxi.com>
16068         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
16069         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
16071 2001-07-09  Andreas Jaeger  <aj@suse.de>
16073         * output.h: Add declaration of final_forward_branch_p.
16075         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
16077         * varray.c: Include errors.h for internal_error and trim_filename
16078         declarations.
16080         * Makefile.in (varray.o): Add errors.h.
16082 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
16084         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
16085         * optabs.c (have_add2_insn): Check whether the add insn chosen
16086         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
16087         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
16089 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
16091         * Makefile.in (OBJS): Add ssa-ccp.o
16092         (ssa-ccp.o): Add dependencies.
16093         * toplev.c (DFI_ssa_ccp): New dump file enum.
16094         (dump_file): Add entry for dumping after SSA CCP.
16095         (flag_ssa_ccp): New flag variable.
16096         (f_options): Add -fssa-ccp.
16097         (rest_of_compilation): Run SSA CCP if requested.
16098         * timevar.def (TV_SSA_CCP): New timevar.
16099         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
16100         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
16101         Fix minor typo in SSA DCE documentation.
16102         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
16103         Add documentation for new dump option.  Renumber dump files
16104         appropriately.
16106 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
16108         * emit-rtl.c (gen_highpart_mode): New.
16109         * rtl.h (gen_highpart_mode): Declare.
16110         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
16111         operand can be VOIDmode constant.
16113 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
16115         * flow.c (redirect_edge_and_branch_force): New.
16116         (can_fallthru): Ensure that basic blocks are succeeding.
16117         (try_optimize_cfg): Do not delete basic block if it is the last one.
16119         * flow.c (try_redirect_by_replacing_jump): Do not remove
16120         jumps with side effects, unlink chain on fallthru edge;
16121         set block for new jump instruction; avoid basic block to
16122         over by line number note.
16124         * flow.c (try_simplify_condjump): Verify that the condjump
16125         is not always falling through.
16127         Re-install patch:
16128         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
16130         * flow.c (forwarder_block_p): Fix for fallthru blocks.
16131         (try_redirect_by_replacing_jump): Update properly the count
16132         and frequency information.
16134 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16136         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
16137         address that is a LO_SUM specially.
16138         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
16140         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
16142         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
16143         (operand_subword): Use them.
16144         (change_address_1): Renamed from change_address; new arg VALIDATE.
16145         * expr.h: Reflect above changes; change_address now macro.
16146         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
16147         making MEM.
16148         * cselib.c (add_mem_for_addr): Likewise.
16149         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
16150         * regmove.c (try_apply_stack_adjustment): Likewise.
16151         * reload.c (push_reload, make_memloc): Likewise.
16152         * reload1.c (eliminate_regs): Likewise.
16153         * simplify-rtx.c (simplify_replace_rtx): Likewise.
16154         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
16155         adjust_addess.
16156         * combine.c (make_extraction, simplify_shift_const): Likewise.
16157         (gen_lowpart_for_combine): Likewise.
16158         * cse.c (gen_lowpart_if_possible): Likewise.
16159         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
16160         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
16161         * optabs.c (gen_move_insn): Likewise.
16162         * reload1.c (alter_reg): Likewise.
16163         * simplify-rtx.c (simplify_subreg): Likewise.
16164         * stmt.c (expand_anon_union_decl): Likewise.
16165         * recog.c (validate_replace_rtx_1): Likewise.
16166         (expr.h): Include.
16167         * Makefile.in (recog.o): Add $(EXPR_H).
16168         * explow.c (stabilize): Call replace_equiv_address.
16169         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
16170         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
16172 2001-07-03  Andrew Haley  <aph@redhat.com>
16174         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
16175         the mode of the memory location.
16177 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
16179         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
16181 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
16183         * final.c (output_addr_const): Use target opening and
16184         closing parentheses.
16185         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
16186         defaults, add to TARGET_ASM_OUT.
16187         * target.h (struct gcc_target): Add open_paren and close_paren.
16188         * doc/md.texi: Update.
16189         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
16190         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
16191         TARGET_ASM_CLOSE_PAREN.
16192         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
16193         Override.
16194         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
16195         Override.
16196         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
16197         * config/a29k/a29k.h: Similarly.
16198         * config/alpha/alpha.h: Similarly.
16199         * config/arc/arc.h: Similarly.
16200         * config/arm/aof.h: Similarly.
16201         * config/arm/aout.h: Similarly.
16202         * config/avr/avr.h: Similarly.
16203         * config/c4x/c4x.h: Similarly.
16204         * config/clipper/clipper.h: Similarly.
16205         * config/convex/convex.h: Similarly.
16206         * config/d30v/d30v.h: Similarly.
16207         * config/dsp16xx/dsp16xx.h: Similarly.
16208         * config/elxsi/elxsi.h: Similarly.
16209         * config/fr30/fr30.h: Similarly.
16210         * config/h8300/h8300.h: Similarly.
16211         * config/i370/i370.h: Similarly.
16212         * config/i386/i386.h: Similarly.
16213         * config/i860/i860.h: Similarly.
16214         * config/i960/i960.h: Similarly.
16215         * config/ia64/ia64.h: Similarly.
16216         * config/m32r/m32r.h: Similarly.
16217         * config/m68hc11/m68hc11.h: Similarly.
16218         * config/m68k/m68k.h: Similarly.
16219         * config/m88k/m88k.h: Similarly.
16220         * config/mcore/mcore.h: Similarly.
16221         * config/mips/mips.h: Similarly.
16222         * config/mn10200/mn10200.h: Similarly.
16223         * config/mn10300/mn10300.h: Similarly.
16224         * config/ns32k/ns32k.h: Similarly.
16225         * config/pa/pa.h: Similarly.
16226         * config/pdp11/pdp11.h: Similarly.
16227         * config/pj/pj.h: Similarly.
16228         * config/romp/romp.h: Similarly.
16229         * config/rs6000/rs6000.h: Similarly.
16230         * config/sh/sh.h: Similarly.
16231         * config/sparc/sparc.h: Similarly.
16232         * config/v850/v850.h: Similarly.
16233         * config/vax/vax.h: Similarly.
16234         * config/we32k/we32k.h: Similarly.
16236 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
16238         * doc/c-tree.texi: Document representation of attributes.
16240 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16242         * doc/tm.texi: Update some places for the rename of target to
16243         targetm.  Fix typo.
16245 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16247         * target.h (struct gcc_target): Add insert_attributes.
16248         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
16249         (TARGET_INITIALIZER): Update.
16250         * tree.c, tree.h (default_insert_attributes): New function.
16251         Update comments on other default functions to refer to targetm,
16252         not target.
16253         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
16254         TARGET_INSERT_ATTRIBUTES.
16255         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
16256         * c-common.c (decl_attributes): Use targetm.insert_attributes.
16257         Don't use PRAGMA_INSERT_ATTRIBUTES.
16258         * Makefile.in (c-common.o): Depend on $(TARGET_H).
16259         * c-decl.c (start_decl, start_function): Don't call
16260         SET_DEFAULT_DECL_ATTRIBUTES.
16261         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
16262         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
16263         declare.
16264         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
16265         (c4x_check_attribute): Avoid modifying attribute list itself.
16266         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
16267         Make static.
16268         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
16269         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
16270         declare.
16271         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
16272         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
16273         Make static.
16274         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
16275         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
16276         declare.
16277         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
16278         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
16279         Adjust parameters.  Make static.
16281 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16283         * c-common.c (decl_attributes): Only take a single attributes
16284         parameter.
16285         * c-common.h (decl_attributes): Update prototype.
16286         * c-decl.c (start_decl, start_function): Only take a single
16287         attributes parameter.  Update calls to decl_attributes.
16288         (finish_struct, finish_enum): Update calls to decl_attributes.
16289         (push_parm_decl): Expect unified list of attributes.  Update call
16290         to decl_attributes.
16291         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
16292         notype_nested_function, component_declarator,
16293         component_notype_declarator, label): Update calls to
16294         decl_attributes.
16295         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
16296         lists that are passed to push_parm_decl.
16297         * c-tree.h (start_function, start_decl): Update prototypes.
16298         * config/sh/sh-protos.h, config/sh/sh.c
16299         (sh_pragma_insert_attributes): Only take a single attributes
16300         parameter.
16301         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
16302         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
16303         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
16304         build_module_descriptor, generate_static_references,
16305         generate_strings, build_selector_translation_table,
16306         generate_descriptor_table, generate_protocols,
16307         generate_ivars_list, generate_dispatch_table,
16308         generate_protocol_list, generate_category,
16309         generate_shared_structures, really_start_method, add_objc_decls,
16310         generate_classref_translation_entry): Update calls to start_decl
16311         and start_function.
16312         (build_tmp_function_decl, start_method_def): Unify attribute lists
16313         that are passed to push_parm_decl.
16315 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
16317         * final.c (no_asm_to_stream): New.
16318         (final_scan_insn): Use target structures for prologue ends
16319         and epilogue starts.
16320         * output.h (no_asm_to_stream): New.
16321         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
16322         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
16323         (TARGET_ASM_OUT): Update.
16324         * target.h (struct gcc_target): New members function_end_prologue
16325         and function_begin_epilogue.
16326         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
16327         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
16328         * config/alpha/alpha.c (output_end_prologue): Rename to
16329         alpha_output_function_end_prologue.  Use in target struct
16330         and make static.
16331         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
16332         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
16333         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
16334         ia64_output_function_end_prologue.  Use in target struct
16335         and make static.
16336         (ia64_function_prologue, ia64_funciton_epilogue): Rename
16337         mistyped prototypes.
16338         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
16339         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
16340         Delete.
16341         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
16342         an use in target struct, make static.
16343         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
16344         Delete.
16346 2001-07-08  Richard Henderson  <rth@redhat.com>
16348         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
16350 2001-07-08  Richard Henderson  <rth@redhat.com>
16352         * config/i386/i386.md: Remove constraints strings from define_split
16353         and define_peephole2 patterns.
16354         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
16355         (eh_return): Use them.
16357 2001-07-08  Richard Henderson  <rth@redhat.com>
16359         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
16360         Document MD_FALLBACK_FRAME_STATE_FOR.
16362 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16364         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
16365         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
16366         elimination.
16367         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
16369 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
16371         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
16372         of the label inside NAME as opposed to just the end of NAME.
16374 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
16376         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
16377         * config/alpha/alpha.c (alpha_init_machine_status,
16378         alpha_mark_machine_status, alpha_free_machine_status): Delete.
16379         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
16380         (vms_valid_decl_attribute_p): Make static, conditionally compile.
16381         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
16383 2001-07-06  Stan Shebs  <shebs@apple.com>
16385         * target.h (targetm): Rename global from "target", so as not to
16386         conflict with local variables.
16387         * c-decl.c: Ditto.
16388         * c-typeck.c: Ditto.
16389         * final.c: Ditto.
16390         * tree.c: Ditto.
16391         * cp/decl.c: Ditto.
16392         * cp/decl2.c: Ditto.
16393         * cp/typeck.c: Ditto.
16394         * 1750a/1750a.c: Ditto.
16395         * a29k/a29k.c: Ditto.
16396         * arc/arc.c: Ditto.
16397         * arm/arm.c: Ditto.
16398         * avr/avr.c: Ditto.
16399         * clipper/clipper.c: Ditto.
16400         * convex/convex.c: Ditto.
16401         * d30v/d30v.c: Ditto.
16402         * dsp16xx/dsp16xx.c: Ditto.
16403         * elxsi/elxsi.c: Ditto.
16404         * fr30/fr30.c: Ditto.
16405         * h8300/h8300.c: Ditto.
16406         * i370/i370.c: Ditto.
16407         * i386/i386.c: Ditto.
16408         * i860/i860.c: Ditto.
16409         * i960/i960.c: Ditto.
16410         * ia64/ia64.c: Ditto.
16411         * m32r/m32r.c: Ditto.
16412         * m68hc11/m68hc11.c: Ditto.
16413         * m68k/m68k.c: Ditto.
16414         * m88k/m88k.c: Ditto.
16415         * mips/mips.c: Ditto.
16416         * ns32k/ns32k.c: Ditto.
16417         * pa/pa.c: Ditto.
16418         * pdp11/pdp11.c: Ditto.
16419         * romp/romp.c: Ditto.
16420         * rs6000/rs6000.c: Ditto.
16421         * sh/sh.c: Ditto.
16422         * sparc/sparc.c: Ditto.
16423         * vax/vax.c: Ditto.
16424         * we32k/we32k.c: Ditto.
16425         * doc/tm.texi: Update the manual to match.
16427 2001-07-06  Richard Henderson  <rth@redhat.com>
16429         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
16430         DWARF2_UNWIND_INFO not just whether it is defined.
16432 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
16434         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
16435         call to simplify_binary_operation returns a new pattern.
16437 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
16439         * glimits.h (__SHRT_MAX__): New.
16440         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
16441         (SHRT_MAX): Define in terms of __SHRT_MAX__.
16443 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
16445         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
16446         avoid warnings.
16448 2001-07-06  Richard Henderson  <rth@redhat.com>
16450         * bitmap.c (bitmap_release_memory): Move adjacent to the
16451         allocation functions.
16452         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
16453         the implementation.  Binary search for the set bit.
16454         (bitmap_union_of_diff): Allocate the temporary on the stack
16455         instead of using xmalloc.
16457 2001-07-06  Richard Henderson  <rth@redhat.com>
16459         * genrecog.c (validate_pattern): Warn for constraints in
16460         define_{expand,split,peephole2}.  Remove strict_low_part
16461         before looking up match_dup.
16463 2001-07-06  DJ Delorie  <dj@redhat.com>
16465         * doc/gcc.texi (Makefile): Rename to be a more general purpose
16466         chapter about various build hints and history.  Add section
16467         talking about the various types of native and cross builds.
16469 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
16471         * Makefile.in (final.o): Depend on target.h.
16472         * final.c: Include target.h.
16473         (default_function_pro_epilogue): New.
16474         (final_start_function): Use target structure for function prologues.
16475         (final_end_function): Use target structure for function epilogues.
16476         * fold-const.c (real_hex_to_f): Constify s and p.
16477         * output.h (default_function_pro_epilogue): New.
16478         * real.h (real_hex_to_f): Update prototype.
16479         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
16480         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
16481         (TARGET_INITIALIZER): Update.
16482         * target.h (gcc_target): Add struct asm_out.
16483         * doc/tm.texi: Update.
16485 config:
16486         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
16487         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
16488         in cpu/cpu.c, or rename old functions consistently.  Take
16489         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
16490         redundant macros and prototypes.  Make new functions static.
16492         * 1750a/1750a.c: Similarly.
16493         * 1750a/1750a.h: Similarly.
16494         * a29k/a29k-protos.h: Similarly.
16495         * a29k/a29k.c: Similarly.
16496         * a29k/a29k.h: Similarly.
16497         * arc/arc-protos.h: Similarly.
16498         * arc/arc.c: Similarly.
16499         * arc/arc.h: Similarly.
16500         * arm/arm-protos.h: Similarly.
16501         * arm/arm.c: Similarly.
16502         * arm/arm.h: Similarly.
16503         * avr/avr-protos.h: Similarly.
16504         * avr/avr.c: Similarly.
16505         * avr/avr.h: Similarly.
16506         * clipper/clipper-protos.h: Similarly.
16507         * clipper/clipper.c: Similarly.
16508         * clipper/clipper.h: Similarly.
16509         * convex/convex.c: Similarly.
16510         * convex/convex.h: Similarly.
16511         * d30v/d30v-protos.h: Similarly.
16512         * d30v/d30v.c: Similarly.
16513         * d30v/d30v.h: Similarly.
16514         * d30v/d30v.md: Similarly.
16515         * dsp16xx/dsp16xx-protos.h: Similarly.
16516         * dsp16xx/dsp16xx.c: Similarly.
16517         * dsp16xx/dsp16xx.h: Similarly.
16518         * elxsi/elxsi.c: Similarly.
16519         * elxsi/elxsi.h: Similarly.
16520         * fr30/fr30.c: Similarly.
16521         * fr30/fr30.md: Similarly.
16522         * h8300/h8300-protos.h: Similarly.
16523         * h8300/h8300.c: Similarly.
16524         * h8300/h8300.h: Similarly.
16525         * i370/i370-protos.h: Similarly.
16526         * i370/i370.c: Similarly.
16527         * i370/i370.h: Similarly.
16528         * i386/i386.c: Similarly.
16529         * i386/osf1elf.h: Similarly.
16530         * i386/osfrose.h: Similarly.
16531         * i860/i860-protos.h: Similarly.
16532         * i860/i860.c: Similarly.
16533         * i860/i860.h: Similarly.
16534         * i960/i960-protos.h: Similarly.
16535         * i960/i960.c: Similarly.
16536         * i960/i960.h: Similarly.
16537         * ia64/ia64-protos.h: Similarly.
16538         * ia64/ia64.c: Similarly.
16539         * ia64/ia64.h: Similarly.
16540         * m32r/m32r-protos.h: Similarly.
16541         * m32r/m32r.c: Similarly.
16542         * m32r/m32r.h: Similarly.
16543         * m68hc11/m68hc11-protos.h: Similarly.
16544         * m68hc11/m68hc11.c: Similarly.
16545         * m68hc11/m68hc11.h: Similarly.
16546         * m68k/crds.h: Similarly.
16547         * m68k/dpx2.h: Similarly.
16548         * m68k/m68k-protos.h: Similarly.
16549         * m68k/m68k.c: Similarly.
16550         * m68k/m68k.h: Similarly.
16551         * m68k/news.h: Similarly.
16552         * m88k/m88k-protos.h: Similarly.
16553         * m88k/m88k.c: Similarly.
16554         * m88k/m88k.h: Similarly.
16555         * mips/mips-protos.h: Similarly.
16556         * mips/mips.c: Similarly.
16557         * mips/mips.h: Similarly.
16558         * ns32k/merlin.h: Similarly.
16559         * ns32k/ns32k.c: Similarly.
16560         * ns32k/ns32k.h: Similarly.
16561         * ns32k/tek6000.h: Similarly.
16562         * pa/pa-protos.h: Similarly.
16563         * pa/pa.c: Similarly.
16564         * pa/pa.h: Similarly.
16565         * pdp11/2bsd.h: Similarly.
16566         * pdp11/pdp11-protos.h: Similarly.
16567         * pdp11/pdp11.c: Similarly.
16568         * pdp11/pdp11.h: Similarly.
16569         * romp/romp-protos.h: Similarly.
16570         * romp/romp.c: Similarly.
16571         * romp/romp.h: Similarly.
16572         * rs6000/rs6000-protos.h: Similarly.
16573         * rs6000/rs6000.c: Similarly.
16574         * rs6000/rs6000.h: Similarly.
16575         * rs6000/sysv4.h: Similarly.
16576         * sh/sh-protos.h: Similarly.
16577         * sh/sh.c: Similarly.
16578         * sh/sh.h: Similarly.
16579         * sparc/sparc-protos.h: Similarly.
16580         * sparc/sparc.c: Similarly.
16581         * sparc/sparc.h: Similarly.
16582         * vax/vax.c: Similarly.
16583         * vax/vax.h: Similarly.
16584         * vax/vms.h: Similarly.
16585         * we32k/we32k.c: Similarly.
16586         * we32k/we32k.h: Similarly.
16588 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
16590         * basic-block.h (first_insn_after_basic_block_note): Declare.
16591         * flow.c (first_insn_after_basic_block_note): Define.  Moved
16592         from...
16593         * ssa.c (first_insn_after_basic_block_note): Remove.
16594         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
16595         necessary.
16596         (ssa_eliminate_dead_code): Properly update the CFG and PHI
16597         nodes when we find a dead conditional branch.  Insert BARRIERs
16598         after any blocks with no successors, but which do not have
16599         any BARRIERs.
16601 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
16603         * varray.c (varray_check_failed): Use internal_error.
16605 2001-07-05  Andrew Haley  <aph@redhat.com>
16607         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
16608         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
16609         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
16611 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
16613         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
16614         reference if the target constant is also a SYMBOL_REF.
16616 2001-07-05  Eric Christopher  <echristo@redhat.com>
16618         * config/mips/mips.h (MASK_MIPS3900): Remove.
16619         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
16620         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
16621         (TARGET_MIPS3900): Change to use mips_arch.
16622         (TARGET_MIPS4000): New.
16623         (TARGET_MIPS4100): New.
16624         (TARGET_MIPS4300): New.
16625         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
16626         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
16627         for -mipsX.
16628         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
16629         (ISA_HAS_BRANCHLIKELY): To here.
16630         (CC1_CPU_SPEC):  New.
16631         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
16632         (mips_arch_string): Declare.
16633         (mips_arch): Declare.
16634         (TARGET_OPTIONS): Add -march and -mtune.
16636         * config/mips/mips.c (mips_arch_string): New.
16637         (mips_arch): New.
16638         (override_options): Handle -march for codegen and -mtune
16639         for scheduling. Use mips_arch. Move tx39 target default here.
16640         (mips_parse_cpu): Move error message to override_options.
16642         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
16644         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
16646         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
16647         (MIPS Options): Ditto.  Change mcpu entry to historical text.
16649 2001-07-05  H.J. Lu  (hjl@gnu.org)
16651         * config/mips/mips.c (mips_parse_cpu): New function to parse
16652         -march=*/-mcpu=*.
16654 2001-07-05  Jim Wilson  <wilson@redhat.com>
16656         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
16657         * config/ia64/t-ia64: Likewise.
16658         (LIB1ASMFUNCS): Update comment.
16660 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
16662         * doc/install.texi (Install GCC: Binaries): Fix typo.
16664 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16666         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
16667         reference using the stack pointer, adjust it since we push Y
16668         temporarily.
16669         ("*ashrsi3"): Likewise.
16670         ("*lshrsi3"): Likewise.
16672 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16674         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
16675         when -fomit-frame-pointer is used.
16677 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
16679         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
16680         (try_redirect_by_replacing_jump): Reverse updating properly the
16681         count and frequency information.  Reverse removing cc0 setter.
16682         (forwarder_block_p): Reverse fixing for fallthru blocks.
16684 2001-07-05  DJ Delorie  <dj@redhat.com>
16686         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
16687         (translate_options): If the above is defined, use it to map
16688         given options to new options.
16689         * doc/tm.texi: Document it.
16691 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
16692             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16694         * doc/invoke.texi (Optimize Options): Document that -fgcse may
16695         cause programs using computed gotos to run more slowly.
16697 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16699         * doc/install.texi (Specific): Markup, spelling and typo fixes.
16700         Fixed sorting.
16701         Consistently require binutils 2.11.2, not prereleases.
16702         (Specific, decstation-*): Canonicalize as mips-dec-*.
16703         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
16704         always necessary.
16705         (Specific, m68k-altos): Removed reference to README.altos, deleted.
16706         (Specific, mips-*): Reword MIPS C compiler requirements.
16707         (Specific, powerpc*-*-*): New, mention --with-cpu once.
16708         (Specific, sunv5): Removed, obsolete.
16710 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
16712         * dwarf2out.c (output_loc_list): Use an all ones mask for
16713         .text asm output and don't rely on long long
16714         literals. Reformat some long lines.
16716 2001-07-05  Andreas Jaeger  <aj@suse.de>
16718         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
16719         section.
16721 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
16723         * dwarf2out.c (dwarf2out_define): Update comment.
16724         (dwarf2out_undef): Ditto.
16725         (dwarf2out_start_source_file): Ditto.
16726         (dwarf2out_end_source_file): Ditto.
16727         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
16728         since we never call the start/end debug hook for the primary file.
16730 2001-07-04  Kazu Hirata  <kazu@hxi.com>
16732         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
16733         from shll.
16735 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
16737         * cppinit.c (remove_dup_dirs): Inform if a system include
16738         directory is being reordered.
16739         * doc/invoke.texi (Directory Options): GCC warns if you hide a
16740         system include.
16741         * doc/cpp.texi (Search Paths): Likewise.
16742         * doc/gcc.texi (Interoperation): Remove information about
16743         -I/usr/include.
16745 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
16747         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
16748         (VARRAY_TOP_CHAR_PTR): Likewise.
16750 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16752         * gcc.c (process_command): Don't assign elements of a const char*.
16754 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16756         * emit-rtl.c (change_address): Don't abort if invalid address while
16757         reload is in progress.
16759 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
16761         * c-lex.c (cb_file_change): Pass line number to
16762         debug_start_source_file.
16763         (cb_undefine): Pass correct line number to debug_undef.
16765         * toplev.c (debug_start_source_file): Add line number to
16766         parameters. Pass it along to dwarf2out_start_source_file.
16767         (decode_g_option): Stop resetting debug level back to normal when
16768         we change debug formats, unless the current level is
16769         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
16770         3).
16772         * toplev.h (debug_start_source_file): Add line number to
16773         parameters.
16775         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
16776         parameters.
16778         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
16779         parameters.
16780         Output debug_macinfo data for starting file if requested.
16781         (dwarf2out_end_source_file): Output debug_macinfo data for ending
16782         file if requested.
16783         (dwarf2out_define): Output debug_macinfo data for defining a macro
16784         if requested.
16785         (dwarf2out_undef): Output debug_macinfo data for undefining a
16786         macro if requested.
16787         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
16788         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
16789         (macinfo_section_label): New. DWARF2 macro info section label.
16790         (dwarf2out_init): If we want macro info, output the start label
16791         for the section.
16792         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
16793         attribute to the compilation unit die pointing to the macro info.
16795 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
16797         * dwarf2out.c (new_loc_list): Move to inside #ifdef
16798         DWARF2_DEBUGGING_INFO.
16799         (add_loc_descr_to_loc_list): Ditto.
16800         (output_loc_list): Ditto.
16801         Also, fix thinko in curr not being initialized.
16802         (gen_internal_sym): Ditto.
16804 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16806         * emit-rtl.c (replace_equiv_address): New function.
16807         * expr.h (replace_equiv_address): New declaration.
16808         * explow.c (validize_mem): Call it instead of change_address and
16809         also call if -fforce-addr and address is constant.
16810         * expr.c: Replace more calls to change_address with adjust_address
16811         and/or replace_equiv_address or to validize_mem.
16812         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
16813         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
16814         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
16815         * config/i370/i370.md, config/i860/i860.md: Likewise.
16816         * config/i960/i960.md, config/mips/mips.c: Likewise.
16817         * config/mips/mips.md, config/pa/pa.md: Likewise.
16818         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
16819         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
16821 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16823         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
16825         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
16826         function.
16828 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
16830         * doc/include: New directory.
16831         * doc/fdl.texi: Move to doc/include/fdl.texi.
16832         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
16833         * doc/include/funding.texi, doc/include/gpl.texi: New files.
16834         * doc/gcc.texi: Use funding.texi and gpl.texi.
16835         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
16836         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
16837         Update dependencies and use -I $(docdir)/include.
16839 2001-07-04  Anthony Green  <green@redhat.com>
16841         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
16843 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16845         * doc/install.texi (sparc64-*-*): Remove garbage.
16847 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
16849         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
16850         Fix typo in last change to use adjust_address.
16852 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16854         * doc/install.texi (Specific): Update information for *-*-solaris*.
16856 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16858         * explow.c (plus_constant_wide): Reinitialize Y for restart.
16860 2001-07-03  Stan Shebs  <shebs@apple.com>
16862         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
16863         case for flag_no_mach_text_sections.
16864         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
16865         * config/darwin.c (flag_no_mach_text_sections): Remove.
16866         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
16868 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16870         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
16871         and avoid checking for constant as first operand.
16872         * recog.c (find_constant_term_loc): No longer static.
16873         (adj_offettable_operand): Delete.
16874         * rtl.h (adj_offsettable_operand): Delete declaration.
16875         (find_constant_term): Add declaration.
16876         * caller-save.c: Replace calls to adj_offsettable_operand with calls
16877         to adjust_address.
16878         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
16879         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
16880         * config/i386/i386.c, config/i386/i386.md: Likewise.
16881         * config/i860/i860.c, config/i960/i960.c: Likewise.
16882         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
16883         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
16884         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
16885         * config/mips/mips.c, config/mips/mips.md: Likewise.
16886         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
16887         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
16888         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
16889         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
16890         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
16891         * config/ns32k/ns32k.md: Likewise.
16893 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
16895         * rtl.c (copy_rtx): Handle 'T' format letter.
16896         * gensupport.c (collect_insn_data): Likewise.
16897         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
16899 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
16901         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
16902         -B option.  Use 'dir' not 'foo' as example directory name.
16904 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16906         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16907         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
16909 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
16911         * doc/cppinternals.texi: Improve formatting and logical markup.
16913 2001-07-03  Andreas Jaeger  <aj@suse.de>
16915         * Makefile.in (insn-recog.o): Add dependency on reload.h.
16917         * genrecog.c (write_header): Include reload.h for prototypes in
16918         insn-recog.c.
16920 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16922 config:
16923         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
16924         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
16925         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
16926         i386_pe_valid_type_attribute_p): Add.
16927         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
16928         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
16930 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16932         * explow.c (plus_constant_wide, case LO_SUM): New case.
16933         (plus_constant_for_output_wide): Delete.
16934         * rtl.h (plus_constant_for_output): Delete.
16935         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
16936         instead of plus_constant_for_output.
16937         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
16938         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
16939         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
16940         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
16941         * config/sparc/sparc.md: Likewise.
16942         Convert some change_address calls to adjust_address.
16944 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
16946         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
16947         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
16948         documentation of -std and -Wwrite-strings.
16950 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
16952         * cse.c (canon_hash): Don't register registers in very small
16953         register classes, as extending their lifetime might cause
16954         reload to fail.
16956 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
16958         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
16960         * flow.c (forwarder_block_p): Fix for fallthru blocks.
16961         (try_redirect_by_replacing_jump): Update properly the count
16962         and frequency information.
16964 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
16966         * toplev.c (dump_file_index): Move SSA dumps just after first
16967         jump dump.
16968         (dump_file): Corresponding changes.
16969         (rest_of_compilation): Move SSA path to just after the first
16970         jump pass.
16971         * doc/gcc.texi (Passes): Update due to movement of SSA path.
16972         * doc/invoke.texi: Update dump file #s as they were completely
16973         out of date with reality.
16975 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
16977         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
16979         * expr.c (emit_move_insn_1): Deal with non-default
16980         STACK_PUSH_CODE.
16982         * expr.c (emit_single_push_insn): Fix warning.
16984 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
16986         * expr.c (emit_move_insn_1): Avoid modifying
16987         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
16989 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16991         * emit-rtl.c (adjust_address): New function.
16992         * expr.h (adjust_address): Add declaration.
16993         * builtins.c: Replace some calls to change_address with calls to it
16994         or to validize_mem.
16995         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
16996         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
16997         * config/arm/arm.c, config/convex/convex.c: Likewise.
16998         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
16999         * config/i386/i386.c, config/i386/i386.md: Likewise.
17000         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
17001         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
17002         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
17003         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
17004         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
17006 2001-07-02  Jim Wilson  <wilson@redhat.com>
17008         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
17010 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
17012         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
17013         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
17015 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
17017         * cppinit.c (lang_defaults): New table.
17018         (set_lang): Just read from lang_defaults into the live options
17019         structure.
17021 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
17023         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
17024         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
17025         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
17027 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17029         * doc/install.texi: Various spelling and markup fixes.
17030         (Installing GCC): Component specific installation instructions are
17031         gone.
17032         Fix reference.
17033         Warn about removing old install dir in the presence of shared libs.
17034         (Configuration): Invoke with options target to match configure
17035         --help.
17036         Consistently refer to gas, gld pathnames.
17037         Invert --enable-multilib documentation.
17038         Remove references to old compiler versions.
17040 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17042         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
17044 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17046         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
17047         section.
17048         (Specific, mips*-sgi-irix5): Note IDO download.
17049         Reworded MIPS C hints.
17050         Use GNU as instead of GAS.
17051         Markup fixes.
17052         Removed SGI Freeware reference, IRIX 6 only.
17053         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
17054         Note N64 library requirement/workaround.
17055         Update O32 hints.
17056         Complete list of structure passing bug victims.
17058 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17060         * doc/install.texi: Remove CVS Id.
17062 2001-07-02  Andreas Jaeger  <aj@suse.de>
17064         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
17065         (find_inherently_necessary): Remove unused variable.
17067 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
17069         * c-common.h (TDI_inlined): New ast dump phase.
17070         (dump_flag_name): New function.
17071         * c-dump.c (dump_files): Add inlined phase.
17072         (dump_flag_name): Define.
17073         * doc/invoke.texi (-fdump-ast-inlined): Document.
17075 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17077         * stor-layout.c (layout_decl): Revert change to handling of alignment
17078         in packed types.
17080 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17082         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
17083         for FIELD_DECL.
17085 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
17087         * doc/tm.texi (FUNCTION_ARG): Document that the last call
17088         is special.
17090 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
17092         * tlink.c (recompile_files): Remove COMPILER_PATH and
17093         LIBRARY_PATH from the environment.
17095 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
17097         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
17098         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
17099         enumerators.
17100         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
17102         * c-parse.in (OBJC_STRING): Kill.
17103         (objc_string): Decompose to [objc_string] '@' STRING.
17104         (reswords): Take the leading '@' off all the Objective C keywords.
17105         (objc_rid_sans_at): Kill.
17106         (init_reswords): Don't initialize it.
17107         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
17108         (_yylex): Kill reconsider label.  Look ahead one token after
17109         an '@'; if we get an identifier, check whether it's an
17110         Objective C @-keyword.  If so, return the keyword.  Otherwise,
17111         put back the token and return the '@' as a terminal.
17113         * cpplib.c (lex_macro_node): Remove unnecessary check for
17114         leading '@' on identifier.  Clarify control flow and commentary.
17116 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17118         * cse.c (new_label_ref): Variable deleted.
17119         (insert): Remove set of new_label_ref.
17120         (check_for_label_ref): New function.
17121         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
17123 See ChangeLog.5 for earlier changes.