OSDN Git Service

2001-12-11 David O'Brien <obrien@FreeBSD.org>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-12-11  David O'Brien  <obrien@FreeBSD.org>
2
3         * config.gcc (m68020-*-elf*): Expand tm_file to include all needed
4         cpu configuration headers.
5         * config/h8300/elf.h: Include dbxelf.h.
6         * config/m68k/linux.h: Likewise.
7         * config/m68k/m68020-elf.h: Likewise.
8         * config/m68k/m68kv4.h: Likewise.
9         * config/sh/elf.h: Likewise.
10         * config/m68k/m68kemb.h: Add comment about the its purpose.
11
12 2001-12-11  Richard Henderson  <rth@redhat.com>
13
14         * objc/objc-act.c (build_constructor): Cast initializer values
15         to the proper field types.
16
17 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
18
19         * unwind-dw2.c (execute_cfa_program): Fix DW_CFA_restore handling.
20
21 2001-12-10  Roger Sayle <roger@eyesopen.com>
22
23         * builtins.c (expand_builtin): Use a switch statement to list
24         those functions not expanded without optimizations, instead of a
25         series of equality tests.
26
27 Tue Dec 11 07:08:57 2001  Douglas B. Rupp  <rupp@gnat.com>
28
29         * config/alpha/vms.h (LIB_SPEC): Define.
30         * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Don't set component field.
31
32         * libgcc2.c (_bb): Remove ctime declaration.
33
34         * Makefile.in (stage[1234]-start): $(LN_S) utilities in a manner
35         that works if LN_S = cp.
36
37         * config/alpha/x-vms (version): Change "." to "_".
38
39         * configure.in: Hardcode that vfork works on VMS host.
40         * configure: Regenerated.
41
42 Mon Dec 10 18:37:31 2001  Douglas B. Rupp  <rupp@gnat.com>
43
44         * gcc.c (convert_filename): Add do_obj parameter. Don't convert
45         unless do_obj true.
46         (process_command): Modify calls to convert_filename.
47
48 2001-12-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
49
50         * config/sparc/sol2-sld-64.h: Include dbxelf.h again.
51
52 Mon Dec 10 15:54:27 2001  Jeffrey A Law  (law@cygnus.com)
53
54         * combine.c (known_cond): Check mode of each operand to determine
55         if COND is comparing floating point values.
56
57 2001-12-10  David Edelsohn  <edelsohn@gnu.org>
58
59         * rs6000.h (processor_type): Add PPC405.
60         (RTX_COSTS): Add PPC405.  Correct rs64 and ppc630 multiply costs.
61         * rs6000.md: Add PPC405 information.  Utilize imul2 and imul3 for
62         rios1, rs64, and ppc630 processors.
63         * rs6000.c (processor_target_table): Add PPC405.
64
65 2001-12-10  Richard Henderson  <rth@redhat.com>
66
67         * config/alpha/alpha.md (unaligned_extendhidi): Call gen_lowpart
68         instead of hardcoding subregs into the _be and _le patterns.
69
70 2001-12-10  Neil Booth  <neil@daikokuya.demon.co.uk>
71
72         * c-lex.c, c-parse.in, c-typeck.c: Revert concatenation changes.
73
74 Mon Dec 10 09:19:11 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
75
76         * config/i386/i386.md (leave, leave_rex64): Adjust pattern to match
77         what insn does.
78
79 2001-12-10  Joseph S. Myers  <jsm28@cam.ac.uk>
80
81         * doc/cpp.texi: Don't condition menus on @ifinfo.  Condition the
82         copyright notice formerly conditioned on @ifinfo on @ifnottex
83         instead.
84
85 Mon Dec 10 06:15:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
86
87         * vmsdbgout.c (lookup_filename): Remove warning.
88
89 Mon Dec 10 06:09:57 2001  Douglas B. Rupp  <rupp@gnat.com>
90
91         * Makefile.in: Add $(OUTPUT_OPTION) to compilation rules.
92
93         * config.gcc (alpha*-dec-vms*): Change to alpha*-dec-*vms*
94         (exeext, target_alias, prefix, local_prefix): Define.
95         * config/alpha/x-vms (USE_COLLECT2): Make empty.
96         * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Use Unix style
97         file specifications. Remove ".".
98         (GCC_INCLUDE_DIR): Remove redefinition (redundant).
99         * fixinc/mkfixinc.sh (alpha*-dec-vms*):  Change to alpha*-dec-*vms*
100
101 2001-12-09  Nathan Sidwell  <nathan@codesourcery.com>
102
103         * Makefile.in (.po.gmo): Use POSIXLY_CORRECT argument ordering.
104
105 Sun Dec  9 21:57:24 2001  Douglas B. Rupp  <rupp@gnat.com>
106
107         * config/alpha/t-vms (EXTRA_PARTS): Append $(VMS_EXTRA_PARTS)
108         Add rules for building [vp]crt0.o
109         * config/alpha/vms.h (START_FILE_SPEC): Define.
110         * config/alpha/x-vms (VMS_EXTRA_PARTS): Define
111         * config/alpha/vms-crt0.c, config/alpha/vms-psxcrt0.c: New files.
112         * doc/invoke.texi: Document special Alpha/VMS options.
113
114 Sun Dec  9 20:25:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
115
116         * hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.
117         * vmsdbg.h (DST_SRC_COMMAND): Test for type of long long or __int64,
118         not GNUC.
119
120 Sun Dec  9 20:19:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
121                           Douglas B. Rupp  <rupp@gnat.com>
122
123         * tree.c (append_random_char): Conditionalize INO for VMS.
124
125 2001-12-09  Richard Henderson  <rth@redhat.com>
126
127         * cfgcleanup.c (label_is_jump_target_p): New function.
128         (try_optimize_cfg): Use label_is_jump_target_p to check if label is
129         target of a JUMP_INSN from the preceding block.
130
131 Sun Dec  9 18:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
132
133         * vmsdbgout.c (lookup_filename): Assign null string instead
134         of null pointer to fnam.
135
136 2001-12-09  Richard Henderson  <rth@redhat.com>
137
138         * config/alpha/alpha.c (alpha_align_insns): Suppress realignment
139         immediately after a call; insert nops before a call.
140
141 2001-12-09  Richard Henderson  <rth@redhat.com>
142
143         * config/alpha/alpha.c (alpha_align_insns): Use align_functions,
144         not FUNCTION_BOUNDARY.
145         * config/alpha/alpha.h (TRAMPOLINE_ALIGNMENT): New.
146         * config/alpha/alpha32.h, config/alpha/vms.h: Likewise.
147         * config/alpha/unicosmk.h (FUNCTION_BOUNDARY): Remove.
148
149 2001-12-09  Hans-Peter Nilsson  <hp@bitrange.com>
150
151         * config/mmix/mmix.c (mmix_function_block_profiler,
152         mmix_block_profiler, mmix_function_block_profiler_exit): Delete
153         unused functions.
154         * config/mmix/mmix-protos.h (mmix_function_block_profiler,
155         mmix_block_profiler, mmix_function_block_profiler_exit): Delete
156         prototypes.
157
158         * config/cris/cris.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER):
159         Delete obsoleted macros.
160
161 2001-12-09  Joseph S. Myers  <jsm28@cam.ac.uk>
162
163         * doc/cpp.texi, doc/cppinternals.texi, doc/invoke.texi,
164         doc/md.texi, doc/rtl.texi, doc/tm.texi: Use American spelling.
165
166         * ChangeLog.2, ChangeLog.3, ChangeLog.5, ChangeLog, alias.c,
167         cfgbuild.c, expmed.c, expr.c, final.c, flow.c, fold-const.c,
168         function.c, config/alpha/alpha.md, config/alpha/vms-ld.c,
169         config/arm/arm.c, config/arm/arm.h, config/c4x/libgcc.S,
170         config/i370/i370.c, config/i386/i386.c,
171         config/i386/i386-interix.h, config/i386/i386.md,
172         config/i386/i386.h, config/i386/netbsd-elf.h, config/ia64/ia64.c,
173         config/m32r/m32r-protos.h, config/mcore/mcore.h,
174         config/rs6000/rs6000.h, config/sparc/linux64.h,
175         config/sparc/sparc.c, config/v850/v850-protos.h,
176         config/cris/cris.h, config/s390/s390.md, config/elfos.h: Fix
177         spelling errors.
178
179 2001-12-09  Daniel Berlin  <dan@cgsoftware.com>
180
181         * config/rs6000/rs6000.h (enum rs6000_builtins): Add remaining
182         altivec builtins (VCF?X, VCT?XS, VSEL, V*EFP, VRFI*).
183
184         * config/rs6000/rs6000.c: Ditto.
185
186         * config/rs6000/rs6000.md: Ditto.
187
188 2001-12-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
189
190         * 1750a.md: Add default case in switch.
191         * alpha/vms.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
192         if-else statement.
193         * dsp16xx.c (print_operand_address): Likewise.
194         * i386/osf1elf.h (FUNCTION_PROFILER): Const-ify.
195         * ia64.md: Add missing braces.
196         * rs6000-protos.h (s8bit_cint_operand): Prototype.
197         * s390.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
198         if-else statement.
199         * stormy16.h (REG_CLASS_CONTENTS): Add missing braces.
200         * v850.h (OUTPUT_ADDR_CONST_EXTRA): Don't issue a `return'.
201         * dbxout.c (dbxout_source_file): Move a variable into the scope
202         where it is used.
203         * final.c (profile_function): Mark parameter with
204         ATTRIBUTE_UNUSED.
205         * genemit.c (gen_expand): Likewise for generated file.
206         * insn-addr.h (INSN_ADDRESSES_NEW): Avoid undefined behavior.
207
208         * vmsdbg.h: Delete spurious close-comment.
209         (DST_HEADER): Fix typo in ENUM_BITFIELD parameter.
210         * vmsdbgout.c (write_modbeg): Define return type.
211
212         * m68k/3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
213         * m68k/amix.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
214         * m68k/atari.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
215         * m68k/hp320.h (ASM_OUTPUT_ALIGN): Likewise.
216         * m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Likewise.
217         * m68k/sgs.h (ASM_OUTPUT_ALIGN): Likewise.
218         * m68k/tower-as.h (ASM_OUTPUT_ALIGN): Likewise.
219
220 2001-12-08  Tom Rix  <trix@redhat.com>
221
222         * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete MASK_STRING.
223         * config/rs6000/aix51.h (NON_POWERPC_MASKS): Same.
224         * config/rs6000/rs6000.md (load_multiple, store_multiple): Do not use
225         for powerpc64.
226         * config/rs6000/rs6000.md (movstrsi_8reg, movstrsi_6reg,
227         movstrsi_4reg, movstrsi_1_reg): Add powerpc64.
228         * config/rs6000/rs6000.c (expand_block_move): Do not use
229         gen_movstrsi_2reg and powerpc64.
230
231 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
232
233         * c-common.h (rid): Add RID_CHOOSE_EXPR and
234         RID_TYPES_COMPATIBLE_P.
235
236         * c-parse.in (reswords): Add __builtin_choose_expr.
237         Add __builtin_types_compatible_p.
238         Add CHOOSE_EXPR token.
239         Add TYPES_COMPATIBLE_P token.
240         Add production for CHOOSE_EXPR.
241         Add production for TYPES_COMPATIBLE_P.
242
243         * doc/extend.texi (__builtin_choose_expr): Add documentation.
244         (__builtin_types_compatible_p): Likewise.
245
246 2001-12-08  David Edelsohn  <edelsohn@gnu.org>
247
248         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
249         to unions.
250
251 2001-12-08  Neil Booth  <neil@daikokuya.demon.co.uk>
252
253         * c-parse.in: Take string literals in assembler constructs,
254         not expressions.
255         * c-typeck.c (build_asm_stmt, simple_asm_stmt): No need to
256         check the strings are STRING_CSTs.
257
258 2001-12-08  Neil Booth  <neil@daikokuya.demon.co.uk>
259
260         * c-lex.c (c_lex): Peek a token ahead for a string to concatenate,
261         using combine_strings to do the concatenation.
262         * c-parse.in: Replace uses of the string non-terminal with STRING.
263         Don't attempt string concatenation.
264         (OBJC_STRING): New terminal.
265         (string): Remove non-terminal.
266         (_yylex): Call combine_strings on function names.  Generate
267         OBJC_STRING terminals; don't pass '@' on to yacc.
268         * c-typeck.c (simple_asm_stmt): Don't concatenate strings here.
269         (build_asm_stmt): Similarly.
270
271 2001-12-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
272
273         * rtlanal.c (get_jump_table_offset): Delete unused variable.
274
275 2001-12-08  Richard Earnshaw  <rearnsha@arm.com>
276
277         * arm.md (VUNSPEC_PREFETCH): Delete constant definition.
278         (prefetch): Rewrite using PREFETCH RTL primitive.
279         * arm.h (arm_builtins): Delete ARM_BUILTIN_PREFETCH).
280         * arm.c (arm_init_builtins): Don't initialize a builtin for
281         __builtin_prefetch here.
282         (arm_expand_builtin): Don't expand __builtin_prefetch here.
283
284 2001-12-08  Richard Earnshaw  <rearnsha@arm.com>
285
286         * final.c (cleanup_subreg_operands):  Use recog_data.operand_loc
287         in test for a subreg.
288
289 2001-12-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
290
291         * rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
292         strings.
293
294 2001-12-07  Richard Henderson  <rth@redhat.com>
295
296         * doc/extend.texi: Fix typo last change.
297
298         * c-decl.c (c_language): Remove duplicate.
299
300 2001-12-07  Dale Johannesen  <dalej@apple.com>
301
302         * config/rs6000/darwin.h: Set MAX_LONG_TYPE_SIZE to 32.
303         * config/rs6000/rs6000.c (rs6000_emit_move): In Darwin-
304         specific codegen, eliminate a register copy.
305         (print_operand_address): Add support for Darwin's lo16(constant)
306         syntax.
307         (rs6000_machopic_legitimize_pic_address): Fix darwin-specific
308         generation of addresses within very large data objects.
309         (s8bit_cint_operand):  New.
310         * config/rs6000/rs6000.md: Remove "iu" reference for 750/7400.
311         Move "mtjmpr" to correct functional unit for 750/7400/7450.
312         Add imul2 and imul3 insn types for multiplication by 16- and
313         8-bit constants.
314         Change tablejump patterns to strongly discourage using LR
315         rather than CTR.
316         Add %lo16 patterns for Darwin loads and stores.
317
318 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
319
320         * alpha.md: Use (HOST_WIDE_INT)1<<63 in lieu of 0x8000000000000000.
321
322 2001-12-07  Stephane Carrez  <Stephane.Carrez@sun.com>
323
324         * config/sparc/sparc.c (epilogue_renumber): Do not replace %fp
325         with %sp because it can cause the delayed instruction to load
326         below the stack.
327
328 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
329
330         * alpha.c (alpha_expand_unaligned_store,
331         alpha_expand_unaligned_store_words): Use constm1_rtx in place of
332         call to immed_double_const.
333
334 2001-12-07  Aldy Hernandez  <aldyh@redhat.com>
335
336         * doc/extend.texi (Variable Attributes): Document vector_size.
337
338         * attribs.c (c_common_attribute_table): Add vector_size.
339         (handle_vector_size_attribute): New.
340         (vector_size_helper): New.
341         (decl_attributes): Relayout the decl after calculating attribs.
342
343 2001-12-07  Joseph S. Myers  <jsm28@cam.ac.uk>
344
345         * doc/gcc.texi: Don't include install-old.texi.  Adjust menu
346         description for Trouble section.
347         * doc/install-old.texi: Adjust for inclusion as chapter of new
348         installation manual.
349         * doc/install.texi, doc/include/fdl.texi, doc/install.texi2html:
350         Adjust to include old installation chapter as chapter of new
351         installation manual.
352
353 Fri Dec  7 11:07:35 EST 2001  John Wehle  (john@feith.com)
354
355         * rtl.h (get_jump_table_offset): Declare.
356         * rtlanal.c (get_jump_table_offset): Implement.
357
358 Fri Dec  7 07:06:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
359
360         * final.c (bb_head, bb_tail, bb_file_label_num, bb_func_label_num):
361         Deleted; were used only by BB profiler code.
362         (sbb_head, sbb_tail, sbb_label_num): Likewise.
363         (end_final): Delete now-unused vars I, PTR, and SPTR.
364
365         * expr.c (store_field): Remove warning.
366         (expand_expr, case COMPONENT_REF, case VIEW_CONVERT_EXPR): Likewise.
367         (highest_pow2_factor, case MIN_EXPR, case MAX_EXPR): Add cases.
368         (highest_pow2_factor, case *_DIV_EXPR): Only can do something if
369         divisor constant power of 2.
370         (highest_pow2_factor, case COMPOUND_EXPR): Look at operand 1.
371
372 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
373
374         * alpha.c (function_arg): Cast value to HOST_WIDE_INT before
375         shifting.
376
377 2001-12-06  Aldy Hernandez  <aldyh@redhat.com>
378
379         * rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.
380         (DWARF_FRAME_REGISTERS): Delete.
381
382 2001-12-06  Janis Johnson  <janis187@us.ibm.com>
383
384         * builtin-types.def (BT_FN_VOID_PTR_VAR): New.
385         * builtins.def (BUILT_IN_PREFETCH): Change arguments.
386         * builtins.c (expand_builtin_prefetch): Two arguments are now optional,
387         with defaults for read prefetch with high degree of locality.
388         * doc/extend.texi (__builtin_prefetch): Update documentation.
389         * doc/md.texi (prefetch): Add documentation.
390
391 2001-12-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
392
393         * fixinc/inclhack.def (stdio_va_list): Handle __VA_LIST__ in Tru64
394         UNIX V5.1A stdio.h.
395         * fixinc/fixincl.x: Regenerate.
396         Fixes PR libf2c/4826.
397
398 2001-12-06  Aldy Hernandez  <aldyh@redhat.com>
399             Richard Henderson  <rth@redhat.com>
400
401         * doc/tm.texi (DWARF_FRAME_REGISTERS): Add documentation.
402         (PRE_GCC3_DWARF_FRAME_REGISTERS): Same.
403
404         * unwind-dw2.c (__frame_state_for): Change DWARF_FRAME_REGISTERS
405         to PRE_GCC3_DWARF_FRAME_REGISTERS.
406         (frame_state): Same.
407         (PRE_GCC3_DWARF_FRAME_REGISTERS): Define if not already defined.
408
409 2001-12-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
410
411         * langhooks.c (lhd_staticp): Mark parameter with
412         ATTRIBUTE_UNUSED.
413
414 2001-12-06  H.J. Lu <hjl@gnu.org>
415
416         * Makefile.in (.po.gmo): Use "-test -d po || mkdir po" to
417         reduce noise.
418         (.po.pox): Likewise.
419         (o/$(PACKAGE).pot): Likewise.
420
421 2001-12-06  Alexandre Oliva  <aoliva@redhat.com>
422
423         * tree.c (get_callee_fndecl): Move DECL_ABSTRACT_ORIGIN-following...
424         * tree-inline.c (expand_call_inline): ... here.
425
426 2001-12-06  H.J. Lu <hjl@gnu.org>
427
428         * Makefile.in (.po.gmo): Use "-mkdir po" for parallel build.
429         (.po.pox): Likewise.
430         (o/$(PACKAGE).pot): Likewise.
431
432 2001-12-06  David O'Brien  <obrien@FreeBSD.org>
433
434         * config.gcc: Include dbxelf.h before elfos.h.
435         * elfos.h: Don't include dbxelf.h, let config.gcc handle it.
436
437 2001-12-06  Zack Weinberg  <zack@codesourcery.com>
438
439         * cppfiles.c (open_file): If we've opened a directory by
440         mistake, close it.
441         (find_include_file): Avoid turning / into // or // into ///.
442
443 2001-12-06  Nick Clifton  <nickc@cambridge.redhat.com>
444
445         * config/arm/arm.h (STRUCT_VALUE): Suppress definition.
446         (STRUCT_VALUE_REGNUM): Restore definition.
447
448 2001-12-06  Andrew MacLeod <amacleod@redhat.com>
449
450         * flow.c (find_regno_partial): Return register, not the expression
451         the register is in.
452
453 Thu Dec  6 09:24:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
454
455         * function.c (handle_epilogue_set): Check for FP setting case when
456         SP is set from FP in same insn.
457
458 2001-12-06  Nick Clifton  <nickc@cambridge.redhat.com>
459
460         * config/arm/arm.c (load_multiple_sequence): Pass pointer to
461         RTX when calling alter_subreg().
462         (store_multiple_sequence): Pass pointer to RTX when calling
463         alter_subreg().
464
465 Thu Dec  6 06:55:13 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
466
467         * function.c (assing_parms): Fix typo in last change.
468         * config/clipper.c (clipper_builtin_saveregs): Remove Checker code.
469         * config/m88k/m88k.c (m88k_builtin_saveregs): Likewise.
470         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
471         * config/sparc/sparc.c (sparc_builtin_saveregs): Likewise.
472
473 2001-12-06  Alan Modra  <amodra@bigpond.net.au>
474
475         * config/rs6000/rs6000.c (rs6000_unique_section): Simplify and
476         correct code selecting section.
477
478 Thu Dec  6 12:45:33 CET 2001  Jan Hubicka  <jh@suse.cz>
479
480         * final.c (count_basic_block, add_bb, add_bb_string):
481         Kill.
482         (end_final, final_start_function, final, final_scan_insn,
483         leaf_function_p): Kill BB profiler related code.
484         * flags.h (profile_block_flag): Kill.
485         * libgcc2.c (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE,
486         BB_BUCKETS, BBINBUFSIZE, bb_edge, bb_func_mode, bb_func,
487         __bb, bb_src, bb_dst, bb_tracefile, bb_hashbuckets,
488         bb_func_head, bb_callcount, bb_mode, bb_stack, bb_stacksize
489         reported, GOPENDECOMPRESS, GOPENCOMPRESS, gopen, gclose,
490         __bb_exit_trace_func, __bb_init_prg, __bb_trace_func,
491         __bb_trace_func_ret, __bb_init_file, __bb_trace_ret,
492         __bb_init_trace_func): Kill.
493         * toplev.c (profile_block_flag): Kill.
494         (indepdendent_decode_option, process_options): Kill -a related code.
495         * alpha.c (direct_call_operand): Likewise.
496         * arm.c (arm_expand_prologue, thumb_expand_prologue,
497         thumb_expand_epilogue): Likewise.
498         * c4x.c (c4x_expand_prologue, c4x_null_epilogue_p): Likewise.
499         * c4x.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
500         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
501         MACHINE_STATE_RESTORE): Kill.
502         * d30v.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
503         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
504         MACHINE_STATE_RESTORE): Kill.
505         * fr30.c (fr30_expand_prologue): Kill BB profiler related code.
506         * i386.c (ix86_can_use_return_insn_p, ix86_expand_prologue,
507         ix86_expand_epilogue, ix86_expand_epilogue): Kill BB profiler related
508         code.
509         (ix86_output_function_block_profiler, ix86_output_block_profiler): Kill.
510         * i386.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
511         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
512         MACHINE_STATE_RESTORE): Kill.
513         * fr30.c (fr30_expand_prologue): Kill BB profiler related code.
514         * i960.c (i960_output_function_prologue): Kill BB profiler related
515         code.
516         * ia64.c (ia64_compute_frame_size): Likewise.
517         * ia64.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
518         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
519         MACHINE_STATE_RESTORE): Kill.
520         * m32r.c (m32r_expand_prolofue): Kill BB profiler related code.
521         * m68hc11.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
522         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
523         MACHINE_STATE_RESTORE): Kill.
524         * m68k.c (m68k_output_function_epilogue): Kill BB profiler related code.
525         * m68k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
526         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
527         MACHINE_STATE_RESTORE): Kill.
528         * m88k.c (output_options, m88k_layout_frame, m88k_expand_prologue):
529         Kill BB profiler related code.
530         * m88k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
531         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
532         MACHINE_STATE_RESTORE): Kill.
533         * mips.c (mips_expand_prologue): Kill BB profiler related code.
534         * mmix.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
535         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
536         MACHINE_STATE_RESTORE): Kill.
537         * rs6000.c (rs6000_override_options): Kill BB profiler related code.
538         * s960.c (s390_function_prologue): Kill BB profiler related code.
539         * s960.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
540         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
541         MACHINE_STATE_RESTORE): Kill.
542         * linux-aout.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
543         * linux.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
544         * linux64.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
545         * sol2.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
546         * sparc.c (sparc_override_options, eligible_for_sibcall_delay,
547         sparc_nonflat_function_epilogue): Kill BB profiler related code.
548         (sparc_function_block_profiler, sparc_block_profiler,
549         sparc_function_block_profiler_exit): Kill.
550         * sparc.h (OVERRIDE_OPTIONS): Kill BB profiler related code.
551         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
552         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
553         MACHINE_STATE_RESTORE): Kill.
554         * sun4o3.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
555         * sunos4.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
556         * stormy16.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
557         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
558         MACHINE_STATE_RESTORE): Kill.
559         * doc/invoke.texi: Kill documentation of -a and -ax.
560         * tm.texi (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
561         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
562         MACHINE_STATE_RESTORE): Kill.
563
564 2001-10-26  Steve Christiansen  <smc@us.ibm.com>
565
566         * doc/rtl.texi: Use a table to display RTL format characters.
567
568 2001-12-06  Bo Thorsen  <bo@suse.co.uk>
569
570         * config/i386/linux64.h (LINK_SPEC): Correct name of dynamic linker.
571
572 Wed Dec  5 19:18:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
573
574         * function.c (keep_stack_depressed): Check global_live_at_start
575         of EXIT_BLOCK for temp register and verify it isn't in equiv_reg_src.
576
577 2001-12-05  David O'Brien  <obrien@FreeBSD.org>
578
579         * config.gcc (powerpc-*-freebsd*): Use the proper tmake_file files,
580         as set by the generic FreeBSD configure framework.
581
582 2001-12-04  Jason Merrill  <jason@redhat.com>
583
584         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
585         start_inlining, end_inlining.
586         * tree-inline.c (expand_call_inline): Call them.
587         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
588         (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
589         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Add them.
590         * langhooks.c (lhd_tree_inlining_start_inlining): New fn.
591         (lhd_tree_inlining_end_inlining): New fn.
592
593 2001-12-05  Neil Booth  <neil@daikokuya.demon.co.uk>
594
595         * c-common.c (shadow_warning): New function, moved from cp/decl.c.
596         * c-common.h (shadow_warning): New.
597         * c-decl.c: Include c-common.h.
598         (warn_if_shadowing): New, broken out of pushdecl.
599         (pushdecl): Use warn_if_shadowing.
600         (store_parm_decls): Prevent duplicate -Wshadow warnings.
601
602 Wed Dec  5 17:59:19 2001  Douglas B. Rupp  <rupp@gnat.com>
603
604         * config/alpha/vms.h (SIZE_TYPE, PTRDIFF_TYPE): Remove, were disabled.
605         (DOLLARS_IN_IDENTIFIERS, LINK_SPEC): Remove duplicate.
606         (LIB_SPEC): Remove.
607
608 Wed Dec  5 16:03:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
609
610         * doc/c-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition.
611         (QUAL_UNION_TYPE): New type.
612
613         * varasm.c (output_constant, case ERROR_MARK): New case.
614
615         * attribs.c (handle_no_check_memory_usage_atribute): Deleted.
616         (c_com): Delete its reference.
617         * builtins.c: Delete memory checking code.
618         * calls.c, expr.c, function.c, stmt.c: Likewise.
619         * builtins.c (expand_builtin_arg_info): Remove reference to
620         EXPAND_MEMORY_USE_* modifiers.
621         * explow.c (expr_size): Likewise.
622         * expr.c (expand_expr, expand_increment): Likewise.
623         * expr.h (ARGS_SIZE_RTX): Likewise.
624         * function.c (assign_parms, expand_pending_sizeso): Likewise.
625         * c-decl.c (duplicate_decls): Don't handle DECL_NO_CHECK_MEMORY_USAGE.
626         * expr.c (in_check_memory_usage): Delete.
627         (get_push_address, get_memory_usage_from_modifier): Delete.
628         (expand_assigment): Use EXPAND_WRITE on destination.
629         (expand_expr): Delete ro_modifier.
630         * expr.h (expand_modifier): Delete EXPAND_MEMORY_* entries and
631         add EXPAND_WRITE.
632         (memory_use_mode): Delete.
633         * flags.h (flag_check_memory_usage): Deleted.
634         (flag_prefix_function_name): Likewise.
635         * function.c (expand_function_start): Don't set
636         current_function_check_memory_usage.
637         * function.h (check_memory_usage): Delete.
638         * libfuncs.h, optabs.c: Delete chkr_* stuff.
639         * stmt.c (expand_asm_opernd): Change EXPAND_MEMORY_USE_WO to
640         EXPAND_WRITE.
641         * toplev.c (flag_check_memory_usage): Deleted.
642         (flag_prefix_function_name): Likewise.
643         (f_options, process_options): Delete references to above.
644         * tree.h (DECL_NO_CHECK_MEMORY_USAGE): Deleted.
645         * varasm.c (CHKR_PREFIX): Deleted.
646         (make_decl_rtl): Remove flag_prefix_function_name handling.
647         (assemble_name): Likewise.
648         * doc/extend.texi: Remove no_check_memory_usage attribute.
649         * doc/invoke.texi: Remove -fcheck-memory-usage
650         and -fprefix-function-name.
651
652 2001-12-05  Andreas Schwab  <schwab@suse.de>
653
654         * Makefile.in (STMP_FIXPROTO, STMP_FIXINC): Use substituted values
655         from autoconf.
656
657 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
658
659         * config.gcc: Include arm/xscale-coff.h before arm/arm.h.
660
661 2001-12-05  William Cohen  <wcohen@redhat.com>
662
663         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Correct typo in
664         instruction.
665
666 2001-12-05  Daniel Berlin  <dan@cgsoftware.com>
667
668         * config/rs6000/rs6000.h (enum rs6000_builtins): Add more altivec
669         builtins.
670
671         * config/rs6000/rs6000.md: Modeling of 7450 altivec changed to
672         better reflect reality (change from Apple's tree).
673         Add more of altivec instructions.
674         Add ftruncv4sf2 pattern.
675         Remove more unspecs (vector merge instructions, etc).
676
677         * config/rs6000/rs6000.c (bdesc_3arg): New, for 3 argument altivec
678         builtins.
679         (bdesc_1arg): New, for 1 argument altivec builtins.
680         (altivec_expand_builtin): Handle unary and ternary ops.
681         (altivec_init_builtins): Ditto.
682
683 Wed Dec  5 09:33:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
684
685         * config/alpha/vms.h (ADA_LONG_TYPE_SIZE): New macro.
686         * doc/tm.texi (ADA_LONG_TYPE_SIZE): Document it.
687
688 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
689
690         * gcse.c (store_killed_in_insn): Consider pure calls
691         as potential store killers in addition to normal calls.
692
693 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
694
695         * expr.c (expand_expr): When checking promoted value, use
696         DECL_MODE (exp) and not mode.
697
698 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
699
700         * c-typeck.c (output_init_element): Call digest_init
701         just once, not in each if branch and check its return value for
702         error_mark_node.
703
704 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
705
706         * c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's
707         type is RECORD_TYPE, UNION_TYPE or ARRAY_TYPE thereof.
708         (finish_struct): Break the loop if n_incomplete went to 0.
709         For ARRAY_TYPE, if it is not TYPE_DECL, layout the decl too.
710
711 Wed Dec  5 07:41:13 2001  Douglas B. Rupp  <rupp@gnat.com>
712
713         * config/alpha/alpha.c (alpha_va_start): Update VMS case.
714
715 Wed Dec  5 07:27:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
716                           Douglas B. Rupp  <rupp@gnat.com>
717
718         * vmsdbg.h, vmsdbgout.c: Add documentation and minor cleanups.
719         * doc/invoke.texi: Add -gvms.
720         * doc/passes.texi: Add mention of vmsdbgout.c.
721         * doc/tm.texi: Document VMS debugging output.
722
723 Wed Dec  5 06:26:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
724
725         * function.h (tree, rtx): Remove no-longer-needed definitions.
726
727         * function.c (keep_stack_depressed): Refine check for register
728         clobbered over call.
729
730         * expr.c (store_expr): When copying string constant into array,
731         use functions that update memrefs instead of computations on
732         addresses to better track MEMs.  Also properly handle 32/64 pointers.
733         (expand_expr): Use TARGET even if not reg for multi-word CONSTRUCTOR.
734         (expand_expr, case CONSTRUCTOR): Fix errors in parms to assign_temp.
735
736         * emit-rtl.c (component_ref_for_mem_expr): Try harder to find decl
737         underneath COMPONENT_REFs.
738         (set_mem_attributes): Also strip VIEW_CONVERT_EXPR.
739
740 2001-12-05  Neil Booth  <neil@daikokuya.demon.co.uk>
741
742         * toplev.c (display_target_options): Don't print twice.
743
744 Wed Dec  5 00:42:16 EST 2001  John Wehle  (john@feith.com)
745
746         * emit-rtl.c (set_unique_reg_note): Don't set
747         a REG_EQUAL or REG_EQUIV note if multiple sets
748         are present.
749
750 2001-12-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
751
752         * cfgrtl.c (verify_flow_info): Allow jump table data in fallthru if
753         CASE_DROPS_THROUGH.
754
755 2001-12-04  Andrew MacLeod  <amacleod@redhat.com>
756
757         * rtl.h (initialize_uninitialized_subregs): New prototype.
758         * toplev.c (rest_of_compilation): Call initialize_uninitialized_subregs
759         when optimization is on.
760         * flow.c (find_regno_partial): Find subregs within an expression.
761         (initialize_uninitialized_subregs): Initialize live on entry registers
762         which are used in subreg expressions.
763
764 2001-12-04  Phil Edwards  <pme@gcc.gnu.org>
765
766         * Makefile.in:  Add INSTALL_SCRIPT using INSTALL definition.
767
768 2001-12-04  DJ Delorie  <dj@redhat.com>
769
770         * fixinc/fixincl.c (initialize): Avoid problemsome macro
771         parameter names (PR 3388).
772
773 2001-12-05  Alan Modra  <amodra@bigpond.net.au>
774
775         * config/rs6000/rs6000.c (rs6000_legitimize_address): Fix typo.
776         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Here too.
777
778 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
779
780         * c-common.def (COMPOUND_LITERAL_EXPR): New.
781         * c-common.c (c_expand_expr): Handle COMPOUND_LITERAL_EXPR.
782         (c_staticp): New function.
783         * c-common.h (COMPOUND_LITERAL_EXPR_DECL): New.
784         (c_staticp): Declare.
785         * c-typeck.c (default_function_array_conversion, build_unary_op):
786         Don't handle CONSTRUCTOR specially.
787         (lvalue_p, mark_addressable): Handle COMPOUND_LITERAL_EXPR.
788         * c-decl.c (build_compound_literal): New function.
789         * c-tree.h (build_compound_literal): Declare.
790         * c-parse.in (primary): Use build_compound_literal.
791         * c-lang.c (LANG_HOOKS_STATICP): Define.
792         * objc/objc-lang.c (LANG_HOOKS_STATICP): Likewise.
793         * doc/c-tree.texi: Document COMPOUND_LITERAL_EXPR.
794         * doc/extend.texi: Update documentation of compound literals.
795         Fixes PR c/4787.
796
797 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
798
799         * langhooks.h (struct lang_hooks): Add staticp.
800         * langhooks-def.h (lhd_staticp, LANG_HOOKS_STATICP): New.
801         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_STATICP.
802         * langhooks.c (lhd_staticp): New function.
803         * tree.c (staticp): Call lang_hooks.staticp for language-specific
804         tree codes.
805
806 2001-12-04  Neil Booth  <neil@daikokuya.demon.co.uk>
807
808         * cppspec.c (lang_specific_driver): Set is_cpp_driver.
809         * gcc.c (process_command): Ensure the cpp driver sees
810         --help and --target-help, and that the help is printed
811         exactly once.
812
813 2001-12-04  David Edelsohn  <edelsohn@gnu.org>
814
815         * config/elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.
816
817 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
818
819         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Don't unset
820         flag_strict_aliasing.  Use separate assignment statements.
821
822 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
823
824         * build-make, cross-make: Delete file.
825         * configure.in: Set and substitute CROSS, ALL,
826         SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_PREFIX_1, HOST_CC,
827         HOST_CFLAGS, STMP_FIXINC, and STMP_FIXPROTO depending on
828         whether build == host and host == target.  Do not
829         AC_SUBST_FILE build_overrides or cross_overrides.  Do not
830         AC_SUBST cross_defines or extra_c_flags.
831         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): New.
832         (SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_CC, HOST_PREFIX,
833         HOST_PREFIX_1, HOST_CFLAGS, ALL, INTERNAL_CFLAGS): Set
834         partially or completely with autoconf-substituted @variable@
835         notation.
836         (INSTALL_TARGET, @cross_defines@, @cross_overrides@,
837         @build_overrides@, @extra_c_flags@, all.build, install-build,
838         install-cross-rest, install-float-h-cross): Deleted.
839         (install-normal): Rename to install.  Delete old "install"
840         indirection rule.
841
842 2001-12-04  Andrew MacLeod  <amacleod@redhat.com>
843
844         * stmt.c (expand_return): Clear destination instead of clobbering it
845         when setting a return value via bitsets.
846
847 2001-12-04  Alexandre Oliva  <aoliva@redhat.com>
848
849         * tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if
850         it has DECL_SAVED_TREE.
851
852         * c-decl.c (duplicate_decls): Revert rth's patch.  If newdecl
853         is in a different binding level, get its abstract origin to be
854         olddecl.
855         * tree-inline.c (expand_call_inline): Move DECL_INITIAL sanity
856         check earlier.
857         * tree.c (get_callee_fndecl): Follow DECL_ABSTRACT_ORIGIN if
858         DECL_INITIAL is NULL.
859
860 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
861
862         * flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.
863         Return correct value if one of the subexpressions was optimized to
864         0 resp. 1.  Optimize (x | A) | x and (x & A) | x.
865         (and_reg_cond): Similarly.
866
867 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
868
869         * function.c (assign_parms): Set last_named only for last named
870         argument.
871
872 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
873
874         * doc/install.texi: Use the GFDL.  Include years from old install
875         manual in copyright notice.  Include copyright and GFDL notice on
876         HTML index page.  Include usual footer on testing.html.
877         * doc/install.texi2html: Build gfdl.html.  Use -I
878         $SOURCEDIR/include.
879         * doc/include/fdl.texi: Adapt for use in the install manual.
880
881 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
882
883         * doc/install.texi: Document that installed native compiler for
884         building cross compilers should be GCC 2.95 or later.
885
886 2001-12-03  Eric Christopher  <echristo@redhat.com>
887
888         * config/mips/mips.h (CALL_REALLY_USED_REGISTERS): New macro.
889         * config/mips/mips.md: Check TARGET_DEBUG_D_MODE before split
890         patterns.
891
892 2001-12-03  Janis Johnson  <janis187@us.ibm.com>
893
894         * rtl.def (PREFETCH): New rtx code.
895         * doc/rtl.texi (PREFETCH): Add documentation.
896         * function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx.
897         * rtlanal.c (reg_referenced_p): Ditto.
898         * sched-vis.c (print_exp):  Ditto.
899         * ssa-dce.c (find_inherently_necessary):  Ditto.
900
901         * config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
902           (PREFETCH_BLOCK): Define.
903         * config/ia64/ia64.md (itanium_class): Add lfetch.
904           (prefetch, prefetch_internal): New.
905
906         * builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
907         * builtins.def (BUILT_IN_PREFETCH): New.
908         * builtins.c (expand_builtin_expect): New.
909           (expand_builtin): Call it.
910         * doc/extend.texi: Document __builtin_prefetch.
911
912         * config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid
913           conflicts with new generic prefetch functionality.
914         * config/i386/i386.c (ix86_expand_builtin): Use new name for
915           prefetch_sse.
916
917 2001-12-02  Ziemowit Laski  <zlaski@apple.com>
918
919         * objc/Make-lang.in: Update copyright.
920         (OBJC_OBJS): Add objc-lang.o.
921         (objc-lang.o): New rule.
922         * objc/config-lang.in: Fix file description and update
923         copyright.
924         * objc/objc-act.c: Do not include langhooks.h and
925         langhooks-def.h
926         (lang_hooks): Move (along with LANG_HOOKS...) to objc-lang.c.
927         (objc_post_options): Move to objc-lang.c.
928         (objc_init_options): Move to objc-lang.c.
929         (objc_init): Make non-static.
930         (objc_decode_option): Make non-static.
931         (HASHFUNCTION): Remove macro.
932         (hash_func): New function.
933         (hash_enter): Replace HASHFUNCTION with hash_func.
934         (hash_lookup): Replace HASHFUNCTION with hash_func.
935         (maybe_objc_tree_codes): New function.
936         (init_objc): Move ObjC tree code initialization to
937         maybe_objc_tree_codes().
938         * objc/objc-act.h (GCC_OBJC_ACT_H): New include guard.
939         (objc_init): New public prototype.
940         (objc_decode_option): New public prototype.
941         (maybe_add_objc_tree_codes): New public prototype.
942         * objc/objc-lang.c: New file.
943         (lang_hooks): Moved from objc-act.c.
944         (objc_post_options): Moved from objc-act.c.
945         (objc_init_options): Moved from objc-act.c.
946
947 2001-12-03  Geoff Keating  <geoffk@redhat.com>
948
949         * emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension
950         of array elements.
951
952 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
953
954         PR c/4988
955         * gcc.c (process_command): Don't add a preprocessor option for
956         --help and --target-help; cc1 is enough.
957
958 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
959
960         * c-decl.c (grokdeclarator): Use ISO word.
961         * cppinit.c: Remove leading capital from diagnostic messages, as
962         per GNU coding standards.
963         * emit-rtl.c: Similarly.
964         * final.c: Similarly.
965         * gcc.c: Similarly.
966         * tradcpp.c: Similarly.
967         * config/arm/arm.c: Similarly.
968         * config/arm/arm.h: Similarly.
969         * config/avr/avr.c: Similarly.
970         * config/avr/avr.h: Similarly.
971         * config/c4x/c4x.c: Similarly.
972         * config/cris/cris.c: Similarly.
973         * config/cris/cris.h: Similarly.
974         * config/d30v/d30v.c: Similarly.
975         * config/dsp16xx/dsp16xx.c: Similarly.
976         * config/dsp16xx/dsp16xx.h: Similarly.
977         * config/h8300/h8300.c: Similarly.
978         * config/i386/i386.c: Similarly.
979         * config/i386/xm-djgpp.h: Similarly.
980         * config/i960/i960.h: Similarly.
981         * config/m32r/m32r.c: Similarly.
982         * config/m68hc11/m68hc11.c: Similarly.
983         * config/m88k/m88k.c: Similarly.
984         * config/m88k/m88k.h: Similarly.
985         * config/mcore/mcore.c: Similarly.
986         * config/mcore/mcore.h: Similarly.
987         * config/mips/mips.c: Similarly.
988         * config/mmix/mmix.c: Similarly.
989         * config/pa/pa.c: Similarly.
990         * config/rs6000/rs6000.c: Similarly.
991         * config/rs6000/sysv4.h: Similarly.
992         * config/s390/s390.c: Similarly.
993         * config/sparc/sparc.c: Similarly.
994         * config/v850/v850-c.c: Similarly.
995         * config/v850/v850.c: Similarly.
996
997 2001-12-03  Zack Weinberg  <zack@codesourcery.com>
998
999         * rs6000.h (RETURN_IN_MEMORY): Cast result of
1000         int_size_in_bytes to unsigned HOST_WIDEST_INT so that -1 > 8.
1001
1002 Mon Dec  3 09:18:34 2001  Jeffrey A Law  (law@cygnus.com)
1003
1004         * mn10200.md (negsf2): Use -0x8000 instead of 0x8000 for
1005         bit twiddling constant.
1006
1007 Mon Dec  3 16:16:37 CET 2001  Jan Hubicka  <jh@suse.cz>
1008
1009         * gcse.c (delete_null_pointer_checks_1): Do not use delete_list;
1010         call purge_dead_edges after removing.
1011         (delete_null_pointer_checks): Do not handle delete_list.
1012
1013         * cfgbuild.c (inside_basic_block_p, control_flow_insn_p): Break out from ...
1014         (count_basic_blocks): ... here.
1015         (find_basic_blocks, find_bb_boundaries): Cleanup.
1016
1017         * stor-layout.c (fixup_signed_type, fixup_unsigned_type): Avoid
1018         overflow for types greater then 2 * HOST_WIDE_INT.
1019
1020         * reload.c (find_reloads): Update the duplicates after swapingg.
1021
1022 Mon Dec  3 13:52:19 CET 2001  Jan Hubicka  <jh@suse.cz>
1023
1024         * i386.md (movabsqi*): Use 'b' prefix instead of 'q'.
1025
1026 2001-12-02  Zack Weinberg  <zack@codesourcery.com>
1027
1028         * config/rs6000/rs6000.h (MASK_ALTIVEC_ABI,
1029         MASK_LONG_DOUBLE_128): Delete.
1030         (MASK_AIX_STRUCT_RET, MASK_AIX_STRUCT_RET_SET,
1031         TARGET_AIX_STRUCT_RET): New flags.
1032         (TARGET_SWITCHES): Remove entries for -mlong-double-128 and
1033         -mlong-double-64.  Add entries for -m(no-)aix-struct-return
1034         and -m(no-)svr4-struct-return.
1035         (TARGET_OPTIONS): Add entry for -mlong-double-.
1036         (rs6000_long_double_size_string, rs6000_long_double_type_size,
1037         rs6000_altivec_abi): Declare.
1038         (TARGET_LONG_DOUBLE_128, TARGET_ALTIVEC_ABI,
1039         LONG_DOUBLE_TYPE_SIZE): Change definitions to match.
1040         (RETURN_IN_MEMORY): If !TARGET_AIX_STRUCT_RET, return
1041         structures of size <= 8 bytes in registers.
1042         (PRINT_OPERAND_PUNCT_VALID_P): Take out '$' and '*'.
1043
1044         * config/rs6000/rs6000.c (rs6000_long_double_size_string,
1045         rs6000_long_double_type_size, rs6000_altivec_abi): New
1046         globals.
1047         (rs6000_override_options): Set rs6000_long_double_type_size
1048         from rs6000_long_double_size_string, if nonzero.  Set the
1049         MASK_AIX_STRUCT_RET bit in target_flags from DEFAULT_ABI, if
1050         not already set.
1051         (rs6000_parse_abi_options): Set rs6000_altivec_abi, not a
1052         target_flags bit.
1053         (rs6000_init_builtins): This hook now takes no arguments.
1054
1055         * config/rs6000/netbsd.h, config/rs6000/linux.h: Define
1056         DRAFT_V4_STRUCT_RET to 1.
1057
1058 2001-12-03  Joseph S. Myers  <jsm28@cam.ac.uk>
1059
1060         * c-typeck.c (really_start_incremental_init, push_init_level):
1061         Avoid constructor_max_index being other than an INTEGER_CST.
1062
1063 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
1064
1065         * config/rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count
1066         unsigned.
1067         (ASM_GENERATE_INTERNAL_LABEL): Same.
1068         (UNIQUE_SECTION): Fix typo.
1069
1070 2001-12-02  Richard Henderson  <rth@redhat.com>
1071
1072         * c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
1073
1074 2001-12-02  Richard Henderson  <rth@redhat.com>
1075
1076         * rtl.h (mem_attrs): Rename decl to expr; adjust all users.
1077         (MEM_EXPR): Rename from MEM_DECL; adjust all users.
1078         * emit-rtl.c (set_mem_expr): Rename from set_mem_decl.
1079         * expr.h, final.c, reload1.c: Adjust users.
1080
1081         * alias.c (nonoverlapping_component_refs_p): New.
1082         (decl_for_component_ref, adjust_offset_for_component_ref): New.
1083         (nonoverlapping_memrefs_p): Use them.
1084         * emit-rtl.c (component_ref_for_mem_expr): New.
1085         (set_mem_attributes): Use it.
1086         (set_mem_offset): New.
1087         * expr.c (expand_assignment): Call set_mem_attributes for
1088         inner references; adjust the memory offset as needed.
1089         * print-rtl.c (print_mem_expr): New.
1090         (print_rtx): Use it.
1091
1092 Sun Dec  2 09:22:25 2001  Douglas B. Rupp  <rupp@gnat.com>
1093
1094         * config/x-interix3 (SYSTEM_HEADER_DIR): Put back default.
1095
1096         * config/alpha/vms.h (VMS_DEBUGGING_INFO): New macro.
1097         (PREFERRED_DEBUGGING_TYPE): Define as VMS_AND_DWARF2_DEBUG.
1098         (ASM_SPEC): Don't redefine.
1099         (OPTIMIZATION_OPTIONS, OVERRIDE_OPTIONS, LINK_SPEC): Define.
1100         * config/alpha/t-vms (EXTRA_PARTS): Use; add rule for vms-dwarf2.asm.
1101         * config/alpha/vms-dwarf2.asm: New file.
1102
1103         * Makefile.in (OBJS): Add vmsdbgout.c and its rule.
1104         * c-lex.c (init_c_lex): Test for VMS_AND_DWARF2_DEBUG.
1105         * debug.h (gcc_debug_hooks): Add vmsdbg_debug_hooks.
1106         (vmsdbgout_after_prologue): New declaration.
1107         * defaults.h (VMS_DEBUGGING_INFO): Add to PREFERRED_DEBUGGING_TYPE.
1108         * dwarf2.h (dwarf_attribute): New DW_AT_VMS_rtnbeg_pd_address.
1109         * dwarf2out.c (dwarf2out_do_frame): Test for VMS_AND_DWARF2_DEBUG.
1110         (dwarf2out_frame_finish): Test for VMS_AND_DWARF2_DEBUG.
1111         (dwarf_attr_name): Use DW_AT_VMS_rtnbeg_pd_address.
1112         (add_name_and_src_coords_attributes): Test VMS_DEBUGGING_INFO
1113         * final.c (final_start_function): Test for VMS_AND_DWARF2_DEBUG.
1114         Test VMS_DEBUGGING_INFO.
1115         (final_end_function): Test for VMS_AND_DWARF2_DEBUG.
1116         (final_scan_insn): Test for VMS_AND_DWARF2_DEBUG and VMS_DEBUG.
1117         * flags.h (debug_info_type): Add VMS_DEBUG and VMS_AND_DWARF2_DEBUG.
1118         * toplev.c (compile_file): Test VMS_DEBUGGING_INFO, VMS_DEBUG, and
1119         VMS_AND_DWARF2_DEBUG.
1120         (rest_of_type_compilation): Test for VMS_AND_DWARF2_DEBUG.
1121         (decode_g_option): Add "vms" to debug_type_names.
1122         (process_options): Set vmsdbg_debug_hooks if -gvms.
1123         (lang_independent_init): Emit line number for VMS unless -g0.
1124         * tree.c: (build_complex_type): Test for VMS_AND_DWARF2_DEBUG.
1125         * vmsdbg.h, vmsdbgout.c: New files.
1126
1127 Sun Dec  2 09:03:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1128
1129         * cfgbuild.c (SET_STATE): Add cast to eliminate warning.a
1130
1131 2001-12-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1132
1133         * cfgrtl.c (purge_all_dead_edges): Initialize variable.
1134         * dwarf2out.c (is_cxx): Prototype.
1135         * local-alloc.c (block_alloc): Avoid 'unsigned>=0 is always true'
1136         warning.
1137         * objc/objc-act.c (defer_fn): Avoid signed/unsigned warning.
1138
1139 Sun Dec  2 07:12:30 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1140
1141         * libgcc2.c (__bb_exit_func): Fix line wrap problems.
1142
1143 2001-12-02  Geoff Keating  <geoffk@redhat.com>
1144
1145         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Simplify.
1146         * config/rs6000/rs6000.c (rs6000_emit_move): Use adjust_address
1147         rather than simplify_subreg.  Check for volatile-ness.  Check that
1148         we're not splitting one slow operation into two slow operations.
1149
1150 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
1151
1152         * emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT
1153         before shifting.
1154
1155 2001-12-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1156
1157         * c-decl.c (duplicate_decls, push_parm_decl): Remove leading
1158         capital from diagnostics.
1159         * c-lex.c (cb_file_change): Similarly.
1160         * c-parse.in : Similarly.
1161         * cfgrtl.c (verify_flow_info): Similarly.
1162         * collect2.c: Similarly.
1163         * cppfiles.c (find_include_file): Similarly.
1164         * cppinit.c (cpp_handle_option): Similarly.
1165         * cpplex.c (cpp_spell_token): Similarly.
1166         * cppmain.c (do_preprocessing): Similarly.
1167         * gcc.c (translate_options, process_command, do_spec1,
1168         main, pfatal_execute): Similarly.
1169         * genattr.c (main): Similarly.
1170         * genattrtab.c (check_attr_test, operate_exp, simplify_test_exp,
1171         write_test_expr, main): Similarly.
1172         * gencodes.c (main): Similarly.
1173         * genconfig.c (main): Similarly.
1174         * genconstants.c (main): Similarly.
1175         * genemit.c (main): Similarly.
1176         * genextract.c (main): Similarly.
1177         * genflags.c (main): Similarly.
1178         * genopinit.c (main): Similarly.
1179         * genoutput.c (process_template, main): Similarly.
1180         * genpeep.c (main): Similarly.
1181         * genrecog.c (main): Similarly.
1182         * gensupport.c (is_predicable, identify_predicable_attribute,
1183         alter_predicate_for_insn, init_md_reader_args, main): Similarly.
1184         * ggc-page.c (alloc_anon): Similarly.
1185         * mips-tfile.c (add_string, add_procedure, add_file, read_line,
1186         parse_begin, parse_bend, parse_def, parse_end, parse_file,
1187         parse_stabs_common, parse_stabs, write_varray, write_object,
1188         read_seek, copy_object, main, error): Similarly.
1189         * profile.c (compute_branch_probabilities): Similarly.
1190         * reg-stack.c (check_asm_stack_operands): Similarly.
1191         * reload.c (find_reloads): Similarly.
1192         * reload1.c (spill_failure, failed_reload): Similarly.
1193         * rtl-error.c (_fatal_insn_not_found): Similarly.
1194         * toplev.c (read_integral_parameter, crash_signal,
1195         decode_f_option, set_target_switch, parse_options_and_default_flags)
1196         : Similarly.
1197         * tradcif.y (parse_number, yylex): Similarly.
1198         * tradcpp.c (main, fancy_abort): Similarly.
1199         * tree.c (tree_check_failed): Similarly.
1200         * varray.c (varray_check_failed): Similarly.
1201         * xcoffout.c (xcoff_output_standard_types): Similarly.
1202 objc:
1203         * objc-act.c (get_object_ref, lookup_and_install_protocols,
1204         build_objc_string_object, objc_declare_alias, build_ivar_chain,
1205         finish_message_expr, build_protocol_expr, is_public,
1206         start_class): Similarly.
1207
1208 2001-12-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1209
1210         * c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
1211         trailing period from diagnostics.
1212         * c-lex.c (cb_file_change): Similarly.
1213         * cppmacro.c (check_trad_stringification): Similarly.
1214         * gcc.c (do_spec_1): Similarly.
1215         * genattr.c (main): Similarly.
1216         * genattrtab.c (main, operate_exp, make_length_attrs): Similarly.
1217         * gencodes.c (main): Similarly.
1218         * genconfig.c (main): Similarly.
1219         * genconstants.c (main): Similarly.
1220         * genemit.c (main): Similarly.
1221         * genextract.c (main): Similarly.
1222         * genopinit.c (main): Similarly.
1223         * genoutput.c (main): Similarly.
1224         * genpeep.c (main): Similarly.
1225         * genrecog.c (main): Similarly.
1226         * mips-tfile.c (add_file, error): Similarly.
1227         * profile.c (init_branch_prob): Similarly.
1228         * reload1.c (spill_failure): Similarly.
1229         * stmt.c (parse_output_constraint): Similarly.
1230         * varasm.c (assemble_variable): Similarly.
1231
1232 2001-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1233
1234         * m68k.c (init_FPA_table): Provide static prototype.
1235         * mips/abi64.h (mips_function_value): Move prototype to ...
1236         * mips-protos.h (mips_function_value): ... here.
1237         * mips.c: Include halfpic.h.
1238         * output.h (rdata_section): Prototype.
1239
1240         * h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
1241         * m88k.c (m88k_svr3_asm_out_constructor,
1242         m88k_svr3_asm_out_destructor): Wrap with CTOR_LIST_BEGIN &&
1243         !OBJECT_FORMAT_ELF.
1244         * mcore.c (mcore_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
1245         * sh.c (sh_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
1246         * sparc.c (sparc_elf_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
1247
1248 2001-12-01  Geoff Keating  <geoffk@redhat.com>
1249
1250         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Complex
1251         LO_SUM addresses less than word size are not legitimate,
1252         because they lead to invalid SUBREGs.
1253         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
1254
1255 2001-12-01  Olivier Hainque <hainque@act-europe.fr>
1256
1257         * unroll.c (loop_iterations): Give up on jumps with null JUMP_LABEL
1258         while scanning for multiple back edges.
1259
1260 2001-12-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1261
1262         * ginclude/ppc-asm.h (JUMP_TARGET): New macro.
1263         * config/rs6000/tramp.asm: Use it.
1264
1265 2001-12-01  Zack Weinberg  <zack@codesourcery.com>
1266
1267         * gencheck.c, gengenrtl.c: Don't define xmalloc.
1268         * gensupport.c: Don't define xstrdup, xcalloc, xrealloc,
1269         xmalloc.
1270
1271 2001-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1272
1273         * pa.c (output_ascii): Cast `p' to unsigned char.
1274
1275 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
1276
1277         * config/rs6000/rs6000.c (altivec_expand_builtin): add
1278         ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf,
1279         *_16qi,_8hi, rename existing V4SI ones to *_4si.
1280         (altivec_init_builtins): Ditto.
1281         (bdesc_2arg): Rename CODE_FOR_* to match changes in MD file.
1282
1283         * config/rs6000/rs6000.md: Add attribute types vecsimple,
1284         veccomplex, vecfloat, and vecperm, for altivec instructions.
1285         Modify altivec patterns to use appropriate attribute type.
1286         Modify altivec patterns to match RTL operations where appropriate
1287         (IE no unspec where we can avoid it).
1288         Add vector unit scheduling for ppc7450.
1289         Rename patterns to what they are where appropriate
1290         (altivec_vaddfp->addv4sf3, etc)
1291
1292         * config/rs6000/rs6000.h (enum rs6000_builtins): Change VRS->VSR.
1293         Pass -mppc, and define _ARCH_PPC, if -mcpu=7450 is used.
1294
1295         * config/rs6000/sysv4.h: Add -mcpu=7450.
1296
1297         * testsuite/gcc.dg/altivec-1.c: Update test to take into account renamed
1298         _builtin_altivec_ld_interal function.
1299
1300 2001-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1301
1302         * configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen,
1303         strchr, strrchr, isascii, gettimeofday.
1304         * config.in, configure: Regenerate.
1305
1306 2001-11-30  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
1307
1308         * unroll.c (unroll_loop): Correct special exit cases.
1309
1310 2001-11-30  Stephane Carrez  <Stephane.Carrez@sun.com>
1311
1312         * config/sparc/sparc.c (DF_MODES_NO_S): Fix pr/3623, define to
1313         accept DFmode and DImode only.
1314
1315 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
1316
1317         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
1318         (STACK_DYNAMIC_OFFSET): Same.
1319
1320 2001-11-30  Richard Henderson  <rth@redhat.com>
1321
1322         * c-decl.c (duplicate_decls): Copy DECL_SAVED_TREE.
1323
1324 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
1325
1326         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): New.
1327         (CONDITIONAL_REGISTER_USAGE): Set call_really_used_registers to
1328         the values in call_used_registers.
1329
1330 Fri Nov 30 12:48:26 2001  Jeffrey A Law  (law@cygnus.com)
1331
1332         * gthr-dce.h: If _DCE_THREADS is not defined, then just include
1333         gthr-single.
1334
1335 2001-11-30  Jason Merrill  <jason@redhat.com>
1336
1337         * dwarf2out.c (is_cxx): New fn.
1338         (add_data_member_location_attribute): Check it.
1339         * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++.
1340
1341 Fri Nov 30 08:26:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1342
1343         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Handle const1_rtx.
1344
1345 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
1346
1347         * genopinit.c (gen_insn): Handle MODE_VECTOR_INT and
1348         MODE_VECTOR_FLOAT as allowed.
1349
1350 2001-11-29  Zack Weinberg  <zack@codesourcery.com>
1351
1352         Purge cruft now we have build libiberty.
1353
1354         * Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR,
1355         HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR,
1356         USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT,
1357         USE_HOST_STRSTR): Delete variables.
1358         (vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o,
1359         hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o,
1360         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
1361         $(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules.
1362         (LIBIBERTY, BUILD_LIBIBERTY): New variables.
1363         (LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY).
1364         (LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY).
1365         (HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY).
1366         (HOST_LIBS): Ditto.
1367         (HOST_RTL): Remove hashtab.o safe-ctype.o.
1368         (OBJS): Remove splay-tree.o.
1369         (gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a.
1370         (distclean): No need to delete splay-tree.c obstack.c
1371         hashtab.c safe-ctype.c.
1372         (mostlyclean): Delete build copies of print-rtl.c bitmap.c
1373         errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1).
1374         * aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR):
1375         Delete.
1376         * configure.in: Don't use them.
1377         Set and substitute @FORBUILD@.
1378         * config.in, configure: Regenerate.
1379         * doprint.c: Move to libiberty/_doprnt.c.
1380         * doc/configterms.texi: Document that libiberty is now built
1381         up to three times.  Fix typo.
1382
1383 2001-11-30  Jason Merrill  <jason@redhat.com>
1384
1385         * dwarf2out.c (add_data_member_location_attribute): Do the
1386         right thing for virtual bases.
1387         * dbxout.c (dbxout_type): For a virtual base, print the offset
1388         within the vtable.
1389
1390 2001-11-29  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
1391
1392         * doloop.c (doloop_valid_p): Check for LTU and GTU as well.
1393
1394 2001-11-29  Aldy Hernandez  <aldyh@redhat.com>
1395
1396         * config/rs6000/rs6000.c (function_arg): Unnamed vector arguments
1397         go in memory.
1398         Remove unused attribute for named.
1399
1400 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1401
1402         * genattrtab.c (attr_rtx_1): New function containing the
1403         majority of `attr_rtx'.  Move variable declarations into the
1404         scope where they are used.  Eliminate unnecessary gotos.
1405         (attr_rtx): Now just a wrapper for `attr_rtx_1' using VA_OPEN,
1406         VA_FIXEDARG, and VA_CLOSE.
1407
1408 2001-11-30  Hans-Peter Nilsson  <hp@axis.com>
1409
1410         * config/cris/cris.c (cris_notice_update_cc): Check first
1411         destination also against overlap with cc_status.value2 and second
1412         destination against overlap with cc_status.value1.  For overlaps,
1413         clear overlapped value, don't just CC_STATUS_INIT.
1414
1415         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix spacing and FIXME.
1416         Fix typo in comment.
1417         (LINK_SPEC): Remove whitespace at end of line.
1418
1419 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1420
1421         * c-lex.c (init_c_lex): Canonicalize "-" filename to "".
1422
1423 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1424
1425         * gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
1426         macros for the supported debugging types.
1427
1428 2001-11-29  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1429
1430         PR other/4932
1431         * config/i386/i386.c (print_operand):  Verify that the
1432           argument to %c is a constant and not a conditional which
1433           needs to be reversed.
1434
1435 Thu Nov 29 11:12:59 2001  Geoffrey Keating (geoffk@redhat.com)
1436
1437         * emit-rtl.c (gen_lowpart_common): Fix conversion of
1438         REAL_VALUE_TYPEs to an array of target integers.  Fix extraction
1439         of low part of those arrays for 32bit and 64bit hosts.
1440
1441 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1442
1443         * Makefile.in (insn-output.o): Depend on insn-codes.h.
1444
1445 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1446
1447         * configure.in (target_list): Add generated-manpages.
1448         * configure: Regenerate.
1449         * Makefile.in (generated-manpages): Depend on
1450         lang.generated-manpages.
1451         * objc/Make-lang.in (objc.generated-manpages): New dummy target.
1452
1453 2001-11-29  Nick Clifton  <nickc@cambridge.redhat.com>
1454
1455         * config/arm/crti.asm (_init): Add .thumb_func if compiled
1456         with -mthumb.
1457         (_fini): Add .thumb_func if compiled with -mthumb.
1458
1459 2001-11-28  Eric Christopher  <echristo@redhat.com>
1460
1461         * config/mips/mips.c (override_options): Fix thinko in mips_tune
1462         for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.
1463
1464 Thu Nov 29 00:24:15 EST 2001  John Wehle  (john@feith.com)
1465
1466         * alpha.md (tablejump): Use pic_offset_table_rtx
1467         instead of gen_rtx_REG.
1468
1469 Wed Nov 28 15:36:13 2001  Jeffrey A Law  (law@cygnus.com)
1470
1471         * expr.c (store_expr): When copying a string constant into an
1472         array, reset the known alignment of the MEM for the section to
1473         be cleared to BITS_PER_UNIT.
1474
1475 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
1476
1477         * config/cris/cris.c: Remove whitespace at end of line.
1478
1479 Wed Nov 28 14:51:23 2001  Douglas B. Rupp  <rupp@gnat.com>
1480
1481         * config.gcc (i[34567]86-*-interix3*): New case.
1482         * config/x-interix3, config/interix3.h, config/i386/i386-interix3.h:
1483         New files.
1484
1485 2001-11-28  Richard Henderson  <rth@redhat.com>
1486
1487         * config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
1488         symbolic_operand as the predicate.
1489
1490 2001-11-28  Richard Henderson  <rth@redhat.com>
1491
1492         * doloop.c (doloop_modify_runtime): Properly select induction
1493         variable; skip late entry test if biv initializer created by loop.
1494
1495 Wed Nov 28 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1496
1497         * tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
1498         EXPR_WITH_FILE_LOCATION, so change checks and documentation.
1499
1500         * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
1501
1502         * tree.h: Add missing checks on some macros; make formatting more
1503         consistent.
1504
1505         * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
1506         level; only add to pending_sizes if find it.
1507
1508         * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
1509
1510         * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
1511         Add casts to remove warnings.
1512
1513         * Makefile.in (OBJS): Sort alphabetically.
1514
1515         * print-rtl.c (print_rtx): If RTX code is bad, just say so.
1516         Also minor cleanups.
1517
1518 Wed Nov 28 06:52:27 2001  Arnaud Charlet  <charlet@ACT-Europe.FR>
1519
1520         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
1521         (FLAGS_TO_PASS): Add STAGE_PREFIX.
1522         (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
1523         to STAGE_PREFIX.
1524
1525 Wed Nov 28 10:42:19 CET 2001  Jan Hubicka  <jh@suse.cz>
1526
1527         * cse.c (true_dependence_in_rtx): New function.
1528         (invalidate): Use it.
1529
1530         * c-common.h (GOTO_FAKE_P): New macro.
1531         * tree-inline.c (GOTO_FAKE_P): Set.
1532         * c-tree.texi (GOTO_FAKE_P): Document.
1533
1534         * varasm.c (assemble_variable): Set reloc to 3 for error_mark
1535         containing pointers.
1536         (output_addressed_constants): Check for local/external relocations.
1537         * elfos.h (SELECT_SECTION): Classify data section.
1538         * tm.texi (SELECT_SECTION): Update documentation.
1539
1540         * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
1541         (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
1542
1543 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1544
1545         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
1546         UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
1547         OBJECT_FORMAT_ROSE.
1548
1549 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
1550
1551         * config/cris/cris.c: Tweak spacing for prototypes.
1552         (LOSE_AND_RETURN): New macro.
1553         (cris_operand_lossage): New function.
1554         (cris_print_index, cris_print_base): Use cris_operand_lossage
1555         rather than fatal_insn.
1556         (cris_print_operand, cris_print_operand_address): Use
1557         LOSE_AND_RETURN rather than fatal_insn and internal_error.
1558         (cris_output_addr_const): Use LOSE_AND_RETURN and
1559         output_operand_lossage rather than fatal_insn and internal_error
1560         for valid but unexpected rtx expressions.
1561
1562         * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
1563         for a SUBREG in src or dest, abort instead.
1564
1565 2001-11-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1566
1567         * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
1568         doc.
1569
1570 2001-11-27  Jakub Jelinek  <jakub@redhat.com>
1571
1572         * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
1573         preprocessor define.  If only DBX_DEBUGGING_INFO or only
1574         DWARF2_DEBUGGING_INFO is supported for the target, provide
1575         appropriate definitions.
1576
1577 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1578
1579         * Makefile.in: Update, and add c-objc-common.o dependencies.
1580         * c-lang.c: Remove unnecessary includes.
1581         (c_init): Move bulk of code to c_objc_common_init, and call it.
1582         (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
1583         inline_forbidden_p, c_cannot_inline_tree_fn): Move to
1584         c-objc-common.c.
1585         * c-objc-common.c: New.  Mostly pulled from c-lang.c.
1586         * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
1587         c_objc_common_init, c_missing_noreturn_ok_p): New.
1588         * toplev.c: Update comment.
1589         * doc/passes.texi: Update.
1590 objc:
1591         * objc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
1592         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
1593         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
1594         (objc_init): Update to use c_objc_common_init.
1595
1596 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1597
1598         * cpphash.c (_cpp_init_hashtable): Update.
1599         * cpphash.h (struct spec_nodes): Remove n_L.
1600         * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
1601
1602 2001-11-17  Richard Henderson  <rth@redhat.com>
1603
1604         * unroll.c (loop_iterations): Move last change ...
1605         * doloop.c (doloop_modify_runtime): ... here.
1606
1607 2001-11-17  Corey Minyard  <minyard@acm.org>
1608             Richard Henderson  <rth@redhat.com>
1609
1610         * unroll.c (loop_iterations): Detect one situation in which we
1611         overestimate the number of iterations.
1612
1613 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1614
1615         * gcc.c (set_input): Export.
1616         Move declaration ...
1617         gcc.h (set_input): ... here.
1618
1619 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1620
1621         * gcc.c (set_collect_gcc_options): New function, split out from
1622         main.
1623         Ignore elided switches.
1624         (do_spec): Invoke before executing command.
1625         (do_spec_1): Likewise.
1626         Fixes PR other/3968.
1627
1628 2001-11-27  Hans-Peter Nilsson  <hp@axis.com>
1629
1630         * config/cris/cris.h (INT_ASM_OP): Remove.
1631
1632 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1633
1634         * config/i386/sol2.h (WINT_TYPE): Redefine.
1635         (WINT_TYPE_SIZE): Likewise.
1636
1637 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1638
1639         * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
1640         (dup2): Make static and add prototype.
1641         * m68k/plexus.h: Don't define NO_DUP2.
1642         * configure.in (AC_CHECK_FUNCS): Add dup2.
1643         * config.in, configure: Regenerate.
1644
1645         * ia64/aix.h (REG_SIZE): Don't #undef.
1646         * sparc.h (REG_SIZE): Delete.
1647         * flow.c (mark_used_regs): Don't use REG_SIZE.
1648         * regs.h (REG_SIZE): Delete.
1649
1650 2001-11-27  Andreas Schwab  <schwab@suse.de>
1651
1652         * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
1653         PREFERRED_DEBUGGING_TYPE.
1654
1655 Tue Nov 27 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1656
1657         * Makefile.in (c-lang.o): Depends on langhooks-def.h.
1658         (expr.o, varasm.o): Depends on langhooks.h.
1659         * c-common.c (c_safe_from_p): Always declare.
1660         (c_expand_expr): Refine when declared.
1661         * c-lang.c (c-common.h): Now include.
1662         (LANG_HOOKS_SAFE_FROM_P): Define new hook.
1663         (c_init): Don't set lang_safe_from_expr.
1664         * expr.c (langhooks.h): Now include.
1665         (lang_safe_from_p): No longer define.
1666         (safe_from_p): Use lang hook.
1667         (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
1668         (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
1669         * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
1670         * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
1671         (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
1672         * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
1673         * langhooks.h (struct lang_hooks): New fields expand_constant
1674         and safe_from_p.
1675         * output.h (output_constant): Size arg is HOST_WIDE_INT.
1676         * stmt.c (expand_decl_init): No longer need to expand constant
1677         for CONST_DECL.
1678         * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
1679         * toplev.c (lang_expand_constant): Delete var.
1680         * tree.c (save_expr): Don't put another SAVE_EXPR around simple
1681         operations on SAVE_EXPR.
1682         * varasm.c (langhooks.h): Now include.
1683         (compare_constant_1): Use lang_hooks, not lang_expand_constant.
1684         (record_constant_1, output_addressed_constants): Likewise.
1685         (initializer_constant_valid_p, output_constant): Likewise.
1686         (output_constant_def): Process no-defer of string constant.
1687         (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
1688         (output_constant): Strip more conversions.
1689         Track our size and pad for the rest.
1690         (array_size_for_constructor): Remove code for non-byte STRING_CST.
1691         (output_constructor): SIZE now HOST_WIDE_INT.
1692
1693 2001-11-27  Richard Henderson  <rth@redhat.com>
1694
1695         * ifcvt.c (noce_try_store_flag_constants): Test for overflow
1696         in computing DIFF.
1697
1698 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
1699
1700         * cppfiles.c (read_include_file): Add comment.
1701
1702 2001-11-26  Richard Henderson  <rth@redhat.com>
1703
1704         * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
1705
1706 2001-11-26  Richard Henderson  <rth@redhat.com>
1707
1708         * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
1709         * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
1710         commented out override.
1711
1712 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1713
1714         * cppfiles.c (stack_include_file): Don't optimize zero-length
1715         files.
1716         (read_include_file): NUL-terminate read files.
1717         * cpplex.c (handle_newline, skip_escaped_newlines,
1718         get_effective_char, skip_whitespace, parse_identifier,
1719         parse_identifier_slow, parse_number, parse_string,
1720         _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
1721         NUL-terminated.
1722         * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
1723         Be sure buffers are NUL terminated.
1724         * cppmacro.c (warn_of_redefinition): Kill compile warning.
1725
1726 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1727
1728         * c-common.c: Include tree-inline.h.
1729         (c_language): Move separate definitions here.
1730         (c_common_init_options, c_common_post_options): New.
1731         (c_common_lang_init): Rename c_common_init.
1732         * c-common.h (c_common_lang_init): Similarly.
1733         (c_common_init_options, c_common_post_options): New.
1734         * c-lang.c (c_post_options): Move body to c_common_post_options.
1735         (c_init_options): Use c_common_init_options.
1736         (c_init): Update.
1737         * langhooks.def: Rearrange.
1738         * langhooks.h: Rearrange, and improve comments.
1739         * toplev.c (do_compile): New function.
1740         (toplev_main): Use it.
1741         (lang_independent_f_options, parse_options_and_default_flags,
1742         process_options): Remove trailing periods.
1743         * Makefile.in: Update.
1744 objc:   * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
1745         functions.
1746         (ojbc_init): Update.
1747
1748 2001-11-26  Richard Henderson  <rth@redhat.com>
1749
1750         * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
1751
1752 2001-11-26  DJ Delorie  <dj@redhat.com>
1753
1754         * expr.c (store_constructor): Actually use the value computed
1755         if WORD_REGISTER_OPERATIONS.
1756
1757 2001-11-26  Richard Henderson  <rth@redhat.com>
1758
1759         * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
1760         for CONSTRUCTOR.
1761
1762 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
1763
1764         * rs6000.c (output_mi_thunk): Handle minimal-toc and call
1765         correct function on AIX.
1766
1767 2001-11-26  Alexandre Oliva  <aoliva@redhat.com>
1768
1769         * toplev.c (process_options): Don't force
1770         flag_optimize_sibling_calls to zero just because exceptions are
1771         enabled.
1772
1773 Mon Nov 26 12:37:05 2001  Jeffrey A Law  (law@cygnus.com)
1774
1775         * df.h (transfer_function_sbitmap): Use PARAMS around argument
1776         list in function prototypes.
1777         (transfer_function_bitmap): Likewise.
1778
1779 2001-11-26  Loren J. Rittle  <ljrittle@acm.org>
1780
1781         * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
1782         * config/i386/netbsd-elf.h: Likewise.
1783
1784 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
1785
1786         * doc/trouble.texi: Remove outdated RS/6000 comments.
1787
1788 Mon Nov 26 13:49:41 CET 2001  Jan Hubicka  <jh@suse.cz>
1789
1790         * final.c (walk_alter_subreg): Fix return value.
1791
1792 Mon Nov 26 11:36:20 CET 2001  Jan Hubicka  <jh@suse.cz>
1793
1794         * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
1795         alter_subreg.
1796         * sparc.md (post-reload splitters): Do not call alter_subreg.
1797         * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
1798
1799 2001-11-25  Aldy Hernandez  <aldyh@redhat.com>
1800
1801         * regclass.c (choose_hard_reg_mode): Handle vector arguments.
1802
1803 2001-11-26  Alan Modra  <amodra@bigpond.net.au>
1804
1805         * final.c: (insn_lengths): Make it an int *, so that large jump
1806         tables don't overflow.
1807
1808 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
1809
1810         * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
1811         (format_types): Use it for scanf.
1812         (dollar_arguments_pointer_p): New.
1813         (init_dollar_format_checking): Store details of which arguments
1814         are pointers.
1815         (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
1816         (finish_dollar_format_checking): Take extra parameter
1817         pointer_gap_ok.  Treat unused arguments differently if
1818         pointer_gap_ok and the unused arguments are pointers.
1819         (check_format_info_main): Pass extra argument to
1820         finish_dollar_format_checking.
1821         * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
1822         unused arguments are present between used arguments with operand
1823         numbers.
1824
1825 2001-11-25  Daniel Berlin  <dan@cgsoftware.com>
1826
1827         * df.c: Add prototypes for hybrid_search_bitmap and
1828         hybrid_search_sbitmap.
1829         (hybrid_search_bitmap): New function.
1830         (hybrid_search_sbitmap): New function.
1831         (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
1832         (iterative_dataflow_bitmap): Ditto.
1833
1834 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1835
1836         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1837         address computations.
1838
1839 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1840
1841         * config/m68hc11/m68hc11.c (d_register_operand): Must accept
1842         register b (low part of d).
1843
1844 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1845
1846         * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
1847         passed to mcount.
1848
1849 Sun Nov 25 06:22:09 2001  Douglas B. Rupp  <rupp@gnat.com>
1850
1851         * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
1852         * config/alpha/x-vms: New file, to compile the above.
1853         * config.gcc (alpha*-dec-vms*): Add x-vms.
1854
1855 2001-11-24  Hans-Peter Nilsson  <hp@axis.com>
1856
1857         * genextract.c (main): Set ro_loc for peepholes.
1858
1859 Sat Nov 24 17:04:10 2001  Douglas B. Rupp  <rupp@gnat.com>
1860
1861         * fix-header.c (main): Move inf_buffer termination and inf_limit
1862         calculation to after read.
1863
1864         * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
1865         (__UNIX_FOPEN): Define.
1866
1867 Sat Nov 24 16:11:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1868
1869         * function.c (assign_stack_temp_for_type): Clear alias set before
1870         setting new one.
1871
1872 2001-11-23  David Edelsohn  <edelsohn@gnu.org>
1873
1874         * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
1875         format.
1876         * rs6000.md (cmptf): Fix typo.
1877
1878 2001-11-23  Richard Sandiford  <rsandifo@redhat.com>
1879
1880         * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
1881         * varasm.c (output_constructor): Use assemble_integer rather
1882         than ASM_OUTPUT_BYTE.
1883
1884 2001-11-23  Andreas Jaeger  <aj@suse.de>
1885
1886         * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
1887         extension.
1888
1889 2001-11-23  Nick Clifton  <nickc@cambridge.redhat.com>
1890
1891         * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
1892         default definition.
1893         (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
1894         (MULTILIB_DEFAULTS): Remove previous definition.
1895
1896 2001-11-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1897
1898         * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
1899         * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
1900
1901 2001-11-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1902
1903         * cris.h: Revert thinko in last patch.
1904
1905 2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
1906
1907         * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
1908         FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
1909         cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
1910         dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
1911         explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
1912         sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
1913
1914         * predict.c, reg-stack.c: Fix spelling errors.
1915
1916 2001-10-09  Andrew Haley  <aph@redhat.com>
1917
1918         * calls.c (check_sibcall_argument_overlap): Use slot_offset for
1919         start of stack slot.
1920
1921 2001-11-22  Graham Stott  <grahams@redhat.com>
1922
1923         * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
1924         replacement jump after original jump.
1925
1926         (verify_flow_info): Remove redundent initialisation.
1927         Handle reaching end of insn list before finding a BARRIER.
1928         Only issue one missing barrier diagnostic.
1929
1930 2001-11-22  Graham Stott  <grahams@redhat.com>
1931
1932         * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
1933
1934 Thu Nov 22 06:49:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1935
1936         * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
1937         insn actually does.
1938
1939 2001-11-22  Nick Clifton  <nickc@cambridge.redhat.com>
1940
1941         * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
1942         Fix typo -mm32rx=> -m32rx.
1943
1944         * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
1945         targets.
1946
1947         * config.gcc (xscale-coff): Add necessary header files to
1948         tm_file variable.
1949
1950 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
1951
1952         * rs6000.c (output_cbranch): Use $, not %$, in output template.
1953
1954 2001-11-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1955
1956         * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
1957         (lang_type_quals): Declare.
1958         (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
1959         retrieve language-specific qualifiers for a type node, instead of
1960         C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
1961         lang_dump_tree.
1962         * tree-dump.h: Rename from c-dump.h.
1963         * c-common.h (C_TYPE_QUALS): Removed.
1964         Move declarations for tree-dump.c interface to...
1965         * tree.h: ... here. Remove lang_dump_tree.
1966         * langhooks.h (struct lang_hooks_for_tree_dump): New.
1967         (struct lang_hooks): Add tree_dump hooks.
1968         * langhooks.c (lhd_tree_dump_dump_tree): New function.
1969         (lhd_tree_dump_type_quals): New function.
1970         * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
1971         Declare.
1972         (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
1973         * Makefile.in: Move tree-dump.o to language-independent back-end.
1974
1975 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1976
1977         * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
1978         * alpha.h (DBX_REGISTER_NUMBER): Likewise.
1979         * arc.h (DBX_REGISTER_NUMBER): Likewise.
1980         * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
1981         * avr.h (DBX_REGISTER_NUMBER): Likewise.
1982         * c4x.h (DBX_REGISTER_NUMBER): Likewise.
1983         * clipper.h (DBX_REGISTER_NUMBER): Likewise.
1984         * convex.h (DBX_REGISTER_NUMBER): Likewise.
1985         * cris.h (DBX_REGISTER_NUMBER): Likewise.
1986         * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
1987         * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
1988         * fr30.h (DBX_REGISTER_NUMBER): Likewise.
1989         * h8300.h (DBX_REGISTER_NUMBER): Likewise.
1990         * i370.h (DBX_REGISTER_NUMBER): Likewise.
1991         * i860.h (DBX_REGISTER_NUMBER): Likewise.
1992         * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
1993         * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
1994         * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
1995         * m32r.h (DBX_REGISTER_NUMBER): Likewise.
1996         * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
1997         * m88k.h (DBX_REGISTER_NUMBER): Likewise.
1998         * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
1999         * mcore.h (DBX_REGISTER_NUMBER): Likewise.
2000         * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
2001         * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
2002         * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
2003         * romp.h (DBX_REGISTER_NUMBER): Likewise.
2004         * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
2005         * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
2006         * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
2007         * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
2008         * v850.h (DBX_REGISTER_NUMBER): Likewise.
2009         * vax.h (DBX_REGISTER_NUMBER): Likewise.
2010         * we32k.h (DBX_REGISTER_NUMBER): Likewise.
2011
2012         * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
2013         * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
2014
2015 2001-11-21  H.J. Lu <hjl@gnu.org>
2016
2017         * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
2018
2019 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2020
2021         * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
2022         emit_cmp_and_jump_insns.
2023
2024         * stormy16.c (xstormy16_expand_builtin_va_arg,
2025         xstormy16_expand_casesi): Likewise.
2026
2027 Wed Nov 21 17:37:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2028
2029         * function.c (keep_stack_depressed): Major rework.
2030         (handle_epilogue_set, emit_equiv_load): New functions.
2031         (thread_prologue_and_epilogue_insns): keep_stack_depressed now
2032         has return value.
2033         * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
2034         * rtl.h (SET_IS_RETURN_P): New macro.
2035
2036         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
2037         and also support TREE_ADDRESSABLE.
2038         * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
2039
2040 2001-11-21  David Edelsohn  <edelsohn@gnu.org>
2041
2042         * rs6000.md (cmptf_internal1): Replace %$ with $.
2043
2044 Wed Nov 21 16:44:01 2001  Douglas B. Rupp  <rupp@gnat.com>
2045
2046         * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
2047         (read_include_file): Use STAT_SIZE_TOO_BIG.
2048
2049         * cppinit.c (INO_T_COPY): Define.
2050         (INO_T_EQ): Uppercase parameters.
2051         (append_include_chain): Use INO_T_COPY.
2052
2053 2001-11-21  Richard Sandiford  <rsandifo@redhat.com>
2054
2055         * cfg.c: Fix typos and formatting in the introductory comment.
2056
2057 Wed Nov 21 12:38:37 CET 2001  Jan Hubicka
2058
2059         * profile.c (compute_branch_probabilites):  Compute probabilities
2060         for entry/exit edges; estimate probabilities for zero counts.
2061
2062 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
2063
2064         * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
2065         to emit_library_call.
2066         * function.c (expand_main_function, expand_function_start,
2067         expand_function_end): Likewise.
2068         * profile.c (output_func_start_profiler): Likewise.
2069         * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
2070         second argument to emit_library_call.
2071         * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
2072         as second argument to emit_library_call.
2073         * calls.c (emit_library_call): Update fn_type description.
2074
2075 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
2076
2077         * c-decl.c (c_expand_deferred_function): Only call c_expand_body
2078         if fndecl is still DECL_INLINE and has DECL_RESULT.
2079
2080 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2081
2082         * clipper.c (clipper_movstr): Avoid uninitialized warning.
2083         * i960.c (is_mask, legitimize_address): Likewise.
2084         * m88k.c (m88k_expand_prologue): Likewise.
2085         * m88k.md: Likewise.
2086         * mcore.c (emit_new_cond_insn): Likewise.
2087         * stormy16.c (xstormy16_emit_cbranch): Likewise.
2088
2089 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
2090
2091         * config.gcc: Delete powerpcle-*-solaris2* stanza.
2092         * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
2093         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
2094         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2095         config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
2096         config/rs6000/t-ppcos: Expunge all references to Solaris.
2097
2098         * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
2099
2100         * config/rs6000/rs6000.md: Replace '%$' with '$' in all
2101         output templates.
2102         * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
2103         and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
2104
2105 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2106
2107         * sh.md: Avoid uninitialized warnings.
2108         * vax.c (vax_rtx_cost): Likewise.
2109
2110 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
2111
2112         * rs6000.c (direct_return): Check if we are saving altivec
2113         registers.
2114         (first_altivec_reg_to_save): New.
2115         Updated stack frame layout comments.
2116         (rs6000_stack_info): Calculate altivec register save size.
2117         Save link register if we saved some altivec registers.
2118         (rs6000_stack_info): Align save size to 16 if altivec abi or
2119         abi_darwin.
2120         (rs6000_stack_info): Calculate altivec register offsets.
2121         (rs6000_stack_info): Add altivec info to save_size.
2122         (debug_stack_info): Add altivec debug info.
2123         (rs6000_emit_prologue): Save altivec registers and vrsave.
2124         (compute_vrsave_mask): New.
2125         (altivec_expand_builtin): Remove unused variables.
2126         (rs6000_parse_abi_options): Add static qualifier.
2127         (rs6000_expand_builtin): Remove unused parameters.
2128         (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
2129         (altivec_init_builtins): Same.
2130         (is_altivec_return_reg): New.
2131         (vrsave_operation): New.
2132         (ALTIVEC_REG_BIT): New.
2133         (generate_set_vrsave): New.
2134
2135         * rs6000.md (get_vrsave): New.
2136         (set_vrsave): New.
2137         (*set_vrsave_internal): New.
2138
2139         * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
2140         altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
2141         altivec_padding_size, vrsave_mask.
2142         (TOTAL_ALTIVEC_REGS): New.
2143         (EPILOGUE_USES): Add VRSAVE_REGNO.
2144
2145 2001-11-20  Jeff Law <law@redhat.com>
2146
2147         * unroll.c (copy_loop_body): Update LABEL_NUSES for the
2148         exit label as necessary.
2149
2150 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
2151
2152         * reload1.c (elimination_effects): Use function_invariant_p
2153         instead of CONSTANT_P when considering register equivalences.
2154
2155 2001-11-20  David O'Brien  <obrien@FreeBSD.org>
2156
2157         * config.gcc: Add FreeBSD/PowerPC target.
2158         (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
2159         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
2160         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
2161         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
2162         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
2163         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
2164         freebsd-spec.h to tm_file.
2165         (rs6000-*-lynxos*): Add lynx.h to tm_file.
2166         * config/freebsd.h: Tidy up.
2167         (USING_CONFIG_FREEBSD): Define.
2168         (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
2169         FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
2170         FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
2171         (TARGET_HAS_F_SETLKW): Define.
2172         (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
2173         * config/freebsd-spec.h: New file.
2174         * config/rs6000/freebsd.h: New file.
2175         * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
2176         * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
2177         USING_SVR4_H to know when to turn on ELF support.
2178         * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
2179         define only if not already defined.
2180         Add FreeBSD support.
2181         * config/rs6000/aix.h (TARGET_VERSION): Define.
2182         * config/rs6000/beos.h: Likewise.
2183         * config/rs6000/darwin.h: Likewise.
2184         * config/rs6000/mach.h: Likewise.
2185         * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
2186         Don't include lynx.h directly.
2187
2188 2001-11-20  Graham Stott  <grahams@redhat.com>
2189
2190         * unwind-dw2-fde.c (__deregister_frame_info_bases):
2191         Fix lossage in last change return OB.
2192
2193 Tue Nov 20 11:56:12 2001  Douglas B. Rupp  <rupp@gnat.com>
2194
2195         * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
2196         Remove unneeded exit related macros.
2197
2198 2001-11-20  David Edelsohn  <edelsohn@gnu.org>
2199
2200         * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
2201
2202         * rs6000.c (rs6000_emit_move): Add TFmode case.
2203         * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
2204         LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
2205         LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
2206         * rs6000.h: ... to here.
2207         * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
2208         trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
2209         fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
2210
2211 Tue Nov 20 06:41:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2212
2213         * emit-rtl.c (get_mem_attrs): Fix typo.
2214
2215 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
2216
2217         * c-lang.c (finish_file): Backout 2001-11-16
2218         changes, instead set DECL_DEFER_OUTPUT for static inline functions
2219         before calling c_expand_deferred_function.
2220
2221 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
2222
2223         * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
2224         Don't register empty .eh_frame sections.
2225         (__deregister_frame_info_bases, __deregister_frame): Don't
2226         unregister them either.
2227
2228 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
2229
2230         * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
2231         (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
2232         * configure: Regenerate.
2233         * config.in: Add dummy definitions of new flags.
2234         * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
2235         * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
2236         * gcc.c (ASM_DEBUG_SPEC): New macro.
2237         (asm_debug): New static variable.
2238         (default_compilers): Add asm_debug when assembling from
2239         user input.
2240         (static_specs): Add asm_debug.
2241
2242 2001-11-20  Loren J. Rittle  <ljrittle@acm.org>
2243
2244         * config.gcc (*-*-freebsd*): Remove configuration block.
2245
2246 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
2247
2248         bootstrap/4422
2249         * configure.in: Setup ability to run ./stage[1234]/xgcc in
2250         fixinc *as if* it were a proper lang subdirectory.
2251         * configure: Rebuilt.
2252
2253 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
2254
2255         * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
2256
2257 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2258
2259         * 1750a.md: Don't use hex format for a const_int.
2260
2261 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
2262
2263         * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
2264
2265 2001-11-19  Zack Weinberg  <zack@codesourcery.com>
2266
2267         * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
2268         defined (prevents link errors when gettext isn't in the system
2269         library).
2270
2271 2001-11-19  DJ Delorie  <dj@redhat.com>
2272
2273         * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
2274         (validate_const_int): New.
2275         (read_rtx): Validate constant integers.
2276         * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
2277
2278 2001-11-19  Jakub Jelinek  <jakub@redhat.com>
2279
2280         * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
2281
2282 Mon Nov 19 16:57:44 2001  Douglas B. Rupp  <rupp@gnat.com>
2283
2284         * toplev.c (DUMPFILE_FORMAT): Define default.
2285         (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
2286         (close_dump_file, compile_file): Likewise.
2287         * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
2288         * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
2289
2290 2001-11-19  Jeff Law <law@redhat.com>
2291
2292         * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
2293         a nop-jump.
2294
2295 2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2296
2297         * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
2298         Don't fall off the base token run.
2299
2300 2001-11-19  Jason Wilkins <fenix@io.com>
2301
2302         * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
2303
2304 Mon Nov 19 15:13:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2305
2306         * tree.def (VIEW_CONVERT_EXPR): New tree code.
2307         * tree.h (handled_component_p): New declaration.
2308         * alias.c (handled_component_p): Move function from here ...
2309         * expr.c (handled_component_p): ... to here and non longer static.
2310         (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
2311         (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
2312         (get_inner_reference): Handle VIEW_CONVERT_EXPR.
2313         (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
2314         (expand_expr, case VIEW_CONVERT_EXPR): New case.
2315         (expand_expr, cse ADDR_EXPR): No need to copy if already
2316         BIGGEST_ALIGNMENT.
2317         * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
2318         * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
2319         (output_constant): Handle VIEW_CONVERT_EXPR.
2320         * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
2321         Add new case for VIEW_CONVERT_EXPR.
2322
2323 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2324
2325         * a29k/unix.h (ASM_FILE_START): Const-ify.
2326         * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
2327         * i386/isc.h (ASM_FILE_START): Const-ify.
2328         * i386/sun386.h (ASM_FILE_START): Likewise.
2329         * m32r.md: Likewise.
2330         * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
2331         * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
2332         * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
2333         * mn10200.md: Initialize variable.
2334
2335 Mon Nov 19 18:06:21 CET 2001  Jan Hubicka  <jh@suse.cz>
2336
2337         * gcse.c (try_replace_reg): Copy RTX before creating note.
2338
2339         * df.h (df_ref_flags): New uenum.
2340         (DF_REF_FLAGS): New macro.
2341         (struct ref): Add field "flags".
2342         * df.c (HANDLE_SUBREG): Remove.
2343         (df_ref_create): Likewise; set flags field of ref.
2344         (df_def_record_1): Strip down read_write subreg; remove
2345         commented out code; set READ_WRITE flag.
2346         (read_modify_subreg_p): New static function.
2347         (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
2348         new argument "flags".
2349         (df_insn_refs_record): Update call of df_uses_record.
2350         (df_insn_modify): Avoid #if 0 around comment.
2351         (df_dump): Dump the read/write flag.
2352
2353         * predict.c (propagate_freq): Make cyclic_probability and frequency
2354         volatile
2355
2356         * i386.c (ix86_cc_mode): Accept USE.
2357
2358         * cfgrtl.c (purge_dead_edges):  Cleanup EDGE_ABNORMAL flag if computed
2359         jump is turned into simplejump.
2360
2361 2001-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
2362
2363         * doc/fragments.texi, doc/trouble.texi: Remove links to old
2364         installation chapter.
2365         * doc/gcc.texi: Don't claim that this manual documents
2366         installation.  Mark Installation menu entry as being out of date.
2367
2368 Mon Nov 19 07:21:35 2001  Douglas B. Rupp  <rupp@gnat.com>
2369
2370         * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
2371         (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
2372         * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
2373
2374 2001-11-19  Jason Merrill  <jason@redhat.com>
2375
2376         * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
2377         cur_token, not after.
2378
2379         * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
2380         Lose ASM_OUTPUT_CONSTRUCTOR.
2381         * system.h: Poison it and INT_ASM_OP.
2382         * c-lang.c (finish_file): Don't check for it.
2383         * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
2384
2385 2001-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2386
2387         * mmix.c (mmix_cc1_ignored_option): Const-ify.
2388         (mmix_init_machine_status): Make static to match declaration.
2389         (mmix_unique_section): Const-ify.
2390         (mmix_output_quoted_string): Avoid automatic aggregate
2391         initialization.
2392         (mmix_output_register_setting): Likewise.
2393         (mmix_output_shiftvalue_op_from_str): Likewise.
2394
2395         * mmix.h (mmix_cc1_ignored_option): Const-ify.
2396         (ASM_OUTPUT_BYTE): Fix format specifier warning.
2397         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2398
2399 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2400
2401         PR c/4448
2402         * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
2403         name __objc_thread_exit_status so that it matches the
2404         variable defined in objc/thr.h.
2405
2406 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2407
2408         PR bootstrap/4020
2409         * mklibgcc.in: Add missing semi-colons.
2410         * Makefile.in: Same.
2411
2412 Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2413
2414         * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
2415         after re-laying out decl in incomplete case.
2416         (expand_expr, case ADDR_EXPR): Fix typo in copy case.
2417
2418 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
2419
2420         * doc/install-old.texi: Move some sections out to ...
2421         * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
2422         ... here.  New files.  Make into chapters rather than sections.
2423         * doc/gcc.texi: Include the new files and add menu entries for
2424         them.
2425         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2426
2427 Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2428
2429         * tree.h (TYPE_ALIGN_OK): New flag.
2430         * emit-rtl.c (set_mem_attributes): Handle it.
2431         * expr.c (emit_single_push_insn): Only set to alias set 0 if
2432         doing sibcall optimization.
2433         (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
2434         when make temporary.
2435         (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
2436         (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
2437
2438         * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
2439
2440 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
2441
2442         * c-decl.c (c_decode_option): Give deprecation warning for
2443         -traditional.
2444         * doc/invoke.texi (-traditional): Note that this option is
2445         deprecated.
2446
2447 Sun Nov 18 07:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
2448
2449         * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
2450         arg to HOST_WIDE_INT, not long.
2451
2452         * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
2453         (HAS_INIT_SECTION): Define.
2454         (REAL_ARITHMETIC): Don't undefine.
2455
2456 2001-11-18  Egor Duda  <deo@logos-m.ru>
2457
2458         * config/i386/cygwin.h: Strip leading '*' from name, if any.
2459
2460 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2461
2462         * Makefile.in (c-parse.o, c-common.o): Update dependencies.
2463         * c-common.c: Include diagnostic.h.
2464         (c_common_finish): New.
2465         * c-common.h (c_common_finish): New.
2466         * c-lang.c (LANG_HOOKS_FINISH): Override.
2467         * c-parse.in: Don't include diagnostic.h.
2468         (finish_parse): Remove.
2469         * langhooks.h: Update comments.
2470         * toplev.c (lang_dependent_init): New prototype.
2471         (finalize): New.
2472         (compile_file): Split cleanup code out to finalize.
2473         (lang_dependent_init): Stop if lang_hooks.init fails.
2474         (toplev_main): Update.
2475         * tree.h (finish_parse): Remove.
2476 objc:
2477         * objc-act.c (LANG_HOOKS_FINISH): Override.
2478
2479 Sat Nov 17 23:30:44 2001  Douglas B. Rupp  <rupp@gnat.com>
2480
2481         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
2482         * config/alpha/vms_tramp.asm: New file.
2483         * config/alpha/vms-tramp.asm: Removed.
2484
2485 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
2486
2487         * c-common.c (struct disabled_builtin, disabled_builtins,
2488         disable_builtin_function, builtin_function_disabled_p): New.
2489         (builtin_function_2): Check for disabled built-in functions.
2490         * c-common.h (disable_builtin_function): Declare.
2491         * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
2492         * doc/invoke.texi: Document -fno-builtin-FUNCTION.
2493         * doc/extend.texi: Mention -fno-builtin-FUNCTION.
2494
2495 2001-11-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2496
2497         PR target/4606
2498         * config.gcc: Remove reference to va-clipper.h.
2499
2500 2001-11-17  Stan Shebs  <shebs@apple.com>
2501
2502         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
2503         AltiVec-related bitfields.
2504
2505 Sat Nov 17 12:06:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2506
2507         * except.c (enum eh_region_type): Add ERT_UNKNOWN.
2508         (mark_eh_region, case ERT_UKNONW): New case.
2509
2510 2001-11-17  Christopher Faylor  <cgf@redhat.com>
2511             Corinna Vinschen  <vinschen@redhat.com>
2512
2513         * config/i386/cygwin.h: Search target specific include directory for
2514         w32api stuff, if appropriate.
2515
2516 Sat Nov 17 08:20:44 2001  Douglas Rupp  <rupp@gnat.com>
2517
2518         * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
2519
2520 2001-11-16  Aldy Hernandez  <aldyh@redhat.com>
2521
2522         * config/rs6000/rs6000.md: Change all ldvx to lvx.
2523
2524 2001-11-16  Alexandre Oliva  <aoliva@redhat.com>
2525
2526         * gensupport.c (process_rtx): Don't assume filename is the first
2527         argument of any rtl.
2528
2529 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2530
2531         * vax-protos.h (reg_was_0_p): New prototype.
2532         * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
2533         * vax.c (follows_p, reg_was_0_p): New functions.
2534
2535 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2536
2537         * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
2538         (casesi1): Likewise.  Define new pattern which arises by simplification
2539         when operand 1 is a constant int.  Correct pattern which arises by
2540         simplification when operand 1 is zero.
2541
2542 2001-11-16  David O'Brien  <obrien@FreeBSD.org>
2543
2544         * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
2545         arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
2546         arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
2547         arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
2548         arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
2549         arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
2550         xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
2551         * config/arm/aof.h: Don't include arm.h.
2552         * config/arm/aout.h: Likewise.
2553         * config/arm/coff.h: Don't include semi.h and aout.h.
2554         * config/arm/elf.h: Don't include aout.h.
2555         * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
2556         (TARGET_VERSION): Undef before defining.
2557         (ARM_OS_NAME): Likewise
2558         (TARGET_DEFAULT): Likewise
2559         (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
2560         * config/arm/pe.h: Don't include arm/coff.h.
2561         * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
2562         SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
2563         * config/arm/riscix1-1.h: Likewise.
2564         * config/arm/rix-gas.h: Don't include riscix.h.
2565         (DBX_CONTIN_LENGTH): Undef before defining.
2566         * config/arm/semi.h: Don't include aout.h.
2567         * config/arm/semiaof.h: Don't include aof.h.
2568         * config/arm/strongarm-coff.h: Don't include coff.h.
2569         * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
2570         * config/arm/vxarm.h: Don't include arm/coff.h.
2571         * config/arm/xscale-coff.h: Don't include coff.h.
2572
2573 Fri Nov 16 15:22:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2574
2575         * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
2576         emit_cmp_insn.
2577
2578 2001-11-16  Andreas Jaeger  <aj@suse.de>
2579
2580         * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
2581         to ....
2582         (fixup_fallthru_exit_predecessor): ... this.
2583         Change callers and prototype.
2584
2585 2001-11-16  Bernd Schmidt  <bernds@redhat.com>
2586
2587         * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
2588         hand; don't use gen_setcc_2.
2589         (ix86_expand_builtin): Fix pshufw.
2590         * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
2591         case UNORDERED to emit the right assembler instruction.
2592         (mmx_pshufw): Lose operand 2.
2593         (cvtsi2ss): Fix representation.
2594         From Graham Stott:
2595         (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
2596
2597 2001-11-16  Joseph S. Myers  <jsm28@cam.ac.uk>
2598
2599         * doc/include/linux-and-gnu.texi: Remove.
2600         * doc/gnu.texi: New.
2601         * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
2602         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2603
2604 2001-11-16  Kazu Hirata  <kazu@hxi.com>
2605
2606         * config/a29k/a29k.c: Fix comment formatting.
2607         * config/a29k/a29k.h: Likewise.
2608         * config/arc/arc.c: Likewise.
2609         * config/arc/arc.h: Likewise.
2610         * config/vax/vax.c: Likewise.
2611         * config/vax/vax.h: Likewise.
2612         * config/we32k/we32k.c: Likewise.
2613         * config/we32k/we32k.h: Likewise.
2614
2615 2001-11-16  Jeff Law  <law@redhat.com>
2616
2617         * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
2618         creating a new jump insn.
2619
2620 Fri Nov 13 09:06:25 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2621
2622         * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
2623         copy misaligned data.
2624         * varasm.c (assemble_variable): Set alignment into MEM when changed.
2625
2626 2001-11-16  Graham Stott  <grahams@redhat.com>
2627
2628         * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
2629         OPALIGN type.
2630
2631 2001-11-16  Olivier Hainque <hainque@act-europe.fr>
2632
2633         * except.c: Support for catching a list of types with a single handler
2634         (struct eh_region): Change type and filter to lists for catch regions.
2635         (mark_eh_region): Mark the filter list for GC also.
2636         (expand_start_catch): Always build a list if argument not NULL and
2637         register each type of the list through add_type_for_runtime.
2638         (duplicate_eh_region_1): Change type into type_list for catch regions.
2639         (assign_filter_values): Assign a filter to each type associated with a
2640         catch region. Assign filter for NULL types in a unique entry in the
2641         filter list.
2642         (build_post_landing_pads): Emit compare and jump for each filter of
2643         the list associated with a catch region.
2644         (reachable_next_level): When the type thrown is known, stop the search
2645         as soon as one type within a catch list matches. Also, a handler is
2646         potentially reachable only if at least one of the types it catches
2647         has not been previously caught.
2648         (collect_one_action_chain): Retrieve the filter for a NULL type list
2649         from the first filter list entry. For non NULL type lists, add an
2650         action record for every filter assigned.
2651         * except.h: Reflect changes in comment before expand_start_catch.
2652
2653 Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2654
2655         * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
2656         BLKmode.
2657
2658 Fri Nov 16 06:37:05 2001  Andreas Tobler  <a.tobler@schweiz.ch>
2659
2660         * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
2661
2662 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
2663
2664         * c-lang.c (finish_file): Don't emit static inline functions if
2665         they weren't referenced.
2666
2667 2001-11-15  Stan Shebs  <shebs@apple.com>
2668
2669         * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
2670
2671 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2672
2673         * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
2674         call.
2675         * config/i386/i386.md: Likewise.
2676
2677 Thu Nov 15 21:40:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2678
2679         * timevar.c (rtl.h): Include so get fancy abort.
2680
2681 2001-11-15  Dale Johannesen  <dalej@apple.com>
2682
2683         * config/darwin.h (SELECT_RTX_SECTION):  Force address
2684         initializers into 'const' section
2685         * config/rs6000/rs6000.c (rs6000_emit_cmove):  Fix mode of
2686         if_then_else to match result, not operands
2687
2688 Thu Nov 15 17:57:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2689
2690         * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
2691         * emit-rtl.c (change_address): Fix typo in default alignment.
2692         (adjust_address_1): Use mode of NEW, not MODE, when setting size.
2693         * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
2694         * rtl.h (REGNO_PTR_FRAME_P): New macro.
2695
2696         * expr.c (store_field): Pass tree instead of max size; callers changed.
2697         Change handling of alignment.
2698         Only copy to_rtx if is TARGET.
2699         (expand_expr_unaligned): Delete; callers now use expand_expr.
2700         (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
2701         (expand_assignment): Change handling of alignment.
2702         Only copy to_rtx if was original.
2703         (get_inner_reference): No longer return alginment; callers changed.
2704         (expand_expr, case COMPONENT_REF): Change handling of alignment.
2705         (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
2706         (compare_from_rtx): Delete ALIGN parm; all callers changed.
2707         (do_compare_rtx_and_jump): Likewise.
2708         * expr.h: Reflect above changes.
2709         * tree.h: Likewise.
2710         * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
2711         to get_inner_reference.
2712         * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
2713         * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
2714         * optabs.c: Likewise.
2715         (prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
2716         (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
2717         * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
2718         compare_rtx_and_jump, and emit_cmp_jump_insns.
2719         * fold-const.c: Remove PALIGN in calls to get_inner_reference.
2720         * function.c (assign_stack_temp_for_type): No longer static.
2721         * optabs.h (emit_cmp_insn): Remove ALIGN parm.
2722         (prepare_cmp_insn): Delete declaration.
2723         * rtl.h (assign_stack_temp_for_type): Add declaration.
2724         * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
2725         * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
2726         * config/i386/i386.c,config/mips/mips.c: Likewise.
2727         * config/i860/i860.c, config/ia64/ia64.c: Likewise.
2728         * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
2729
2730 2001-11-15  Stan Shebs  <shebs@apple.com>
2731
2732         * config/rs6000/rs6000.h: Fix a comment typo.
2733         (RTX_COSTS): Sort processor versions better.
2734
2735 2001-11-15  Kazu Hirata  <kazu@hxi.com>
2736
2737         * config/h8300/h8300.md: Fix insn length of bit insns.
2738
2739 2001-11-15  Jason Merrill  <jason@redhat.com>
2740
2741         * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
2742         DIEs if there were errors in the source.
2743
2744         * config/alpha/alpha-interix.h, config/alpha/elf.h,
2745         config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
2746         config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
2747         config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
2748         config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
2749         config/elfos.h, config/lynx.h, config/netware.h,
2750         config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
2751         config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
2752         uses to use ASM_LONG.
2753
2754 2001-11-15  Alan Matsuoka  <alanm@redhat.com>
2755
2756         * gensupport.c  process_include : Change call to alloca to
2757         xmalloc.
2758
2759 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
2760
2761         * config/rs6000/rs6000.md: Use spaces instead of tabs in output
2762         templates.
2763
2764 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2765
2766         * final.c (alter_subreg): If simplify_subreg can't do anything,
2767         handle REG ourselves and abort for others.
2768
2769 2001-11-15  Richard Hodson  <hodsonr@dionecorp.com>
2770
2771         * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
2772         routines.
2773
2774 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2775
2776         * fix-header.c (read_scan_file): Update.
2777
2778 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2779
2780         * toplev.c (toplev_main): Don't start timing until after
2781         command-line options are parsed.
2782
2783 2001-11-15  Andreas Schwab  <schwab@suse.de>
2784
2785         * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
2786         makefile frag, not host makefile frag.
2787         (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
2788         (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
2789         used.
2790         (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
2791         * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
2792         * config/m88k/t-dgux (STMP_FIXPROTO): Define.
2793         * config/i386/t-cygwin (STMP_FIXPROTO): Define.
2794         * config/i386/t-dgux (STMP_FIXPROTO): Define.
2795         * config/x-interix: Don't define STMP_FIXPROTO and
2796         FIXPROTO_DEFINES.
2797         * config/t-interix: New file, define STMP_FIXPROTO.
2798         * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
2799         * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
2800         * config/t-svr4 (FIXPROTO_DEFINES): Define.
2801         * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
2802         * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
2803         * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
2804         * config/m68k/t-hp3200: Renamed from x-hp3200.
2805         * config/i370/t-oe: Renamed from x-oe.
2806         * config/mips/t-iris: Renamed from x-iris.
2807         * config/pa/t-bsd: Renamed from x-pa.
2808         * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
2809         * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
2810         config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
2811         config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
2812         config/rs6000/x-cygwin: Remove files.
2813
2814         * configure.in: Check for target objdump and use that in eh_frame
2815         optimization test.
2816         * configure: Regenerated.
2817
2818 2001-11-15  Jakub Jelinek  <jakub@redhat.com>
2819
2820         * jump.c (squeeze_notes): Return true if no real insns were found.
2821         * rtl.h (squeeze_notes): Adjust prototype.
2822         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
2823         squeeze_notes finds no real instructions, abort.
2824         (merge_blocks_move_successor_nojumps): Likewise.
2825         * loop.c (find_and_verify_loops): Likewise.
2826         * stmt.c (expand_end_case): Likewise.
2827         * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
2828         find any real instructions.
2829
2830         * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
2831
2832         * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
2833         conditional jump, request updating life into for the block
2834         containing it.  Fix a typo which prevented life info update.
2835         Clear blocks bitmap before using it.
2836
2837 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2838
2839         * c-common.c: Include c-lex.h.
2840         (c_common_lang_init): Change prototype.  Call init_c_lex and
2841         init_pragma from here.
2842         * c-common.h (c_common_lang_init): Change prototype.
2843         * c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
2844         * c-lang.c (c_init): Change prototype.  Update.
2845         (c_init_options): Update.
2846         * c-lex.c (cpp_filename): Remove.
2847         (init_c_lex): Update.  Read the main file, and get the original
2848         file name.
2849         (yyparse): Finish the command line options.
2850         * c-parse.in (c_parse_init): Call init_reswords here.
2851         (init_parse): Remove.
2852         * c-tree.h (c_init_decl_processing): New.
2853         * cpphash.c (_cpp_init_hashtable): After initializing the hash
2854         table, populate it.
2855         * cppinit.c (read_original_filename, cpp_finish_options): New.
2856         (cpp_create_reader): New prototype. Defer hash table initialization.
2857         (cpp_start_read): Rename cpp_read_main_file.  Initialize the
2858         hash table.  Get the original filename.
2859         * cpplib.h (cpp_create_reader): Update.
2860         (cpp_start_read): Remove.
2861         (cpp_read_main_file, cpp_finish_options): New.
2862         * cppmain.c (main, do_preprocessing): Update.
2863         * langhooks.h (struct langhooks): Update init prototype.
2864         * toplev.c (general_init, parse_options_and_default_flags,
2865         process_options, lang_indpendent_init, lang_dependent_init,
2866         init_asm_output): New; perform the bulk of initialization.
2867         (compile_file): Move most of initialization to above functions.
2868         (debug_hooks): Initialize statically.
2869         (set_Wunused): Relocate.
2870         (toplev_main): Move most of initialization to other init functions.
2871         Have a clear logic flow.
2872         * tree.h (init_parse, init_decl_processing): Remove.
2873 objc:
2874         * objc-act.c (objc_init): Update prototype, combine with old
2875         init_parse.
2876         (objc_init_options): Update.
2877
2878
2879 2001-11-15  Andreas Jaeger  <aj@suse.de>
2880
2881         * cfgrtl.c (purge_all_dead_edges): Use int as argument for
2882         portability.
2883         * basic-block.h: Adjust prototype.
2884
2885 2001-11-15  Kazu Hirata  <kazu@hxi.com>
2886
2887         * config/rs6000/aix31.h: Fix comment formatting.
2888         * config/rs6000/beos.h: Likewise.
2889         * config/rs6000/darwin.h: Likewise.
2890         * config/rs6000/eabi.asm: Likewise.
2891         * config/rs6000/linux.h: Likewise.
2892         * config/rs6000/linux64.h: Likewise.
2893         * config/rs6000/lynx.h: Likewise.
2894         * config/rs6000/netbsd.h: Likewise.
2895         * config/rs6000/rs6000.c: Likewise.
2896         * config/rs6000/rs6000.h: Likewise.
2897         * config/rs6000/rs6000.md: Likewise.
2898         * config/rs6000/sol2.h: Likewise.
2899         * config/rs6000/tramp.asm: Likewise.
2900         * config/rs6000/xcoff.h: Likewise.
2901         * config/rs6000/xm-beos.h: Likewise.
2902
2903 2001-11-14  Alan Matsuoka  <alanm@redhat.com>
2904
2905         * rtl.def (INCLUDE) : Define.
2906         * gensupport.c  (init_include_reader, process_include,
2907         save_string) :  New functions to implement an include facility
2908         in .md files.
2909         * gensupport.h : Add prototype for init_md_reader_args.
2910         * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
2911         genextract.c genflags.c genopinit.c genoutput.c
2912         genpeep.c genrecog.c: Change call to init_md_reader to
2913         init_md_reader_args.
2914         * md.texi: Document (include "path") and -I directives for RTL
2915         generation tools.
2916
2917 2001-11-14  DJ Delorie  <dj@redhat.com>
2918
2919         * integrate.c (get_hard_reg_initial_reg): New.
2920         * integrate.h (get_hard_reg_initial_reg): Prototype.
2921         * local-alloc.c (block_alloc): Don't tie pseudos that
2922         represent call-saved hard regs' initial values.
2923
2924 2001-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2925
2926         * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
2927         recursion.
2928
2929 2001-11-14  Roger Sayle <roger@eyesopen.com>
2930
2931         * fold-const.c (fold): Optimize strlen comparisons against zero.
2932
2933 2001-11-14  David O'Brien  <obrien@FreeBSD.org>
2934
2935         * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
2936         sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
2937         sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
2938         sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
2939         sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
2940         sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
2941         sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
2942         Include various CPU headers via tm_file.  a.out based platforms now
2943         properly include sparc/aout.h.  sol2.h usage now implies including
2944         elfos.h, svr4.h, and sparc/sysv4.h.
2945         * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
2946         Also define to '1'.
2947         * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
2948         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
2949         DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
2950         Remove.  They are a.out specific and belong in sparc/aout.h.
2951         * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
2952         ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2953         DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
2954         sparc/sparc.h.
2955         * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
2956         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
2957         Moved here from sparc/sparc.h.
2958         * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
2959         defining.
2960         * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
2961         * config/sparc/lynx.h:  Don't include lynx.h.
2962         (SELECT_SECTION): Do not undef.
2963         * config/sparc/openbsd.h: Don't include sparc/sparc.h.
2964         * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
2965         and sparc/sysv4.h.
2966         * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
2967         * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
2968         sparc/aout.h now.
2969         * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
2970         Don't undef, there is no need.
2971         * config/sparc/splet.h (CPP_PREDEFINES): Define.
2972         * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
2973         * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
2974         Don't include sparc/sparc.h.
2975         * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
2976         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
2977         DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
2978         elfos.h and svr4.h.
2979         (TARGET_VERSION): Define.
2980         * config/sparc/vxsim.h (TARGET_VERSION): Define.
2981
2982 Wed Nov 14 19:46:08 CET 2001  Jan Hubicka  <jh@suse.cz>
2983
2984         * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
2985         (cfg_layout_finalize): Use it.
2986         * bb-reorder.c (HAVE_epilogue): Remove.
2987         (make_reorder_chain): Do not care special placement of
2988         last basic block.
2989
2990         * predict.c (expected_value_to_br_prob): Delete the note
2991         once transformed.
2992
2993         * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
2994         measure integration time separately.
2995
2996 Wed Nov 14 12:30:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2997
2998         * function.c (struct temp_slot): ALIGN now unsigned.
2999
3000 2001-11-14  Kazu Hirata  <kazu@hxi.com>
3001
3002         * config/dsp16xx/dsp16xx.c: Fix comment formatting.
3003         * config/dsp16xx/dsp16xx.h: Likewise.
3004         * config/dsp16xx/dsp16xx.md: Likewise.
3005
3006 2001-11-14  Kazu Hirata  <kazu@hxi.com>
3007
3008         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
3009         that deals with 7-bit shifts in HImode.
3010
3011 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
3012
3013         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
3014         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
3015         (final_scan_insn): Update call of alter_subreg.
3016         (cleanup_subreg_operands): Likewise.
3017         (alter_subreg): Rewrite using simplify_subreg.
3018         (output_address, output_operand): Update call of alter_subreg.
3019         * output.h (alter_subreg): Update prototype.
3020         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
3021         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
3022         * Makefile.in (final.o): Add dependency on expr.h
3023
3024 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3025
3026         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
3027
3028 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
3029
3030         * doc/install.texi (sparc-*-linux*): Mention requirements for
3031         binutils and glibc.
3032
3033 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
3034
3035         * Makefile.in (POD2MAN): Don't include --section=1.
3036         (manext): Rename to man1ext.  All users changed.
3037         (man7ext): New.
3038         (man7dir): New.
3039         (generated-manpages): Also depend on $(docdir)/gfdl.7,
3040         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
3041         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
3042         --section=1 in calls to $(POD2MAN).
3043         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
3044         (maintainer-clean, install, uninstall): Handle the new man pages.
3045         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
3046         (installdirs): Create man7dir.
3047         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
3048         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
3049         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
3050         the SEE ALSO man page section.
3051         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
3052         and fsf-funding(7) in the SEE ALSO man page section.
3053         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
3054         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
3055         * doc/include/fdl.texi, doc/include/funding.texi,
3056         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
3057         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
3058
3059 2001-11-13  Richard Henderson  <rth@redhat.com>
3060
3061         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
3062         as appropriate for the artificial decl.
3063
3064 2001-11-13  Richard Henderson  <rth@redhat.com>
3065
3066         * loop.c (combine_movables): Turn off combination until
3067         move_movables validation bugs are fixed.
3068
3069 2001-11-13  DJ Delorie  <dj@redhat.com>
3070
3071         * config.gcc (powerpc|rs6000): Set default cpp options based
3072         on --with-cpu settings.
3073         * config/rs6000/softfloat.h: New.
3074
3075 2001-11-13  Kazu Hirata  <kazu@hxi.com>
3076
3077         * config/h8300/h8300.c (shift_alg_si): Use special code for
3078         25-bit shifts on H8/S.
3079         (get_shift_alg): Generate special code for 25-bit shifts on
3080         H8/S.
3081
3082 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
3083
3084         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
3085         (adjust_automodify_address_1): New.
3086         * expr.h (adjust_address, adjust_address_nv): Adjust.
3087         (adjust_automodify_address, adjust_automodify_address_nv): Define.
3088         (adjust_address_1): Update prototype.
3089         (adjust_automodify_address_1): Add prototype.
3090         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
3091         (store_by_pieces_2): Likewise.
3092
3093 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3094
3095         * Makefile.in (explow.o): Now depends on ggc.h.
3096         * explow.c (ggc.h): Include.
3097         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
3098
3099         * Makefile.in (expr.o): Depends on insn-attr.h.
3100         * expr.c (insn-attr.h): New include.
3101         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
3102         of MEM.
3103         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
3104         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
3105         clean up related usage in ADDR_EXPR.
3106         (expand_expr_unaligned): Likewise.
3107
3108         * emit-rtl.c (change_address): Fix typo in alias setting.
3109
3110 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3111
3112         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
3113
3114 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3115
3116         PR bootstrap/3451
3117         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
3118         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
3119
3120 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
3121
3122         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
3123         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
3124         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
3125         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
3126         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
3127         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
3128         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
3129         sparc64-*-linux*):  Include various CPU headers via tm_file.
3130         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
3131         (SELECT_SECTION): Likewise.
3132         (SELECT_RTX_SECTION): Likewise.
3133         * config/sparc/sparc_bi.h: New file.
3134         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
3135         * config/sparc/linux-aout.h: Likewise.
3136         * config/sparc/linux.h: Don't include sparc/sysv4.h.
3137         * config/sparc/linux64.h: Likewise.
3138         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
3139         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
3140         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
3141         and dbxcoff.h
3142         (ASM_OUTPUT_IDENT): Do not #undef.
3143         (SELECT_SECTION): Likewise.
3144         (SELECT_RTX_SECTION): Likewise.
3145         * config/sparc/liteelf.h: Don't include gofast.h.
3146         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
3147         * config/sparc/lynx.h: Don't include sparc/sparc.h.
3148         * config/sparc/pbd.h: Likewise.
3149         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
3150         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
3151         * config/sparc/rtemself.h: Don't include rtems.h.
3152         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
3153         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
3154         sparc_bi.h instead.
3155         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
3156         * config/sparc/sol2.h: Include sparc/sparc.h directly.
3157         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
3158         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
3159         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
3160         * config/sparc/sp86x-elf.h: Don't include gofast.h.
3161         * config/sparc/splet.h: Don't include sparc/aout.h.
3162         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
3163         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
3164         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
3165         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
3166         * config/sparc/vxsparc64.h: Don't include gofast.h.
3167         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
3168
3169 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
3170
3171         * doc/standards.texi: Mention C99 TC1.
3172
3173 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3174
3175         * mips-protos.h (mips_output_conditional_branch): Const-ify.
3176         * mips.c (mips_output_conditional_branch): Likewise.
3177
3178 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3179
3180         * config/h8300/h8300.c (shift_alg_si): Use special code for
3181         15-bit logical shifts and 31-bit logical shifts.
3182         (get_shift_alg): Generate special code for 15-bit and 31-bit
3183         logical shifts.
3184
3185 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3186
3187         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
3188         doing 6-bit logical shifts on H8/S.
3189         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
3190         (get_shift_alg): Generate special code for 21-bit shifts on
3191         H8/S.
3192
3193 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3194
3195         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
3196         label.
3197
3198 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3199
3200         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
3201         if both size and offset known.
3202
3203 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
3204
3205         * config/ia64/freebsd.h: Fix misspelling.
3206
3207 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
3208
3209         * doc/gcc.texi: Move several chapters out to ...
3210         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
3211         doc/include/linux-and-gnu.texi, doc/interface.texi,
3212         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
3213         ... here.  New files.
3214         * doc/gcc.texi, doc/contrib.texi: Move section headings into
3215         contrib.texi.
3216         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
3217
3218 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3219
3220         * config/alpha/alpha-interix.h: Fix comment formatting.
3221         * config/alpha/alpha.c: Likewise.
3222         * config/alpha/alpha.h: Likewise.
3223         * config/alpha/alpha32.h: Likewise.
3224         * config/alpha/freebsd.h: Likewise.
3225         * config/alpha/unicosmk.h: Likewise.
3226         * config/alpha/vms.h: Likewise.
3227
3228 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3229
3230         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
3231
3232 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
3233
3234         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
3235         numbers.
3236
3237 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3238
3239         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
3240         from type.
3241         (replace_equiv_address): Call update_temp_slot_address.
3242
3243         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
3244
3245         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
3246
3247 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3248
3249         * config/h8300/h8300.c (shift_alg_qi): New.
3250         (shift_alg_hi): Likewise.
3251         (shift_alg_si): Likewise.
3252         (get_shift_alg): Change the type of count to unsigned int.
3253         Use the tables.
3254
3255 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
3256
3257         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
3258         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
3259         to decide whether to defer a function.
3260         (finish_function): Adjust.
3261         (c_expand_deferred_function): New function.
3262         * c-lang.c (deferred_fns): New variable.
3263         (c_init): Initialize it, and mark it as a root.
3264         (defer_fn): New function.
3265         (finish_file): Expand all deferred functions.
3266         * c-tree.h (defer_fn): Declare.
3267         (c_expand_deferred_function): Likewise.
3268         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
3269         * objc-act.c (deferred_fns): New variable.
3270         (objc_init): Initialize it, and mark it as a root.
3271         (defer_fn): New function.
3272         (finish_file): Expand all deferred functions.
3273
3274 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3275
3276         * alpha.c (unicosmk_special_name): Prototype.
3277         (unicosmk_ssib_name): Delete unused variable.
3278         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
3279         * alpha/vms.h (PREFIX): Undef before defining.
3280         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
3281         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
3282         controlling usage.  Const-ify.
3283         (alias_number): Delete unused variable.
3284         * m32r/m32r.c (m32r_sched_init): Add missing argument.
3285         (m32r_expand_block_move): Fix uninitialized warnings.
3286         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
3287         always true' warnings.
3288         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
3289         * sh/sh.c: Include "integrate.h".
3290         (output_far_jump): Fix uninitialized warning.
3291         * final.c (shorten_branches): Avoid automatic aggregate
3292         initialization.
3293         * integrate.c (subst_constants): Likewise.
3294
3295 2001-11-11  Kazu Hirata  <kazu@hxi.com>
3296
3297         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
3298         (get_shift_alg): Remove redundant code.
3299
3300 2001-11-11  Kazu Hirata  <kazu@hxi.com>
3301
3302         * config/pa/milli64.S: Fix comment formatting.
3303         * config/pa/pa-64.h: Likewise.
3304         * config/pa/pa-linux.h: Likewise.
3305         * config/pa/pa-protos.h: Likewise.
3306         * config/pa/pa.c: Likewise.
3307         * config/pa/pa.h: Likewise.
3308         * config/pa/pa32-linux.h: Likewise.
3309         * config/pa/pa32-regs.h: Likewise.
3310         * config/pa/pa64-hpux.h: Likewise.
3311         * config/pa/pa64-regs.h: Likewise.
3312         * config/pa/som.h: Likewise.
3313
3314 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
3315
3316         * doc/gcc.texi: Move several chapters out to ...
3317         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
3318         doc/service.texi, doc/standards.texi, doc/trouble.texi,
3319         doc/vms.texi: ... here.  New files.
3320         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
3321
3322 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
3323
3324         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
3325         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
3326         collect2.c, combine.c, config.in, configure, configure.in,
3327         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
3328         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
3329         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
3330         spelling errors.
3331
3332 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3333
3334         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
3335         Adjust operand number in CONST_DOUBLE.
3336
3337         * expmed.c (extract_bit_field): No longer pass in alignment.
3338         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
3339         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
3340         Likewise.
3341         * expr.c (store_constructor, store_constructor_field): Likewise.
3342         (store_field, emit_group_load, emit_group_store): Likewise.
3343         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
3344         (store_bit_field, extract_bit_field): Likewise.
3345         * calls.c, expr.c, function.c: Change calls to above functions.
3346         * ifcvt.c, stmt.c: Likewise.
3347
3348         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
3349         constant and one is on frame.
3350         If know memref offset, adjust size from decl.
3351
3352 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3353
3354         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
3355         format specifier warning.
3356         * convex.h (ASM_OUTPUT_BYTE): Likewise.
3357         * elfos.h (ALIGN_ASM_OP): Undef before defining.
3358         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
3359         warning.
3360         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3361         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3362         * i386-interix.h (gen_stdcall_suffix): Prototype.
3363         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3364         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
3365         ASM_OUTPUT_LONG_DOUBLE): Likewise.
3366         * i386/interix.c (gen_stdcall_suffix): Const-ify.
3367         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
3368         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
3369         specifier warnings.
3370         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3371         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
3372         ASM_OUTPUT_LONG_DOUBLE): Likewise.
3373         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3374         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3375         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3376         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3377         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
3378         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
3379         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
3380         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
3381         Likewise.
3382         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
3383         Likewise.
3384         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
3385         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
3386         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
3387         Likewise.
3388         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
3389         Likewise.
3390         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
3391         Likewise.
3392         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
3393         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3394         * m68k/news.h (PRINT_OPERAND): Likewise.
3395         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
3396         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
3397         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
3398         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
3399         definition.
3400         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
3401         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
3402         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
3403         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
3404         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
3405         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
3406         PRINT_OPERAND): Likewise.
3407         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
3408         Likewise.
3409         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
3410         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
3411         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
3412         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3413         * mips.c (mips_output_external_libcall): Mark parameter with
3414         ATTRIBUTE_UNUSED.
3415         (mips_asm_file_start): Move variable into the scope where it's
3416         used.
3417         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
3418         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3419         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
3420         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3421         * ns32k.c (print_operand): Likewise.
3422         * pa.c (print_operand, output_div_insn): Likewise.
3423         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
3424         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
3425         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
3426         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
3427         specifier warnings.
3428         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3429         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3430         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
3431         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
3432         specifier warnings.
3433         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3434
3435         * sdbout.c (sdbout_end_epilogue): Mark parameter with
3436         ATTRIBUTE_UNUSED.
3437         * varasm.c (assemble_global): Likewise.
3438
3439 2001-11-11  H.J. Lu <hjl@gnu.org>
3440
3441         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
3442
3443 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3444
3445         * final.c (*_MAX_SKIP): Use *_max_skip variables.
3446         * flags.h (align_loops_max_skip, align_jumps_max_skip,
3447         align_labels_max_skip): New global variables.
3448         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
3449         align_labels_max_skip): New global variables.
3450         (toplev_main): Set new variables.
3451         * i386.c (override_options): Set max_skip values.
3452
3453 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
3454
3455         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
3456         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
3457         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
3458         don't print an @fptr for labels either.
3459         (xstormy16_output_addr_vec): Don't print @fptr here.
3460         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
3461
3462 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
3463
3464         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
3465         an ANSI/ISO definitino.
3466         (ssa_const_prop): Likewise.
3467
3468 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
3469
3470         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
3471         altivec registers.
3472
3473 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3474
3475         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
3476         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
3477         * cppmain.c (general_init): Call hex_init.
3478         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
3479
3480         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
3481
3482         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
3483         of dgux.c:output_file_start().
3484
3485         * i386/dgux.c: Delete file.
3486
3487 2001-11-09  Richard Henderson  <rth@redhat.com>
3488
3489         * config/alpha/alpha.c (decl_in_text_section): New.
3490         (current_file_function_operand): Use it.
3491         (alpha_encode_section_info, alpha_end_function): Likewise.
3492
3493 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
3494
3495         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
3496         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
3497         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
3498         so OS specific files and use CPP_PREDEFINES for their needs.
3499         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
3500         target headers to tm_file.
3501         * config/ia64/aix.h (TARGET_VERSION): Likewise.
3502         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
3503         * config/ia64/linux.h (TARGET_VERSION): Likewise.
3504         (FUNCTION_PROFILER): Remove.
3505         * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
3506         version in config/ia64/linux.h.
3507         * config/ia64/freebsd.h: New file.
3508         * config/freebsd.h: Tidy up.
3509         (_USING_CONFIG_FREEBSD): Define.
3510         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
3511         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
3512         (FBSD_STARTFILE_SPEC): Likewise.
3513         (FBSD_ENDFILE_SPEC): Likewise.
3514         (FBSD_LIB_SPEC): Likewise.
3515         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
3516         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
3517         set an ELF-improper one.
3518
3519 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3520
3521         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
3522         constant can be loaded in a single instruction to a register.  When
3523         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
3524         depdi for insertion of most significant 32-bits on 64-bit hosts.
3525         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
3526         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
3527         * pa.md: New addmove pattern for adding constant_int to HImode
3528         register and moving result to HImode register.  Remove HImode HIGH
3529         and LO_SUM patterns.
3530
3531 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3532
3533         * Makefile.in: Update.
3534         * c-decl.c (print_lang_decl, print_lang_type): Remove.
3535         (print_lang_identifier): Rename c_print_identifier.
3536         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
3537         (print_lang_statistics, lang_print_xnode): Remove.
3538         * c-parse.in (set_yydebug): Rename c_set_yydebug.
3539         * c-tree.h (c_set_yydebug, c_print_identifier): New.
3540         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
3541         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
3542         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
3543         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
3544         (LANG_HOOKS_INITIALIZER): Update.
3545         * langhooks.h (struct lang_hooks): New members.
3546         (lang_print_tree_hook): New.
3547         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
3548         * print-tree.c: Include langhooks.h.
3549         (print_node): Update.
3550         * toplev.c (decode_d_option): Update.
3551         * tree.c: Include langhooks.h.
3552         (dump_tree_statistics): Update.
3553         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
3554         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
3555 objc:
3556         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
3557         LANG_HOOKS_SET_YYDEBUG): Override.
3558         (lang_print_xnode, print_lang_statistics): Remove.
3559
3560 2001-11-09  Richard Henderson  <rth@redhat.com>
3561
3562         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
3563         on the symbol string.
3564
3565 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3566
3567         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
3568         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
3569         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
3570
3571         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
3572
3573         * tlink.c (recompile_files): Copy strings passed to `putenv'.
3574
3575 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
3576
3577         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
3578         (TYPE_READONLY): Likewise.
3579
3580         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
3581
3582         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
3583         don't pass --gdwarf2 to the assembler if the compiler will also
3584         provide debug info.
3585
3586         * config/stormy16/stormy16.c (xstormy16_expand_casesi):
3587         Don't change INDEX.
3588
3589 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3590
3591         * alias.c (nonoverlapping_memrefs_p): New function.
3592         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
3593
3594         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
3595
3596 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
3597
3598         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
3599         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
3600         generating altivec code.
3601         (FIXED_REGISTERS): VRSAVE is fixed.
3602         (CALL_USED_REGISTERS): VRSAVE is call used.
3603
3604 2001-11-09  Jason Eckhardt  <jle@rice.edu>
3605
3606         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
3607         code the branch target as ".+16/.+12", but rather use labels.
3608
3609 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
3610
3611         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
3612         to work around limitations of certain versions of GAS.
3613
3614         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
3615         (muldi3): Update due to SUBREG_BYTE changes.
3616         (casesi): Similarly.
3617
3618 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
3619
3620         * doc/invoke.texi: Remove comment referring to -xf77-version.
3621
3622 2001-11-09  Kazu Hirata  <kazu@hxi.com>
3623
3624         * config/convex/convex.c: Fix comment formatting.
3625         * config/convex/convex.h: Likewise.
3626
3627 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
3628
3629         * Makefile.in (.po.pox): Look both in srcdir and builddir
3630         for $(PACKAGE).pot.
3631         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
3632         to the source directory.
3633
3634 2001-11-09 Ben Elliston  <bje@redhat.com>
3635            Michael Meissner  <meissner@redhat.com>
3636            Andrew MacLeod  <amacleod@redhat.com>
3637            Richard Henderson  <rth@redhat.com>
3638            Nick Clifton  <nickc@redhat.com>
3639            Catherine Moore  <clm@redhat.com>
3640
3641         * m32r.c: Add support for m32rx processor.
3642         * m32r.h: Ditto.
3643         * m32r.md: Ditto.
3644         * t-m32r: Ditto.
3645         * m32r-protos.h: Add prototypes for m32rx functions.
3646         * doc/invoke.texi: Document -m32rx option.
3647
3648 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
3649
3650         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
3651         or after reload.
3652
3653 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3654
3655         * doc/install.texi2html: Use $MAKEINFO --no-split.
3656
3657 2001-11-09  Andreas Schwab  <schwab@suse.de>
3658
3659         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
3660         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
3661         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
3662         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
3663         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
3664
3665 2001-11-09  H.J. Lu <hjl@gnu.org>
3666
3667         * config/mips/mips.c (mips_output_function_prologues): Cast
3668         `tsize' to long for output.
3669
3670 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3671
3672         * c-lang.c (LANG_HOOKS_NAME): New.
3673         (lang_hooks): Constify.
3674         (c_init_options): Update.
3675         (lang_identify): Remove.
3676         * c-parse.in (language_string): Remove.
3677         * dbxout.c: Include langhooks.h.
3678         (dbxout_symbol_location): Update.
3679         * dwarf2out.c: Include langhooks.h.
3680         (gen_compile_unit_die): Update.
3681         * dwarfout.c: Include langhooks.h.
3682         (prototyped_attribute, output_compile_unit_die): Update.
3683         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
3684         (LANG_HOOKS_INITIALIZER): Update.
3685         * langhooks.h (struct lang_hooks): New members.  Constify.
3686         * stringpool.c: Don't include toplev.h.
3687         (set_identifier_size): Remove.
3688         * toplev.c (toplev_main): Initialize identifier size.
3689         (print_version): Update.
3690         * tree.h (language_string, init_lex, lang_identify,
3691         set_identifier_size): Remove.
3692         * Makefile.in: Update dependencies.
3693         * config/darwin.c: Include langhooks.h.
3694         (func_name_maybe_scoped): Update.
3695         * config/darwin.h (ASM_END_FILE): Update.
3696         * config/nextstep.h (ASM_END_FILE): Update.
3697         * config/nextstep21.h (ASM_END_FILE): Update.
3698         * config/i386/sun386.h (ASM_END_FILE): Update.
3699         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
3700         (rs6000_output_function_epilogue): Update.
3701 objc:
3702         * objc-act.c (LANG_HOOKS_NAME): Override.
3703         (struct lang_hooks): Constify.
3704         (objc_init_options): Update.
3705         (lang_identify): Remove.
3706
3707 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
3708
3709         * fold-const.c (lshift_double): Honor PREC.
3710         (rshift_double): Likewise.
3711
3712 2001-11-08  Kazu Hirata  <kazu@hxi.com>
3713
3714         * config/1750a/1750a.c: Fix comment formatting.
3715         * config/1750a/1750a.h: Likewise.
3716
3717 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
3718
3719         * configure.in (--enable-languages): Be more permissive about
3720         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
3721         * configure: Regenerated.
3722
3723 2001-11-08  Richard Henderson  <rth@redhat.com>
3724
3725         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
3726
3727 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
3728
3729         * config.gcc: Rename stormy16 to xstormy16.
3730         * config/stormy16/stormy-abi: Likewise.
3731         * config/stormy16/stormy16-protos.h: Likewise.
3732         * config/stormy16/stormy16.c: Likewise.
3733         * config/stormy16/stormy16.h: Likewise.
3734         * config/stormy16/stormy16.md: Likewise.
3735
3736 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
3737
3738         * tree.h (TYPE_VOLATILE): Add enable-checking code.
3739         (TYPE_READONLY): Likewise.
3740
3741 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3742
3743         * reload1.c (reload): Don't delete equiv insn if can throw.
3744
3745         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
3746         (clear_storage): Likewise, for OBJECT.
3747
3748 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
3749
3750         * pa.c (emit_move_sequence): Fix SUBREG expression to
3751         use proper byte offset when extending a constant from
3752         SImode to DImode.
3753
3754 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
3755
3756         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
3757         which cannot throw.
3758
3759 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3760
3761         * explow.c (convert_memory_address, case SUBREG): Only return
3762         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
3763
3764 2001-11-08  Richard Henderson  <rth@redhat.com>
3765
3766         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
3767         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
3768         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
3769
3770 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
3771
3772         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
3773
3774 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
3775
3776         * dwarf2out.c (debug_str_hash): New.
3777         (struct indirect_string_node): New.
3778         (struct dw_val_struct): Change type of val_str to it.
3779         (DEBUG_STR_SECTION_FLAGS): Define.
3780         (add_AT_string): Push string into hashtable, increment reference
3781         counter.
3782         (AT_string): Return string from ht_identifier.
3783         (AT_string_form): New.
3784         (free_AT): For dw_val_class_str, just decrement reference counter.
3785         (size_of_string): Remove.
3786         (size_of_die): Use AT_string_form to decide what size the string
3787         occupies in DIE.
3788         (size_of_pubnames): Use strlen instead of size_of_string.
3789         (value_format): Use AT_string_form for dw_val_class_str.
3790         (output_die): Output DW_FORM_strp strings using
3791         dw2_asm_output_offset.
3792         (indirect_string_alloc, output_indirect_string): New.
3793         (dwarf2out_finish): Emit .debug_str strings if there are any.
3794
3795 2001-11-08  Andreas Franck  <afranck@gmx.de>
3796
3797         * configure.in: Add AC_ARG_PROGRAM to support program name
3798         transformation with --program-prefix, --program-suffix and
3799         --program-transform-name.
3800         * configure: Regenerated.
3801         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
3802         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
3803         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
3804         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
3805         program_transform_name the way suggested by autoconf.
3806         (GCC_TARGET_INSTALL_NAME): Define.
3807         (install-driver): Use the transformed target alias name.
3808
3809 2001-11-08  Richard Henderson  <rth@redhat.com>
3810
3811         * config/mips/mips.c (save_restore_insns): Remove GP from the
3812         restore registers mask early instead of special casing it inside
3813         the loop.
3814
3815 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3816
3817         * cp/decl.c (shadow_warning): New function.
3818         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
3819         and an error when a block scope decl shadows a parameter.
3820
3821 2001-11-08  Richard Henderson  <rth@redhat.com>
3822
3823         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
3824         case as well.
3825
3826 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3827
3828         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
3829         to implement floating negation on processors prior to PA 2.0.
3830
3831 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
3832
3833         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
3834         (USE_LINKONCE_INDIRECT): Define.
3835         (dw2_output_indirect_constant_1): Try to output indirect constants
3836         into linkonce sections if possible.
3837         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
3838         (dw2_output_indirect_constants): Likewise.
3839
3840 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
3841
3842         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
3843
3844 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3845
3846         * c-decl.c (pushdecl): Remove file and line.
3847         * c-typeck.c (pop_init_level): Remove size.
3848
3849 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
3850
3851         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
3852         for rs6000.
3853
3854         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
3855         (TARGET_ALTIVEC): New.
3856         (TARGET_SWITCHES): Add altivec.
3857         (FIRST_PSEUDO_REGISTER): Change to 109.
3858         (CALL_USED_REGISTERS): Same.
3859         (FIRST_ALTIVEC_REGNO): New.
3860         (LAST_ALTIVEC_REGNO): New.
3861         (ALTIVEC_REGNO_P): New.
3862         (UNITS_PER_ALTIVEC_WORD): New.
3863         (ALTIVEC_VECTOR_MODE): New.
3864         (FIXED_REGISTERS): Add altivec registers.
3865         (REG_ALLOC_ORDER): Same.
3866         (HARD_REGNO_NREGS): Adjust for altivec registers.
3867         (HARD_REGNO_MODE_OK): Same.
3868         (MODES_TIEABLE_P): Same.
3869         (REGISTER_MOVE_COST): Same.
3870         (REGNO_REG_CLASS): Same.
3871         (reg_class): Add ALTIVEC_REGS.
3872         (REG_CLASS_NAMES): Same.
3873         (REG_CLASS_CONTENTS): Same.
3874         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
3875         (ALTIVEC_ARG_RETURN): New.
3876         (FUNCTION_VALUE): Handle VECTOR_TYPE.
3877         (LIBCALL_VALUE): Handle altivec vector modes.
3878         (VECTOR_MODE_SUPPORTED_P): New.
3879         (ALTIVEC_ARG_MIN_REG): New.
3880         (ALTIVEC_ARG_MAX_REG): New.
3881         (ALTIVEC_ARG_NUM_REG): New.
3882         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
3883         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
3884         (REGISTER_NAMES): Add altivec regs.
3885         (DEBUG_REGISTER_NAMES): Same.
3886         (ADDITIONAL_REGISTER_NAMES): Same.
3887         (rs6000_builtins): New.
3888         (MD_EXPAND_BUILTIN): New.
3889         (MD_INIT_BUILTINS): New.
3890         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
3891         for AltiVec instructions.
3892         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
3893         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
3894         registers.
3895         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
3896         (TARGET_SWITCHES): Add no-altivec.
3897         (DATA_ALIGNMENT): Align vectors to 128 bits.
3898         (TARGET_OPTIONS): Add abi= option.
3899         Add rs6000_abi_string extern.
3900         (LOCAL_ALIGNMENT): New.
3901         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
3902         (MASK_ALTIVEC_ABI): New.
3903         (TARGET_ALTIVEC_ABI): New.
3904         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
3905         call-saved.
3906         (STACK_BOUNDARY): Adjust for altivec.
3907         (BIGGEST_ALIGNMENT): Same.
3908         (rs6000_args): Add vregno.
3909         (USE_ALTIVEC_FOR_ARG_P): New.
3910         (FIXED_REGISTERS): Add vrsave register.
3911         (CALL_USED_REGISTERS): Same.
3912         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
3913         (VRSAVE_REGNO): New.
3914         (reg_class): Add VRSAVE_REGS.
3915         (REG_CLASS_NAMES): Same.
3916         (REG_CLASS_CONTENTS): Same.
3917         (REGNO_REG_CLASS): Same.
3918
3919         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
3920         (ABI_STACK_BOUNDARY): Same.
3921         (BIGGEST_ALIGNMENT): Same.
3922         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
3923         (ROUND_TYPE_ALIGN): Same.
3924
3925         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
3926         to 64.
3927
3928         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
3929         to 64.
3930
3931         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
3932         to 64.
3933
3934         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
3935         (altivec_expand_builtin): New.
3936         (altivec_init_builtins): New.
3937         (TARGET_EXPAND_BUILTIN): New.
3938         (TARGET_INIT_BUILTINS): New.
3939         (rs6000_init_builtins): New.
3940         (struct builtin_description): New.
3941         (bdesc_2arg): New.
3942         (rs6000_reg_names): Add altivec registers.
3943         (alt_reg_names): Same.
3944         (secondary_reload_class): Altivec regs can hold altivec regs and
3945         memory.
3946         (rs6000_emit_move): Force constants into memory for AltiVec moves.
3947         (print_operand): Add 'y' case for printing altivec memory
3948         operands.
3949         (rs6000_legitimize_address): Legitimize vector addresses into
3950         [REG+REG] or [REG].
3951         (altivec_expand_binop_builtin): New.
3952         New string rs6000_current_abi.
3953         (rs6000_override_options): Call rs6000_parse_abi_options.
3954         (rs6000_parse_abi_options): New.
3955         (function_arg_boundary): Vector arguments must be 16
3956         byte aligned.
3957         (function_arg_advance): Handle vector arguments.
3958         (function_arg_partial_nregs): Same.
3959         (init_cumulative_args): Same.
3960         (function_arg): Same.
3961
3962         * config/rs6000/rs6000.md (altivec_lvx): New.
3963         (type): Add altivec attribute.
3964         (movv4si): New.
3965         (*movv4si_internal): New.
3966         (movv16qi): New.
3967         (*movv16qi_internal): New.
3968         (movv8hi): New.
3969         (*movv8hi_internal1): New.
3970         (movv4sf): New.
3971         (*movv4sf_internal1): New.
3972         (altivec_stvx): New.
3973         (vaddubm): New.
3974         (vadduhm): New.
3975         (vadduwm): New.
3976         (vaddfp): New.
3977         (vaddcuw): New.
3978         (vaddubs): New.
3979         (vaddsbs): New.
3980         (vadduhs): New.
3981         (vaddshs): New.
3982         (vadduws): New.
3983         (vaddsws): New.
3984         (vand): New.
3985         (vandc): New.
3986         (vavgub): New.
3987         (vavgsb): New.
3988         (vavguh): New.
3989         (vavgsh): New.
3990         (vavguw): New.
3991         (vavgsw): New.
3992         (vcmpbfp): New.
3993         (vcmpequb): New.
3994         (vcmpequh): New.
3995         (vcmpequw): New.
3996         (vcmpeqfp): New.
3997         (vcmpgefp): New.
3998         (vcmpgtub): New.
3999         (vcmpgtsb): New.
4000         (vcmpgtuh): New.
4001         (vcmpgtsh): New.
4002         (vcmpgtuw): New.
4003         (vcmpgtsw): New.
4004         (vcmpgtfp): New.
4005         (vcmpgefp): New.
4006         (vcmpgtub): New.
4007         (vcmpgtsb): New.
4008         (vcmpgtuh): New.
4009         (vcmpgtsh): New.
4010         (vcmpgtuw): New.
4011         (vcmpgtsw): New.
4012         (vcmpgtfp): New.
4013         (vmaxub): New.
4014         (vmaxsb): New.
4015         (vmaxuh): New.
4016         (vmaxsh): New.
4017         (vmaxuw): New.
4018         (vmaxsw): New.
4019         (vmaxfp): New.
4020         (vmrghb): New.
4021         (vmrghh): New.
4022         (vmrghw): New.
4023         (vmrglb): New.
4024         (vmrglh): New.
4025         (vmrglw): New.
4026         (vminub): New.
4027         (vminsb): New.
4028         (vminuh): New.
4029         (vminsh): New.
4030         (vminuw): New.
4031         (vminsw): New.
4032         (vminfp): New.
4033         (vmuleub): New.
4034         (vmulesb): New.
4035         (vmuleuh): New.
4036         (vmulesh): New.
4037         (vmuloub): New.
4038         (vmulosb): New.
4039         (vmulouh): New.
4040         (vmulosh): New.
4041         (vnor): New.
4042         (vor): New.
4043         (vpkuhum): New.
4044         (vpkuwum): New.
4045         (vpkpx): New.
4046         (vpkuhss): New.
4047         (vpkshss): New.
4048         (vpkuwss): New.
4049         (vpkswss): New.
4050         (vpkuhus): New.
4051         (vpkshus): New.
4052         (vpkuwus): New.
4053         (vpkswus): New.
4054         (vrlb): New.
4055         (vrlh): New.
4056         (vrlw): New.
4057         (vslb): New.
4058         (vslh): New.
4059         (vslw): New.
4060         (vsl): New.
4061         (vslo): New.
4062         (vsrb): New.
4063         (vrsh): New.
4064         (vrsw): New.
4065         (vsrab): New.
4066         (vsrah): New.
4067         (vsraw): New.
4068         (vsr): New.
4069         (vsro): New.
4070         (vsububm): New.
4071         (vsubuhm): New.
4072         (vsubuwm): New.
4073         (vsubfp): New.
4074         (vsubcuw): New.
4075         (vsububs): New.
4076         (vsubsbs): New.
4077         (vsubuhs): New.
4078         (vsubshs): New.
4079         (vsubuws): New.
4080         (vsubsws): New.
4081         (vsum4ubs): New.
4082         (vsum4sbs): New.
4083         (vsum4shs): New.
4084         (vsum2sws): New.
4085         (vsumsws): New.
4086         (vxor): New.
4087
4088 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
4089
4090         * Makefile.in (df.o): Add fibheap.h to dependencies.
4091
4092         * df.h: Add prototypes for transfer functions, iterative_dataflow
4093         functions.
4094         (enum df_flow_dir): New enum.
4095         (enum df_confluence_op): New enum.
4096         (struct df): Add inverse_rts_map.
4097
4098         * df.c: Add sbitmap.h to the list of includes.
4099         (df_rd_global_compute): Removed.
4100         (df_ru_global_compute): Removed.
4101         (df_lr_global_compute): Removed.
4102         (df_rd_transfer_function): New function.
4103         (df_ru_transfer_function): New function.
4104         (df_lr_transfer_function): New function.
4105         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
4106         Use iterative_dataflow_bitmap instead of df_*_global_compute.
4107         (iterative_dataflow_sbitmap): New function.
4108         (iterative_dataflow_bitmap): New function.
4109
4110 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
4111
4112         * doc/gcc.texi: Move terminology and spelling conventions to
4113         htdocs/codingconventions.html.
4114
4115 2001-11-07  Graham Stott  <grahams@redhat.com>
4116
4117         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
4118
4119 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
4120
4121         * expmed.c (expand_mult): Force operand to register before computing
4122         cost.
4123         * i386.c (x86_decompose_lea): New global vairable.
4124         * i386.h (x86_decompose_lea): Declare.
4125         (TARGET_DECOMPOSE_LEA): New macro.
4126         (RTX_COST): Handle leas properly.
4127
4128 2001-11-06  Richard Henderson  <rth@redhat.com>
4129
4130         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
4131         defined for a CONSTRUCTOR; don't check it.
4132
4133 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
4134
4135         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
4136         test for absolute pathnames.
4137
4138 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
4139
4140         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
4141         instructions up to the target pc inclusive.
4142
4143 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
4144
4145         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
4146
4147 2001-11-06  Eric Christopher  <echristo@redhat.com>
4148
4149         * config/mips/mips.md(movdf_internal2): Add constraints for float
4150         to general register move.
4151         * config/mips/elf64.h: Add default ABI.
4152
4153 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4154
4155         * alias.c:: Include langhooks.h.
4156         * emit-rtl.c: Similarly.
4157         * toplev.c: Similarly.
4158         * tree-inline.c: Similarly.
4159         * langhooks-def.h: New, the old langhooks.h.  Give the default
4160         hooks a common prefix.
4161         * langhooks.h: Contents extracted from toplev.h.
4162         * toplev.h: Move langhook stuff to langhooks.h.
4163         * langhooks.c: Give default hooks a common prefix.
4164
4165         * c-lang.c: Include langhooks-def.h.
4166         * objc/objc-act.c: Similarly.
4167         * Makefile.in: Update.
4168         * objc/Make-lang.in: Update.
4169
4170 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
4171
4172         * doc/install.texi: Document that configure options not listed in
4173         this file are unsupported.  Document --with-system-zlib.
4174
4175 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4176
4177         * rtl.h (mem_for_const_double): New declaration.
4178         * varasm.c (mem_for_const_double): New function.
4179         * config/convex/convex.md (movdf): Use it.
4180         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
4181         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
4182         * config/m68k/m68kv4.h: Likewise.
4183
4184         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
4185         of new GP reg classes.
4186
4187         * expr.c (store_field): When making temp object for unaligned
4188         component, set it to alias set 0.
4189
4190 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
4191
4192         * c-common.c (c_expand_expr_stmt): Apply default conversions to
4193         non-lvalue arrays if C99.
4194         * c-typeck.c (default_conversion): Split out code handling
4195         array-to-pointer and function-to-pointer conversions into a
4196         separate default_function_array_conversion function.
4197         (default_function_array_conversion): New function.  Keep track of
4198         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
4199         arrays unchanged outside C99 mode instead of giving an error for
4200         them.
4201         (build_component_ref): Use pedantic_non_lvalue when handling
4202         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
4203         (convert_arguments): Use default_function_array_conversion.
4204         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
4205         non-lvalues are OK.
4206         (unary_complex_lvalue): Likewise.
4207         (internal_build_compound_expr): Use
4208         default_function_array_conversion.  Apply default conversions to
4209         function in compound expression.
4210         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
4211         Use default_function_array_conversion.
4212         * doc/extend.texi: Update documentation of subscripting non-lvalue
4213         arrays.
4214         Fixes PR c/461.
4215
4216 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
4217
4218         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
4219         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
4220         corresponding to the complete set of .po and .gmo files in
4221         the source directory's po subdir, modified by LINGUAS.  Don't
4222         look at ALL_LINGUAS.
4223         * configure.in: Don't set ALL_LINGUAS.
4224         * configure: Regenerate.
4225
4226         * Makefile.in (.po.gmo): Don't move into source directory.
4227         (.po.pox): Clarify comments.
4228         (install-po): Look for .gmo files in both srcdir and objdir;
4229         don't fail if a file is totally missing.
4230         (distclean): rmdir ada subdirectory too.
4231
4232 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
4233
4234         * config/rs6000/rs6000.c (rs6000_select_section): Handle
4235         CONSTRUCTORs _correctly_.
4236
4237 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4238
4239         * c-decl.c (delete_block): Remove.
4240         * c-tree.h (delete_block): Remove.
4241
4242 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4243
4244         * cppexp.c (lex, parse_defined): Update warning about defined.
4245
4246 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
4247
4248         * config/rs6000/rs6000.c (rs6000_select_section): Handle
4249         CONSTRUCTORs too.
4250
4251 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
4252
4253         * config/arm/arm.c (arm_return_in_memory): Cope with
4254         int_size_in_bytes returning -1.
4255
4256         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
4257         DECL being NULL.
4258
4259 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
4260
4261         * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
4262         remove unneeded dependencies;
4263         (cfglayout.o): New.
4264         * cfglayout.c, cfglayout.h: New files; break out from ...
4265         * bb-reorder.c: ... here; Remove unneeded includes;
4266
4267 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
4268
4269         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
4270
4271 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
4272
4273         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
4274         mode as well.  Do not explicitly create intermediate regs.
4275
4276 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4277
4278         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
4279         (common_section): Delete unused variable.
4280         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
4281         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
4282         * arm-protos.h (arm_poke_function_name, aof_add_import,
4283         aof_delete_import): Const-ify.
4284         * arm.c (legitimize_pic_address): Wrap variables in the macro
4285         controlling their usage.
4286         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
4287         (arm_poke_function_name, pic_chain, import, aof_add_import,
4288         aof_delete_import): Const-ify.
4289         * i386.c (ix86_osf_output_function_prologue): Const-ify.
4290         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
4291         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
4292         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
4293         * i860/sysv3.h: Add missing comment closure.
4294         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
4295         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
4296         to symbolic_operand.
4297
4298         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
4299         (i960-*-*): Set tmake_file.
4300         (sparc86x-*-elf*): Fix typo in header name.
4301
4302         * sched-rgn.c (schedule_insns): Delete unused variable.
4303
4304 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4305
4306         PR c/2820
4307         * c-typeck.c (lookup_field): Rework to return a chain down to
4308         the looked-up field.
4309         (build_component_ref): Use the new lookup_field to handle
4310         nested anonymous entities correctly.
4311
4312 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4313
4314         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
4315         Change parameters to gen_rtx_CONST_DOUBLE.
4316         (GEN_INT64, sparc_emit_set_const64): Likewise.
4317         * config/sparc/sparc.md (movdf split): Likewise.
4318
4319 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
4320
4321         * unroll.c (calculate_giv_inc): Use find_last_value rather
4322         than just hoping the last instruction is the right SET.
4323         [Fixes 990604-1.c on stormy16.]
4324
4325         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
4326         library at all if -T is used.
4327
4328         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
4329         some uses of uninitialized variables in error cases.
4330
4331         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
4332         look at 'temp' if we won't be using it.
4333
4334         * config/stormy16/stormy16.h (CONST_COSTS): Define.
4335         (RTX_COSTS): Define.
4336         (ADDRESS_COST): Define.
4337         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
4338
4339         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
4340
4341         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
4342         stormy16_asm_output_mi_thunk.
4343         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
4344         function.
4345         * config/stormy16/stormy16-protos.h
4346         (stormy16_asm_output_mi_thunk): New prototype.
4347
4348 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4349
4350         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
4351         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
4352         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
4353         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
4354         sched-int.h, toplev.c, config/alpha/alpha.c,
4355         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
4356         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
4357         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
4358         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
4359         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
4360         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
4361         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
4362
4363 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4364
4365         * Makefile.in (dbxout.o): Depend on function.h.
4366         * collect2.c (is_in_list): Hide unused function.
4367         * dbxout.c: Include function.h.
4368         (source_label_number, dbxout_source_line, dbxout_source_file,
4369         dbxout_function_end, dbxout_begin_function): Wrap/move inside
4370         macros controlling usage.
4371         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
4372         * output.h (exports_section): Prototype.
4373
4374         * convex.c (convex_output_function_prologue): Fix format specifier
4375         warning.
4376         (asm_declare_function_name): Fix signed/unsigned warning.
4377         (print_operand): Fix format specifier warning.
4378         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
4379         * dsp16xx-protos.h (uns_comparison_operator,
4380         num_1600_core_shifts): Prototype.
4381         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
4382         (frame_size, frame_pointer_offset): Delete.
4383         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
4384         Make static.  Fix format specifier warnings.
4385         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
4386         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
4387         * dsp16xx.md: Add default case in switches.
4388         * fr30.h (IN_RANGE): Delete.
4389         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
4390         * mcore-protos.h (mcore_output_cmov): Const-ify.
4391         * mcore.c (mcore_output_cmov): Likewise.
4392         * mcore.h (switch_to_section): Make static and prototype.
4393         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
4394         unsigned>=0 warnings.
4395         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
4396         * rs6000-protos.h (read_only_data_section,
4397         read_only_private_data_section): Prototype.
4398         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
4399         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
4400         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
4401
4402 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4403
4404         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
4405         ATTRIBUTE_UNUSED.
4406         * final.c (final_scan_insn): Add brackets around body of if-stmt.
4407         * gcc.c (convert_filename): Add static prototype.  Const-ify.
4408         Wrap variable in macros controlling its use.
4409         * output.h (sdata_section): Add prototype.
4410
4411         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
4412         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
4413         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
4414         (ASM_FILE_START): Const-ify.
4415         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
4416         specifier warning.
4417         * c4x.md: Don't use the 'U' integer suffix.
4418         * clipper.md (clipper_movstr): Delete declaration.
4419         * d30v-protos.h (d30v_move_2words): Const-ify.
4420         (debug_stack_info): Add prototype.
4421         * d30v.c: Include "integrate.h".
4422         (d30v_function_arg_boundary, d30v_function_arg,
4423         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
4424         signed/unsigned warnings.
4425         (d30v_print_operand_memory_reference, d30v_move_2words):
4426         Const-ify.
4427         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
4428         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
4429         * fr30.md: Const-ify.
4430         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
4431         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
4432         (mvs_get_label_page): Hide unused static function.
4433         * i860.c (current_function_original_name): Const-ify.
4434         * i860/sysv3.h (current_function_original_name): Likewise.
4435         * i860/sysv4.h (current_function_original_name): Likewise.
4436         * i960.md: Add default case in switches.  Remove unused variable.
4437         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
4438         * m32r.md: Const-ify.
4439         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
4440         * m68hc11.c: Include "reload.h".
4441         (static_chain_reg, print_options, m68hc11_asm_file_start):
4442         Const-ify.
4443         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
4444         around & in comparison.
4445         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
4446         * mn10200.c (shift_mode): Remove trailing comma.
4447         * mn10300-protos.h (output_tst): Const-ify.
4448         * mn10300.c (output_tst): Likewise.
4449         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
4450         warnings.
4451         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
4452         * pa.c (output_ascii): Likewise.
4453         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
4454         * pdp11.md (expand_unop): Delete declarations.
4455         * pj-protos.h (pj_output_addsi3): Const-ify.
4456         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
4457         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
4458         unique_src_operand): Add prototypes.
4459         (pj_output_store_into_lval): Make definition static.
4460         (pj_function_incoming_arg): Don't use unary plus.
4461         (pj_output_addsi3): Const-ify.
4462         * romp.md (get_symref): Delete declarations.
4463         * v850-c.c (mark_current_function_as_interrupt): Don't return
4464         value from void function.
4465         * v850.c: Include "integrate.h".
4466         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
4467         * vax-protos.h (const_section): Add prototype.
4468
4469 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
4470
4471         * machmode.def: Add documentation for the seventh argument in
4472         vector modes.
4473
4474 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
4475
4476         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
4477         consistently.
4478         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
4479         <-melf>: Don't have markup for ELF acronym.
4480
4481 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
4482
4483         * config.gcc (mmix-*-*): New target.
4484         * doc/invoke.texi: Document MMIX options.
4485         * doc/contrib.texi: Add note about MMIX port to my entry.
4486         * config/mmix/t-mmix: New file.
4487         * config/mmix/mmix.h: New file.
4488         * config/mmix/mmix-protos.h: New file.
4489         * config/mmix/mmix.c: New file.
4490         * config/mmix/mmix.md: New file.
4491         * config/mmix/crti.asm: New file.
4492         * config/mmix/crtn.asm: New file.
4493
4494 2001-11-03  Kazu Hirata  <kazu@hxi.com>
4495
4496         * config/sparc/linux-aout.h: Fix comment formatting.
4497         * config/sparc/linux.h: Likewise.
4498         * config/sparc/linux64.h: Likewise.
4499         * config/sparc/lynx.h: Likewise.
4500         * config/sparc/pbd.h: Likewise.
4501         * config/sparc/sol2-sld-64.h: Likewise.
4502         * config/sparc/sol2.h: Likewise.
4503         * config/sparc/sparc.c: Likewise.
4504         * config/sparc/sparc.h: Likewise.
4505         * config/sparc/sparc.md: Likewise.
4506         * config/sparc/sunos4.h: Likewise.
4507         * config/sparc/vxsim.h: Likewise.
4508         * config/sparc/vxsparc.h: Likewise.
4509         * config/sparc/vxsparc64.h: Likewise.
4510
4511 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4512
4513         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
4514         reference to CONST_DOUBLE_MEM in comment.
4515         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
4516         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
4517         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
4518         * function.c (pop_function_context_from): Don't call
4519         restore_varasm_status.
4520         * function.h (restore_varasm_status): Delete declaration.
4521         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
4522         * rtl.c: Likewise.
4523         * rtl.def (CONST_DOUBLE): Update comment.
4524         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
4525         (CONST_DOUBLE_CHAIN): Likewise.
4526         (CONST_DOUBLE_MEM): Delete.
4527         (gen_rtx_CONST_DOUBLE): Update parameters.
4528         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
4529         Remove reference to CONST_DOUBLE_MEM.
4530         (const_alias_set): New variable.
4531         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
4532         (immed_real_const_1): Adjust tests for 0, 1, and 2.
4533         Don't set CONST_DOUBLE_MEM.
4534         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
4535         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
4536         Put constant in const_alias_set.
4537         (struct pool_constant): ALIGN now unsigned.
4538         OFFSET now HOST_WIDE_INT.
4539         Delete LABEL.
4540         (restore_varasm_status): Deleted.
4541         (mark_pool_constant): Mark desc->rtl.
4542         (force_const_mem): Rework to store rtl in hash table,
4543         not CONST_DOUBLE_MEM.
4544         Put constant in const_alias_set.
4545         (find_pool_constant): Check desc->rtl.
4546         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
4547         (init_varasm_once): Initialize const_alias_set.
4548
4549         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
4550         force_const_mem.
4551
4552         * reload.c (combine_reloads): Don't combine an output reload if there
4553         are other reloads around for part of the output.
4554
4555         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
4556         constant expression.
4557         (set_mem_decl): New function.
4558         * expr.h (set_mem_decl): New declaration.
4559         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
4560         (output_asm_operand_names): Add tab.
4561         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
4562
4563         * builtins.c (get_memory_rtx): Properly set MEM alias set and
4564         attributes.
4565
4566 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4567
4568         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
4569         Use "invalid" instead of "illegal".  Use @r in comments in
4570         examples.
4571
4572 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4573
4574         * c-decl.c (pushdecl): Move block inside if conditional to remove
4575         possibility of a segfault.  Lookup block-level extern
4576         variables in enclosing scopes correctly.
4577
4578         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
4579
4580 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
4581
4582         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
4583         SUBREG so we avoid SUBREGing memory.
4584
4585         * expmed.c (store_bit_field): Same.
4586
4587 2001-11-02  DJ Delorie  <dj@redhat.com>
4588
4589         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
4590         using FP registers for DImode mem-mem moves is acceptable.
4591
4592 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
4593
4594         * builtins.c (apply_args_size): Handle vector arguments.
4595         (apply_result_size): Same.
4596
4597         * machmode.def: Set WIDER mode field for all vector entries.
4598
4599 2001-11-02  Graham Stott  <grahams@redhat.com>
4600
4601         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
4602
4603 2001-11-01  Eric Christopher  <echristo@redhat.com>
4604
4605         * config.gcc: Revert part of earlier patch.
4606         * config/mips/linux.h: Ditto.
4607         * df.c: Include tm_p.h to avoid warnings.
4608         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
4609         #if/#endif.
4610         * config/mips/mips.c: Define mips_abi regardless.
4611         (mips_output_function_prologues): Add long casts for .frame
4612         output.
4613         (override_options): Allow use of ABI_32.
4614
4615 2001-11-01  Kazu Hirata  <kazu@hxi.com>
4616
4617         * config/m68hc11/m68hc11.c: Fix comment formatting.
4618         * config/m68hc11/m68hc11.h: Likewise.
4619         * config/m68hc11/m68hc11.md: Likewise.
4620
4621 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4622
4623         * c-typeck.c (default_conversion): Retain the original expression
4624         codes.
4625         * gcc.dg/Wparentheses.c: New tests.
4626
4627 2001-11-01  David S. Miller  <davem@redhat.com>
4628
4629         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
4630         64-bit Sparc description more in line with reality.
4631
4632 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4633
4634         * Makefile.in (GCOV_OBJS): Add version.o.
4635         * gcov.c: Include "version.h" and <getopt.h>.
4636         (gcov_version_string): Remove.
4637         (print_usage): Take a parameter to determine whether this is a
4638         call from --help or an error message.  Give fuller output that
4639         follows the GNU Coding Standards for --help.
4640         (print_version): New function.
4641         (options): New.
4642         (process_args): Use getopt_long.  Support long options.  Follow
4643         GNU Coding Standards for --help and --version.
4644         * doc/gcov.texi: Document long options.
4645         Addresses part of PR other/704.
4646
4647 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4648
4649         * pa.c (output_move_double): Fix typo in double load.
4650
4651 2001-11-01  Kazu Hirata  <kazu@hxi.com>
4652
4653         * config/h8300/h8300.c (h8300_encode_label): Compute a string
4654         before passing it to ggc_alloc_string.
4655
4656 2001-11-01  Kazu Hirata  <kazu@hxi.com>
4657
4658         * config/m68k/3b1.h: Fix comment formatting.
4659         * config/m68k/3b1g.h: Likewise.
4660         * config/m68k/a-ux.h: Likewise.
4661         * config/m68k/amix.h: Likewise.
4662         * config/m68k/apollo68.h: Likewise.
4663         * config/m68k/atari.h: Likewise.
4664         * config/m68k/aux-exit.c: Likewise.
4665         * config/m68k/ccur-GAS.h: Likewise.
4666         * config/m68k/crds.h: Likewise.
4667         * config/m68k/dpx2.h: Likewise.
4668         * config/m68k/dpx2g.h: Likewise.
4669         * config/m68k/hp310.h: Likewise.
4670         * config/m68k/hp320.h: Likewise.
4671         * config/m68k/isi.h: Likewise.
4672         * config/m68k/linux.h: Likewise.
4673         * config/m68k/lynx.h: Likewise.
4674         * config/m68k/m68k-psos.h: Likewise.
4675         * config/m68k/m68k.c: Likewise.
4676         * config/m68k/m68k.h: Likewise.
4677         * config/m68k/m68k.md: Likewise.
4678         * config/m68k/m68kelf.h: Likewise.
4679         * config/m68k/m68kv4.h: Likewise.
4680         * config/m68k/mot3300.h: Likewise.
4681         * config/m68k/news.h: Likewise.
4682         * config/m68k/next.h: Likewise.
4683         * config/m68k/pbb.h: Likewise.
4684         * config/m68k/plexus.h: Likewise.
4685         * config/m68k/sgs.h: Likewise.
4686         * config/m68k/sun3.h: Likewise.
4687         * config/m68k/tower.h: Likewise.
4688         * config/m68k/vxm68k.h: Likewise.
4689
4690 2001-10-31  DJ Delorie  <dj@redhat.com>
4691
4692         * config/mips/mips.h (mips_cache_flush_func): Prototype.
4693         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
4694         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
4695         * config/mips/mips.c (mips_cache_flush_func): New.
4696         * doc/invoke.texi: Document the new options.
4697
4698 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
4699
4700         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
4701         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
4702
4703         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
4704
4705         * config/cris/cris.c: Include output.h after tree.h but before
4706         target.h.
4707
4708 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
4709
4710         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
4711         (INTL_SUBDIRS): Just intl.
4712         (.SUFFIXES): Add .gmo .po .pox.
4713         (native): Also depend on build-@POSUB@.
4714         (intl.all, intl.install): Depend on config.h and things it includes.
4715         (po-generated): New target; depend on c-parse.c and tradcif.c.
4716         (install-normal): Also depend on install-@POSUB@.
4717         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
4718         (build-, install-, build-po, update-po, install-po,
4719         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
4720
4721         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
4722         * configure.in: Don't munge XGETTEXT.  Don't generate
4723         po/Makefile.in.
4724         * configure: Regenerate.
4725
4726         * exgettext: Delete.
4727         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
4728         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
4729
4730 2001-10-31  Kazu Hirata  <kazu@hxi.com>
4731
4732         * config/h8300/h8300.md (two anonymous patterns): New.
4733
4734 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
4735
4736         * tree.h (tree_index): Add support for V16QI and V8HI.
4737         (V8HI_type_node): New.
4738         (V16QI_type_node): New.
4739
4740         * tree.c (build_common_tree_nodes_2): Same.
4741
4742         * c-common.c (type_for_mode): Same.
4743
4744 2001-10-31  Kazu Hirata  <kazu@hxi.com>
4745
4746         * config/i386/att.h: Fix comment formatting.
4747         * config/i386/beos-elf.h: Likewise.
4748         * config/i386/bsd.h: Likewise.
4749         * config/i386/bsd386.h: Likewise.
4750         * config/i386/crtdll.h: Likewise.
4751         * config/i386/cygwin.asm: Likewise.
4752         * config/i386/cygwin.h: Likewise.
4753         * config/i386/djgpp.h: Likewise.
4754         * config/i386/freebsd-aout.h: Likewise.
4755         * config/i386/freebsd.h: Likewise.
4756         * config/i386/gas.h: Likewise.
4757         * config/i386/i386-interix.h: Likewise.
4758         * config/i386/i386-protos.h: Likewise.
4759         * config/i386/i386.c: Likewise.
4760         * config/i386/i386.h: Likewise.
4761         * config/i386/i386.md: Likewise.
4762         * config/i386/i386elf.h: Likewise.
4763         * config/i386/interix.c: Likewise.
4764         * config/i386/isc.h: Likewise.
4765         * config/i386/isccoff.h: Likewise.
4766         * config/i386/iscdbx.h: Likewise.
4767         * config/i386/linux.h: Likewise.
4768         * config/i386/lynx.h: Likewise.
4769         * config/i386/mingw32.h: Likewise.
4770         * config/i386/netbsd-elf.h: Likewise.
4771         * config/i386/next.h: Likewise.
4772         * config/i386/osf1elf.h: Likewise.
4773         * config/i386/osfrose.h: Likewise.
4774         * config/i386/sco5.h: Likewise.
4775         * config/i386/seq-gas.h: Likewise.
4776         * config/i386/seq-sysv3.h: Likewise.
4777         * config/i386/sequent.h: Likewise.
4778         * config/i386/sol2.h: Likewise.
4779         * config/i386/sun386.h: Likewise.
4780         * config/i386/uwin.asm: Likewise.
4781         * config/i386/uwin.h: Likewise.
4782         * config/i386/vxi386.h: Likewise.
4783         * config/i386/win32.h: Likewise.
4784         * config/i386/winnt.c: Likewise.
4785         * config/i386/xm-cygwin.h: Likewise.
4786         * config/i386/xm-mingw32.h: Likewise.
4787
4788 2001-10-31  Kazu Hirata  <kazu@hxi.com>
4789
4790         * builtins.def: Fix comment typos.
4791         * config/alpha.c: Likewise.
4792         * config/arm/arm.c: Likewise.
4793         * config/avr/avr.h: Likewise.
4794         * config/d30v/d30v.c: Likewise.
4795         * config/d30v/d30v.h: Likewise.
4796         * config/d30v/d30v.md: Likewise.
4797         * config/dsp16xx/dsp16xx.c: Likewise.
4798         * config/fr30/fr30.c: Likewise.
4799         * config/fr30/fr30.md: Likewise.
4800         * config/i386/i386.c: Likewise.
4801         * config/i860/i860.c: Likewise.
4802         * config/i960/i960.c: Likewise.
4803         * config/ia64/ia64.c: Likewise.
4804         * config/mips/mips.c: Likewise.
4805         * config/pa/pa.c: Likewise.
4806         * config/rs6000/rs6000.c: Likewise.
4807         * config/s390/s390.c: Likewise.
4808         * config/sparc/sparc.c: Likewise.
4809
4810 2001-10-30  Kazu Hirata  <kazu@hxi.com>
4811
4812         * config/mips/elf.h: Fix comment formatting.
4813         * config/mips/elf64.h: Likewise.
4814         * config/mips/iris5.h: Likewise.
4815         * config/mips/iris5gas.h: Likewise.
4816         * config/mips/iris6.h: Likewise.
4817         * config/mips/isa3264.h: Likewise.
4818         * config/mips/linux.h: Likewise.
4819         * config/mips/mips.c: Likewise.
4820         * config/mips/mips.h: Likewise.
4821         * config/mips/mips.md: Likewise.
4822         * config/mips/mips16.S: Likewise.
4823         * config/mips/netbsd.h: Likewise.
4824         * config/mips/osfrose.h: Likewise.
4825         * config/mips/r3900.h: Likewise.
4826         * config/mips/sni-svr4.h: Likewise.
4827         * config/mips/svr4-t.h: Likewise.
4828         * config/mips/ultrix.h: Likewise.
4829
4830 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
4831
4832         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
4833         when we update head->current.
4834
4835 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
4836
4837         * tree.c (id_string_size): Remove.
4838         (dump_tree_statistics): Update.
4839         * toplev.c (compile_file): If dumping stats, dump tree stats too.
4840
4841 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
4842
4843         * sched-rgn.c (schedule_insns): Fix comment.
4844
4845 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
4846
4847         * configure.in: Correct previous change: don't assume that
4848         gas's version number _isn't_ the last thing on the line, or
4849         isn't the only number on the line, either.
4850         * configure: Regenerate.
4851
4852 2001-10-30  Kazu Hirata  <kazu@hxi.com>
4853
4854         * cfgcleanup.c: Fix a comment typo.
4855
4856 2001-10-30  Kazu Hirata  <kazu@hxi.com>
4857
4858         * alias.c: Fix comment formatting.
4859         * recog.c: Likewise.
4860         * config/cris/cris.c: Likewise.
4861         * config/cris/cris.h: Likewise.
4862         * config/i960/i960.c: Likewise.
4863         * config/i960/i960.h: Likewise.
4864
4865 2001-10-30  Kazu Hirata  <kazu@hxi.com>
4866
4867         * config/arm/arm.c: Fix a comment typo.
4868         * config/arm/arm.h: Likewise.
4869         * config/ia64/ia64.c: Likewise.
4870
4871 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
4872
4873         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
4874         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
4875         * rtl.h (set_unique_reg_note): Change return value.
4876         * gcse.c (try_replace_reg): Use set_unique_reg_note.
4877         * cse.c (cse_insn): Likewise.
4878         * expr.c (emit_move_insn): Likewise.
4879         * explow.c (force_reg): Likewise.
4880         * local-alloc (update_equiv_regs): Likewise.
4881         * loop.c (move_moveables, load_mems): Likewise.
4882         * reload (find_reloads): Likewise.
4883
4884 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
4885
4886         Localization fixes.
4887         * c-decl.c (parmlist_tags_warning, start_struct,
4888         check_for_loop_decls): Separate messages for struct, union and
4889         enum cases to allow for languages in which they have different
4890         genders.
4891         * c-format.c (scanf_flag_specs): Separate short and long name of
4892         the assignment suppression feature.
4893         (check_format_types): Localize "pointer" and "different types"
4894         strings.
4895         * c-lex.c (lex_number): Localize "an unsigned long int" and
4896         related strings.
4897         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
4898         warning message.
4899         * c-typeck.c (build_unary_up): Separate messages for increment and
4900         decrement cases to allow for languages in which they use different
4901         articles.  Localize the strings "increment" and "decrement" in one
4902         case.
4903
4904 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
4905
4906         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
4907         when no changes has been made.
4908
4909         * gcse.c (reg_set_bitmap): Turn into reg_set.
4910         (modify_mem_list_set, canon_modify_mem_list_set)
4911         (clear_modify_mem_tables, free_modify_mem_tables): New.
4912         (gcse_main); Use free_modify_mem_tables.
4913         (free_gcse_mem): Likewise; free the bitmaps.
4914         (alloc_gcse_main): Initialize the bitmaps.
4915         (canon_list_insert): Set canon_modify_mem_list_set.
4916         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
4917         (compute_hash_table): Use clear_modify_mem_tables.
4918         (reset_opr_set_tables): Likewise.
4919         (oprs_not_set_p): reg_set_bitmap is regset.
4920         (mark_set, mark_clobber): Likewise.
4921
4922         * df.h (DF_EQUIV_NOTES): New constant.
4923         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
4924         when asked for.
4925
4926         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
4927         (init_regions, schedule_insns): Conditionalize the checking
4928         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
4929
4930 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
4931
4932         * i386.md (movti_rex64 splitter): Fix condition.
4933
4934 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
4935
4936         * configure.in: Do not assume that gas's version number is the
4937         last thing on the first line of as --version output.
4938         * configure: Regenerate.
4939
4940         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
4941         MT_WARNING, MT_ERROR, MT_FATAL.
4942         (main): Call gcc_init_libintl.
4943         (v_message): Call gettext on msgid and "warning: "
4944         * tradcif.y: Include intl.h.
4945         (yyerror): Make parameter definition consistent with
4946         prototype.  Call gettext on msgid argument.
4947
4948 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4949
4950         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
4951         warnings.
4952
4953         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
4954
4955 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4956
4957         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
4958         before referencing it.
4959
4960 2001-10-26  DJ Delorie  <dj@redhat.com>
4961
4962         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
4963         override -G, and force -G0.
4964
4965 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
4966
4967         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
4968         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
4969         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
4970         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
4971
4972         * loop.h (struct induction): Rename ext_dependant to
4973         ext_dependent.
4974         * loop.c: Change all uses.
4975         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
4976         All callers changed.
4977         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
4978
4979 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
4980
4981         * c-parse.in (expr_no_commas, primary), c-typeck.c
4982         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
4983
4984 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
4985
4986         Undo assemble_name change in earlier patch.
4987
4988 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
4989
4990         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
4991         determining the type of the receiver, do not check that TREE_CODE
4992         of receiver is CALL_EXPR before calling receiver_is_class_object().
4993         (receiver_is_class_object): For the GNU runtime: recognize
4994         the case that the receiver is self in a class method context.
4995         Check that TREE_CODE of receiver is CALL_EXPR when checking that
4996         the receiver is a call to objc_get_class.
4997
4998 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4999
5000         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
5001
5002 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5003
5004         * Makefile.in (OBJS): Put all files in alphabetical order.
5005
5006         * dwarf2out.c (add_const_value_attribute): Fix error in last
5007         change.
5008
5009 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
5010
5011         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
5012         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
5013         fix warning.
5014         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
5015         (life_analysis): call purge_all_dead_edges after deleting noops.
5016         (delete_noop_move): Do not purge CFG.
5017         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
5018
5019 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
5020
5021         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
5022         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
5023         (ASM_GLOBALIZE_LABEL): Use assemble_name.
5024         (ASM_OUTPUT_COMMON): Likewise.
5025         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
5026         (rs6000_output_function_epilogue): Likewise.
5027         (output_mi_thunk): Fix typo.
5028         (rs6000_output_symbol_ref): Use assemble_name.
5029         (output_toc): Likewise.
5030         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
5031         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
5032         assemble_name calls STRIP_NAME_ENCODING.
5033         (ASM_OUTPUT_LABEL): Use assemble_name.
5034         (ASM_GLOBALIZE_LABEL): Likewise.
5035         (ASM_DECLARE_FUNCTION_NAME): Likewise.
5036         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
5037         (ASM_OUTPUT_LOCAL): Likewise.
5038
5039 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5040
5041         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
5042         (expand_builtin_apply, expand_builtin_return): Likewise.
5043         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
5044
5045 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
5046
5047         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
5048         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
5049         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
5050         configure, configure.in, except.c, except.h, flow.c, function.c,
5051         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
5052         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
5053         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
5054         unroll.c: Fix spelling errors.
5055
5056         * doc/extend.texi, doc/invoke.texi: Fix spelling.
5057
5058         * doc/gcc.texi: Document use of "dependent" and American spelling.
5059
5060 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
5061
5062         * expr.c (emit_group_load): Support CONCATs by storing them to memory
5063         and reloading.
5064
5065 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5066
5067         * expr.c (store_constructor_field): Only call adjust_address on MEM.
5068
5069 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
5070
5071         * genrecog.c (write_switch):  Output if before switch for
5072         DT_elt_zero_wide_safe.
5073
5074 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5075
5076         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
5077         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
5078         (FUNCTION_PROFILER): Const-ify.
5079         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
5080         (eliminate_constant_term, assemble_name, output_addr_const):
5081         Remove declarations.
5082         (ptr_half_pic_address_p, half_pic_hash): Prototype.
5083         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
5084         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
5085         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
5086         (half_pic_declare, half_pic_external): Const-ify.
5087         * toplev.c: Include "halfpic.h".
5088
5089 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
5090
5091         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
5092         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
5093         config/i386/i386.c, config/i386/i386-interix.h,
5094         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
5095         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
5096         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
5097         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
5098         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
5099         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
5100         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
5101         spelling errors.
5102
5103         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
5104         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
5105         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
5106         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
5107         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
5108         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
5109         system.h, toplev.c: Fix spelling errors.
5110
5111 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5112
5113         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
5114
5115         * dwarf2out.c (reg_number): Abort if pseudo.
5116         (reg_loc_descriptor): Return 0 if pseudo.
5117         (is_based_loc): Return 0 if pseudo.
5118         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
5119         recursive calls.
5120         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
5121         (loc_descriptor): Return 0 if can't find location and handle 0
5122         return from recursive calls.
5123         (loc_descriptor_from_tree): Likewise.
5124         Fix handling of indirect.
5125         Also return 0 for PLACEHOLDER_EXPR.
5126         Clean up COMPONENT_REF cases.
5127         (add_AT_location_descriptor): Simplify, but handle 0 return from
5128         loc_descriptor.
5129         (add_const_value_attribute): Avoid shift count warning.
5130         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
5131         Set comp_unit_die as context if not in function.
5132
5133         * config/mips/mips-protos.h: Break up long lines.
5134         Remove needless #ifdef/#endif blocks.
5135         Don't declare functions declared in file made by genpreds or recog.h.
5136         * config/mips/mips.c (mips_output_function_prologue): TSIZE
5137         is now HOST_WIDE_INT; delete unneeded casts.
5138         * config/mips/mips.h: Don't use #elif.
5139
5140         * expr.c (stor_constructor_field): Always call adjust_address.
5141         Copy TARGET before changing its alias set.
5142         (store_field): Likewise, for TO_RTX.
5143         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
5144         replacement.
5145         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
5146         (find_placeholder): Return 0 if can't find object.
5147         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
5148         returns 0.
5149
5150 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
5151
5152         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
5153
5154 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
5155
5156         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
5157         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
5158         (merge_blocks): Properly udpate life after making edge nonfallthru.
5159         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
5160
5161 2001-10-26  Kazu Hirata  <kazu@hxi.com>
5162
5163         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
5164
5165 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5166
5167         * c-typeck.c (convert_arguments): When comparing for enumeral
5168         type equality, use TYPE_MAIN_VARIANT.
5169         * gcc.dg/Wconversion.c: New tests.
5170
5171 2001-10-26  Kazu Hirata  <kazu@hxi.com>
5172
5173         * s390/s390.c: Fix comment typos.
5174         * s390/s390.h: Likewise.
5175         * s390/s390.md: Likewise.
5176
5177 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
5178
5179         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
5180         (walk_tree): Use it for tail calls where appropriate.
5181
5182 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
5183
5184         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
5185         non-local label_refs.
5186
5187 2001-10-26  Kazu Hirata  <kazu@hxi.com>
5188
5189         * config/h8300/h8300.md (4 anonymous patterns): New.
5190
5191 2001-10-26  Kazu Hirata  <kazu@hxi.com>
5192
5193         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
5194         algorithm through the shift_info structure.
5195         (emit_a_shift): Update the use of get_shift_alg.
5196
5197 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
5198
5199         * sched-rgn.c: Remove bitset typedef.
5200         Change bitset to sbitmap in prototypes / variable types.
5201         Remove bbset_size.
5202         Remove edgeset_bits.
5203         Remove edgeset_size.
5204         s/BITSET_ADD/SET_BIT/g
5205         s/BITSET_INVERT/sbitmap_ones/g
5206         s/BITSET_INTER/sbitmap_a_and_b/g
5207         s/BITSET_UNION/sbitmap_a_or_b/g
5208         s/BITSET_DIFFER/sbitmap_difference/g
5209         s/bitset_member/TEST_BIT/g
5210         (BITSET_*): Removed.
5211         (bitset_member): Removed.
5212         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
5213         EXECUTE_IF_SET_IN_SBITMAP.
5214         (split_edges): Rewrite, use sbitmap functions instead of bitset
5215         operations.
5216         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
5217
5218 2001-10-26  Andreas Schwab  <schwab@suse.de>
5219
5220         * reload1.c (emit_input_reload_insns): Fix parens in last
5221         (undocumented) change that was supposed to change only whitespace.
5222
5223 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5224
5225         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
5226
5227         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
5228         ASM_OPERANDS.
5229
5230 2001-10-26  Andreas Jaeger  <aj@suse.de>
5231
5232         * flow.c (clear_log_links): Remove unused variable.
5233         * cfgcleanup.c (cleanup_cfg): Likewise.
5234
5235 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
5236
5237         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
5238         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
5239
5240 2001-10-26  Richard Henderson  <rth@redhat.com>
5241
5242         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
5243         rename PV_REG to R27_REG.
5244         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
5245         (REG_CLASS_FROM_LETTER): Update.
5246         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
5247         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
5248         (udivsi3, modsi3, umodsi3): Likewise.
5249         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
5250
5251 2001-10-26  Richard Henderson  <rth@redhat.com>
5252
5253         * cfg.c (clear_aux_for_blocks): Split out of ...
5254         (free_aux_for_blocks): here.
5255         (clear_aux_for_edges): Split from ...
5256         (free_aux_for_edges): here.
5257         * basic-block.h: Declare them.
5258         * lcm.c (compute_antinout_edge): Use them.
5259         (compute_laterin, compute_available, compute_nearerout): Likewise.
5260         (optimize_mode_switching): Likewise.
5261
5262 2001-10-26  Richard Henderson  <rth@redhat.com>
5263
5264         * Makefile.in (unstage*): Remove as, ld, collect-ld before
5265         moving everything back to the main build directory.
5266
5267 2001-10-26  Christopher Faylor  <cgf@redhat.com>
5268
5269         * config/i386/cygwin.h: Search target specific include directory, if
5270         appropriate.
5271
5272 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5273
5274         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
5275         of macro guards. Fix #endif comment.
5276
5277         * output.h (default_exception_section, default_eh_frame_section):
5278         Move prototypes outside of macro guard.
5279
5280         * crtstuff.c: Fix #endif comment.
5281
5282 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
5283
5284         * doc/md.texi (movMM): Clarify semantics of storing into a
5285         non-paradoxical SUBREG.
5286
5287 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
5288
5289         * langhooks.c (lang_hook_default_clear_binding_stack): New.
5290         (lang_hook_default_get_alias_set): Move next to other alias
5291         hooks.
5292         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
5293         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
5294         (LANG_HOOKS_INITIALIZER): Add it.
5295         * toplev.h (struct lang_hooks): Add clear_binding_stack.
5296         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
5297         instead of a loop calling poplevel.
5298
5299 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
5300
5301         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
5302         occurrences of #elif with #if...#endif.
5303
5304 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5305
5306         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
5307
5308 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5309
5310         * alias.c (can_address_p): No longer static.
5311         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
5312         Return 0 if all parameters are default values.
5313         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
5314         (adjust_address_1): Try harder to compute a size.
5315         * expr.c (expand_assignment, store_constructor): If can't address,
5316         set MEM_KEEP_ALIAS_SET_P.
5317         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
5318         (store_field): Likewise.
5319         (store_constructor): Simplify call to store_constructor_field.
5320         * expr.h (can_address_p): New declaration.
5321         * gensupport.c (gen_rtx_CONST_INT): New function.
5322         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
5323         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
5324         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
5325
5326         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
5327
5328 2001-10-24  Christopher Faylor  <cgf@redhat.com>
5329
5330         * config/i386/cygwin.h: Use proper path for mingw crt files when
5331         -mno-cygwin.
5332
5333 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5334
5335         * dwarf2out.c (file_info_cmp): Always return consistent results.
5336
5337 2001-10-24  Roger Sayle <roger@eyesopen.com>
5338
5339         * stmt.c (expand_end_case): Index jumptables from zero for
5340         suitably small values of minval.
5341
5342 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
5343
5344         * stor-layout.c (place_union_field): If any field was aligned with
5345         attribute aligned, set record type's TYPE_USER_ALIGN.
5346         (place_field): Likewise.
5347         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
5348         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
5349
5350 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
5351
5352         * c-common.h (struct c_common_identifier): Remove rid_code field.
5353         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
5354
5355         * c-typeck.c (constructor_designated): New local flag.
5356         (struct constructor_stack): Add "designated" field to match.
5357         (start_init): Clear it.
5358         (really_start_incremental_init, push_init_level): Push and
5359         clear it.
5360         (pop_init_level): Pop it.
5361         (set_designator): Set it.
5362
5363         (pop_init_level): Suppress "missing initializer" warnings if
5364         constructor_designated is true.
5365         (process_init_element): Suppress warning about union
5366         initialization under traditional C, if constructor_designated
5367         is true.
5368
5369 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5370
5371         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
5372         change.
5373
5374 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
5375
5376         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
5377
5378 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
5379
5380         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
5381         the node was already a set to a constant.
5382
5383 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5384
5385         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
5386         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
5387
5388 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5389
5390         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
5391         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
5392         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
5393         * s390.c (s390_final_chunkify): Don't use string concatenation.
5394         (s390_function_prologue, s390_function_epilogue): Const-ify.
5395         * s390.h (FUNCTION_PROFILER): Remove unused variable.
5396
5397 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
5398
5399         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
5400         prototypes.
5401
5402 2001-10-23  Stan Shebs  <shebs@apple.com>
5403
5404         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
5405         -traditional-cpp in first-stage compilation.
5406
5407 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5408
5409         * gensupport.c (target_flags): Add.
5410
5411 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
5412
5413         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
5414         if needed.
5415         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
5416         * except.c (expand_builtin_frob_return_addr): Likewise.
5417         (expand_builtin_eh_return): Likewise.
5418         * stmt.c (expand_computed_goto): Likewise.
5419         * explow.c (memory_address): Likewise.
5420         (allocate_dynamic_stack_space): Clean up predicate testing.
5421         (probe_stack_range): Convert SIZE to Pmode.
5422         * calls.c (rtx_for_function_call): Only call convert_memory_address
5423         if needed.
5424         Pass function call operand as ptr_mode, not Pmode.
5425         * expr.c (expand_assignment): Clean up calls to convert_memory
5426         address by only doing so when needed and making offsets Pmode.
5427         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
5428         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
5429         is in Pmode, not ptr_mode.
5430
5431 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5432
5433         * darwin-protos.h (constructor_section, destructor_section,
5434         mod_init_section, mod_term_section): Prototype.
5435         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
5436         Const-ify.
5437         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
5438         Likewise.
5439         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
5440         objc_section_init declaration.
5441         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
5442         (objc_section_init, try_section_alias): Make static.
5443         (alias_section): Make static and hide unused function.
5444         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
5445
5446 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5447
5448         * alias.c (can_address_p): Compnonents are not addressable if
5449         the containing type has alias set 0.
5450         (get_alias_set): Rework to use STRIP_NOPS.
5451         Only call front-end routine on object, type, or object with
5452         NOPs stripped, not inner values.
5453         Use language hook to call front-end routine.
5454         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
5455         (expand_builtin_apply): Call set_mem_align on MEMs we make.
5456         Don't pass alignment to emit_block_move.
5457         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
5458         (expand_builtin_memset): Likewise, but for clear_storage.
5459         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
5460         and remove C++ specific parts.
5461         * c-common.h (c_common_get_alias_set): Add declaration.
5462         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
5463         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
5464         (save_fixed_argument_area): Call set_mem_align.
5465         Remove alignment in call to emit_block_move.
5466         (emit_library_call_value_1, store_one_arg): Likewise.
5467         (target_for_arg): Remove; disabled long ago.
5468         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
5469         once and similar cleanups.
5470         (offset_address): Use proper introductory comment.
5471         * expr.c (emit_block_move): Use alignment from that of MEM args, not
5472         from explicit operand; all callers changed.
5473         (clear_storage): Likewise.
5474         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
5475         (store_field): Remove kludge on alias set used for to_rtx.
5476         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
5477         (expand_expr_unaligned): Call set_mem_attributes instead of
5478         set_mem_alias_set.
5479         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
5480         * function.c (assign_stack_temp_for_type): Set MEM alignment.
5481         (expand_function_end): Track MEM attributes of trampolines.
5482         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
5483         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
5484         attributes from original.
5485         * langhooks.c (lang_hook_default_get_alias_set): New function.
5486         (hook_get_alias_set_0): New function.
5487         * langhooks.h (hook_get_alias_set_0): New declaration.
5488         (lang_hook_default_get_alias_set): Likewise.
5489         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
5490         * reload1.c (alter_reg): Use adjust_address_nv.
5491         * rtl.c (get_mode_alignment): Moved to here.
5492         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
5493         change default if unknown from 1 to BITS_PER_UNIT.
5494         * stor-layout.c (get_mode_alignment): Remove from here.
5495         * toplev.h (struct lang_hoks): Add get_alias_set field.
5496         * tree.h (lang_get_alias_set): Delete declaration.
5497         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
5498         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
5499         (ix86_va_arg): Likewise.
5500         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
5501         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
5502         * config/sparc/sparc.c (sparc_va_arg): Likewise.
5503         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
5504         (expand_block_move_mem): Remove dead code.
5505
5506 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5507
5508         * c-common.c (warn_div_by_zero): New.
5509         * c-common.h (warn_div_by_zero): New.
5510         * c-decl.c (c_decode_option): Take it on the command line.
5511         * c-typeck.c (build_binary_op): Warn about division by zero.
5512         * doc/invoke.texi: Document the new command line option, fix
5513         documentation of -Wmultichar.
5514         * testsuite/gcc.dg/divbyzero.c: New tests.
5515         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
5516
5517 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
5518
5519         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
5520
5521         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
5522         to avoid update_life_info call.
5523         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
5524         * cfgcleanup.c (bb_flags): New enum.
5525         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
5526         (notice_new_block, update_forwarder_flag): New functions.
5527         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
5528         (try_forward_edges): Likewise; update flags.
5529         (merge_blocks): Likewise.
5530         (outgoing_edges_match): Likewise.
5531         (try_crossjump_to_edge): Likewise.
5532         (try_optimize_cfg): Likewise; initialize and clear the flags;
5533         recompute life info if needed.
5534         (cleanup_cfg): No need to clear aux pointers.
5535
5536 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
5537
5538         * config/i386/i386.c (override_options): Default to minimum
5539         stack alignment when optimizing for code size.
5540         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
5541         change.
5542
5543         * config/i386/i386.c (override_options): Set upper limit of
5544         -mpreferred-stack-boundary to 12.
5545
5546 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
5547
5548         * recog.c (peephole2_optimize): Add default case to switch.
5549
5550 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5551
5552         * doc/gcc.texi (Sending Patches): Remove.
5553
5554 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
5555
5556         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
5557         fields when comparing.
5558
5559 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5560
5561         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
5562         * arm.c (HOST_INT, HOST_UINT): Likewise.
5563
5564 2001-10-22  Stan Shebs  <shebs@apple.com>
5565
5566         * config/darwin-protos.h (darwin_exception_section): Declare.
5567         (darwin_eh_frame_section): Declare.
5568
5569 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
5570
5571         * i386.md (movti_rex64): Fix mode.
5572
5573 2001-10-22  Stan Shebs  <shebs@apple.com>
5574
5575         * target.h (struct gcc_target): Add asm_out.exception_section,
5576         asm_out.eh_frame_section.
5577         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
5578         (TARGET_ASM_EH_FRAME_SECTION): New.
5579         (TARGET_INITIALIZER): Update.
5580         * output.h (default_exception_section): Declare.
5581         (default_eh_frame_section): Declare.
5582         * dwarf2out.c: Include target.h.
5583         (output_call_frame_info): Call target hook for eh frames.
5584         (default_eh_frame_section): New function.
5585         * except.c: Include target.h.
5586         (output_function_exception_table): Call target hook for exception
5587         section.
5588         * varasm.c (default_exception_section): Rename from
5589         exception_section, remove EXCEPTION_SECTION macro.
5590
5591         * config/darwin.h (darwin_eh_frame_section): New function.
5592         (EXCEPTION_SECTION): Remove.
5593         (TARGET_ASM_EXCEPTION_SECTION): Define.
5594         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
5595         (nextstep_exception_section): New function.
5596         (nextstep_eh_frame_section): New function.
5597         (TARGET_ASM_EXCEPTION_SECTION): Define.
5598         (TARGET_ASM_EH_FRAME_SECTION): Define.
5599
5600         * config/pa/som.h (EXCEPTION_SECTION): Remove.
5601         (TARGET_ASM_EXCEPTION_SECTION): Define.
5602         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
5603         (EXCEPTION_SECTION): Remove.
5604         (TARGET_ASM_EXCEPTION_SECTION): Define.
5605         * config/stormy16/stormy16.h: Remove comments referencing
5606         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
5607
5608         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
5609         TARGET_ASM_EH_FRAME_SECTION.
5610
5611 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
5612
5613         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
5614         terms.
5615
5616         * c-format.c: Fix spelling typo in comment.
5617
5618         * sched-int.h: Fix typo in GCC preamble.
5619
5620 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5621
5622         PR debug/4252
5623         * doc/invoke.texi: Remove references to -fdump-translation-unit.
5624
5625 2001-10-22  Richard Henderson  <rth@redhat.com>
5626
5627         * config/i386/i386.c (ix86_expand_clear): New.
5628         * config/i386/i386-protos.h: Declare it.
5629         * config/i386/i386.md (setcc peep2s): Use it.
5630         (movsi_xor): Unexport.
5631
5632 2001-10-22  Richard Henderson  <rth@redhat.com>
5633
5634         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
5635         free_EXPR_LIST_list for LOG_LINKS.
5636
5637 2001-10-21  Robert Lipe  <robertlipe@usa.net>
5638
5639         * config/i386/i386.c (sco_asm_named_section): Delete.
5640         (sco_asm_out_constructor): Delete.
5641         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
5642         (ASM_OUTPUT_DOUBLE_INT): Likewise.
5643         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
5644         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
5645         (EXCEPTION_SECTION): Delete EH scn renaming hack.
5646
5647 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5648
5649         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
5650         and/or fold extra calls into fewer ones.
5651         * collect2.c (dump_file): Likewise.
5652         * cppexp.c (parse_number): Likewise.
5653         * cpplex.c (_cpp_lex_direct): Likewise.
5654         * final.c (output_asm_insn, asm_fprintf): Likewise.
5655         * fix-header.c (inf_scan_ident, main): Likewise.
5656         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
5657         Likewise.
5658         * fold-const.c (real_hex_to_f): Likewise.
5659         * gen-protos.c (parse_fn_proto): Likewise.
5660         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
5661         * genrecog.c (change_state, write_action): Likewise.
5662         * gensupport.c (shift_output_template): Likewise.
5663         * local-alloc.c (requires_inout): Likewise.
5664         * mips-tfile.c (IS_ASM_IDENT): Likewise.
5665         * protoize.c (is_id_char, main): Likewise.
5666         * real.c (asctoeg): Likewise.
5667         * recog.c (asm_operand_ok): Likewise.
5668         * reload.c (find_reloads): Likewise.
5669         * scan.c (scan_identget_token): Likewise.
5670         * sched-vis.c (print_value): Likewise.
5671         * stringpool.c (ggc_alloc_string): Likewise.
5672         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
5673         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
5674         * tradcpp.c (rescan): Likewise.
5675         * tree.c (clean_symbol_name): Likewise.
5676         * varasm.c (decode_reg_name): Likewise.
5677
5678         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
5679         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
5680         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
5681         * m88k.c (output_ascii): Likewise.
5682         * m88k.h (OVERRIDE_OPTIONS): Likewise.
5683         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
5684         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
5685         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
5686
5687 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5688
5689         * langhooks.c (lang_hook_default_do_nothing,
5690         lang_hook_default_decode_option): New defaults.
5691         * langhooks.h: Make hooks unconditional and non-NULL.
5692         * toplev.c (compile_file, toplev_main): Update.
5693         * toplev.h: Update comments.
5694         * objc/objc-act.c (lang_hooks): Update to new paradigm.
5695
5696 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5697
5698         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
5699
5700         * system.h (IN_RANGE): New macro.
5701
5702 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
5703
5704         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
5705         INTLDEPS variable, which does not include $LIBICONV.
5706         * Makefile.in: Use INTLDEPS in LIBDEPS.
5707         * configure: Regenerate.
5708
5709 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5710
5711         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
5712         * cpplex.c (lex_percent, lex_dot): Remove.
5713         (get_effective_char, skip_block_comment, skip_line_comment,
5714         parse_identifier_slow, parse_number, parse_string, save_comment,
5715         _cpp_lex_direct): Update to do lookback freely.
5716         (IF_NEXT_IS, BACKUP): New macros.
5717         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
5718         * cppmacro.c (paste_tokens): Update.
5719
5720 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
5721
5722         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
5723
5724 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
5725
5726         * reload1.c (reload): Check CONSTANT_P before calling
5727         LEGITIMATE_PIC_OPERAND_P.
5728         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
5729         workaround of 2001-10-13.
5730
5731 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
5732
5733         * i386.c (split_di): Handle splitting of DFmode.
5734
5735 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5736
5737         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
5738         (adjust_address_1, offset_address): Likewise.
5739
5740         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
5741         (output_asm_insn): Call it for each line output.
5742         Don't record an operand more than once.
5743
5744         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
5745         * main.c: Include config.h and system.h, but not ansidecl.h.
5746         * Makefile.in (main.o): Update accordingly.
5747
5748 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
5749
5750         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
5751
5752 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
5753
5754         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
5755         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
5756         Break out from ...
5757         (find_sub_basic_blocks): ... here;
5758         (find_many_sub_basic_blocks): New.
5759         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
5760
5761         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
5762
5763         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
5764
5765         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
5766
5767         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
5768         * flow.c (update_life_info): Measure time.
5769         * c-decl.c: Include timevar.h
5770         (c_expand_body): Measure time.
5771         * toplev.c (rest_of_compilation): Measure time of mode switching
5772         separately.
5773         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
5774
5775         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
5776         (lang_independent_options): Add asynchronous-unwind-tables
5777         (toplev_main): flag_asynchronous_unwind_tables implies
5778         flag_unwind_tables.
5779         * flags.h (flag_asynchronous_unwind_tables): Declare.
5780         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
5781         flag_asynchronous_unwind_tables.
5782         (output_call_frame_info): Likewise.
5783         * invoke.texi (-fasynchronous-unwind-tables): Document.
5784         * i386.c (optimization_options): Enable
5785         flag_asynchronous_unwind_tables.
5786
5787         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
5788         * i386.md (s* expanders): Destination is QImode.
5789
5790         * toplev.c (rest_of_compilation): Do not call clear_log_links.
5791         * rtl.h (clear_log_links): Kill.
5792         * flow.c (clear_log_links): Make static; accept blocks parameter;
5793         do no clear life info.
5794         (update_life_info): Call clear_log_links.
5795
5796         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
5797
5798 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5799
5800         * cpplex.c (handle_newline, skip_escaped_newlines,
5801         get_effective_char, skip_block_comment, skip_line_comment,
5802         parse_identifier_slow, parse_number, parse_string,
5803         _cpp_lex_direct): Update to do more stepping back.
5804         (trigraph_ok): Similarly.  Rename trigraph_p.
5805         (SAVE_STATE, RESTORE_STATE): Remove.
5806         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
5807
5808         * cpplib.c (destringize): Rename destringize_and_run, and
5809         call run_directive directly.
5810         (_cpp_do__Pragma): Simplify.
5811
5812 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5813
5814         * pe.c (arm_pe_unique_section): Const-ify.
5815         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
5816         (switch_to_section): Add static prototype.
5817
5818         * output.h (drectve_section): Prototype.
5819
5820 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5821
5822         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
5823         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
5824         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
5825         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
5826         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
5827         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
5828         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
5829         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
5830         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
5831         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
5832         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
5833         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
5834         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
5835         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
5836         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
5837         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
5838         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
5839         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
5840         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
5841         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
5842         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
5843         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
5844         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
5845         cris-*-none, cris-*-linux*: Update ${tmfile} list.
5846         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
5847         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
5848         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
5849         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
5850         v850-*-*): Delete superflous ${cpu_type} setting.
5851         * config/linux.h: Delete svr4.h include.
5852         (SET_ASM_OP): Delete.
5853         * config/netware.h (INT_ASM_OP): Undef before define.
5854         * config/ptx4.h: Delete elfos.h include.
5855         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
5856         * config/svr4.h: Delete elfos.h include. Update commentary.
5857         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
5858         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
5859         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
5860         config/v850/v850.h: Delete svr4.h include.
5861         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
5862         config/m68k/m68kv4.h, config/m88k/sysv4.h,
5863         config/sparc/sysv4.h: Update includes.
5864         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
5865         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
5866         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
5867         config/m88k/dguxbcs.h: Delete includes.
5868         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
5869         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
5870         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
5871         it.
5872         * config/m88k/dgux.h: Delete include.
5873         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
5874         defining it.
5875         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
5876         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
5877         * config/sh/elf.h: Update include.
5878         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
5879         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
5880
5881 2001-10-19  Catherine Moore  <clm@redhat.com>
5882
5883         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
5884         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
5885         base and count fields.
5886         (stormy16_expand_builtin_va_start):  last_reg_count changed to
5887         size_of_reg_args.  Use count + size in first comparison.
5888
5889 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5890
5891         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
5892         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
5893         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
5894         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
5895         Set alignment from type if INDIRECT_REF.
5896         (adjust_address_1, offset_address): Simplify alignment compuitation.
5897         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
5898         here; done by set_mem_attributes.
5899
5900 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5901
5902         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
5903         * arm-protos.h (rdata_section, zero_init_section, common_section):
5904         Prototype.
5905         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
5906         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
5907         traditional mode stringification.
5908         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
5909         in macros controling its use.
5910         * rtlanal.c: Include tm_p.h.
5911         * varasm.c (asm_output_aligned_bss): Mark parameter with
5912         ATTRIBUTE_UNUSED.
5913         (assemble_constant_align, assemble_start_function, assemble_align,
5914         assemble_variable, assemble_trampoline_template,
5915         output_constant_def_contents): Wrap potentially empty if-stmt body
5916         in brackets.
5917
5918 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5919
5920         * a29k-protos.h (literal_section): Prototype.
5921         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
5922         * a29k.md: Ensure function pointers are prototyped.
5923         * genattrtab.c (write_eligible_delay): Mark parameter with
5924         ATTRIBUTE_UNUSED.
5925
5926 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5927
5928         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
5929         * 1750a.c (print_operand): Fix format specifier warning.
5930         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
5931         * 1750a.md: Likewise.
5932         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
5933         * genemit.c (output_add_clobbers): Mark parameter with
5934         ATTRIBUTE_UNUSED.
5935         * genrecog.c (write_subroutine): Likewise.
5936         * integrate.c (expand_inline_function): Delete unused variable.
5937         * varasm.c (remove_from_pending_weak_list): Wrap with
5938         ASM_WEAKEN_LABEL.
5939
5940 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
5941
5942         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
5943         field is different to previous argument's neg field.
5944
5945         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
5946
5947 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5948
5949         * final.c (get_decl_from_op): New function.
5950         (output_asm_insn): Call it; write "*" when item with decl is address.
5951
5952 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
5953
5954         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
5955         about 64-bit support from the 3.0_branch version.
5956
5957 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
5958
5959         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
5960         USE_INCLUDED_LIBINTL when appropriate.
5961         * configure, config.in: Regenerate.
5962         * Makefile.in (datadir): Set to @datadir@.
5963         (intl.o): Also depend on $(CONFIG_H) and system.h.
5964
5965         * intl.c: Factor out common gettext initialization sequence.
5966         (gcc_init_libintl):  New function.
5967         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
5968         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
5969         off NLS.  Add multiple include guard.  No need to #ifdef-guard
5970         an #undef.  Prototype gcc_init_libintl here.
5971
5972         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
5973         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
5974         Use gcc_init_libintl.
5975
5976 2001-10-19  Catherine Moore  <clm@redhat.com>
5977
5978         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
5979
5980         * config/stormy16/stormy16.c (stormy16_split_move):  Make
5981         sure that REG_INC notes are present for auto_inc operands.
5982
5983 2001-10-19  Andreas Jaeger  <aj@suse.de>
5984
5985         * configure: Regenerated.
5986         * configure.in: Add x86_64 to switch statements.
5987
5988 2001-10-18  Richard Henderson  <rth@redhat.com>
5989
5990         * config/alpha/alpha.md (sibcall_osf_1): Load destination
5991         address into $27 explicitly.
5992         (sibcall_value_osf_1): Likewise.
5993
5994 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5995
5996         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
5997         (offset_address): New function.
5998         (free_emit_status): Free regno_decl.
5999         (init_emit): Pass proper number of elements to xcalloc.
6000         Allocate regno_decl.
6001         (mark_emit_status): Mark regno_decl values.
6002         * expr.c (highest_pow2_factor): New function.
6003         (expand_assigment): Use it and offset_address.
6004         Properly handle ptr_mode vs. Pmode in offset calculation.
6005         (store_constructor, expand_expr_unaligned): Likewise.
6006         (expand_expr, case COMPONENT_EXPR): Likewise.
6007         * expr.h (offset_address): New decl.
6008         * function.h (struct emit_status): Add regno_decl.
6009         (REGNO_DECL): New macro.
6010         * final.c (output_asm_name): Move in file and don't conditionalize
6011         on flag_print_asm_name.
6012         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
6013         Output names of operands, if known.
6014         * function.c (assign_parms): Set REGNO_DECL.
6015         * integrate.c (integrate_decl_tree): Likewise.
6016         * stmt.c (expand_decl): Likewise.
6017         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
6018
6019 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
6020
6021         * attribs.c (handle_noinline_attribute): New function.
6022         (handle_used_attribute): Likewise.
6023         (c_common_attribute_table): Added noinline and used.
6024         * doc/extend.texi (Function Attributes): Document them.
6025         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
6026         Warn when merging inline with attribute noinline.
6027         (start_decl, start_function): Warn if inline and attribute
6028         noinline appear in the same declaration.
6029
6030 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6031
6032         * config.gcc: Update c4x and i370 for C front end-specific
6033         dependencies.
6034         * config/c4x/c4x-c.c: New.
6035         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
6036         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
6037         New declarations.
6038         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
6039         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
6040         Make extern.
6041         (c4x_init_pragma): Remove.
6042         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
6043         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
6044         c4x_pr_ignored): Move to c4x-c.c.
6045         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
6046         * config/c4x/t-c4x: Update.
6047         * config/i370/i370-c.c: New.
6048         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
6049         (i370_pr_map): Move to i370-c.c.
6050         * config/i370/t-i370: New.
6051
6052         * doc/tm.texi: Update.
6053
6054 2001-10-17  Stan Shebs  <shebs@apple.com>
6055
6056         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
6057         typo fixes throughout.
6058         (machopic_output_stub): Remove some dead code.
6059
6060 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
6061
6062         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
6063         leak.
6064
6065 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6066
6067         * Makefile.in (print-rtl.o): Depend on TREE_H.
6068         * alias.c (get_alias_set): Make two passes over objects to first
6069         see if inner object is access via restricted pointer.
6070         Defer allocating alias set for restricted pointer until here.
6071         Call find_placeholder with second arg nonzero.
6072         Minor cleanups.
6073         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
6074         set for restricted pointer types.
6075         * emit-rtl.c (set_mem_attributes): Set more attributes.
6076         (set_mem_align, change_address, adjust_address_1): New functions.
6077         (change_address_1): Now static.
6078         (adjust_address, adjust_address_nv): Deleted.
6079         (replace_equiv_address): Call change_address_1.
6080         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
6081         (find_placeholder): Get starting point from PLIST arg.
6082         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
6083         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
6084         (adjust_address, adjust_address_nv): New macros.
6085         * print-rtl.c (tree.h): New include.
6086         (print_rtx, case MEM): Print all memory attributes.
6087
6088 2001-10-17  Richard Henderson  <rth@redhat.com>
6089
6090         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
6091
6092 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6093
6094         * c-tree.texi: Eliminate duplicated word.
6095         * cpp.texi: Likewise.
6096         * install.texi: Likewise.
6097         * invoke.texi: Likewise.
6098         * tm.texi: Likewise.
6099
6100 2001-10-17  Michael Collison  <collison@isisinc.net>
6101
6102         * dsp16xx.c: Fix comment formatting to match GNU standards.
6103         (dsp16xx_output_function_prologue): Change type of 'size'
6104         parameter from 'int' to HOST_WIDE_INT.
6105         (dsp16xx_output_function_epilogue): Change type of 'size'
6106         parameter from 'int' to HOST_WIDE_INT.
6107
6108 2001-10-16  Richard Henderson  <rth@redhat.com>
6109
6110         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
6111         * configure, config.in: Rebuild.
6112
6113         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
6114         (ix86_output_addr_diff_elt): New.
6115         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
6116         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6117         (JUMP_TABLES_IN_TEXT_SECTION): New.
6118         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
6119         * config/i386/i386-protos.h: Update.
6120
6121         * config/i386/386bsd.h, config/i386/beos-elf.h,
6122         config/i386/freebsd-aout.h, config/i386/freebsd.h,
6123         config/i386/i386-interix.h, config/i386/i386elf.h,
6124         config/i386/linux.h, config/i386/netbsd-elf.h,
6125         config/i386/netbsd.h, config/i386/openbsd.h,
6126         config/i386/ptx4-i.h, config/i386/rtemself.h,
6127         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
6128         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
6129
6130 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
6131
6132         * stmt.c (expand_asm_operands): Update commentary.
6133
6134 2001-10-16  Stan Shebs  <shebs@apple.com>
6135
6136         * config/darwin.h (GCC_NAME): Remove, no longer used.
6137         (NO_MATH_LIBRARY): Ditto.
6138         (MATH_LIBRARY): Define to emptiness.
6139         (DWARF2_DEBUGGING_INFO): Define.
6140         (PREFERRED_DEBUGGING_TYPE): Define.
6141         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
6142         (EXCEPTION_SECTION): Define.
6143         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6144         * config/darwin.c (darwin_encode_section_info): Handle case of
6145         DECL_INITIAL being error_mark_node.
6146
6147 2001-10-16  Richard Henderson  <rth@redhat.com>
6148
6149         * alpha.c (current_file_function_operand): Don't fail for profiling.
6150         (direct_call_operand): New.
6151         * alpha-protos.h: Declare it.
6152         * alpha.h (EXTRA_CONSTRAINT): Use it.
6153         (PREDICATE_CODES): Add it.
6154         (ASM_OUTPUT_MI_THUNK): Remove.
6155         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
6156         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
6157
6158 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
6159
6160         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
6161         (JUMP_TABLES_IN_TEXT_SECTION): Define.
6162
6163 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
6164
6165         * cfg.c (free_edge): Break out from ....
6166         (remove_edge): ... here.
6167         (clear_edges): Use free_edge.
6168
6169         * att.h (ASM_QUAD): Add comment.
6170         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
6171
6172 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
6173
6174         * i386.c (split_ti): New function.
6175         (ix86_split_to_parts): Support TImodes.
6176         * i386.h (VALID_INT_MODE_P): Add TImode.
6177         * i386.md (movdi splitter): Fix.
6178         (movti): Support 64bit integer registers.
6179         (movti_rex64): New function and splitter.
6180
6181         * i386.c (*_cost): Add movsx/movzx cost.
6182         * i386.h (struct processor_costs): Add movsx/movzx fields.
6183         (RTX_COSTS): Handle zero/sign extend + avoid believing that
6184         64bit operations require split on 64bit machine.
6185         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
6186
6187         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
6188         (ix86_expand_move): Avoid pushes of memory if size does not match;
6189         move long constants to register.
6190         (x86_initialize_trampoline): Fix mode.
6191         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
6192         Use ASM_QUAD on 64bit.
6193         * i386.md (test pattern): Disallow impossible constants.
6194         (tablejump PIC expander): Fix emitting of sum.
6195         (movdicc_rex64): Rename to movdicc.
6196         * linux64.h (LINK_SPEC): Add missing '%'.
6197
6198 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
6199
6200         * tree-inline.c (inlinable_function_p): Leave it up to the
6201         front-end to turn -finline-functions into DECL_INLINE set for all
6202         functions.
6203
6204 2001-10-16  Stan Shebs  <shebs@apple.com>
6205
6206         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
6207
6208 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
6209
6210         * recog.c: Formatting and comment typo fixes.
6211
6212         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
6213         version in single tree build.
6214         * configure: Regenerate.
6215
6216 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
6217
6218         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
6219         MODE arguments to gen_rtx and compare operand with const0_rtx.
6220
6221 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6222
6223         * system.h: Poison old unused target macros.
6224         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
6225         * config/stormy16/stormy16.c: Update references to obsolete macros.
6226         * config/stormy16/stormy16.h: Similarly.
6227         * config/stormy16/stormy16.md: Similarly.
6228         * config/cris/cris.h: Similarly.
6229
6230 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6231
6232         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
6233         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
6234         cpp_register_pragma): Update accordingly.
6235
6236 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6237
6238         * c-pragma.h (cpp_register_pragma_space): Remove.
6239         * cpplib.h (cpp_register_pragma_space): Remove.
6240         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
6241         (cpp_register_pragma_space): Remove.
6242         (cpp_register_pragma): Simplify using lookup_pragma_entry,
6243         add sanity checks.
6244         (do_pragma): Similarly.
6245         (_cpp_init_internal_pragmas): Don't register namespaces.
6246
6247         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
6248         Don't register namespaces.
6249         * cp/lex.c (init_cp_pragma): Similarly.
6250         * doc/tm.texi: Update.
6251
6252 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6253
6254         PR c/4157
6255         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
6256
6257 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
6258
6259         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
6260         add scheduling support.
6261         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
6262         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
6263         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
6264
6265
6266 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
6267
6268         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
6269         missing CONSTANT_P test in core GCC.
6270
6271 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
6272
6273         * cppmain.c (struct printer): New member source.
6274         (scan_translation_unit): Fix spacing at start of lines.
6275         (cb_line_change): Update.
6276
6277         * gcc.dg/cpp/spacing2.c: New test.
6278
6279 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
6280
6281         * config/cris/arit.c: Use __builtin_labs, not abs.
6282
6283         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
6284
6285         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
6286         misplaced sprintf and fprintf argument.
6287
6288 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
6289
6290         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
6291         * configure.in, Makefile.in: Take out obsolete check-po logic.
6292         * configure, config.in: Regenerate.
6293
6294 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
6295
6296         * objc/objc-act.c (finish_objc): Correct precondition for emitting
6297         symtab declarations.
6298
6299 2001-10-12  Stan Shebs  <shebs@apple.com>
6300
6301         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
6302         declarations of arguments and local variables.
6303
6304 2001-10-12  Christopher Faylor  <cgf@redhat.com>
6305
6306         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
6307         ENDFILE_SPEC definition.
6308
6309 2001-10-12  Kazu Hirata  <kazu@hxi.com>
6310
6311         * gthr-dce.h: Fix comment formatting.
6312         * gthr-posix.h: Likewise.
6313         * gthr-single.h: Likewise.
6314         * gthr-solaris.h: Likewise.
6315         * gthr-vxworks.h: Likewise.
6316         * gthr-win32.h: Likewise.
6317
6318 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
6319
6320         * final.c (output_asm_insn): Make sure assembly dialects are
6321         terminated, not nested.  Output `|' and `}' characters if they
6322         don't appear inside assembly dialect selection.
6323         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
6324         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
6325         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
6326         strsetsi_rex_1): Add {} braces.
6327
6328 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
6329
6330         * toplev.c (compile_file): Ignore return value from yyparse.
6331         Always pop any nested binding levels after yyparse returns.
6332
6333 2001-10-11  Richard Henderson  <rth@redhat.com>
6334
6335         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
6336
6337 2001-10-11  Richard Henderson  <rth@redhat.com>
6338
6339         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
6340         fall back to add_AT_long_long for large CONST_INT.
6341
6342 2001-10-11  Richard Henderson  <rth@redhat.com>
6343
6344         * config/i386/i386.md (setcc splitters): Add four splitters to
6345         simplify compound compares that simplify_comparison can't handle.
6346
6347 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
6348
6349         * cpplex.c (digraph_spellings, token_spellings): Make static.
6350
6351 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6352
6353         * unroll.c (loop_iterations): Fixup last patch.
6354
6355 2001-10-11  Richard Henderson  <rth@redhat.com>
6356
6357         * rtl.h (REG_VTABLE_REF): New.
6358         * rtl.c (reg_note_name): Add it.
6359         * combine.c (distribute_notes): Handle it.
6360         * final.c (final_scan_insn): Handle it.
6361         * tree.def (VTABLE_REF): New.
6362         * expr.c (expand_expr): Handle it.
6363         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
6364         * output.h: Declare them.
6365
6366 2001-10-11  Richard Henderson  <rth@redhat.com>
6367
6368         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
6369         for a DECL_INITIAL.
6370
6371 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
6372
6373         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
6374         available in 64-bit mode.
6375
6376 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
6377
6378         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
6379         cris-*-linux* cases.
6380         * config/cris/cris-protos.h: New file.
6381         * config/cris/cris.c: New file.
6382         * config/cris/cris.h: New file.
6383         * config/cris/cris.md: New file.
6384         * config/cris/linux.h: New file.
6385         * config/cris/aout.h: New file.
6386         * config/cris/arit.c: New file.
6387         * config/cris/cris_abi_symbol.c: New file.
6388         * config/cris/mulsi3.asm: New file.
6389         * config/cris/t-aout: New file.
6390         * config/cris/t-cris: New file.
6391         * config/cris/t-elfmulti: New file.
6392         * config/cris/t-linux: New file.
6393         * doc/invoke.texi: Add CRIS options.
6394         * doc/install.texi (Specific): Add blurb for CRIS.
6395
6396 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
6397
6398         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
6399         before using it.
6400         * config/float/i32.h: Likewise.
6401         * config/float-i386.h: Likewise.
6402         * config/float-i64.h: Likewise.
6403         * config/float-m68k.h: Likewise.
6404         * config/float-sh.h: Likewise.
6405         * config/float-sparc.h: Likewise.
6406
6407 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
6408
6409         * doc/contrib.texi: Add note about CRIS port to my entry.
6410
6411 2001-10-11  Kazu Hirata  <kazu@hxi.com>
6412
6413         * basic-block.h: Fix formatting.
6414         * bitmap.h: Likewise.
6415         * cpplib.h: Likewise.
6416         * c-tree.h: Likewise.
6417         * diagnostic.h: Likewise.
6418         * flags.h: Likewise.
6419         * ggc.h: Likewise.
6420         * longlong.h: Likewise.
6421         * real.h: Likewise.
6422         * reload.h: Likewise.
6423         * rtl.h: Likewise.
6424         * tree.h: Likewise.
6425
6426 2001-10-10  Richard Henderson  <rth@redhat.com>
6427
6428         * c-parse.in (asm_operand): Allow named operands.
6429         * genconfig.c (max_recog_operands): Set to 29.
6430         * local-alloc.c (requires_inout): Skip multiple digits.
6431         * recog.c (asm_operand_ok): Likewise.
6432         (preprocess_constraints): Use strtoul for matching constraints.
6433         (constrain_operands): Likewise.
6434         * regmove.c (find_matches): Likewise.
6435         * reload.c (find_reloads): Likewise.
6436         * stmt.c (parse_output_constraint): Don't reject in-out
6437         constraint on operands > 9.  Reject '[' in constraint.
6438         (expand_asm_operands): Handle named operands.  Use strtoul
6439         for matching constraints.
6440         (check_operand_nalternatives): Split out from expand_asm_operands.
6441         (check_unique_operand_names): New.
6442         (resolve_operand_names, resolve_operand_name_1): New.
6443
6444         * doc/extend.texi (Extended Asm): Document named operands.
6445         * doc/md.texi (Simple Constraints): Document matching constraints
6446         on operands > 9.
6447
6448 2001-10-10  Richard Henderson  <rth@redhat.com>
6449
6450         * combine.c (try_combine): Handle a SEQUENCE of one insn.
6451
6452         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
6453         (jcc splitters): Add two splitters to simplify compound compares
6454         that simplify_comparison can't handle.
6455
6456 2001-10-10  Richard Henderson  <rth@redhat.com>
6457
6458         * langhooks.c: Include langhooks.h.
6459         * Makefile.in (langhooks.o): Depend on it.
6460
6461 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
6462
6463         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
6464         should not be considered as a no-op.
6465         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
6466
6467 2001-10-10  Stan Shebs  <shebs@apple.com>
6468
6469         * alias.c: Remove uses of "register" specifier in declarations
6470         of arguments and local variables.
6471         * c-common.c: Ditto.
6472         * c-convert.c: Ditto.
6473         * c-decl.c: Ditto.
6474         * c-format.c: Ditto.
6475         * c-semantics.c: Ditto.
6476         * c-typeck.c: Ditto.
6477         * caller-save.c: Ditto.
6478         * calls.c: Ditto.
6479         * cfg.c: Ditto.
6480         * cfgbuild.c: Ditto.
6481         * cfgrtl.c: Ditto.
6482         * collect2.c: Ditto.
6483         * combine.c: Ditto.
6484         * convert.c: Ditto.
6485         * cppexp.c: Ditto.
6486         * cppfiles.c: Ditto.
6487         * cse.c: Ditto.
6488         * dbxout.c: Ditto.
6489         * defaults.h: Ditto.
6490         * df.c: Ditto.
6491         * dwarf2out.c: Ditto.
6492         * dwarfout.c: Ditto.
6493         * emit-rtl.c: Ditto.
6494         * explow.c: Ditto.
6495         * expmed.c: Ditto.
6496         * expr.c: Ditto.
6497         * final.c: Ditto.
6498         * fix-header.c: Ditto.
6499         * floatlib.c: Ditto.
6500         * flow.c: Ditto.
6501         * fold-const.c: Ditto.
6502         * function.c: Ditto.
6503         * gcc.c: Ditto.
6504         * gcse.c: Ditto.
6505         * gen-protos.c: Ditto.
6506         * genattrtab.c: Ditto.
6507         * gencheck.c: Ditto.
6508         * genconfig.c: Ditto.
6509         * genemit.c: Ditto.
6510         * genextract.c: Ditto.
6511         * genflags.c: Ditto.
6512         * gengenrtl.c: Ditto.
6513         * genoutput.c: Ditto.
6514         * genpeep.c: Ditto.
6515         * genrecog.c: Ditto.
6516         * gensupport.c: Ditto.
6517         * global.c: Ditto.
6518         * gmon.c: Ditto.
6519         * graph.c: Ditto.
6520         * haifa-sched.c: Ditto.
6521         * hard-reg-set.h: Ditto.
6522         * hash.c: Ditto.
6523         * integrate.c: Ditto.
6524         * jump.c: Ditto.
6525         * lists.c: Ditto.
6526         * local-alloc.c: Ditto.
6527         * loop.c: Ditto.
6528         * mips-tdump.c: Ditto.
6529         * mips-tfile.c: Ditto.
6530         * optabs.c: Ditto.
6531         * prefix.c: Ditto.
6532         * print-rtl.c: Ditto.
6533         * read-rtl.c: Ditto.
6534         * real.c: Ditto.
6535         * recog.c: Ditto.
6536         * reg-stack.c: Ditto.
6537         * regclass.c: Ditto.
6538         * regmove.c: Ditto.
6539         * reload.c: Ditto.
6540         * reload1.c: Ditto.
6541         * reorg.c: Ditto.
6542         * resource.c: Ditto.
6543         * rtl.c: Ditto.
6544         * rtlanal.c: Ditto.
6545         * scan.c: Ditto.
6546         * sched-deps.c: Ditto.
6547         * sched-rgn.c: Ditto.
6548         * sdbout.c: Ditto.
6549         * simplify-rtx.c: Ditto.
6550         * stmt.c: Ditto.
6551         * stor-layout.c: Ditto.
6552         * toplev.c: Ditto.
6553         * tradcif.y: Ditto.
6554         * tradcpp.c: Ditto.
6555         * tree.c: Ditto.
6556         * unroll.c: Ditto.
6557         * varasm.c: Ditto.
6558         * xcoffout.c: Ditto.
6559
6560 2001-10-10  Richard Henderson  <rth@redhat.com>
6561
6562         * rtl.h (can_reverse_comparison_p): Remove.
6563
6564 2001-10-10  Christopher Faylor <cgf@redhat.com>
6565
6566         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
6567         used.
6568
6569 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
6570
6571         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
6572         (Thanks to Chris Faylor for suggesting macro name).
6573         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
6574         WIN32 defines.
6575         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
6576         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
6577         (MATH_LIBRARY): Undef before definition.
6578         (OUTPUT_QUOTED_STRING): Likewise.
6579         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
6580
6581 2001-10-10  Richard Henderson  <rth@redhat.com>
6582
6583         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
6584         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
6585         a tristate comparison value.
6586         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
6587
6588 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6589
6590         PR c++/4512
6591         * unroll.c (loop_iterations): Ignore insns generated by loop
6592         unrolling.
6593
6594         * config.gcc (mips*-*-gnu*): Delete support.
6595         * config/mips/gnu.h: Remove.
6596
6597 2001-10-10  Kazu Hirata  <kazu@hxi.com>
6598
6599         * calls.c: Fix formatting.
6600         * c-decl.c: Likewise.
6601         * cfgcleanup.c: Likewise.
6602         * combine.c: Likewise.
6603         * cppfiles.c: Likewise.
6604         * cpplib.c: Likewise.
6605         * cppmacro.c: Likewise.
6606         * crtstuff.c: Likewise.
6607         * cse.c: Likewise.
6608         * dwarf2out.c: Likewise.
6609         * expmed.c: Likewise.
6610         * expr.c: Likewise.
6611         * fold-const.c: Likewise.
6612         * function.c: Likewise.
6613         * gcse.c: Likewise.
6614         * genattrtab.c: Likewise.
6615         * ggc-page.c: Likewise.
6616         * integrate.c: Likewise.
6617         * libgcc2.c: Likewise.
6618         * loop.c: Likewise.
6619         * optabs.c: Likewise.
6620         * profile.c: Likewise.
6621         * protoize.c: Likewise.
6622         * real.c: Likewise.
6623         * recog.c: Likewise.
6624         * reload1.c: Likewise.
6625         * reload.c: Likewise.
6626         * reorg.c: Likewise.
6627         * resource.c: Likewise.
6628         * sched-rgn.c: Likewise.
6629         * sdbout.c: Likewise.
6630         * stmt.c: Likewise.
6631         * toplev.c: Likewise.
6632         * varasm.c: Likewise.
6633
6634 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
6635
6636         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
6637         * Makefile.in (langhooks.o): Add dependencies.
6638
6639 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
6640
6641         * rs6000.c (rs6000_emit_load_toc_table): Don't
6642         strdup the toc label.
6643         (create_TOC_reference): Likewise.
6644
6645 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
6646
6647         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
6648         version default.
6649
6650 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
6651
6652         * config/i386/i386.c (ix86_attribute_table): Correct
6653         min_len, max_len fields for dllimport, dllexport and shared.
6654
6655 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
6656
6657         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
6658         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
6659         Consistently use "nonzero" instead of "non-zero".
6660
6661 2001-10-09  Kazu Hirata  <kazu@hxi.com>
6662
6663         * acconfig.h: Fix comment formatting.
6664         * c-dump.h: Likewise.
6665         * c-tree.h: Likewise.
6666         * conditions.h: Likewise.
6667         * expr.h: Likewise.
6668         * function.h: Likewise.
6669         * gthr.h: Likewise.
6670         * hwint.h: Likewise.
6671         * integrate.h: Likewise.
6672         * intl.h: Likewise.
6673         * loop.h: Likewise.
6674         * optabs.h: Likewise.
6675
6676 2001-10-09  Kazu Hirata  <kazu@hxi.com>
6677
6678         * c-common.h: Fix comment formatting.
6679         * c-dump.c: Likewise.
6680         * cfg.c: Likewise.
6681         * diagnostic.h: Likewise.
6682         * except.c: Likewise.
6683         * gcc.h: Likewise.
6684         * gcov-io.h: Likewise.
6685         * genattrtab.c: Likewise.
6686         * output.h: Likewise.
6687         * predict.h: Likewise.
6688         * reload1.c: Likewise.
6689         * reload.h: Likewise.
6690         * resource.h: Likewise.
6691         * scan.h: Likewise.
6692         * system.h: Likewise.
6693         * tree.h: Likewise.
6694         * tree-inline.c: Likewise.
6695         * tsystem.h: Likewise.
6696         * varasm.c: Likewise.
6697         * xcoffout.h: Likewise.
6698
6699 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
6700
6701         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
6702
6703 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
6704
6705         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
6706         config/i386/i386elf.h, config/i386/netbsd-elf.h,
6707         config/i386/netware.h, config/mcore/gfloat.h,
6708         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
6709         config/netware.h, gccbug.in: Update FSF address.
6710
6711 2001-10-09  Kazu Hirata  <kazu@hxi.com>
6712
6713         * c-common.c: Fix comment typos.
6714         * cfgrtl.c: Likewise.
6715         * collect2.c: Likewise.
6716         * cpplex.c: Likewise.
6717         * doloop.c: Likewise.
6718         * dwarf2out.c: Likewise.
6719         * dwarfout.c: Likewise.
6720         * expr.c: Likewise.
6721         * fold-const.c: Likewise.
6722         * gcc.c: Likewise.
6723         * gcov.c: Likewise.
6724         * gcse.c: Likewise.
6725         * global.c: Likewise.
6726         * ifcvt.c: Likewise.
6727         * loop.c: Likewise.
6728         * optabs.c: Likewise.
6729         * protoize.c: Likewise.
6730         * regclass.c: Likewise.
6731         * reorg.c: Likewise.
6732         * rtl.h: Likewise.
6733         * stmt.c: Likewise.
6734         * tree.h: Likewise.
6735         * doc/cpp.texi: Likewise.
6736         * doc/c-tree.texi: Likewise.
6737         * doc/extend.texi: Likewise.
6738         * doc/invoke.texi: Likewise.
6739         * doc/objc.texi: Likewise.
6740         * doc/tm.texi: Likewise.
6741
6742 2001-10-08  Richard Henderson  <rth@redhat.com>
6743
6744         * varasm.c (set_named_section_flags): Initialize "declared".
6745
6746 2001-10-08  Robert Lipe  <robertlipe@usa.net>
6747
6748         * varasm.c (struct in_named_entry): Add declared.
6749         (named_section_first_declaration): New function.
6750         (default_elf_asm_named_section): Use it.
6751         * output.h (named_section_first_declaration): New.
6752
6753 2001-10-08  Richard Henderson  <rth@redhat.com>
6754
6755         * i386.md (movsi_xor): Export.
6756         (setcc peep2): Use it when available; add an alternative to
6757         match zero_extendhisi2_and.
6758
6759 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6760
6761         * romp-protos.h (romp_initialize_trampoline): New function.
6762         * romp.c (romp_initialize_trampoline): Likewise.
6763         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
6764         romp_initialize_trampoline.
6765
6766 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6767
6768         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
6769         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
6770         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
6771         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
6772
6773 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6774
6775         * unroll.c (loop_iterations): Extend check for multiple back edges.
6776
6777 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
6778
6779         * langhooks.h: New file.
6780         * Makefile.in (OBJS): Added langhooks.o.
6781         (c-lang.o): Depend on langhooks.h.
6782         (c-common.o): Don't depend on tree-inline.h.
6783         (tree-inline.o): Depend on toplev.h.
6784         (langhooks.o): New rule.
6785         * c-common.c: Don't include tree-inline.h.
6786         (c_mark_lang_decl): Mark argument c as unused.
6787         (c_common_lang_init): Don't initialize hooks here.
6788         * c-lang.c: Include langhooks.h, then override some macros.
6789         (lang_hooks): Initialize with macros in langhooks.h.
6790         (c_init): Don't initialize hooks here.
6791         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
6792         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
6793         * tree-inline.c: Include toplev.h.  Don't define hook variables.
6794         * tree-inline.h: Don't define hook types nor declare hook
6795         variables.  Move macros to...
6796         * langhooks.c: ... new file, as functions.  Adjust all callers.
6797
6798 2001-10-08  Jeffrey A Law  <law@cygnus.com>
6799
6800         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
6801         purge_mem_unchanging_flag on all instructions, not just on those
6802         before NOTE_INSN_FUNCTION_BEG.
6803
6804 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6805
6806         * cppmacro.c (_cpp_create_definition): Leave comments off.
6807
6808         * doc/cpp.texi: Update.
6809
6810 2001-10-08  DJ Delorie  <dj@redhat.com>
6811
6812         * c-decl.c (grokfield): Make sure the only unnamed fields
6813         we're allowing are either structs or unions.
6814         * doc/extend.texi: Add documentation for the unnamed field
6815         extension.
6816
6817 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
6818
6819         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
6820         * configure.in: Use it.
6821         * configure: Regenerated.
6822         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
6823         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
6824
6825 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6826
6827         * cppfiles.c (open_file): Don't mark zero-length files
6828         never-reread here.  Don't output diagnostics here either.
6829         (stack_include_file): Mark them never-reread here.
6830         (_cpp_read_file): Update.
6831
6832 2001-10-08  Richard Henderson  <rth@redhat.com>
6833
6834         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6835
6836 2001-10-08  Richard Henderson  <rth@redhat.com>
6837
6838         * expr.c (store_expr): When converting a CONST_INT for storage
6839         in a SUBREG, convert it to both SUBREG modes before stripping
6840         the SUBREG.
6841
6842 2001-10-08  Richard Henderson  <rth@redhat.com>
6843
6844         * varasm.c (restore_varasm_status): New.
6845         * function.h: Declare it.
6846         * function.c (pop_function_context_from): Call it.
6847
6848 2001-10-08  Richard Henderson  <rth@redhat.com>
6849
6850         * c-common.h (struct c_lang_decl): Add declared_inline.
6851         * c-tree.h (DECL_DECLARED_INLINE_P): New.
6852         * c-lang.c (c_disregard_inline_limits): Use it.
6853         * c-decl.c (duplicate_decls): Likewise.
6854         (pushdecl, redeclaration_error_message): Likewise.
6855         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
6856         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
6857         Set DECL_INLINE if -finline-functions.
6858         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
6859
6860 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6861
6862         * cppmacro.c (funlike_invocation_p): Move some logic to caller
6863         in enter_macro_context.  Create a padding token in its own context
6864         if necessary when the search for '(' fails.
6865         (enter_macro_context): Update.
6866
6867 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
6868
6869         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
6870         genmultilib, toplev.c: Fix spelling errors of "separate" as
6871         "seperate", and corresponding spelling errors of related words.
6872
6873 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6874
6875         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
6876         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
6877         Likewise.
6878         * c-dump.c (dump_option_value_info): Likewise.
6879         * c-format.c (format_length_info, format_char_info,
6880         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
6881         * collect2.c (names): Likewise.
6882         * cppdefault.h (default_include): Likewise.
6883         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
6884         * flow.c (life_analysis): Likewise.
6885         * gcc.c (dir_separator_str, modify_target, option_map,
6886         target_option_translations, spec_list_1, extra_specs_1,
6887         init_spec): Likewise.
6888         * gcov.c (gcov_version_string): Likewise.
6889         * genattr.c (write_units): Likewise.
6890         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
6891         * gengenrtl.c (rtx_definition, defs): Likewise.
6892         * genrecog.c (pred_table): Likewise.
6893         * global.c (global_alloc): Likewise.
6894         * lcm.c (optimize_mode_switching): Likewise.
6895         * local-alloc.c (find_free_reg): Likewise.
6896         * params.h (param_info): Likewise.
6897         * predict.c (predictor_info): Likewise.
6898         * protoize.c (unexpansion_struct): Likewise.
6899         * real.c (bmask): Likewise.
6900         * recog.h (insn_operand_data, insn_data): Likewise.
6901         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
6902         * stmt.c (expand_nl_goto_receiver): Likewise.
6903         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
6904         target_switches, target_options): Likewise.
6905         * tradcif.y (token, tokentab2, yylex): Likewise.
6906         * tree.h (attribute_spec): Likewise.
6907
6908         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
6909         Likewise.
6910         * arc.c (arc_output_function_epilogue): Likewise.
6911         * arm.c (processors, all_cores, all_architectures,
6912         arm_override_options, isr_attribute_arg, isr_attribute_args,
6913         arm_isr_value): Likewise.
6914         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
6915         Likewise.
6916         * c4x.c (c4x_int_reglist): Likewise.
6917         * d30v.c (override_options): Likewise.
6918         * h8300.c (shift_insn): Likewise.
6919         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
6920         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
6921         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
6922         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
6923         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
6924         * i386.h (processor_costs, ix86_cost): Likewise.
6925         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
6926         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
6927         * m68k.c (codes_68881, codes_FPA): Likewise.
6928         * m88k.c (mode_from_align, max_from_align, all_from_align,
6929         best_from_align, m_options): Likewise.
6930         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
6931         * mcore.c (mode_from_align): Likewise.
6932         * mips/elf64.h (UNIQUE_SECTION): Likewise.
6933         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
6934         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
6935         * mips.h (mips_regno_to_class): Likewise.
6936         * ns32k.c (scales): Likewise.
6937         * pa.c (import_string, magic_milli): Likewise.
6938         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
6939         * sparc.c (leaf_reg_remap, sparc_override_options,
6940         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
6941         Likewise.
6942         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
6943
6944 2001-10-07  Dale Johannesen  <dalej@apple.com>
6945
6946         * reload1.c (reload_reg_free_p): Teach register interference
6947         checking that multiple output reloads are emitted in
6948         reverse order.
6949         reload1.c (reload_reg_reaches_end_p):  Ditto.
6950         reload1.c (reloads_conflict):  Ditto.
6951
6952 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
6953
6954         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
6955         NULL_TREE inside @code.
6956
6957 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
6958
6959         * doc/gcc.texi: Document consistent style of "32-bit",
6960         "Objective-C", and "@code{NULL}".
6961
6962 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
6963
6964         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
6965         (cpp_token_len, cpp_spell_token, cpp_output_token,
6966         _cpp_equiv_tokens): Handle it.
6967         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
6968         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
6969         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
6970         error messages.
6971
6972 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6973
6974         * gcc.c (default_compilers): Remove .ada.
6975
6976 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
6977
6978         * doc/cppinternals.texi: Update.
6979
6980 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
6981
6982         * gcc.c (main): Set this_file_error if the appropriate
6983         compiler for a language has not been installed.
6984
6985 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
6986
6987         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
6988
6989 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
6990
6991         * gccbug.in (CATEGORIES): Add ada.
6992
6993 2001-10-05  Catherine Moore  <clm@redhat.com>
6994
6995         * config/stormy16/stormy-abi:  Document abi changes.
6996         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
6997         (ICALL_REGS): New register class.
6998         (NUM_ARGUMENT_REGISTERS): Now 6.
6999         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
7000         in registers.
7001         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
7002         * config/stormy16.md (call_internal, call_value_internal,
7003         indirect_jump): Use new 'z' constraint.
7004
7005 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7006
7007         * doc/cppinternals.texi: Update.
7008
7009 2001-10-05  Richard Henderson  <rth@redhat.com>
7010
7011         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
7012         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
7013         the gas section-name-as-label feature.
7014
7015 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7016
7017         * doc/cppinternals.texi: Update.
7018
7019 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7020
7021         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
7022         to ensure valid SImode constants.
7023
7024 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
7025
7026         * Makefile.in (c-decl.o): Depend on tree-inline.h.
7027         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
7028         * c-decl.c: Include tree-inline.h.
7029         (c_expand_body): Call optimize_inline_calls. Determine whether
7030         a function is inlinable upfront, and only clear
7031         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
7032         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
7033         (c_disregard_inline_limits): New function.
7034         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
7035         (c_post_options): Enable tree inlining if inlining is enabled.
7036         Don't inline trees when instrumenting functions.
7037         (c_init): Initialize lang_disregard_inline_limits and
7038         lang_cannot_inline_tree_fn.
7039         * tree-inline.c (initialize_inlined_parameters): Handle calls
7040         with fewer arguments than declared parameters, and fewer
7041         parameters than passed arguments.  Don't assume value is a
7042         DECL.
7043         (declare_return_variable): Convert return value back to the
7044         original type, if it was promoted.
7045         (tree_inlinable_function_p): New function.
7046         (inlinable_function_p): Don't look at DECL_INLINE if we're
7047         inlining all functions.  Make it work with a NULL id.
7048         Re-check DECL_UNINLINABLE after language-specific checks.
7049         * tree-inline.h (tree_inlinable_function_p): Declare it.
7050         * integrate.c (save_for_inline): Don't bother to prepare argvec
7051         when not inlining.
7052         * cse.c (check_for_label_ref): Don't check deleted labels.
7053
7054         * Makefile.in (tree-inline.o): Depend on newly-included headers.
7055         * tree-inline.c: Include headers needed for the functions moved in.
7056         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
7057         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
7058         (copy_body, initialize_inlined_parameters): Likewise.
7059         (declare_return_variable, inlinable_function_p): Likewise.
7060         (expand_call_inline, expand_calls_inline): Likewise.
7061         (optimize_inline_calls, clone_body): Likewise.
7062         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
7063         (copy_tree_r, remap_save_expr): Likewise.
7064
7065 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
7066
7067         * Makefile.in (OBJS): Added tree-inline.o.
7068         (c-common.o): Depend on tree-inline.h.
7069         (tree-inline.o): New target.
7070         * c-common.c: Include tree-inline.h.
7071         (c_mark_lang_decl): Don't mark saved_tree.
7072         (c_common_lang_init): Set lang_anon_aggr_type_p.
7073         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
7074         (struct c_lang_decl): Moved saved_tree to tree_decl.
7075         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
7076         * integrate.h (function_attribute_inlinable_p): Declare it.
7077         * integrate.c (function_attribute_inlinable_p): Export it.
7078         * tree-inline.c: New file.  Define variables declared in...
7079         * tree-inline.h: New file.  Declare functions to be moved to
7080         tree-inline.c.  Define macros and declare types and hooks for
7081         language-specific tree inlining.
7082         (flag_inline_trees): Moved definition from cp/decl2.c.
7083         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
7084         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
7085         (struct tree_decl): Moved saved_tree from c_lang_decl and
7086         inlined_fns from C++'s lang_decl.
7087
7088 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
7089
7090         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
7091         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
7092
7093 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7094
7095         * doc/cppinternals.texi: Update.
7096
7097 2001-10-04  Eric Christopher  <echristo@redhat.com>
7098
7099         * config/mips/mips.c (init_cumulative_args): Remember to set
7100         cum->prototype.
7101         * config.gcc: Redo linux configuration. Add target_cpu_default
7102         of soft-float to all mipsisa32 combinations and tx39.
7103         * config/mips/linux.h: Remove include of mips.h.
7104
7105 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
7106
7107         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
7108         HOST_LDFLAGS and HOST_CPPFLAGS.
7109
7110 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
7111
7112         * c-parse.in (objc_inherit_code, objc_pq_context,
7113         objc_public_flag): Make static.
7114         (objc_interface_context, objc_implementation_context,
7115         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
7116         global tree array in objc/objc-act.[ch].
7117         (methoddef): Remove unnecessary code.
7118
7119         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
7120         Hoist struct definitions to objc-act.h.
7121         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
7122         cat_count): Place declaration in objc-act.h.
7123         (objc_tree_index): Move enumeration to objc-act.h.
7124         (objc_global_trees): Place declaration and macro accessors in
7125         objc-act.h.
7126         (implementation_context): Remove duplicate; use
7127         objc_implementation_context instead:
7128         (method_context): Remove duplicate; use objc_method_context
7129         instead.
7130         (objc_ellipsis_node, objc_method_prototype_template,
7131         implemented_classes, function_type): Move global vars to
7132         objc_global_trees.
7133         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
7134         (build_message_expr): Move actual construction of ObjC message
7135         send nodes to finish_message_expr.
7136         (finish_message_expr): New routine, contains code formerly in
7137         build_message_expr.
7138         * objc/objc-act.h (finish_message_expr): New prototype.
7139         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
7140         declarations; these vars are now part of objc_global_trees.
7141         (objc_tree_index, objc_global_trees): Move definitions from
7142         objc-act.c.
7143         * objc/objc-tree.def: Update copyright info.
7144
7145 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
7146
7147         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
7148         op is NULL.
7149         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
7150         only if TARGET_ARCH64.
7151
7152 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
7153
7154         * doc/extend.texi: Fix some problems with previous checkin.
7155         * doc/invoke.texi: Likewise.
7156
7157 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7158
7159         * cpphash.h: Update comments.
7160         (cpp_context): Update.
7161         (spec_nodes): Remove n__Pragma.
7162         * cppinit.c (cpp_create_reader): Update.
7163         (builtin_array): Add _Pragma.
7164         * cpplib.h: Update comments.
7165         (NODE_DISABLED, BT_PRAGMA): New.
7166         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
7167         * cppmacro.c (struct cpp_macro): Remove disabled.
7168         (builtin_macro): Return int, handle _Pragma, push the new token
7169         on the context stack.
7170         (funlike_invocation_p): Unconstify, update.
7171         (enter_macro_context): Handle builtins here.
7172         (replace_args, push_token_context, push_ptoken_context):
7173         Update for prototype changes.
7174         (_cpp_pop_context): Update.
7175         (cpp_get_token): Don't handle buitins, nor _Pragma here.
7176         (cpp_sys_macro_p): Update.
7177         (_cpp_free_definition): Clear disabled flag.
7178         (_cpp_create_definition): Upate.
7179         * cppmain.c: Update comments.
7180
7181 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
7182                                 Andreas Jaeger <aj@suse.de>,
7183                                 Jan Hubicka    <jh@suse.cz>
7184
7185         * doc/invoke.texi (i386 Options): Document x86-64 options.
7186         (i386 and x86-64 Options): Rename i386 options section.
7187
7188         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
7189         (TARGET_SWITCHES): Add -munwind-info.
7190         (MASK_NO_UNWIND_INFO): New.
7191         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
7192         biarch compilation.
7193         (ASM_OUTPUT_DOUBLE_INT): New.
7194
7195         * config/i386/linux64.h: New spec file for Linux x86-64 support.
7196         * config.gcc: Fix tm_file settings for x86-64.
7197         * config/i386/x86-64.h: New file with OS independent x86-64
7198         definitions.
7199         * config/i386/biarch64.h: New file used to configure compiler
7200         to biarch/64bit compilation.
7201
7202         * config/i386/i386.c: (override_options): Set flags default
7203         for 64bit compilation.
7204
7205 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
7206
7207         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
7208         (ix86_expand_int_movcc): Optimize DImode conditional moves with
7209         constants on x86_64.
7210         (ix86_attr_length_immediate_default): Support MODE_DI.
7211         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
7212         condition.
7213         (indirect_jump, tablejump): Turn into expander.
7214
7215 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7216
7217         * c-common.c (c_format_attribute_table): Make format and
7218         format_arg attributes apply to function types rather than to
7219         decls.
7220         (is_valid_printf_arglist): Construct an attribute list and pass
7221         that to check_function_format rather than a name.
7222         * c-common.h (check_function_format): Adjust prototype.
7223         * c-decl.c (duplicate_decls): Preserve attributes from type of
7224         built-in decl when allowing for harmless conflict in types.
7225         * c-format.c (record_function_format,
7226         record_international_format, function_format_list,
7227         international_format_info, international_format_list): Remove.
7228         (function_format_info): Remove next, name and assembler_name.
7229         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
7230         (decode_format_attr): New.
7231         (handle_format_attribute): Handle receiving a type rather than a
7232         decl.  Call decode_format_attr.  Store format information in a
7233         function_format_info.
7234         (handle_format_arg_attribute): Correct comment.  Handle receiving
7235         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
7236         arg_num.
7237         (check_format_info_recurse, check_format_info_main): Take argument
7238         numbers as unsigned HOST_WIDE_INT.
7239         (check_function_format): Take a list of attributes from the
7240         function type rather than a name or assembler name.  Check for
7241         format attributes in that list and the attributes on the type of
7242         the current function rather than looking through
7243         function_format_list.
7244         (check_format_info): Use unsigned HOST_WIDE_INT for argument
7245         numbers.
7246         (check_format_info_recurse): Take format_arg attributes from the
7247         type of the function calls rather than using
7248         international_format_list.  Allow for multiple format_arg
7249         attributes.
7250         * c-typeck.c (build_function_call): Pass type attributes to
7251         check_function_format rather than name or assembler name.  Don't
7252         require there to be a name or assembler name to check formats.
7253
7254 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7255
7256         * attribs.c (decl_attributes): Possibly call
7257         insert_default_attributes to insert default attributes on
7258         functions in a lazy manner.
7259         * builtin-attrs.def: New file; define the default format and
7260         format_arg attributes.
7261         * c-common.c (c_format_attribute_table): Move to earlier in the
7262         file.
7263         (c_common_nodes_and_builtins): Initialize format_attribute_table.
7264         (enum built_in_attribute, built_in_attributes,
7265         c_attrs_initialized, c_init_attributes,
7266         c_common_insert_default_attributes): New.
7267         (c_common_lang_init): Don't initialize format_attribute_table.  Do
7268         call c_init_attributes.
7269         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
7270         * c-common.h (init_function_format_info): Don't declare.
7271         (c_common_insert_default_attributes): Declare.
7272         * c-decl.c (implicitly_declare, builtin_function): Call
7273         decl_attributes.
7274         (init_decl_processing): Don't call init_function_format_info.
7275         (insert_default_attributes): New.
7276         * c-format.c (handle_format_attribute,
7277         handle_format_arg_attribute): Be quiet about inappropriate
7278         declaration when applying default attributes.
7279         (init_function_format_info): Remove.
7280         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
7281         (insert_default_attributes): Declare.
7282
7283 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7284
7285         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
7286
7287 2001-10-01  Jim Wilson  <wilson@redhat.com>
7288
7289         * sched-deps.c (add_dependence): When elide conditional dependence,
7290         check that insn doesn't modify cond2.
7291
7292 2001-10-01  Dale Johannesen  <dalej@apple.com>
7293
7294         * config/rs6000/rs6000.h (enum processor_type): Add support
7295         for 7400 (G4) and 7450.
7296         (RTX_COSTS): Ditto.
7297         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
7298         (rs6000_issue_rate): Ditto.
7299         (rs6000_adjust_cost): Fix cycle counts for compares.
7300         (debug_stack_info):  Fix an obvious typo.
7301         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
7302         * doc/invoke.texi: Document.
7303         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
7304         for Darwin.
7305         (PROCESSOR_DEFAULT): Ditto.
7306
7307 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
7308
7309         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
7310         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
7311         later recursive make invocation.
7312
7313 2001-10-01  Hans Boehm  <boehm@acm.org>
7314
7315         * optabs.c (emit_libcall_block): When using non-call exceptions,
7316         don't add REG_LIBCALL reg notes to trapping calls.
7317
7318 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
7319
7320         * flow.c (propagate_block_delete_libcall): Remove unused first arg
7321         (propagate_one_insn):  Update for above change
7322
7323 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
7324
7325         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
7326         _Unwind_GetTextRelBase): Argument is unused.
7327
7328 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7329
7330         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
7331         Loop through NOPs, placeholders, and components.
7332         Don't go through NOPs if change mode.
7333         (record_alias_subset): Do nothing if SUBSET and SET are the same.
7334         * emit-rtl.c (set_mem_alias_set): Enable check.
7335         * expr.c (find_placeholder): New function.
7336         (expand_expr, case PLACEHOLDER_EXPR): Use it.
7337         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
7338         to modify it and avoid unneeded copies.
7339         * expr.h (expand_expr): Always define.
7340         (find_placeholder): New declaration.
7341
7342 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7343
7344         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
7345         operand 2 is the stack pointer.
7346         ("addr-peephole"): Fix address computation peephole when operand 2
7347         is the stack pointer.
7348
7349 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7350
7351         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
7352         (ix86_setup_incoming_varargs): Likewise.
7353
7354 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
7355
7356         * stor-layout.c (layout_type): Don't complain about too-large
7357         array here.
7358
7359 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7360
7361         * function.c (keep_stack_depressed): Don't use delete_insn.
7362
7363         * expr.h (set_mem_alias_set): Move decl to here.
7364         * rtl.h (mem_attrs): New typedef and struct.
7365         (union rtunion_def): Add field for mem_attrs.
7366         (X0MEMATTR, MEM_ATTRS): New macros.
7367         (MEM_ALIAS_SET): Use MEM_ATTRS.
7368         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
7369         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
7370         (set_mem_alias_set): Delete decl from here.
7371
7372         * alias.c (set_mem_alias_set): Delete from here.
7373         * emit-rtl.c (mem_attrs_htab): New variable.
7374         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
7375         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
7376         (mem_attrs_mark, get_mem_attrs): Likewise.
7377         (gen_rtx_MEM): Clear MEM_ATTRS.
7378         (set_mem_attributes): Move to here.
7379         (set_mem_alias_set): Likewise, and call get_mem_attrs.
7380         (init_emit_once): const_int_htab now deletable htab.
7381         Initialize mem_attrs_htab.
7382         * explow.c (set_mem_attributes): Delete from here.
7383         * function.c (put_var_into_stack): Clear MEM_ATTRS.
7384         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
7385         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
7386         * reload1.c (reload): Rework changing REG to MEM.
7387
7388 2001-09-30  H.J. Lu <hjl@gnu.org>
7389
7390         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
7391         * config.in: Rebuild.
7392
7393 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7394
7395         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
7396         ("tsthi_1"): Avoid allocation in register y.
7397         ("*movqi_68hc12"): Reorganize and fix constraints.
7398         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
7399         ("addqi3"): Likewise.
7400         ("addhi3"): Fix constraints.
7401         ("*logicalhi3_zexthi"): Disparage soft registers.
7402
7403 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7404
7405         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
7406         to tmp reg.
7407
7408 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7409
7410         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
7411         that we use setjmp/longjmp exceptions.
7412
7413 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
7414
7415         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
7416         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
7417         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
7418         _cpp_pool_alloc, _cpp_next_chunk): Remove.
7419         (_cpp_extend_buff, BUFF_ROOM): Update.
7420         (_cpp_append_extend_buff): New.
7421         (struct cpp_reader): Remove macro_pool, add a_buff.
7422         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
7423         macro_pool.
7424         (cpp_destroy): Free a_buff instead of macro_pool.
7425         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
7426         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
7427         _cpp_pool_alloc, ): Remove.
7428         (parse_number, parse_string): Update use of _cpp_extend_buff.
7429         (_cpp_extend_buff): Update.
7430         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
7431         * cpplib.c (glue_header_name, parse_answer):
7432         Update use of _cpp_extend_buff.
7433         (cpp_register_pragma, cpp_register_pragma_space): Use
7434         _cpp_aligned_alloc.
7435         (do_assert, do_unassert): Check for EOL, update.
7436         * cppmacro.c (stringify_arg, collect_args): Update to use
7437         _cpp_extend_buff and _cpp_append_extend_buff.
7438         (save_parameter, parse_params, alloc_expansion_token,
7439         _cpp_create_definition): Rework memory management.
7440
7441 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
7442
7443         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
7444         update md_exec_prefix.
7445         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
7446         to string constant.
7447
7448 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
7449
7450         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
7451         (SELECT_CC_MODE): Use s390_select_ccmode.
7452         * config/s390/s390-protos.h (s390_select_ccmode): Add.
7453         * config/s390/s390.c (s390_select_ccmode): New.
7454         (s390_match_ccmode): Add CCLmode.
7455         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
7456         (output_branch_condition, output_inverse_branch_condition): Removed.
7457         (print_operand): Use s390_branch_condition_mnemonic.
7458         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
7459         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
7460         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
7461
7462         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
7463         when converting conditional branches to far branches.
7464         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
7465         cmpint_di): Use CCSmode instead of CCUmode.
7466
7467         * config/s390/s390.c (legitimate_la_operand_p): New.
7468         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
7469         * config/s390/s390.md (movsi): Convert load address patterns to
7470         arithmetic operations when necessary.
7471         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
7472         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
7473         (*do_la_reg_0): Don't use before reload.
7474
7475         * config/s390/s390.c (legitimize_address): Make more efficient
7476         use of two-register addressing mode.
7477
7478         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
7479         with -mno-backchain in some corner cases.
7480
7481         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
7482
7483 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
7484
7485         * reload.c (find_reloads): Mark new USE insns with QImode.
7486         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
7487         find_reloads_subreg_address): Likewise.
7488         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
7489         encountered.
7490         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
7491         CLOBBERs.
7492         (reload): Make sure there are no USEs with mode other than
7493         VOIDmode.  At the end, remove those marked with QImode.
7494
7495 2001-09-29  Per Bothner  <per@bothner.com>
7496
7497         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
7498         * Makefile.in (includedir):  Rename to local_includedir.
7499         (includedir):  Define as $(prefix)/include.
7500         * config.in (PREFIX_INCLUDE_DIR):  New variable.
7501         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
7502
7503 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
7504
7505         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
7506         storehps builtins.
7507         * doc/extend.texi (Vector Extensions): New node.
7508         * doc/invoke.texi (Machine Dependent Options): Add documentation for
7509         i386 -mmmx, -msse, -m3dnow.
7510
7511 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
7512
7513         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
7514
7515 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
7516
7517         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
7518
7519         * doc/invoke.texi (Optimize Options): Delete spurious @table.
7520
7521 2001-09-28  Richard Henderson  <rth@redhat.com>
7522
7523         * varasm.c (assemble_integer): Bound alignment check by
7524         BIGGEST_ALIGNMENT.
7525
7526         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
7527
7528 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7529
7530         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
7531
7532 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
7533
7534         Mostly from Graham Stott  <grahams@redhat.com>
7535         * c-common.c (type_for_mode): Add support for V2SFmode.
7536         * tree.c (build_common_tree_nodes_2): Likewise.
7537         * tree.h (enum tree_index, global_trees): Likewise.
7538         * config/i386/i386.c (x86_3dnow_a): New variable.
7539         (override_options): Support 3Dnow extensions.
7540         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
7541         Athlon's version of 3Dnow.
7542         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
7543         (ix86_expand_builtin): Handle them.
7544         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
7545         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
7546         TARGET_3DNOW_A): New macros.
7547         (TARGET_SWITCHES): Add 3Dnow switches.
7548         (VALID_MMX_REG_MODE_3DNOW): New macro.
7549         (VECTOR_MODE_SUPPORTED_P): Use it.
7550         (enum ix86_builtins): Add entries for 3Dnow builtins.
7551         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
7552         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
7553         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
7554         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
7555         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
7556         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
7557         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
7558         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
7559         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
7560         sfence_insn, prefetch): Make these available if TARGET_SSE or
7561         TARGET_3DNOW_A.
7562
7563 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
7564
7565         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
7566         ix86_va_start, ix86_build_va_list): Declare.
7567         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
7568         ix86_va_start, ix86_build_va_list): New global functions.
7569         * i386.md (sse_prologue_save_insn): New insn.
7570         (sse_prologue_save): New expander.
7571         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
7572         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
7573
7574 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7575
7576         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
7577         Use size_t everywhere, make definitions consistent with
7578         prototypes.
7579
7580 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
7581
7582         * gcse.c (replace_store_insn): Use delete_insn.
7583         * loop.c (move_movables): Likewise; avoid delete_insn
7584         from clobbering notes moved elsewhere.
7585         (check_dbra_loop): Use delete_insn.
7586         * ssa.c (convert_from_ssa): Likewise.
7587         * cse.c (cse_insn): Use delete_insn.
7588
7589 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7590
7591         * cpphash.h (struct cpp_buff): Make unsigned.
7592         (_cpp_get_buff): Take length of size_t.
7593         (_cpp_unaligned_alloc): New.
7594         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
7595         (struct cpp_reader): Remove ident_pool.  Add u_buff.
7596         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
7597         (cpp_destroy): Destroy u_buff, not ident_pool.
7598         * cpplex.c (parse_number, parse_string, save_comment,
7599         cpp_token_as_text): Update to use the unaligned buffer.
7600         (new_buff): Make unsigned.
7601         (_cpp_unaligned_alloc): New.
7602         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
7603         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
7604         Similarly.
7605         (collect_args): Make unsigned.
7606
7607 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
7608
7609         * cpplex.c (cpp_output_token): Use a putc loop for
7610         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
7611
7612         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
7613         * configure, config.in: Regenerate.
7614         * system.h: Replace fwrite and fprintf with their unlocked
7615         variants if available.
7616
7617 2001-09-27  Richard Henderson  <rth@redhat.com>
7618
7619         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
7620         in favour of .eh_frame.
7621
7622 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
7623
7624         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
7625         to macros.
7626         (LIBCALL_VALUE): Likewise.
7627
7628 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7629
7630         * cpphash.h: Update comment.
7631         * cpplex.c: Update comments.
7632         (_cpp_can_paste): Remove.
7633         * cpplib.h (_cpp_can_paste): Remove.
7634         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
7635         lexer rather than _cpp_can_paste.
7636
7637 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7638
7639         * doc/cppinternals.texi: Update.
7640
7641 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7642
7643         * cpphash.h (struct cpp_pool): Remove locks and locked.
7644         (struct cpp_context): Add member buff.
7645         (struct cpp_reader): Remove member argument_pool.
7646         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
7647         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
7648         * cpplex.c (chunk_suitable): Remove pool argument.
7649         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
7650         (new_buff, _cpp_extend_buff): Update.
7651         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
7652         which buffer is returned.
7653         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
7654         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
7655         * cppmacro.c (lock_pools, unlock_pools): Remove.
7656         (push_ptoken_context): Take a _cpp_buff.
7657         (enter_macro_context): Pool locking removed.
7658         (replace_args): Use a _cpp_buff for the replacement list with
7659         arguments replaced.
7660         (push_token_context): Clear buff.
7661         (expand_arg): Use _cpp_pop_context.
7662         (_cpp_pop_context): Free a context's buffer, if any.
7663
7664 2001-09-26  DJ Delorie  <dj@redhat.com>
7665
7666         * c-typeck.c (digest_init): Check for sizeless arrays.
7667
7668 2001-09-26  Richard Henderson  <rth@redhat.com>
7669
7670         * optabs.c (init_one_libfunc): Create a dummy function type
7671         instead of using error_mark_node.
7672
7673 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7674
7675         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
7676         _cpp_extend_buff, _cpp_free_buff): New.
7677         (struct cpp_reader): New member free_buffs.
7678         * cppinit.c (cpp_destroy): Free buffers.
7679         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
7680         _cpp_extend_buff, _cpp_free_buff): New.
7681         * cpplib.h (struct cpp_options): Remove unused member.
7682         * cppmacro.c (collect_args): New.  Combines the old parse_arg
7683         and parse_args.  Use _cpp_buff for memory allocation.
7684         (funlike_invocation_p, replace_args): Update.
7685
7686 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
7687
7688         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
7689
7690 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
7691
7692         * except.c (sjlj_mark_call_sites): Change address inside sequence.
7693
7694 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
7695
7696         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
7697         glibc.
7698
7699 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
7700             Jim Wilson  <wilson@redhat.com>
7701
7702         * doc/install.texi (Specific, ia64-*-linux): Document.
7703
7704 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
7705
7706         * Makefile.in (cfgrtl.o): Add.
7707         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
7708         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
7709         free_aux_for_edge): Declare.
7710         * cfg.c
7711         (HAVE_return): Undefine.
7712         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
7713         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
7714         free_aux_for_edge): New global functions.
7715         (first_delete_block): New static variable.
7716         (init_flow): Clear first_delete_block.
7717         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
7718          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
7719          try_redirect_by_replacing_jump, last_loop_beg_note,
7720          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
7721          delete_insn, delete_insn_chain, create_basic_block_structure,
7722          create_basic_block, flow_delete_block, compute_bb_for_insn,
7723          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
7724          set_block_for_new_insns, split_block, merge_blocks_nomove,
7725          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
7726          redirect_edge_and_branch, force_nonfallthru_and_redirect,
7727          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
7728          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
7729          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
7730          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
7731          purge_all_dead_edges): Move to ....
7732         * cfgrtl.c: New file; .... Here.
7733
7734         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
7735         (reroder_basic_block): Use alloc_aux_for_blocks.
7736         * predict.c (estimate_bb_frequencies): Likewise; use
7737         alloc_aux_for_edges.
7738         * profile.c (compute_branch_probabilities): Likewise.
7739         (branch_prob): Likewise.
7740         * reg-stack.c (reg_to_stack): Likewise.
7741
7742         * emit-rtl.c (emit_insns_after): Never return NULL.
7743
7744         * basic-block.h (set_block_for_new_insns): Delete.
7745         * cfgrtl.c (set_block_for_new_insns): Delete.
7746
7747         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
7748         calls when crossjumping.
7749
7750         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
7751         * unroll.c (copy_loop_body): Use delete_insn.
7752
7753         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
7754         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
7755         keep_stack_depressed): Likewise.
7756         * gcse.c (cprop_cc0_jump): Likewise.
7757         * local-alloc.c (update_equiv_regs): Likewise.
7758         * loop.c (scan_loop, loop_delete_insns): Likewise.
7759         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
7760         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
7761         delete_output_reload, delete_address_reloads_1,
7762         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
7763         Likewise.
7764         * sibcall.c (replace_call_placeholder): Likewise.
7765         * cse.c (cse_insn): Likewise.
7766
7767 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
7768
7769         From Graham Stott  <grahams@redhat.com>
7770         (def_builtin): Only define builtins appropriate for target_flags.  All
7771         callers changed.
7772         (builtin_decsription): Add new field mask which is used to determine
7773         when to define the builtin via the macro def_builtin.
7774
7775         (bdesc_comi): Initialise new mask fields.
7776         (bdesc_2srg): Likewise.
7777         (bdesc_1arg): Likewise.
7778
7779         * config/i386/i386.c (ix86_init_builtins): Correct return type
7780         building v4hi_ftype_v4hi_int_int tree node.
7781         (ix86_expand_sse_comi): Fix typo swapping operands.
7782         Don't swap comparision condition, it is already swapped.
7783         (ix86_expand_sse_compare): Before swapping operands
7784         move operand 1 into new rtx and not the target rtx.
7785         Don't swap comparison condition, it is already swapped.
7786         Always check whether we need to create a new TARGET.
7787
7788         * config/i386/i386.md: (sse_comi) Fix typos.
7789         (sse_ucomi): Likewise.
7790         (cvtss2si): Fix operand 0 contraint.
7791         (cvttss2si): Likewise.
7792         (sse_unpckhps): Fix mode for operand 2.
7793         (sse_unpcklps): Likewise.
7794
7795 2001-09-25  Graham Stott  <grahams@redhat.com>
7796
7797         * sibcall.c (skip_copy_to_return_value): Tighten return value
7798         copy check.
7799
7800 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
7801
7802         * rs6000.c (lwa_operand): Address must be word aligned.
7803
7804 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7805
7806         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
7807         number has been set.
7808         (type_hash_mark): Mark type itself.
7809
7810 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
7811
7812         * c-lex.c (cb_def_pragma): Update.
7813         (c_lex): Update, and skip padding.
7814         * cppexp.c (lex, parse_defined): Update, remove unused variable.
7815         * cpphash.h (struct toklist): Delete.
7816         (union utoken): New.
7817         (struct cpp_context): Update.
7818         (struct cpp_reader): New members eof, avoid_paste.
7819         (_cpp_temp_token): New.
7820         * cppinit.c (cpp_create_reader): Update.
7821         * cpplex.c (_cpp_temp_token): New.
7822         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
7823         (cpp_output_token): Don't print leading whitespace.
7824         (cpp_output_line): Update.
7825         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
7826         do_include_common, do_line, do_ident, do_pragma,
7827         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
7828         parse_assertion): Update.
7829         (get_token_no_padding): New.
7830         * cpplib.h (CPP_PADDING): New.
7831         (AVOID_LPASTE): Delete.
7832         (struct cpp_token): New union member source.
7833         (cpp_get_token): Update.
7834         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
7835         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
7836         replace_args, quote_string, stringify_arg, parse_arg, next_context,
7837         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
7838         _cpp_backup_tokens, _cpp_create_definition): Update.
7839         (push_arg_context): Delete.
7840         (padding_token, push_token_context, push_ptoken_context): New.
7841         (make_string_token, make_number_token): Update, rename.
7842         (cpp_get_token): Update to handle tokens as pointers to const,
7843         and insert padding appropriately.
7844         * cppmain.c (struct printer): New member prev.
7845         (check_multiline_token): Constify.
7846         (do_preprocessing, cb_line_change): Update.
7847         (scan_translation_unit): Update to handle spacing.
7848         * scan-decls.c (get_a_token): New.
7849         (skip_to_closing_brace, scan_decls): Update.
7850         * fix-header.c (read_scan_file): Update.
7851
7852         * doc/cpp.texi: Update.
7853
7854 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7855
7856         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
7857         leak by passing malloc'ed pointer to reconcat, not concat.
7858
7859 2001-09-24  DJ Delorie  <dj@redhat.com>
7860
7861         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
7862
7863 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
7864
7865         * flow.c (delete_dead_jumptables): Delete jumptable if the only
7866         reference is from the literal pool.
7867
7868 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
7869
7870         * doc/install.texi (Final install): Request additional information
7871         in mail about successful builds.
7872
7873 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7874
7875         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
7876         initial value of return pointer register instead of value in frame-20.
7877         Revise comments.
7878
7879 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7880
7881         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
7882         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
7883         the libcall if there isn't a referenced identifier for the symbol.
7884
7885 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7886
7887         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
7888         non 64-bit machines.  Use these as a plabel for the trampoline.
7889         (TRAMPOLINE_SIZE): Adjust size for new words.
7890         (INITIALIZE_TRAMPOLINE): Initialize new words.
7891         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
7892         pointer to the plabel in the trampoline.
7893
7894 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7895
7896         * pa.c (function_arg): Pass floating arguments in both general and
7897         floating registers in indirect (dynamic) calls when generating code
7898         for the 32 bit ABI and the HP assembler.
7899
7900 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7901
7902         * doc/install.texi: Markup fixes.
7903         Use Solaris 2, SunOS 4 as appropriate.
7904         (Specific, *-*-solaris2*): Explain this.
7905         Unconditionally warn against /usr/ucb tools.
7906         Remove Sun as warning, obsolete.
7907         Move X11 header bug workaround here, update patches.
7908         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
7909         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
7910
7911 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
7912
7913         * errors.h (warning, error, fatal, internal_error): Don't mark
7914         with ATTRIBUTE_PRINTF_n.
7915         * toplev.h (internal_error, fatal_io_error, warning, error,
7916         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
7917         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
7918         Likewise.
7919
7920 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7921
7922         * function.c (pop_function_context_from): var_refs_queue
7923         and temp slots now in GC memory.
7924         (mark_function_status, free_after_compilation): Likewise;
7925         also struct function now in GC memory.
7926         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
7927         (combine_temp_slots): Likewise.
7928         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
7929         (prepare_function_start): Use GC memory for struct function.
7930         (mark_temp_slot): Deleted.
7931         (gcc_mark_struct_function): struct function now in GC memory.
7932
7933         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
7934         code for division, not modulus.
7935
7936         * rtl.def (MEM): Remove obsolete part of comment.
7937
7938 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
7939
7940         * c-format.c (init_function_format_info): Check __builtin_printf
7941         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
7942         in gnu89 mode.
7943
7944 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7945
7946         * c-common.c (format_attribute_table): Remove decl.
7947         * tree.h (format_attribute_table, lang_attribute_table): New decls.
7948         (lang_attribute_common): Likewise.
7949
7950         * function.c (fix_lexical_address): Use set_mem_alias_set.
7951         (expand_function_start): Likewise.
7952         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
7953
7954         * varasm.c (output_constant): Fix unused variable warning.
7955
7956         * attribs.c: New file, from c-common.c.
7957         (attribute_tables): Now four elements.
7958         (format_attribute_table, lang_attribute_common): New variables.
7959         (init_attributes): Reflect above changes.
7960         (handle_mode_attribute): Delete check for wider than uintmax.
7961         * c-common.c: Delete parts moved to attribs.c.
7962         (enum attrs): Deleted; unused.
7963         (c_format_attribute_table): New variable.
7964         (c_common_lang_init): Initialize format_attribute_table with it.
7965         * c-common.h (decl_attributes): Remove decl.
7966         * tree.h (decl_attribute): Move it to here.
7967         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
7968         (attribs.o): New rule.
7969
7970 2001-09-22  Andreas Jaeger  <aj@suse.de>
7971
7972         * builtins.c (c_getstr): Remove unused variable.
7973
7974 2001-09-21  Richard Henderson  <rth@redhat.com>
7975
7976         * reload1.c (reload): Use delete_insn instead of splatting
7977         NOTE_INSN_DELETED.
7978
7979 2001-09-21  Richard Henderson  <rth@redhat.com>
7980
7981         * reload.c (push_secondary_reload): Don't check for "=" in output
7982         constraint after ""->ALL_REGS check.
7983
7984 2001-09-21  Richard Henderson  <rth@redhat.com>
7985
7986         * predict.c (expected_value_to_br_prob): Use pc_set.
7987
7988         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
7989         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
7990
7991 2001-09-21  Richard Henderson  <rth@redhat.com>
7992
7993         * rtl.h (LCT_RETURNS_TWICE): New.
7994         * calls.c (emit_call_1): Set current_function_calls_setjmp for
7995         ECF_RETURNS_TWICE.
7996         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
7997         to ECF_RETURNS_TWICE.
7998         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
7999         call to setjmp.
8000
8001         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
8002
8003         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
8004         (JMP_BUF_SIZE): New.
8005
8006 2001-09-21  Richard Henderson  <rth@redhat.com>
8007
8008         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
8009         to R8_REGS.
8010
8011 2001-09-21  Richard Henderson  <rth@redhat.com>
8012
8013         * tree.def (FDESC_EXPR): New.
8014         * expr.c (expand_expr): Handle it.
8015         * varasm.c (initializer_constant_valid_p): Likewise.
8016         (output_constant): Likewise.
8017         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
8018         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
8019         (ASM_OUTPUT_FDESC): New.
8020         * doc/tm.texi: Document the new macros.
8021
8022 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
8023
8024         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
8025         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
8026         once merging is complete.
8027
8028 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8029
8030         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
8031
8032 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
8033
8034         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
8035         that would be invalid after a merge.
8036
8037 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
8038
8039         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
8040         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
8041         remove some labels.
8042         (flow_delete_insn): This one.
8043         (delete_insn_chain): Rename from ...; do not care labels.
8044         (flow_delete_insn_chain): ... this one.
8045         (flow_delete_block): Remove the insns one BB has been expunged.
8046         (merge_blocks_nomove): Likewise.
8047         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
8048         updating BB boundaries.
8049         (tidy_fallthru_edge): Likewise.
8050         (commit_one_edge_insertion): Likewise.
8051         * cfgbuild.c (find_basic_block): Likewise.
8052         (find_basic_blocks_1): Likewise.
8053         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
8054         (try_crossjump_to_edge): Likewise.
8055         (try_optimize_cfg): Likewise.
8056         * cse.c (delete_trivially_dead_insns): Likewise.
8057         * df.c (df_insn_delete): Likewise.
8058         * doloop.c (doloop_modify): Use delete_related_insns.
8059         * emit-rtl.c (try_split): Likewise.
8060         (remove_insn): Update BB boundaries.
8061         * expect.c (connect_post_landing_pads): Use delete_related_insns.
8062         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
8063         updating BB boundaries.
8064         (propagate_block_delete_insn): Likewise.
8065         (propagate_block_delete_libcall): Likewise.
8066         * function.c (delete_handlers): Use delete_related_insns.
8067         (thread_prologue_and_epilogue_insns): Likewise.
8068         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
8069         * genpeep.c (gen_peephole): Use delete_related_insns.
8070         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
8071         BB boundaries.
8072         (find_cond_trap): Likewise.
8073         * integrate.c (save_for_inline): Use delete_related_insns.
8074         (copy_insn_list): Likewise.
8075         * jump.c (pruge_linie_number_notes): Likewise.
8076         (duplicate_loop_exit_test): Likewise.
8077         (delete_computation): Likewise.
8078         (delete_related_insn): Rename from ...; use delete_insn
8079         (delete_insn): ... this one.
8080         (redirect_jump): Use delete_related_insns.
8081         * loop.c (scan_loop): Likewise.
8082         (move_movables): Likewise.
8083         (find_and_verify_loops): Likewise.
8084         (check_dbra_loop): Likewise.
8085         * recog.c (peephole2_optimize): Likewise.
8086         * reg-stack.c (delete_insn_for_stacker): Remove.
8087         (move_for_stack_reg): Use delete_insn.
8088         * regmove.c (combine_stack_adjustments_for_block): Likewise.
8089         * reload1.c (delete_address_reloads): Use delete_related_insns.
8090         (fixup_abnormal_edges): Use delete_insn.
8091         * recog.c (emit_delay_sequence): Use delete_related_insns.
8092         (delete_from-delay_slot): Likewise.
8093         (delete_scheduled_jump): likewise.
8094         (optimize_skip): Likewise.
8095         (try_merge_delay_insns): Likewise.
8096         (full_simple_delay_slots): Likewise.
8097         (fill_slots_from_thread): Likewise.
8098         (relax_delay_slots): Likewise.
8099         (make_return_insns): Likewise.
8100         (dbr_schedule): Likewise.
8101         * rtl.h (delete_insn): Rename to delete_related_insns.
8102         (delete_insn, delete_insn_chain): New prototypes.
8103         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
8104         by df_insn_delete already.
8105         * ssa-dce.c (delete_insn_bb): Use delete_insn.
8106         * ssa.c (convert_from_ssa): Use delete_related_insns.
8107         * unroll.c (unroll_loop): Likewise.
8108         (calculate_giv_inc): Likewise.
8109         (copy_loop_body): Likewise.
8110
8111         * i386-protos.h (ix86_libcall_value, ix86_function_value,
8112         ix86_function_arg_regno_p, ix86_function_arg_boundary,
8113         ix86_return_in_memory, ix86_function_value): Declare.
8114         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
8115         new static valurables.
8116         (x86_64_reg_class): New enum
8117         (x86_64_reg_class_name): New array.
8118         (classify_argument, examine_argument, construct_container,
8119          merge_classes): New static functions.
8120         (optimization_options): Enable flag_omit_frame_pointer and disable
8121         flag_pcc_struct_return on 64bit.
8122         (ix86_libcall_value, ix86_function_value,
8123         ix86_function_arg_regno_p, ix86_function_arg_boundary,
8124         ix86_return_in_memory, ix86_function_value): New global functions.
8125         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
8126         (function_arg_advance): Handle x86_64 passing conventions.
8127         (function_arg): Likewise.
8128         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
8129         (RETURN_IN_MEMORY): Move offline.
8130         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
8131         (FUNCTION_VALUE_REGNO_P): New macro.
8132         (FUNCTION_ARG_REGNO_P): Move offline.
8133         (struct ix86_args): Add maybe_vaarg.
8134         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
8135         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
8136
8137 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
8138
8139         * s390.md: Changed attributes for scheduling.
8140         * s390.c: (s390_adjust_cost, s390_adjust_priority)
8141         Changed scheduling
8142
8143 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8144
8145         Table-driven attributes.
8146         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
8147         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
8148         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
8149         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
8150         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
8151         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
8152         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
8153         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
8154         * tree.h (struct tree_decl): Change machine_attributes to
8155         attributes.
8156         * doc/c-tree.texi: Document that all attributes are now attached
8157         to decls and types.
8158         * c-common.c (add_attribute, attrtab, attrtab_idx,
8159         default_valid_lang_attribute, valid_lang_attribute): Remove.
8160         (attribute_tables, attributes_initialized,
8161         c_common_attribute_table, default_lang_attribute_table): New
8162         variables.
8163         (handle_packed_attribute, handle_nocommon_attribute,
8164         handle_common_attribute, handle_noreturn_attribute,
8165         handle_unused_attribute, handle_const_attribute,
8166         handle_transparent_union_attribute, handle_constructor_attribute,
8167         handle_destructor_attribute, handle_mode_attribute,
8168         handle_section_attribute, handle_aligned_attribute,
8169         handle_weak_attribute, handle_alias_attribute,
8170         handle_no_instrument_function_attribute,
8171         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
8172         handle_no_limit_stack_attribute, handle_pure_attribute): New
8173         functions.
8174         (init_attributes, decl_attributes): Rewrite to implement
8175         table-driven attributes.
8176         * c-common.h (enum attribute_flags): Move to tree.h.
8177         * c-format.c (decl_handle_format_attribute,
8178         decl_handle_format_arg_attribute): Rename to
8179         handle_format_attribute and handle_format_arg_attribute.  Update
8180         for table-driven attributes.
8181         * c-common.h (decl_handle_format_attribute,
8182         decl_handle_format_arg_attribute): Remove prototypes.
8183         (handle_format_attribute, handle_format_arg_attribute): Add
8184         prototypes.
8185         * c-decl.c (grokdeclarator): Handle attributes nested inside
8186         declarators.
8187         * c-parse.in (setattrs, maybe_setattrs): Remove.
8188         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
8189         Update to handle nested attributes properly.
8190         (maybe_resetattrs, after_type_declarator,
8191         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
8192         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
8193         properly.
8194         (make_pointer_declarator): Update to handle nested attributes
8195         properly.
8196         * doc/extend.texi: Update documentation of limits of attributes
8197         syntax.  Warn about problems with attribute semantics in C++.
8198         * target.h (struct target): Remove valid_decl_attribute and
8199         valid_type_attribute.  Add attribute_table and
8200         function_attribute_inlinable_p.
8201         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
8202         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
8203         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
8204         Add.
8205         (TARGET_INITIALIZER): Update.
8206         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
8207         definition.
8208         (function_attribute_inlinable_p): New function.  Check for the
8209         presence of any machine attributes before using
8210         targetm.function_attribute_inlinable_p.
8211         (function_cannot_inline_p): Update.
8212         * Makefile.in (integrate.o): Update dependencies.
8213         * doc/tm.texi: Update documentation of target attributes and
8214         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
8215         * tree.c (default_valid_attribute_p, valid_machine_attribute):
8216         Remove.
8217         (default_target_attribute_table,
8218         default_function_attribute_inlinable_p): New.
8219         (lookup_attribute): Update comment to clarify handling of multiple
8220         attributes with the same name.
8221         (merge_attributes, attribute_list_contained): Allow multiple
8222         attributes with the same name but different arguments to appear in
8223         the same attribute list.
8224         * tree.h (default_valid_attribute_p): Remove prototype.
8225         (struct attribute_spec): New.
8226         (default_target_attribute_table): Declare.
8227         (enum attribute_flags): Move from c-common.h.  Add
8228         ATTR_FLAG_TYPE_IN_PLACE.
8229         (default_function_attribute_inlinable_p): Declare.
8230         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
8231         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8232         (TARGET_ATTRIBUTE_TABLE): Define.
8233         (vms_attribute_table): New.
8234         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
8235         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8236         (TARGET_ATTRIBUTE_TABLE): Define.
8237         (arc_attribute_table, arc_handle_interrupt_attribute): New.
8238         * config/arm/arm.c (arm_valid_type_attribute_p,
8239         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
8240         Remove.
8241         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
8242         define.
8243         (TARGET_ATTRIBUTE_TABLE): Define.
8244         (arm_attribute_table, arm_handle_fndecl_attribute,
8245         arm_handle_isr_attribute): New.
8246         * config/avr/avr.c (avr_valid_type_attribute,
8247         avr_valid_decl_attribute): Remove.
8248         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
8249         define.
8250         (TARGET_ATTRIBUTE_TABLE): Define.
8251         (avr_attribute_table, avr_handle_progmem_attribute,
8252         avr_handle_fndecl_attribute): New.
8253         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
8254         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8255         (TARGET_ATTRIBUTE_TABLE): Define.
8256         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
8257         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
8258         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8259         (TARGET_ATTRIBUTE_TABLE): Define.
8260         (h8300_attribute_table, h8300_handle_fndecl_attribute,
8261         h8300_handle_eightbit_data_attribute,
8262         h8300_handle_tiny_data_attribute): New.
8263         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
8264         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
8265         Remove prototypes.
8266         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
8267         declarations.
8268         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
8269         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
8270         define.
8271         (TARGET_ATTRIBUTE_TABLE): Define.
8272         (ix86_attribute_table, ix86_handle_cdecl_attribute,
8273         ix86_handle_regparm_attribute): New.
8274         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
8275         i386_pe_valid_type_attribute_p): Remove.
8276         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
8277         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
8278         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8279         (TARGET_ATTRIBUTE_TABLE): Define.
8280         (ia64_attribute_table): New.
8281         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
8282         interrupt_ident2, model_ident1, model_ident2): Remove.
8283         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8284         (TARGET_ATTRIBUTE_TABLE): Define.
8285         (init_idents): Update.
8286         (m32r_attribute_table, m32r_handle_model_attribute): New.
8287         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
8288         Remove.
8289         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8290         (TARGET_ATTRIBUTE_TABLE): Define.
8291         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
8292         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
8293         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8294         (TARGET_ATTRIBUTE_TABLE): Define.
8295         (mcore_attribute_table, mcore_handle_naked_attribute): New.
8296         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
8297         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8298         (TARGET_ATTRIBUTE_TABLE): Define.
8299         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
8300         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
8301         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8302         (TARGET_ATTRIBUTE_TABLE): Define.
8303         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
8304         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
8305         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8306         (TARGET_ATTRIBUTE_TABLE): Define.
8307         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
8308         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
8309         New.
8310         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
8311         Remove.
8312         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
8313         (TARGET_ATTRIBUTE_TABLE): Define.
8314         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
8315         New.
8316         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
8317         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8318         (TARGET_ATTRIBUTE_TABLE): Define.
8319         (v850_attribute_table, v850_handle_interrupt_attribute,
8320         v850_handle_data_area_attribute): New.
8321         * config/v850/v850-c.c (mark_current_function_as_interrupt):
8322         Return void.  Call decl_attributes instead of
8323         valid_machine_attribute.
8324
8325 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
8326
8327         * sh-protos.h (sh_pr_n_sets): Declare.
8328         * sh.c (calc_live_regs): If the initial value for PR has been copied,
8329         look at the copy to determine if PR needs to be saved.
8330         sh_pr_n_sets: New function.
8331         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
8332         (ALLOCATE_INITIAL_VALUE): Define.
8333
8334         * sh.c (initial_elimination_offset):
8335         Fix RETURN_ADDRESS_POINTER_REGNUM case.
8336
8337 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
8338
8339         * integrate.c (allocate_initial_values): New function.
8340         * integrate.h (allocate_initial_values): Declare.
8341         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
8342         here...
8343         * reload1.c (reload): And initialization of reg_equiv_memory_loc
8344         from here...
8345         * toplev.c (rest_of_compilation): To here.
8346         Call allocate_initial_values.
8347         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
8348
8349 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8350
8351         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
8352
8353 2001-09-20  DJ Delorie  <dj@redhat.com>
8354
8355         * c-typeck.c (really_start_incremental_init): Discriminate
8356         between zero-length arrays and flexible arrays.
8357         (push_init_level): Detect zero-length arrays and handle them
8358         like fixed-sized arrays.
8359         * expr.c (store_constructor): Handle zero-length arrays and
8360         flexible arrays correctly.
8361         * doc/extend.texi: Update zero-length array notes.
8362
8363 2001-09-20  Jim Wilson  <wilson@redhat.com>
8364
8365         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
8366         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
8367         for issue port conflicts.
8368         (cycle_end_fill_slots): TYPE_L instructions take two slots.
8369
8370 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
8371
8372         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
8373         on ia64.
8374
8375 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8376
8377         * fold-const.c (hashtab.h): Include.
8378         (int_const_binop): Remove FORSIZE arg and compute from type; all
8379         callers changed.
8380         Call size_int_type_wide for all single-word constants.
8381         (size_htab_hash, size_htab_eq): New functions.
8382         (size_int_type_wide): Rework to use hash table.
8383         * ggc-common.c (hashtab.h): Include.
8384         (struct d_htab_root): New struct.
8385         (d_htab_roots): New variable.
8386         (ggc_add_deletable_htab, ggc_htab_delete): New functions
8387         (ggc_mark_roots): Handle deletable htabs.
8388         * ggc-page.c (ggc_marked_p): New function.
8389         * ggc-simple.c (ggc_marked_p): Likewise.
8390         * ggc.h: Reformatting throughout.
8391         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
8392         * tree.c (init_obstacks): Make type_hash_table a deletable root.
8393         (type_hash_add): Allocate struct type_hash from GC memory.
8394         (mark_hash_entry, mark_type_hash): Deleted.
8395         (type_hash_marked_p, type_hash_mark): New functions.
8396         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
8397
8398 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
8399
8400         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
8401         than SImode.
8402
8403 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8404
8405         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
8406         array-too-large test for signed sizetype.
8407
8408 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
8409
8410         * i386.md (indirect_jump): Allow Pmode operand.
8411         (tablejump): LIkewise; perform expansion to 64bit mode.
8412         * i386.c (symbolic_operand): Allow 64bit PIC references.
8413         (pic_symbolic_operand): Likewise.
8414         (ix86_find_base_term): Strip the 64bit PIC references.
8415         (legitimate_pic_address_disp_p): Handle 64bit PIC.
8416         (legitimize_pic_address): Likewise.
8417         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
8418         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
8419
8420 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
8421
8422         * stringpool.c (get_identifier_with_length): New function.
8423         * tree.h (get_identifier_with_length): New prototype.
8424
8425 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
8426             David Edelsohn  <edelsohn@gnu.org>
8427
8428         Revert:
8429         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
8430         already sign-extended.
8431
8432         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
8433         * config/rs6000/rs6000.c (logical_operand): Always compare op as
8434         HOST_WIDE_INT.
8435         (rs6000_emit_set_long_const): Avoid unnecessary shift.
8436         (output_profile_hook): Declare label_name const.
8437         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
8438         to match constraints.
8439
8440 2001-09-19  Stan Shebs  <shebs@apple.com>
8441
8442         * alias.c: Fix typos in comments.
8443         * sched-rgn.c (init_ready_list): Ditto.
8444         * unwind-dw2.c (uw_frame_state_for): Ditto.
8445         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
8446         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
8447         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
8448
8449 2001-09-19  Richard Henderson  <rth@redhat.com>
8450
8451         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
8452         to the exit block.
8453         * Makefile.in (cfg.o): Depend on TM_P_H.
8454
8455 2001-09-19  Richard Henderson  <rth@redhat.com>
8456
8457         * config/alpha/alpha.c (local_symbol_p): Split out from ...
8458         (local_symbolic_operand): ... here.
8459         (small_symbolic_operand): Check mode.
8460         (global_symbolic_operand): New.
8461         (input_operand): Reject symbolics if explicit relocs.
8462         (call_operand): Tidy.
8463         (alpha_legitimize_address): Use movdi_er_high_g.
8464         (alpha_expand_mov): Likewise.
8465         * config/alpha/alpha-protos.h: Update.
8466         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8467         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
8468         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
8469         (UNSPECV_LDGP2): Remove.
8470         (all call patterns): Use 's' not 'i' for symbolic constraint.
8471         (call_osf call_value_osf): Use call_operand.
8472         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
8473         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
8474         (prologue_ldgp_1_er): Remove.
8475         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
8476         (builtin_setjmp_receiver_er patterns): Use them.
8477         (exception_receiver_er): Likewise.
8478
8479 2001-09-19  Richard Henderson  <rth@redhat.com>
8480
8481         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
8482
8483         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
8484         and NON_LOCAL_GOTO notes.
8485         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
8486         copy over CALL_INSN_FUNCTION_USAGE.
8487
8488 2001-09-18  Catherine Moore  <clm@redhat.com>
8489
8490         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
8491         Define as 0.
8492
8493 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
8494
8495         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
8496         new-style tm_file specification.  Specify correct tm_p_file,
8497         md_file, and out_file for s390x.
8498
8499         * config/s390/linux.h, linux64.h:  Don't include other target
8500         macro header files.  Now handled via tm_file.
8501
8502         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
8503         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
8504         are defined before use.
8505
8506 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
8507
8508         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
8509         code generation only for Gnu assembler.
8510
8511 2001-09-18  Catherine Moore  <clm@redhat.com>
8512
8513         * config/stormy16 (LIB_SPEC): Remove -lnosys.
8514
8515 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
8516
8517         * config/mips/mips.c (mips_frame_set): New.
8518         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
8519         a parallel frame-related expression with a set for each register.
8520
8521 2001-09-18  Philip Blundell  <philb@gnu.org>
8522
8523         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
8524         header files.
8525
8526 2001-09-17  Dale Johannesen  <dalej@apple.com>
8527
8528         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
8529         * config/rs6000/aix.h (FIXED_R2): Define.
8530         * config/rs6000/darwin.h (FIXED_R2): Define.
8531         * config/rs6000/sysv4.h (FIXED_R2): Define.
8532
8533 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
8534
8535         * except.c (dw2_build_landing_pads): New local
8536         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
8537         barrier after clobbers.  Fixes c++/4012.
8538
8539 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8540
8541         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
8542
8543 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
8544
8545         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
8546         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
8547
8548 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8549
8550         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
8551         alloca/strcpy.
8552
8553 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8554
8555         * cpphash.h (_cpp_lex_direct): New.
8556         * cpplex.c (_cpp_lex_token): Update.
8557         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
8558         and increment that pointer.
8559         * cppmacro.c (alloc_expansion_token): New.
8560         (lex_expansion_token): Lex macro expansion directly into
8561         macro storage.
8562
8563 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
8564
8565         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
8566
8567 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
8568
8569         * basic-block.h (free_bb_for_insn): Declare.
8570         * bb-reorder.c (label_for_bb): Use block_label.
8571         (emit_jump_to_block_after): Remove.
8572         (insert_intra_1): Do not update block_for_insn.
8573         (insert_inter_bb_scope_notes): Likewise; update bb->end
8574         * cfg.c (free_bb_for_insn): New.
8575         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
8576         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
8577         (commit_one_edge_insertion): Likewise.
8578         (commit_one_edge_insertion): Do not update BB boundary.
8579         (commit_edge_insertions): Do not call compute_bb_for_insn.
8580         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
8581         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
8582         (merge_blocks_move_successor_nojumps): Likewise.
8583         (try_crossjump_to_edge): Do not update block_for_insn.
8584         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
8585         * df.c (df_pattern_emit_later): Do not update BB boundary.
8586         (df_jump_pattern_emit_after): Likewise.
8587         (df_insn_move_before): Use emit_insn_before.
8588         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
8589          properly.
8590         (add_insn_after, add_insn_before, emit_insns_after): Update BB
8591         boundaries and basic_block_for_insn.
8592         (reorder_insns_nobb): Rename from reorder_insns.
8593         (reorder_insns): New.
8594         (emit_block_insn_before, emit_block_insn_after): Kill.
8595         * flow.c (check_function_return_warnings): Do not call
8596         compute_bb_for_insn; Do not free basic_block_for_insn.
8597         (attempt_auto_inc): Do not update basic_block_for_insn.
8598         * function.c (emit_return_into_block): Likewise;
8599         do not update BB boundaries.
8600         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
8601         (insert_insn_end_bb): Use emit_insn_before; Likewise.
8602         (pre_insert_copy_insn): Likewise.
8603         (update_ld_motion_notes): Likewise.
8604         (insert_insn_start_bb): Likewise.
8605         (replace_store_insn): Likewise.
8606         * ifcvt.c (noce_process_if_block): Likewise.
8607         (if_convert): Do not call compute_bb_for_insn.
8608         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
8609         Use emit_insn_before and emit_insn_after.
8610         * recog.c (split_all_insns): Do not update BB boundaries;
8611         Do not call compute_bb_for_insn.
8612         (peephole2_optimize): Do not update BB boundaries.
8613         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
8614         emit_insn_before.
8615         (emit_swap_insn): Likewise.
8616         (convert_regs_1): Likewise.
8617         * reload1.c (reload): Call compute_bb_for_insn.
8618         * rtl.h (reorder_insns_nobb): Declare.
8619         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
8620         * toplev.c (rest_of_compilation): Call free_bb_for_insn
8621         at places CFG is invalidated; do not call compute_bb_for_insn.
8622
8623         * cfg.c (expunge_block): Invalidate BB structure.
8624
8625         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
8626         array.
8627
8628         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
8629
8630 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8631
8632         * cpphash.h (_cpp_lex_token): Update prototype.
8633         * cpplex.c (_cpp_lex_token): New prototype.
8634         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
8635         lex_macro_node, read_flag, do_pragma_poison): Update.
8636         * cppmacro.c (cpp_get_token, parse_params,
8637         lex_expansion_token): Update.
8638
8639 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8640
8641         * cppmain.c (scan_translation_unit): Don't worry about
8642         putting a space after hashes.
8643         * cpplib.c (directive_diagnostics): New.
8644         (_cpp_handle_directive): Update to use directive_diagnostics.
8645         (run_directive): Don't toggle prevent_expansion.
8646         (do_line): Backup in case of the line extension.
8647         * cpplib.h (cpp_lexer_pos): Remove.
8648         * cppmacro.c (_cpp_create_definition): Precede a leading #
8649         with whitespace.
8650
8651 2001-09-15  Richard Henderson  <rth@redhat.com>
8652
8653         * c-typeck.c (comptypes): Handle zero-length arrays properly.
8654
8655 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8656
8657         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
8658
8659 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8660
8661         PR preprocessor/3571
8662         * tradcpp.c (handle_directive): Skip non-vertical space.
8663
8664 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8665
8666         * cppmain.c (setup_callbacks): Set line callback only
8667         if outputting preprocessed source.
8668
8669 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8670
8671         * collect2.c (main): Const-ification.
8672         * gcc.c (translate_options, process_command): Use xstrdup in
8673         lieu of xmalloc/strcpy.
8674         (main): Use concat in lieu of xmalloc/strcpy/strcat.
8675
8676 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8677
8678         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
8679         example.
8680
8681 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8682
8683         * scan-decls.c (scan_decls): Fix typo.
8684
8685 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8686
8687         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
8688         Split mlstring_pos into mls_line and mls_col.
8689         * cppinit.c (cpp_create_reader): Initialize line to 1.
8690         (cpp_destroy): Free tokenruns.
8691         (push_include): Don't update lexer_pos.
8692         * cpplex.c (unterminated, parse_string): Update.
8693         (lex_token): Don't update lexer_pos, update.
8694         * cpplib.c (if_stack): Save line instead of line + col.
8695         (start_directive, _cpp_do__Pragma, do_else, do_elif,
8696         push_conditional, _cpp_pop_buffer): Update.
8697         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
8698         (_cpp_create_definition): Update.
8699
8700 2001-09-15  Eric Christopher  <echristo@redhat.com>
8701
8702         * config/mips/abi64.h: Add support for MEABI.
8703
8704 2001-09-15  Eric Christopher  <echristo@redhat.com>
8705
8706         * config/mips/mips.md: Add unspec #2.
8707         (reload_indi): Use.
8708         (reload_outdi): Ditto.
8709         (reload_outsi): Ditto.
8710         (HILO_delay): New.
8711
8712 2001-09-15  Eric Christopher  <echristo@redhat.com>
8713             Jason Eckhardt  <jle@redhat.com>
8714
8715         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
8716         * config/mips/isa32-linux.h: New file.
8717         * config/mips/isa3264.h: Ditto.
8718         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
8719         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
8720         (output_block_mode): Support MEABI.
8721         (function_arg): Ditto. Fix floating point arg passing.
8722         (mips_va_start): Ditto.
8723         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
8724         processors.
8725         (mips_asm_file_start): Add new section to pass abi to gdb.
8726         (function_arg_pass_by_reference): Support MEABI.
8727         (mips_parse_cpu): Support mips32 and mips64 processors.
8728         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
8729         TARGET_MIPS5KC.  Support isa32 and isa64.
8730         (processor_type): Add r4kc, r5kc, r20kc.
8731         (GENERATE_MULT3_SI): New.
8732         (GENERATE_MULT3_DI): Ditto.
8733         (GENERATE_MULT3): Remove.
8734         (ISA_HAS_64BIT_REGS): Add isa == 64.
8735         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
8736         (ISA_HAS_MADD_MSUB): New.
8737         (ISA_HAS_CLZ_CLO): Ditto.
8738         (ISA_HAS_DCLZ_DCLO): Ditto.
8739         (ABI_GAS_ASM_SPEC): New.
8740         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
8741         (ASM_SPEC): Ditto.
8742         (LINK_SPEC): Ditto.
8743         (SUBTARGET_CC1_SPEC): Ditto.
8744         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8745         (PAD_VARARGS_DOWN): Support MEABI.
8746         (HARD_REGNO_NREGS): Move to mips.c.
8747         (ASM_OUTPUT_IDENT): Add #undef.
8748         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
8749         (mulsi3): Use GENERATE_MULT3_SI.
8750         (mulsi3_mult3): Ditto.  Support mips32, mips64.
8751         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
8752         (mul_sub_si): New pattern.
8753         (unnamed splitters): New.
8754         (muldi3): Use GENERATE_MULT3_DI.
8755         (muldi3_internal2): Ditto.
8756         (movdicc): Support mips32.
8757         * config/mips/t-isa3264: New file.
8758
8759 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
8760
8761         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
8762         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
8763         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
8764
8765         * reorg.c (fill_slots_from_thread): After call to
8766         steal_delay_list_from_target, update own_thread as new_thread may
8767         have branched.
8768
8769 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8770
8771         * cpperror.c (print_location): Take line and column, for
8772         default positioning use the previously lexed token.
8773         (_cpp_begin_message): Take line and column.
8774         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
8775         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
8776         * cpphash.h (_cpp_begin_message): Update prototype.
8777         * cppinit.c (push_include): Don't set output line.
8778         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
8779         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
8780         (do_pragma): Kludge for front ends.  Don't expand macros at all.
8781         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
8782         (struct cpp_token): Remove output_line.
8783         (struct cpp_callbacks): New member line_change.
8784         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
8785         cpp_get_token): Preserve BOL flag.
8786         (cpp_get_line): Remove.
8787         (_cpp_backup_tokens): Remove useless abort().
8788         * cppmain.c (cb_line_change): New.
8789         (scan_translation_unit): Don't worry about starting new lines here.
8790         * scan-decls.c (scan_decls): Update.
8791         * c-lex.c (c_lex, init_c_lex): Update.
8792         (cb_line_change, src_lineno): New.
8793
8794 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
8795
8796         * tree.c (append_random_chars): Generate the random
8797         characters in a reproducable fashion.
8798
8799 2001-09-14  Richard Henderson  <rth@redhat.com>
8800
8801         * config/i386/i386.c (internal_label_prefix): New.
8802         (internal_label_prefix_len): New.
8803         (override_options): Set them.
8804         (local_symbolic_operand): New.
8805         (legitimate_pic_address_disp_p): Use it.
8806         (legitimize_pic_address): Likewise.
8807
8808 2001-09-14  Marc Espie <espie@openbsd.org>
8809
8810         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
8811         correctly.
8812
8813 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8814
8815         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
8816         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
8817
8818 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
8819
8820         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
8821         invocation of SUBREG_REGNO_OFFSET.
8822
8823         * haifa-sched.c: Fix typo in FSF copyright statement.
8824         * sched-deps.c: Fix typo in FSF copyright statement.
8825         * sched-ebb.c: Fix typo in FSF copyright statement.
8826         * sched-rgn.c: Fix typo in FSF copyright statement.
8827         * sched-vis.c: Fix typo in FSF copyright statement.
8828
8829         * config.gcc: Move inclusion of arm elf specific header files
8830         from the files themselves into the tm_file variable.  Make
8831         sure that elfos.h is included before target specific elf
8832         headers.
8833         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
8834         already defined.
8835         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
8836         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
8837         ASM_OUTPUT_CASE_LABEL): Protect definition.
8838         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
8839         not already defined.
8840         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
8841         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
8842         Remove duplicate definition.
8843         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
8844         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
8845         (RDATA_SECTION_FUNCTION): Remove redundant definition.
8846         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
8847         Remove inclusion of arm/elf.h.
8848         * config/arm/unknown-elf.h: as for conix-elf.h.
8849         (STARTFILE_SPEC): Include crti.o and crtn.o.
8850         * config/arm/linux-elf.h: as for conix-elf.h.
8851         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
8852         * config/arm/strongarm-elf.h: Remove inclusion of
8853         unknown-elf.h.
8854         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
8855         * config/arm/unknown-elf-oabi.h: Remove inclusion of
8856         unknown-elf.h and elf.h.
8857         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
8858         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
8859         ASM_WEAKEN_LABEL): Remove redundant definition.
8860         * config/arm/elf.h: Test for inclusion of elfos.h
8861         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
8862         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
8863         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
8864         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
8865         redundant definition.
8866         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
8867         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
8868         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
8869         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
8870         Add rules to build crti.o and crtn.o
8871         * crti.asm: New file.
8872         * crtn.asm: New file.
8873
8874 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8875
8876         * c-parse.in (_yylex): Use _cpp_backup_tokens.
8877         * cpphash.h (struct tokenrun): Add prev.
8878         (struct lexer_state): Remove bol.
8879         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
8880         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
8881         : Remove.
8882         * cppinit.c (cpp_create_reader): Don't set bol.
8883         (cpp_destroy): Don't free lookaheads.
8884         * cpplex.c (lex_directive): Remove.
8885         (next_tokenrun): Update.
8886         (_cpp_lex_token): Clean up logic.
8887         (lex_token): Update to return a pointer to lexed token, since it
8888         can move to the start of the buffer.  Simpify newline handling.
8889         * cpplib.c (SEEN_EOL): Update.
8890         (skip_rest_of_line): Remove lookahead stuff.
8891         (end_directive): Line numbers are already incremented.  Revert
8892         to start of lexed token buffer if we can.
8893         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
8894         parse_answer): Use _cpp_backup_tokens.
8895         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
8896         instead.  Don't check for EOL.
8897         (do_include_common, do_line, do_pragma_system_header): Use
8898         skip_rest_of_line.
8899         * cpplib.h (BOL, _cpp_backup_tokens): New.
8900         * cppmacro.c (save_lookahead_token, take_lookahead_token,
8901         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
8902         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
8903         (builtin_macro): Don't use cpp_get_line.
8904         (cpp_get_line): Short term kludge.
8905         (parse_arg): Handle directives in arguments here.  Back up when
8906         appropriate.  Store EOF at end of argument list.
8907         (funlike_invocation_p): Use _cpp_backup_tokens.
8908         (push_arg_context): Account for EOF at end of list.
8909         (cpp_get_token): Remove lookahead stuff.  Update.
8910
8911 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8912
8913         * c-parse.in (yyerror): Const-ification and/or static-ization.
8914         * c-typeck.c (push_member_name): Likewise.
8915         * collect2.c (main): Likewise.
8916         * dbxout.c (dbxout_parms): Likewise.
8917         * diagnostic.c (format_with_decl): Likewise.
8918         * dwarf2out.c (output_ranges): Likewise.
8919         * dwarfout.c (fundamental_type_code): Likewise.
8920         * except.c (dw2_output_call_site_table): Likewise.
8921         * gcc.c (do_spec_1): Likewise.
8922         * genopinit.c (optabs): Likewise.
8923         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
8924         gen_declaration_1, handle_impent): Likewise.
8925         * protoize.c (default_include, in_system_include_dir, abspath):
8926         Likewise.
8927         * sched-vis.c (visualize_stall_cycles): Likewise.
8928         * sdbout.c (plain_type_1, sdbout_end_function,
8929         sdbout_end_epilogue): Likewise.
8930         * varasm.c (decode_reg_name): Likewise.
8931
8932         * 1750a.c (mod_regno_adjust): Likewise.
8933         * alpha.c (alpha_write_one_linkage,
8934         unicosmk_output_default_externs): Likewise.
8935         * arm.c (arm_condition_codes): Likewise.
8936         * arm.h (arm_condition_codes): Likewise.
8937         * avr.c (output_movsisf, encode_section_info): Likewise.
8938         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
8939         Likewise.
8940         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
8941         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
8942         * m88k.c (output_function_profiler): Likewise.
8943         * mips.c (mips_output_conditional_branch): Likewise.
8944         * ns32k.c (ns32k_out_reg_names): Likewise.
8945         * ns32k.h (ns32k_out_reg_names): Likewise.
8946         * pj.c (pj_output_rval): Likewise.
8947         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
8948         * sparc.c (sparc_flat_function_prologue,
8949         sparc_flat_function_epilogue): Likewise.
8950
8951 2001-09-13  Markus Werle <numerical.simulation@web.de>
8952             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8953
8954         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
8955         Aachen University of Technology".
8956
8957 2001-09-13  Andreas Schwab  <schwab@suse.de>
8958
8959         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
8960         C99.
8961
8962 2001-09-13  Richard Henderson  <rth@redhat.com>
8963
8964         * config/alpha/alpha.c (small_symbolic_operand): New.
8965         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
8966         (some_operand, input_operand): Don't handle HIGH.
8967         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
8968         (alpha_expand_mov): Likewise.
8969         (print_operand) [H]: Just print HIGH symbol.
8970         (print_operand_address): Handle small data.
8971         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
8972         (TARGET_SWITCHES): Add -msmall-data/large-data.
8973         (PIC_OFFSET_TABLE_REGNUM): New.
8974         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
8975         (PREDICATE_COES): Update.
8976         * config/alpha/alpha.md (adddi_er_high): New.
8977         (adddi_er_low): Handle small data.
8978         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
8979         prefer .sdata to .rodata.
8980         (SELECT_RTX_SECTION): Likewise.
8981
8982 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
8983
8984         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
8985         defining __size_t and leaving size_t undefined.
8986
8987 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
8988
8989         * basic-block.h (expunge_block): Declare.
8990         * cfg.c (expunge_block): Remove static declaration.
8991
8992 2001-09-12  Richard Henderson  <rth@redhat.com>
8993
8994         * integrate.c (copy_insn_list): Copy label name from
8995         NOTE_INSN_DELETED_LABEL.
8996
8997 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8998
8999         * c-common.c (c_tree_code_name): Const-ification.
9000         * c-decl.c (c_decode_option): Likewise.
9001         * c-typeck.c (warn_for_assignment): Likewise.
9002         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
9003         Likewise.
9004         * cppinit.c (output_deps): Likewise.
9005         * dependence.c (dependence_string, direction_string): Likewise.
9006         * dwarf2out.c (output_ranges): Likewise.
9007         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
9008         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
9009         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
9010         standard_startfile_prefix, standard_startfile_prefix_1,
9011         standard_startfile_prefix_2, tooldir_base_prefix,
9012         standard_bindir_prefix, find_a_file): Likewise.
9013         * genattrtab.c (make_length_attrs): Likewise.
9014         * gencheck.c (tree_codes): Likewise.
9015         * genemit.c (gen_split): Likewise.
9016         * genrecog.c (special_mode_pred_table): Likewise.
9017         * graph.c (graph_ext): Likewise.
9018         * protoize (default_include): Likewise.
9019         * reload.c (reload_when_needed_name): Likewise.
9020         * sched-vis.c (visualize_stall_cycles): Likewise.
9021         * tlink.c (recompile_files): Likewise.
9022         * toplev.c (decode_g_option): Likewise.
9023         * tradcpp.c (output_deps): Likewise.
9024         * varasm.c (decode_reg_name): Likewise.
9025
9026         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
9027         Const-ification.
9028         * arm.md: Likewise.
9029         * avr.c (avr_regnames, encode_section_info): Likewise.
9030         * c4x.c (float_reg_names): Likewise.
9031         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
9032         * elfos.h (const_section): Likewise.
9033         * i386.c (ix86_comp_type_attributes): Likewise.
9034         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
9035         * ia64/aix.h (UNIQUE_SECTION): Likewise.
9036         * ia64.c (type_names): Likewise.
9037         * m68hc11.c (reg_class_names): Likewise.
9038         * m88k.c (m_options): Likewise.
9039         * mips.c (mips_output_conditional_branch, mips_unique_section):
9040         Likewise.
9041         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9042         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
9043         ultra_code_names): Likewise.
9044         * sparc.h (OVERRIDE_OPTIONS): Likewise.
9045
9046 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
9047
9048         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
9049         Use --fatal-warnings option for gas.
9050         * configure: Rebuilt.
9051
9052 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9053
9054         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
9055
9056 2001-09-11  Jim Wilson  <wilson@redhat.com>
9057
9058         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
9059
9060 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9061
9062         * builtins.c (c_strlen): Treat an offset too large for a
9063         HOST_WIDE_INT as out of range.
9064
9065 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
9066
9067         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
9068         (EDGE_CRITICAL_P): New predicate.
9069         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
9070         handling.
9071         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
9072         (dump_edge_info): Remove "crit".
9073         * cfganal.c (mark_critical_edges): Kill.
9074         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
9075         * cfgcleanup.c (cleanup_cfg): Likewise.
9076         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
9077         (find_spanning_tree): Likewise.
9078         * reg-stack.c (convert_regs_1): Likewise.
9079         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
9080
9081         * basic-block.h (create_basic_block_structure): New.
9082         (create_basic_block): Update prototype.
9083         (force_nonfallthru): New.
9084         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
9085         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
9086         handle updating of block_for_insn, creating of empty BBs and BBs at
9087         the end of INSN chain.
9088         (create_basic_block): New function.
9089         (split_block): Use create_basic_block.
9090         (force_nonfallthru_and_redirect): Break out from ...; cleanup
9091         (redirect_edge_and_branch_force): ... here.
9092         (force_nonfallthru): New.
9093         (split_edge): Rewrite to use force_nonfallthru and create_block.
9094         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
9095         (find_basic_blocks): Free basic_block_for_insn.
9096         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
9097
9098         * cfg.c: Fix formating.
9099         * cfgcleanup.c: Fix formating.
9100         (merge_blocks, tail_recursion_label_p): Return bool.
9101         (merge_blocks_move_predecessor_nojumps,
9102          merge_blocks_move_successor_nojumps): Return void.
9103
9104 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
9105
9106         * configure.in: Check whether assembler supports section merging.
9107         * config.in: Rebuilt.
9108         * configure: Rebuilt.
9109         * varasm.c (variable_section, output_constant_pool): Pass alignment
9110         to SELECT_SECTION and SELECT_RTX_SECTION.
9111         (mergeable_string_section): New.
9112         (mergeable_constant_section): New.
9113         (default_elf_asm_named_section): Output SECTION_MERGE and
9114         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
9115         * output.h (mergeable_string_section): New.
9116         (mergeable_constant_section): New.
9117         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
9118         * toplev.c (flag_merge_constants): New.
9119         (f_options): Add -fmerge-constants and -fmerge-all-constants
9120         options.
9121         (toplev_main): Default to -fno-merge-constants if not optimizing.
9122         * flags.h (flag_merge_constants): Add extern.
9123         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
9124         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
9125         argument.
9126         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
9127         Define if assembler has working .subsection -1 support.
9128         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
9129         Put constant into special SHF_MERGE sections if the linker should
9130         attempt to merge duplicates.
9131         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
9132         macro argument.
9133         Put constant into special SHF_MERGE sections if the linker should
9134         attempt to merge duplicates.
9135         * config/alpha/elf.h: Likewise.
9136         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
9137         has working .subsection -1 support.
9138         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
9139         SELECT_SECTION.
9140         * config/svr3.h: Likewise.
9141         * config/darwin.h: Likewise.
9142         * config/arm/aof.h: Likewise.
9143         * config/arm/linux-elf.h: Likewise.
9144         * config/avr/avr.h: Likewise.
9145         * config/c4x/c4x.h: Likewise.
9146         * config/d30v/d30v.h: Likewise.
9147         * config/i386/dgux.h: Likewise.
9148         * config/i386/osfrose.h: Likewise.
9149         * config/i386/sco5.h: Likewise.
9150         * config/i386/svr3gas.h: Likewise.
9151         * config/ia64/aix.h: Likewise.
9152         * config/m32r/m32r.h: Likewise.
9153         * config/m68k/m68k.h: Likewise.
9154         * config/m88k/dgux.h: Likewise.
9155         * config/m88k/m88k.h: Likewise.
9156         * config/mcore/mcore-pe.h: Likewise.
9157         * config/mips/mips.h: Likewise.
9158         * config/pa/pa.h: Likewise.
9159         * config/pa/pa-linux.h: Likewise.
9160         * config/romp/romp.h: Likewise.
9161         * config/rs6000/sysv4.h: Likewise.
9162         * config/rs6000/xcoff.h: Likewise.
9163         * config/s390/linux.h: Likewise.
9164         * config/sparc/sparc.h: Likewise.
9165         * config/sparc/sysv4.h: Likewise.
9166         * config/stormy16/stormy16.h: Likewise.
9167         * config/v850/v850.h: Likewise.
9168         * config/vax/vms.h: Likewise.
9169         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
9170         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
9171         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
9172         default_elf_asm_named_section for SHF_MERGE sections.
9173
9174 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
9175
9176         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
9177         is OK.
9178
9179 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9180
9181         * c-common.c (split_specs_attrs): Allow for empty attributes with
9182         empty TREE_PURPOSE.  Fixes PR c/4294.
9183
9184 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
9185
9186         * basic-block.h (cached_make_edge, make_single_succ): New.
9187         (make_edge): Remove first parameter.
9188         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
9189         * cfg.c (cached_make_edge): Rename from make_edge; return newly
9190         created edge; use obstack allocation.
9191         (make_edge, make_single_succ_edge): New.
9192         (first_removed_edge): New static variable.
9193         (init_flow): Initialize first_removed_edge and n_edges.
9194         (clear_edges): Use remove_edge.
9195         (flow_delete_block): Likewise.
9196         (remove_edge): Add removed edges to the removed edges list.
9197         (split_block, redirect_edge_and_branch_force, split_edge):
9198         Use make_edge.
9199         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
9200         (add_noreturn_fake_exit_edges): Likewise.
9201         (connect_infinite_loops_to_exit): Liekwise.
9202         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
9203         Use cached_make_edge.
9204         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
9205         * profile.c (branch_prob): Update make_edge call.
9206         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
9207
9208 2001-09-11  Richard Henderson  <rth@redhat.com>
9209
9210         * config/alpha/alpha.c: Tidy formatting.
9211         (local_symbolic_operand): Verify mode.
9212         (alpha_sa_mask): Ignore unicos for eh_return.
9213         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
9214         * config/alpha/alpha.md (umk divsi patterns): Remove.
9215         (extendsfdf2): Remove unicos check.
9216         (tablejump): Merge vms and unicos code; always use direct set
9217         plus label_ref use.
9218
9219 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9220
9221         * config.gcc (alpha*-*-unicosmk*): New target.
9222
9223         * config/alpha/alpha-protos.h (symbolic_operand,
9224         unicosmk_add_call_info_word, unicosmk_add_extern,
9225         unicosmk_defer_case_vector, unicosmk_unique_section,
9226         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
9227         unicosmk_asm_file_start, unicosmk_asm_file_end,
9228         unicosmk_output_common): Declare.
9229
9230         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
9231         direct_return, function_arg, alpha_va_start, alpha_va_arg,
9232         alpha_does_function_need_gp, alpha_end_function): Support Cray
9233         Unicos/Mk.
9234         (alpha_init_machine_status, alpha_mark_machine_status,
9235         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
9236         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
9237         unicosmk_asm_named_section, unicosmk_insert_attributes,
9238         unicosmk_section_type_flags, symbolic_operand,
9239         unicosmk_output_module_name, unicosmk_output_default_externs,
9240         unicosmk_output_dex, unicosmk_output_externs,
9241         unicosmk_output_addr_vec, unicosmk_ssib_name,
9242         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
9243         unicosmk_asm_file_end, unicosmk_output_common,
9244         unicosmk_section_type_flags, unicosmk_unique_section,
9245         unicosmk_add_call_info_word, unicosmk_text_section,
9246         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
9247         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
9248         unicosmk_dex_count, unicosmk_special_name): New.
9249         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
9250         TARGET_ABI_UNICOSMK.
9251         (get_aligned_mem, alpha_expand_unaligned_load,
9252         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
9253         alpha_expand_unaligned_store_words): Support big-endian mode.
9254         (print_operand): Likewise. New format specifier 't'. Use
9255         TARGET_AS_SLASH_BEFORE_SUFFIX.
9256         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
9257         (alpha_pv_save_size): Update with above change.
9258         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
9259         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
9260         Unicos/Mk.
9261
9262         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
9263         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
9264         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
9265         (EXTRA_CONSTRAINT): New constraint 'U'.
9266         (PREDICATE_CODES): Add symbolic_operand.
9267
9268         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
9269         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
9270         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
9271         (integer division and modulus patterns): Split in default and
9272         Unicos/Mk versions.
9273         (*divmodsi_internal, *divmoddi_internal): Disable for
9274         TARGET_ABI_UNICOSMK.
9275         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
9276         little-endian and big-endian versions.
9277         (ext, ins, msk): Likewise.
9278         (extv, extzv, insv): Support big-endian mode.
9279         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
9280         (call_umk, call_value_umk, *call_umk, tablejump_umk,
9281         *tablejump_umk_internal, *call_value_umk): New.
9282         (*movdi_nofix): Add pattern for loading an address into a register on
9283         TARGET_ABI_UNICOSMK.
9284         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
9285         (umk_mismatch_args, arg_home_umk): New.
9286         (various insns): Don't use mov, fmov, nop, fnop and unop.
9287         (realign): Support TARGET_ABI_UNICOSMK.
9288
9289         * config/alpha/unicosmk.h: New file.
9290         * config/alpha/t-unicosmk: New file.
9291
9292         * fixinc/inclhack.def (unicosmk_restrict): New.
9293         * fixinc/fixincl.x: Regenerate.
9294
9295         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
9296         (wchar_t): Check for and define __WCHAR_T__.
9297
9298 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
9299
9300         * combine.c (simplify_shift_const): Treat shifts by the mode
9301         size as undefined.
9302
9303 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9304
9305         * cpphash.h (struct tokenrun): New.
9306         (struct cpp_context): New member bol.
9307         (struct cpp_reader): New members.
9308         (_cpp_init_tokenrun): New.
9309         * cppinit.c (cpp_create_reader): Set up the token runs.
9310         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
9311         (lex_token): New internalised version of _cpp_lex_token.  Don't
9312         handle directives or the multiple include optimization here any
9313         more.  Simply lex a token.
9314         * cpplib.c (run_directive): Clear bol.
9315         (_cpp_pop_buffer): Set bol.
9316         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
9317         arguments.
9318
9319 2001-09-11  Michael Meissner  <meissner@redhat.com>
9320
9321         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
9322         give an error if the user uses -mfp32.
9323         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
9324         default options.
9325         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
9326         floating point register size.
9327         (EXTRA_SPECS): Add CPP_FPR_SPEC.
9328
9329         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
9330         HOST_WIDE_INT_PRINT_DEC to properly print the result of
9331         int_size_in_bytes.
9332         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
9333         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
9334
9335 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
9336
9337         * dbxout.c (dbxout_parms): Fix typo in comment.
9338         * unroll.c (loop_find_equiv_value): Ditto.
9339         * toplev.c (rest_of_compilation): Ditto.
9340         * loop.c (scan_loop): Ditto.
9341         * dwarf2out.c (struct dw_fde_struct): Ditto.
9342
9343 2001-09-10  Zack Weinberg  <zackw@panix.com>
9344
9345         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
9346         copying identifier when we're just going to throw it away.
9347         (parse_identifier_slow): New routine to handle abnormal cases.
9348         (_cpp_lex_token): Update call site.
9349
9350         * hashtable.c (ht_lookup): Don't assume that the string we've
9351         been given is NUL-terminated.
9352         * system.h: #define __builtin_expect(a, b) to (a) if not
9353         GCC >=3.0.
9354
9355 2001-09-10  Michael Meissner  <meissner@redhat.com>
9356
9357         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
9358         binutils, gdb.
9359
9360 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
9361
9362         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
9363
9364 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9365
9366         * builtins.c (c_getstr): Correct thinko in last change and further
9367         cleanup.
9368
9369 2001-09-10  Tim Freeman <tim@fungibole.com>
9370
9371         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
9372         into varray's and register them as roots with the garbage
9373         collector so they are not collected too soon.
9374
9375 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
9376
9377         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
9378         New.
9379         * basic-block.h (flow_obstack, label_value_list,
9380         tail_recursion_label_list): Declare
9381         (tidy_fallthru_edges): Declare.
9382         (expunge_block, last_loop_beg_note): Delete.
9383         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
9384         * cfg.c: New file
9385         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
9386         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
9387         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
9388         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
9389         expunge_block, flow_delete_block, compute_bb_for_insn,
9390         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
9391         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
9392         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
9393         try_redirect_by_replacing_jump, last_loop_beg_note,
9394         redirect_edge_and_branch, redirect_edge_and_branch_force,
9395         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
9396         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
9397         commit_edge_insertions, dump_flow_info, debug_flow_info,
9398         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
9399         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
9400         Move here from flow.c
9401         * cfganal.c: New file.
9402         (forwarder_block_p, can_fallthru, mark_critical_edges,
9403          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
9404          find_unreachable_blocks, create_edge_list, free_edge_list,
9405          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
9406          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
9407          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
9408          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
9409          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
9410          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
9411         Move here from flow.c
9412         * cfgbuild.c: New file
9413         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
9414          make_edges, find_basic_blocks_1, find_basic_blocks,
9415          find_sub_basic_blocks): Move here from flow.c
9416         * cfgcleanup.c: New file.
9417         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
9418          merge_blocks_move_predecessor_nojumps,
9419          merge_blocks_move_successor_nojumps, merge_blocks,
9420          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
9421          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
9422         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
9423         if succeeded.
9424         * cfgloop.c: New file
9425         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
9426          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
9427          flow_loop_exit_edges_find, flow_loop_nodes_find,
9428          flow_loop_pre_header_scan, flow_loop_pre_header_find,
9429          flow_loop_tree_node_add, flow_loops_tree_build,
9430          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
9431          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
9432         Move here from flow.c
9433         * flow.c: Remove everything moved elsewhere
9434         * output.h (cleanup_cfg): Return bool.
9435
9436         * bb-reorder.c (reorder_block_def): Remove 'index'.
9437         (insert_intra_1): Add argument BB, set block for new note.
9438         (make_reorder_chain): Do not depdent on BB indexes.
9439         (make_reorder_chain_1): Do not use BB indexes.
9440         (label_for_bb): Likewise; set BB for new insn.
9441         (emit_jump_to_block_after): Likewise.
9442         (fixup_reorder_chain): Sanity check that all basic blocks
9443         are chained; verify newly created insn chain; remove
9444         undocnitional jump simplifying; Do not use BB indexes;
9445         properly initialize count and frequency information;
9446         dump reordered sequence.
9447         (insert_intra_bb_scope_notes): update call of insert_intra_1.
9448         (insert_inter_bb_scope_notes): Set block for new insn.
9449         (reorder_basic_blocks): Dump flow info before reoredering.
9450
9451 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9452
9453         * alias.c (clear_reg_alias_info): Use K&R format definition.
9454         Avoid unsigned warning.
9455         * builtins.c: Use "unsigned int", not "unsigned".
9456         (target_char_cast): Use host_integerp and tree_low_cst.
9457         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
9458         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
9459         (c_getstr): Likewise.
9460         (std_expand_builtin_va_arg): Use int_size_in_bytes.
9461         (builtin_memcpy_read_str): Avoid unsigned warning.
9462         (expand_builtin_memcpy): Alignments are unsigned.
9463         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
9464         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
9465         * predict.c (expensive_function_p): LIMIT now unsigned.
9466         * resource.c (mark_target_live_regs): Make some vars unsigned.
9467         * sdbout.c: Use "unsigned int", not "unsigned".
9468         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
9469         (sdbout_source_line): Likewise.
9470         (sdbout_record_type_name): Remove "const" for NAME declaration.
9471         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
9472
9473 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
9474
9475         * calls.c (store_one_arg): Expand comment.
9476
9477 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9478
9479         * calls.c (store_one_arg): Make sure that the entire argument is
9480         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
9481
9482 2001-09-09  Richard Henderson  <rth@redhat.com>
9483
9484         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
9485
9486 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
9487
9488         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
9489
9490 2001-09-09  Richard Henderson  <rth@redhat.com>
9491
9492         * config/alpha/alpha.c (alpha_next_sequence_number): New.
9493         (alpha_this_literal_sequence_number): New.
9494         (alpha_this_gpdisp_sequence_number): New.
9495         (some_operand, input_operand): Add HIGH.
9496         (local_symbolic_operand): New.
9497         (alpha_encode_section_info): New.
9498         (alpha_legitimate_address_p): Allow LO_SUM.
9499         (alpha_legitimize_address): Generate HIGH+LO_SUM.
9500         (alpha_expand_mov): Likewise.
9501         (secondary_reload_class): Check memory_operand not general_operand
9502         for FP_REGS test.
9503         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
9504         (alpha_expand_unaligned_store): Likewise.
9505         (alpha_expand_unaligned_load_words): Likewise.
9506         (alpha_expand_unaligned_store_words): Likewise.
9507         (alpha_expand_block_clear): Likewise.
9508         (print_operand): Handle %#, %*, %H.
9509         (print_operand_address): Handle LO_SUM.
9510         (find_lo_sum): New.
9511         (alpha_does_function_need_gp): Use it.
9512         (alpha_expand_block_move): Fix signed compare warnings.
9513         (alpha_sa_mask, alpha_align_insns): Likewise.
9514         * config/alpha/alpha-protos.h: Update.
9515         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
9516         (MASK_EXPLICIT_RELOCS): New.
9517         (TARGET_SWITCHES): Add -mexplicit-relocs.
9518         (EXTRA_CONSTRAINT): Add 'T'.
9519         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
9520         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
9521         (ENCODE_SECTION_INFO): Out line.
9522         (REDO_SECTION_INFO_P): New.
9523         (STRIP_NAME_ENCODING): New.
9524         (ASM_OUTPUT_LABELREF): New.
9525         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
9526         (PREDICATE_CODES): Update.
9527         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
9528         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
9529         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
9530         builtin_setjmp_receiver_er, exception_receiver_1_er,
9531         call_value_osf_1_er): New patterns.
9532         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
9533         (movqi, movhi, movsi): Add explicit $31 base register to lda.
9534         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
9535         (FINAL_PRESCAN_INSN): New.
9536
9537 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
9538
9539         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
9540
9541 2001-09-08  Andreas Jaeger  <aj@suse.de>
9542
9543         * i386.h (TARGET_SWITCHES): Fix description.
9544
9545 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
9546
9547         * rs6000.c (num_insns_constant): Compute number of instructions
9548         more accurately.
9549
9550         * doc/install.texi: Explain AIX exception handling work-around.
9551         Update URL for AIX fixes.
9552
9553 2001-09-07  Jim Wilson  <wilson@redhat.com>
9554
9555         * alias.c (clear_reg_alias_info): New.
9556         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
9557         * rtl.h (clear_reg_alias_info): Declare.
9558
9559 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9560
9561         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
9562         available.
9563         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
9564         (m16m,edivm,emulm): Change declaration to match definition.
9565
9566 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
9567
9568         * reload.c (push_reload): Check for subreg_lowpart_p instead of
9569         SUBREG_BYTE being 0 when determining if the inner part of a subreg
9570         can be reloaded.
9571
9572 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9573
9574         * c-common.c (signed_or_unsigned_type): Handle machine mode types
9575         which have no corresponding C type.
9576         * fold_const.c (target_isinf,target_isnan,target_negative): Update
9577         the representation of 64-bit doubles to work with 64-bit ints.
9578
9579 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
9580
9581         * config/mips/mips.c (override_options): Do not override ISA when ABI
9582         specified if MIPS_CPU_STRING_DEFAULT was specified.
9583
9584 2001-09-07  Richard Henderson  <rth@redhat.com>
9585
9586         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
9587         (express_from_1): Wrap lines.
9588         * rtlanal.c (commutative_operand_precedence): Rename from
9589         operand_preference; export.
9590         * rtl.h: Declare it.
9591         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
9592         (simplify_binary_operation): Invoke simplify_plus_minus on
9593         (CONST (PLUS ...)) as well.
9594         (struct simplify_plus_minus_op_data): New.
9595         (simplify_plus_minus_op_data_cmp): New.
9596         (simplify_plus_minus): Use them.  Avoid infinite recursion with
9597         simplify_binary_operation wrt CONST.
9598
9599 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
9600
9601         * h8300-protos.h (general_operand_dst_push): Remove.
9602         * h8300.c (general_operand_dst_push): Likewise.
9603         * h8300.h (OK_FOR_T): Likewise.
9604         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
9605         * h8300.md (pushqi_h8300): New.
9606         (pushqi_h8300hs): Likewise.
9607         (pushqi): Likewise.
9608         (pushhi_h8300): Likewise.
9609         (pushhi_h8300hs): Likewise.
9610         (pushhi): Likewise.
9611
9612 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9613
9614         * genattrtab.c (attr_printf): First arg is unsigned.
9615         Clean up formatting of callers.
9616
9617 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
9618
9619         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
9620         registers.
9621
9622 2001-09-07  Andreas Jaeger  <aj@suse.de>
9623
9624         * i386.h (TARGET_SWITCHES): Fix descriptions.
9625
9626 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9627
9628         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
9629
9630 2001-09-06  Ira Ruben  <ira@apple.com>
9631
9632         Remove OP_IDENTIFIER.
9633         * tree.def (OP_IDENTIFIER): Remove.
9634         * tree.c (tree_node_kind enum): Remove op_id_kind.
9635         (tree_node_kind_names): Remove "op_identifiers".
9636         (make_node): Remove OP_IDENTIFIER test.
9637         (build_op_identifier): Removed because it isn't being used.
9638         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
9639         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
9640
9641 2001-09-06  Richard Henderson  <rth@redhat.com>
9642
9643         * simplify-rtx.c (simplify_binary_operation): Revert last change.
9644
9645 2001-09-06  Richard Henderson  <rth@redhat.com>
9646
9647         * simplify-rtx.c (simplify_binary_operation): Simplify contents
9648         of CONST.
9649
9650 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9651
9652         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
9653         number used for CR register.
9654
9655 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
9656                           Joern Rennecke (amylaar@cygnus.com)
9657
9658         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
9659         * h8300.c (initial_offset): Handle offset between RP and FP.
9660         (h8300_return_addr_rtx): New function.
9661         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
9662         return register.
9663         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
9664         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9665         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
9666         (CAN_ELIMINATE, REGISTER_NAMES):
9667         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
9668
9669 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
9670
9671         Remove TYPE_NONCOPIED_PARTS.
9672         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
9673         (struct tree_type): Remove noncopied_parts.
9674         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
9675         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
9676         (fixed_type_p): Remove.
9677         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
9678         (expand_expr, MODIFY_EXPR): Likewise.
9679         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
9680         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
9681
9682 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
9683
9684         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
9685         compiler warnings.
9686         (mask64_operand): Likewise.
9687         (includes_rldic_lshift_p): Likewise.
9688         (includes_rldicr_lshift_p): Likewise.
9689
9690 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
9691
9692         * objc/objc-act.c (build_message_expr): If a class method cannot
9693         be found, do not issue a warning if a corresponding instance
9694         method exists in the root class.
9695
9696 2001-09-05  Richard Henderson  <rth@redhat.com>
9697
9698         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
9699
9700 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
9701
9702         * function.c (ggc_mark_struct_function): Mark f->outer.
9703         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
9704         * integrate.c (output_inline_function): ... not here.
9705
9706 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
9707
9708         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
9709
9710         * i386.c (size_cost): New static variable.
9711         (override_function): Use size_cost when -Os is specified.
9712
9713         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
9714         properly;  Use current_function_calls_eh_return.
9715         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
9716         use leave to avoid dependency chain.
9717
9718         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
9719         get BB loop_depth instead of computing it from LOOP notes.
9720
9721         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
9722
9723 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9724
9725         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9726         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9727         UNALIGNED_DOUBLE_INT_ASM_OP): Define
9728
9729 2001-09-05  Jeffrey A Law  (law@cygnus.com)
9730             Jason Merrill (jason@redhat.com)
9731
9732         * stor-layout.c (layout_type): Complain if an array's size can
9733         not be represented in a size_t.
9734
9735         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
9736
9737 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
9738
9739         * gcc.c: (process_command) Add parentheses around assignment
9740         used as truth value.
9741
9742 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
9743
9744         * config/mips/mips.c (save_restore_insns): Don't mark any register
9745         save slots as unchanging if current_function_calls_eh_return.
9746
9747 2001-09-05  Richard Henderson  <rth@redhat.com>
9748
9749         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
9750         * config/alpha/alpha-protos.h: Declare it.
9751         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
9752         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
9753         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
9754         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
9755         (REG_OK_FOR_BASE_P): Select one of the above.
9756
9757 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
9758
9759         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
9760         (crti.o): Prefix name of object file with $(T).
9761         (crtn.o): Likewise.
9762
9763 2001-09-05  David S. Miller  <davem@redhat.com>
9764
9765         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9766         * config/sparc/linux64.h: Likewise.
9767
9768 2001-09-05  Andreas Jaeger  <aj@suse.de>
9769
9770         * doc/invoke.texi (i386 Options): -mwide-multiply is not
9771         available anymore, remove the documentation.
9772         (i386 Options): Fix typo, cleanup index entries.
9773
9774         * prefix.c (concat): Remove, we can use the version from liberty.
9775
9776 2001-09-05  Richard Henderson  <rth@redhat.com>
9777
9778         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
9779         New functions split out of md file expanders.
9780         * config/alpha/alpha-protos.h: Declare them.
9781         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
9782
9783 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9784
9785         * cppmacro.c (funlike_invocation_p): No need to restore context.
9786
9787 2001-09-04  Richard Henderson  <rth@redhat.com>
9788
9789         * reload.c (push_reload): Export.
9790         * reload.h (push_reload): Declare it.
9791
9792         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
9793         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
9794         * config/alpha/alpha.c (alpha_legitimize_address): New.
9795         (alpha_legitimize_reload_address): Likewise.
9796         * config/alpha/alpha-protos.h: Declare them.
9797
9798 2001-09-04  Stan Shebs  <shebs@apple.com>
9799
9800         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
9801         * config/darwin.c (machopic_stub_name): Account for internally
9802         generated lib calls such as memcpy.
9803
9804 2001-09-04  Richard Henderson  <rth@redhat.com>
9805
9806         * unwind.h (_UA_END_OF_STACK): New flag.
9807         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
9808
9809 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
9810
9811         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
9812
9813 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
9814
9815         * config/mips/mips.c (save_restore_insns): Change base_offset to
9816         fp_offset in second call to mips_emit_frame_related_store.
9817
9818 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
9819
9820         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
9821         sometimes be represented as a NOTE of type
9822         NOTE_INSN_DELETED_LABEL.
9823         (Insns): Document NOTE_INSN_DELETED_LABEL.
9824
9825 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
9826
9827         * c-common.h (tree_dump_index): Add more comments.
9828         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
9829         (dump_option_value_info): New struct.
9830         (dump_options): New array.
9831         (dump_switch_p): Parse switch options symbolically.
9832         * doc/invoke.texi (-fdump-ast): Rename to ...
9833         (-fdump-tree): ... here. Document that options are symbolic, and
9834         not all are applicable.
9835
9836 2001-09-04  David S. Miller  <davem@redhat.com>
9837
9838         * config/sparc/sparc.md (define_splits): Kill constraints.
9839
9840         Cleanup redundant and unused insn attributes.
9841         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
9842         binary, and move.  Mark ialu as default.
9843         (commented out define_function_unit "alu"): Kill.
9844         (define_attr "use_clobbered"): Kill.
9845         (whole file): Kill address insn type references.  Replace
9846         all unary/binary/move references with ialu.
9847         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
9848         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
9849         TYPE_IALU.
9850
9851         Simplify length insn attribute and make more judicious use
9852         of insn attribute defaulting.
9853         * config/sparc/sparc.md (all insns with length > one): Mark as
9854         insn type multi if real instructions, else use default if
9855         it is a forced splitter.
9856         (all insns with length == one): Use default insn length.
9857         (all insns of type ialu): Use default insn type.
9858
9859         Fix erroneous insn attribute settings.
9860         (addx): Set insn type to misc.
9861         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
9862         const_umulsidi3_sp64): Set insn type to imul.
9863
9864         Track SFmode vs DFmode insns according to UltraSPARC
9865         scheduling rules.
9866         * config/sparc/sparc.md ("fptype"): New attribute, default
9867         to "single".
9868         (all DFmode single insns): Mark as fptype "double".
9869
9870 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
9871
9872         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
9873
9874 2001-09-03  Richard Henderson  <rth@redhat.com>
9875
9876         * function.h (struct function): Add arg_pointer_save_area_init.
9877         * function.c (expand_function_end): Init arg_pointer_save_area.
9878         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
9879         when called from a nested function.
9880
9881 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
9882
9883         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
9884         is enabled.
9885
9886 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
9887
9888         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
9889
9890 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
9891
9892         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
9893         (emit_push_insn): Use specified padding direction when
9894         STACK_PUSH_CODE is POST_INC.
9895
9896         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
9897
9898 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9899
9900         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
9901
9902 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
9903
9904         * cppinit.c (cpp_start_read): Free the imacros list as we
9905         traverse it.  Don't free the chains before returning.
9906         (_cpp_push_next_buffer): Only try pushing buffers if we've
9907         completed -imacros handling.
9908
9909 2001-08-31  Eric Christopher  <echristo@redhat.com>
9910
9911         * gcc.c (handle_braces): Add explaination for abort.
9912
9913 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
9914
9915         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
9916         move adjustment of bitpos instead.
9917
9918 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
9919
9920         * function.c: Remove all_functions.  Make outer_function_chain
9921         static.
9922         (init_function_start): Don't add new function structure to
9923         all_functions.
9924         (find_function_data, push_function_context_to,
9925         pop_function_context_from, put_var_into_stack,
9926         trampoline_address): Update for changed structure element names.
9927         (push_function_context_to): Disentangle.
9928         (free_after_compilation): Also free F.
9929         (expand_dummy_function_end): Don't free cfun here.
9930         (put_var_into_stack): Comment why we can't use find_function_data here.
9931         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
9932         (mark_function_chain): Split into maybe_mark_struct_function and
9933         ggc_mark_struct_function.  Export the latter.
9934         (init_function_once): Mark from cfun and outer_function_chain;
9935         not all_functions.
9936
9937         * function.h (struct function): Kill next_global.  Rename next
9938         to outer.  All users updated to match.
9939         (all_functions, outer_function_chain): Don't declare.
9940
9941         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
9942         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
9943         don't touch f->inlinable, after calling rest_of_compilation.
9944
9945         * tree.h: Forward-declare struct function.  Prototype
9946         ggc_mark_struct_function.
9947
9948 2001-08-31  Kazu Hirata  <kazu@hxi.com>
9949
9950         * config/h8300/h8300.md (*andorhi3): Fix typos.
9951
9952 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9953
9954         * calls.c (emit_library_call_value): Don't use a fixed
9955         argument after VA_CLOSE, i.e. out of scope in traditional C.
9956
9957         * emit-rtl.c (gen_rtvec): Likewise.
9958
9959 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9960
9961         * Makefile.in (c-pragma.o): Depend on output.h.
9962         (reorg.o): Depend on except.h.
9963
9964         * c-pragma.c: Include output.h.
9965
9966         * reorg.c: Include except.h.
9967
9968         * unwind-dw2.c: Call __builtin_alloca, not alloca.
9969
9970 2001-08-31  Richard Henderson  <rth@redhat.com>
9971
9972         * sched-deps.c (add_dependence): Don't elide dependency if the
9973         conditional used by insn is modified in elem.
9974
9975 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
9976
9977         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
9978
9979 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
9980
9981         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
9982         dump_switch_p.
9983
9984 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
9985
9986         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
9987         function.
9988         (stormy16_asm_out_constructor): New function.
9989         (TARGET_ASM_CONSTRUCTOR): Define.
9990         (TARGET_ASM_DESTRUCTOR): Define.
9991
9992 2001-08-31  Andreas Jaeger  <aj@suse.de>
9993
9994         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
9995         * loop.c (add_label_notes): Likewise.
9996         * reload.c (find_reloads): Likewise.
9997         * config/sh/sh.c (machine_dependent_reorg): Likewise.
9998
9999 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
10000
10001         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
10002         code here.  Take _Unwind_{W,Sw}ord*.
10003         (read_encoded_value_with_base): Use them.
10004         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
10005         words.
10006         (extract_cie_info): Simplify read_?leb128 handling.
10007         (execute_stack_op, execute_cfa_program): Likewise.
10008         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
10009
10010 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
10011
10012         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
10013         the frame pointer to pop the stack if convenient.
10014
10015         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
10016         Don't use post-increment before combine.
10017         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
10018         a call-saved register.
10019
10020 2001-08-31  Andreas Jaeger  <aj@suse.de>
10021
10022         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
10023         code was correct.
10024
10025 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
10026
10027         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
10028         not DIV/MOD, of course.
10029
10030 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
10031
10032         * rtl.def: Undo my patch commited 2001-08-27.
10033
10034         * genattrtab.c: Ditto.
10035
10036         * rtl.h: Ditto.
10037
10038         * sched-int.h: Ditto.
10039
10040         * target-def.h: Ditto.
10041
10042         * target.h: Ditto.
10043
10044         * haifa-sched.c: Ditto.
10045
10046         * sched-rgn.c: Ditto.
10047
10048         * sched-vis.c: Ditto.
10049
10050         * Makefile.in: Ditto.
10051
10052         * doc/md.texi: Ditto.
10053
10054         * doc/tm.texi: Ditto.
10055
10056         * doc/contrib.texi: Ditto.
10057
10058         * doc/gcc.texi: Ditto.
10059
10060         * genattrtab.h: Remove it.
10061
10062         * genautomata.c: Remove it.
10063
10064         * genattr.c: Undo my patch and Richard Henderson's patch commited
10065         2001-08-27.
10066
10067 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
10068
10069         * config.gcc (h8300-*-elf*): New case.
10070         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
10071         (SUBTARGET_CPP_SPEC): Define.
10072         (EXTRA_SPECS): Define.
10073         (SUBTARGET_EXTRA_SPECS): Define.
10074         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
10075         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
10076
10077 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
10078
10079         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
10080         (LIB2FUNCS_EXTRA): Define.
10081         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
10082         config/h8300/fixunssfsi.c: New file.
10083
10084 2001-08-30  Kazu Hirata  <kazu@hxi.com>
10085
10086         * config/h8300/h8300.md (zero_extendqihi2): Changes to
10087         define_expand to accommodate target-specific attributes.
10088         (anonymous zero_extendqihi2 patterns): New.
10089
10090 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
10091
10092         * h8300.md (*andorhi3): New pattern.
10093
10094 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
10095
10096         * h8300.c (dosize): Fix test for "sub".
10097
10098 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
10099
10100         * c-typeck.c (pointer_diff): Try to eliminate common term before
10101         doing conversions.
10102
10103 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
10104
10105         * config/arm/arm.c (arm_compute_initial_elimination_offset):
10106         Account for the saves of the FP registers.
10107
10108         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
10109         (TEXT_SECTION_ASM_OP): Define.
10110         (INIT_SECTION_ASM_OP): Define.
10111         (FINI_SECTION_ASM_OP): Define.
10112         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
10113         (RDATA_SECTION_FUNCITON): Provide prototype.
10114
10115 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
10116
10117         * reload1.c (move2add_note_store): Correct typo checking for
10118         argument pushes.
10119
10120 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
10121
10122         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
10123         note should not be considered outside the libcall block.
10124
10125 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10126
10127         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
10128
10129 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10130
10131         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
10132
10133 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10134
10135         * config/h8300/h8300-protos.h: Add a prototype for
10136         emit_logical_op.
10137         * config/h8300/h8300.c (emit_logical_op): New.
10138         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
10139         (andsi3): Likewise.
10140         (iorhi3): Likewise.
10141         (iorsi3): Likewise.
10142         (xorhi3): Likewise.
10143         (xorsi3): Likewise.
10144
10145 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10146
10147         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
10148         comparison with rtx INTVAL.
10149         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
10150         expression.
10151         * pa.h (FUNCTION_ARG_SIZE): Likewise.
10152
10153 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10154
10155         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
10156         comment typos.
10157
10158 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10159
10160         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
10161         (reg n) to (mem (pre_dec (reg n))
10162         (anonymous movsi pattern): Likewise.
10163
10164 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10165
10166         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
10167
10168 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10169
10170         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
10171         several special constants.
10172
10173 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10174
10175         * config/h8300/lib1funcs.asm: Fix comment typos.
10176
10177 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10178
10179         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
10180         Fix format specifier warnings.
10181
10182         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
10183         inet_makeaddr, semctl): Prototype.
10184
10185         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
10186         (save_restore_insns): Use base_offset, not gp_offset.
10187
10188         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
10189         (ASM_OUTPUT_BYTE): Fix format specifier warning.
10190
10191 2001-08-29  Richard Henderson  <rth@redhat.com>
10192
10193         * bb-reorder.c (function_tail_eff_head): New.
10194         (record_effective_endpoints): Set it.
10195         (fixup_reorder_chain): Use it.
10196
10197 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10198
10199         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
10200
10201 2001-08-28  Dale Johannesen  <dalej@apple.com>
10202
10203         * config/darwin.c (machopic_function_base_name): Add const
10204         qualifier to a string.
10205         (darwin_encode_section_info): Ditto.
10206
10207 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10208
10209         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
10210         function definition.
10211
10212 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
10213
10214         * df.h (struct df): Add rts_order variable.
10215
10216         * df.c (df_visit_next_rts): New function.
10217         (df_visit_next): Renamed to df_visit_next_rc
10218         (df_analyse_1): Allocate/compute/free rts_order as well.
10219         (df_rd_global_compute): Use df_visit_next_rc instead of
10220         df_visit_next.
10221         (df_ru_global_compute): Use df_visit_next_rts instead of
10222         df_visit_next.
10223
10224         * flow.c (flow_reverse_top_sort_order_compute): New function.
10225
10226         * basic-block.h: Add prototype.
10227
10228 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
10229
10230         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
10231         blocks, the BB_REACHABLE is now set, rather than aux being
10232         non-NULL. Update the test to reflect this.
10233
10234 2001-08-28  Eric Christopher  <echristo@redhat.com>
10235
10236         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
10237         config/mips/crti.asm: Ditto.
10238
10239 2001-08-28  Eric Christopher <echristo@redhat.com>
10240             Richard Henderson <rth@redhat.com>
10241
10242         * c-pragma.h (add_weak): Move prototype from here...
10243         * output.h (add_weak): ... to here.
10244         * varasm.c (add_weak): Fix typo.
10245         * config/mips/crti.asm: New file.
10246         * config/mips/crtn.asm: Ditto.
10247         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
10248         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
10249         (INVOKE__main): Ditto.
10250         (INIT_SECTION_ASM_OP): New.
10251         (FINI_SECTION_ASM_OP): Ditto.
10252         (STARTFILE_SPEC): Add crti.
10253         (ENDFILE_SPEC): Add crtn.
10254         * config/mips/elf64.h: Same.
10255         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
10256         Remove.
10257         * config/mips/vxworks.h: Ditto.
10258         * config/mips/t-elf: Support crti and crtn.
10259
10260 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10261
10262         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
10263         INSN_LIST.
10264
10265 2001-08-28  Richard Henderson  <rth@redhat.com>
10266
10267         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
10268         (one_cmplbi2 splitter): Remove redundant test.
10269
10270 2001-08-28  Dale Johannesen  <dalej@apple.com>
10271
10272         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
10273
10274 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
10275
10276         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
10277
10278 2001-08-28  Stan Shebs  <shebs@apple.com>
10279
10280         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
10281         (UNALIGNED_SHORT_ASM_OP): Define.
10282         (UNALIGNED_INT_ASM_OP): Define.
10283
10284 2001-08-28  Will Cohen  <wcohen@redhat.com>
10285
10286         * config/rs6000/rs6000.md (store_multiple): Correct RTL
10287         generation for first set.
10288
10289 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
10290
10291         * flow.c (redirect_edge_succ_nodup): Return new edge.
10292         (try_simplify_condjump): Use new edge.
10293         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
10294
10295         * cse.c (cse_basic_block): Skip note instructions.
10296
10297 2001-08-27  Richard Henderson  <rth@redhat.com>
10298
10299         * combine.c (combine_simplify_rtx): Don't reverse condition
10300         if there is no reverse for the condition.
10301         (simplify_comparison): Don't simplify subregs from INT to FP.
10302
10303         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
10304         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
10305         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
10306         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
10307         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
10308         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
10309
10310 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
10311
10312         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
10313         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
10314         (pushqi1): New.
10315         (adddi_dilshr32, adddi_dishl32): Only data register can be
10316         source for mem destination.
10317
10318         * expmed.c (store_bit_field): Ignore adjustment to bitpos
10319         and use bitnum to decide about register move.
10320
10321 2001-08-27  Richard Henderson  <rth@redhat.com>
10322
10323         * genattr.c (main): Emit state_t even when not doing scheduling.
10324
10325 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
10326             Richard Henderson  <rth@redhat.com>
10327
10328         * gcse.c (reg_first_set, reg_last_set): Replace with ...
10329         (reg_avail_info, current_bb): ... these.
10330         (oprs_unchanged_p, record_last_reg_set_info): Use them.
10331         (compute_hash_table): Likewise.
10332
10333 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
10334
10335         * flow.c (verify_flow_info): Use checksums to verify edges.
10336
10337 2001-08-27  Richard Henderson  <rth@redhat.com>
10338
10339         * genautomata.c (expand_automata): Always create a description.
10340
10341 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
10342
10343         * optabs.c (expand_binop): Correctly handle the carry in multiword
10344         add/subtract operations.
10345
10346 2001-08-27  Fred Fish  <fnf@be.com>
10347
10348         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
10349         __SIZE_TYPE__.
10350
10351 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
10352
10353         * reload.c (find_reloads_toplev): Back out this change:
10354
10355         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
10356
10357         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
10358         mem if the address is a mode_dependent_address_p.
10359
10360 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
10361
10362         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
10363         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
10364         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
10365         RTL constructions.
10366
10367         * genattr.c (main): New variable num_insn_reservations.  Increase
10368         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
10369         pipeline hazard recognizer interface.
10370
10371         * genattrtab.h: New file.
10372
10373         * genattrtab.c: Include genattrtab.h.
10374         (attr_printf, check_attr_test, make_internal_attr,
10375         make_numeric_value): Move protypes into genattrtab.h.  Define them
10376         as external.
10377         (num_dfa_decls): New global variable.
10378         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
10379         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
10380         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
10381         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
10382
10383         * genautomata.c: New file.
10384
10385         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
10386
10387         * sched-int.h: (curr_state): Add the external definition for
10388         automaton pipeline interface.
10389         (haifa_insn_data): Add comments for members blockage and units.
10390
10391         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10392         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10393         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10394         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10395         TARGET_SCHED_DFA_POST_CYCLE_INSN,
10396         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10397         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
10398         macros.
10399         (TARGET_SCHED): Use the new macros.
10400
10401         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
10402         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
10403         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
10404         dfa_bubble): New members in gcc_target.sched.
10405
10406         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
10407         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
10408         (insn_queue): Redefine it as pointer to array.
10409         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
10410         INSN_QUEUE_SIZE.
10411         (max_insn_queue_index_macro_value): New variable.
10412         (curr_state, dfa_state_size, ready_try): New varaibles for
10413         automaton interface.
10414         (ready_element, ready_remove, max_issue): New function prototypes
10415         for automaton interface.
10416         (choose_ready): New function prototype.
10417         (insn_unit, blockage_range): Add comments.
10418         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
10419         FUNCTION_UNITS_SIZE == 0.
10420         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
10421         actual_hazard, potential_hazard): Add comments.
10422         (insn_cost): Use cost -1 as undefined value.  Remove
10423         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
10424         pipeline interface.
10425         (ready_element, ready_remove): New functions for automaton
10426         interface.
10427         (schedule_insn): Add new code for automaton pipeline interface.
10428         (queue_to_ready): Add new code for automaton pipeline interface.
10429         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
10430         (debug_ready_list): Print newline when the queue is empty.
10431         (max_issue): New function for automaton pipeline interface.
10432         (choose_ready): New function.
10433         (schedule_block): Add new code for automaton pipeline interface.
10434         Print ready list before scheduling each insn.
10435         (sched_init): Add new code for automaton pipeline interface.
10436         Initiate insn cost by -1.
10437         (sched_finish): Free the current automaton state and finalize
10438         automaton pipeline interface.
10439
10440         * sched-rgn.c: Include target.h.
10441         (init_ready_list, new_ready, debug_dependencies): Add new code for
10442         automaton pipeline interface.
10443
10444         * sched-vis.c: Include target.h.
10445         (get_visual_tbl_length): Add code for automaton interface.
10446         (target_units, print_block_visualization):  Add comments.
10447
10448         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
10449         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
10450         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
10451         (getruntime.o, genautomata.o): New entries.
10452         (genattrtab.o): Add new dependency file genattrtab.h.
10453         (genattrtab): Add new dependencies.  Link it with `libm.a'.
10454         (getruntime.o, hashtab.o): New entries for canadian cross.
10455
10456         * doc/md.texi: Description of automaton based model.
10457
10458         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
10459         Add comments.
10460         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10461         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10462         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10463         TARGET_SCHED_DFA_POST_CYCLE_INSN,
10464         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10465         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10466         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
10467         hook descriptions.
10468         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
10469         MAX_DFA_ISSUE_RATE): New macro descriptions.
10470
10471         * doc/contrib.texi: Add dfa based scheduler contribution.
10472
10473         * doc/gcc.texi: Add more information about genattrtab.
10474
10475 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
10476
10477         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
10478         an RTL basic block.
10479
10480 2001-08-27  Richard Henderson  <rth@redhat.com>
10481
10482         * function.c (expand_function_end): Don't init arg_pointer_save_area.
10483         (get_arg_pointer_save_area): New.  Create an init it here.
10484         (fix_lexical_addr): Use it.
10485         * function.h: Declare it.
10486         * builtins.c (expand_builtin_setjmp_receiver): Use it.
10487         * stmt.c (expand_nl_goto_receiver): Use it.
10488
10489 2001-08-27  Richard Henderson  <rth@redhat.com>
10490
10491         * final.c (final_scan_insn): Don't enter APP_ON mode for
10492         empty asm strings.
10493
10494         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
10495         alignment for assemble_integer for DW_EH_PE_aligned.
10496         * except.c (output_function_exception_table): Likewise.
10497
10498 2001-08-26  Andreas Jaeger  <aj@suse.de>
10499
10500         * c-tree.h: Add prototyp for c_sizeof_nowarn.
10501
10502 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
10503
10504         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
10505
10506 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
10507
10508         * config/rs6000/rs6000.c (mask_operand): Rewrite without
10509         bit-shifting loop.
10510         (mask64_operand): Likewise.
10511         (rldic_operand): Delete.
10512         (includes_lshift64_p): Delete.
10513         (includes_rldic_lshift_p): New function.
10514         (includes_rldicr_lshift_p): New function.
10515         (print_operand): Don't call rldic_operand in case 'W'.
10516         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
10517         (includes_lshift64_p): Remove.
10518         (includes_rldic_lshift_p): Declare.
10519         (includes_rldicr_lshift_p): Declare.
10520         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
10521         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
10522         Replace match_operand rldic_operand predicate with
10523         const_int_operand.  Replace includes_lshift64_p condition with
10524         includes_rldic_lshift_p.
10525         <ashldi3_internal 64 bit rldicr patterns>: New.
10526
10527 2001-08-27  Andreas Jaeger  <aj@suse.de>
10528
10529         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
10530         * errors.c: Likewise.
10531         * final.c: Likewise.
10532         * dwarf2asm.c: Likewise.
10533         * doprint.c (checkit): Likewise.
10534         * diagnostic.c: Likewise.
10535         * collect2.c: Likewise.
10536         * calls.c: Likewise.
10537         * c-semantics.c (build_stmt): Likewise.
10538         * c-format.c (status_warning): Likewise.
10539         * c-errors.c (pedwarn_c99): Likewise.
10540         * builtins.c (validate_arglist): Likewise.
10541         * config/pj/pj.c (pj_printf): Likewise.
10542         * fix-header.c: Likewise.
10543         * gcc.c: Likewise.
10544         * gcov.c (fnotice): Likewise.
10545         * gensupport.c (message_with_line): Likewise.
10546         * mips-tfile.c: Likewise.
10547         * protoize.c (notice): Likewise.
10548         * read-rtl.c (fatal_with_file_and_line): Likewise.
10549         * rtl-error.c: Likewise.
10550         * tradcpp.c: Likewise.
10551         * tree.c: Likewise.
10552         * cp/tree.c (build_min_nt): Likewise.
10553         (build_min): Likewise.
10554         * cp/lex.c: Likewise.
10555         * cp/errfn.c: Likewise.
10556         * cp/rtti.c (create_pseudo_type_info): Likewise.
10557
10558 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
10559
10560         * df.c (df_uses_record): Return after recording all uses
10561         in ASM_OPERANDS.
10562
10563 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
10564
10565         * df.c (df_insn_modify): Realloc the INSN table here, if
10566         necessary, here, too.
10567
10568 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
10569
10570         * config/mips/mips.c (mips_function_value): Handle complex return
10571         values.
10572
10573 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
10574
10575         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
10576         unshared.
10577         * reload.c (make_memloc): Copy result if it is still
10578         reg_equiv_memory_loc[regno] on return.
10579         (subst_reloads) [ENABLE_CHECKING]: Check that none of
10580         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
10581         reg_equiv_mem are modified by the substitutions.
10582
10583 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
10584
10585         * predict.c (expensive_function_p): New.
10586         * rtl.h (expensive_function_p): Declare.
10587         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
10588         (use_fast_prologue_epilogue): New static variable.
10589         (expand_prologue): Set it; emit short prologues if unset.
10590         (expand_epilogue): Likewise.
10591
10592 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
10593
10594         * config.gcc: Add stormy16-*-elf case.
10595         * config/stormy16/stormy-abi: New file.
10596         * config/stormy16/stormy16-lib2.c: New file.
10597         * config/stormy16/stormy16-protos.h: New file.
10598         * config/stormy16/stormy16.c: New file.
10599         * config/stormy16/stormy16.h: New file.
10600         * config/stormy16/stormy16.md: New file.
10601         * config/stormy16/t-stormy16: New file.
10602
10603 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
10604
10605         * i386.h (no-accumulate-outgoing-args): Use proper mask.
10606
10607 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
10608
10609         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
10610         descriptor members are pointer size, not constant 4.
10611         * config/rs6000/rs6000.md (define_splits): Remove more unused
10612         constraints.
10613
10614 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10615
10616         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
10617
10618 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
10619
10620         * cp/rtti.c (VPARAMS): Fix parameter.
10621
10622 2001-08-24  Zack Weinberg  <zackw@panix.com>
10623
10624         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
10625         to zero.
10626         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
10627         to switch.
10628         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
10629         in if controlling use of insv.
10630         (extract_bit_field): Likewise, for extv and extzv.
10631
10632 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
10633
10634         * i386.md (movcc peep2): Fix load of 0.
10635
10636 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10637
10638         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
10639         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
10640
10641 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
10642
10643         * c-pragma.h: Move weak_syms and weak_decls...
10644         * varasm.c: ...here.  Now static.
10645         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
10646         depend on HANDLE_PRAGMA_WEAK.
10647
10648         * c-common.c (c_alignof, c_alignof_expr): Move here...
10649         * c-typeck.c: ...from here.
10650         * c-tree.h, c-common.h: Adjust.
10651
10652 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
10653
10654         * config/ia64/ia64.c (rws_update): If !pred, set write_count
10655         instead of incrementing it.
10656
10657         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
10658         asm ready, don't try to move them all into the same array element.
10659
10660 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
10661
10662         * function.c (thread_prologue_and_epilogue_insns): Avoid
10663         fallthru flag on edge to exit.
10664
10665         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
10666
10667         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
10668         dead edges.
10669
10670 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
10671
10672         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
10673         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
10674         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
10675         Remove prototype.
10676
10677 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
10678
10679         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
10680         replace "GNU CC" with "GCC".
10681
10682 2001-08-23  Richard Henderson  <rth@redhat.com>
10683
10684         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
10685         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
10686         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
10687         Need GR between FR and not GR_AND_FR.
10688         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
10689         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
10690         AR regs before GR regs.
10691         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
10692         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
10693         (REGISTER_MOVE_COST): Update.
10694         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
10695
10696 2001-08-23  Richard Henderson  <rth@redhat.com>
10697
10698         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
10699         a register class.
10700
10701 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
10702
10703         * reload1.c (emit_reload_insns): Don't look for notes
10704         on a NULL store_insn.
10705
10706 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10707
10708         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
10709         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
10710         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
10711         format specifier warnings.
10712         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
10713
10714 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
10715
10716         * config/i386/i386-protos.h: Correct declaration of
10717         i386_pe_asm_named_section.
10718
10719 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10720
10721         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
10722         variable i.
10723         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
10724
10725 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10726
10727         * cpperror.c (print_location): Don't show _Pragma.
10728         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
10729         and file change callback generation here.
10730         (stack_include_file): Update use of cpp_push_buffer.
10731         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
10732         (struct cpp_buffer): Remove type, pfile members.
10733         * cppinit.c (cpp_handle_option): Use free_chain.
10734         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
10735         (skip_escaped_newlines, get_effective_char, lex_percent): Take
10736         a cpp_reader rather than a cpp_buffer.
10737         (skip_escaped_newlines, get_effective_char, skip_block_comment,
10738         skip_line_comment, parse_string, lex_percent, lex_dot,
10739         _cpp_lex_token): Update accordingly.
10740         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
10741         generation here.
10742         (cpp_push_buffer): Update prototype.
10743         (run_directive): Update use of cpp_push_buffer.
10744         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
10745         handle_assertion): Update use of run_directive.
10746         * cpplib.h (enum cpp_buffer_type): Remove.
10747         (cpp_push_buffer): Update prototype.
10748         * fix-header.c (read_scan_file): Update.
10749
10750 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10751
10752         * gcc.c (struct prefix_list): Change prefix to const char *.
10753
10754 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10755
10756         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
10757
10758 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
10759
10760         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
10761         from a new MEM.
10762
10763         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
10764         a squeezable note.
10765         * rtl.h: Adjust.
10766         * ifcvt.c (dead_or_predicable): Adjust.
10767         * loop.c (find_and_verify_loops): Adjust.
10768         * stmt.c (expand_end_case): Adjust.
10769         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
10770         head and end insn pointers in the basic block, not just local copies.
10771         (merge_blocks_move_predecessor_nojumps): Likewise.
10772
10773 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
10774
10775         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
10776         bitmap.h, builtin-types.def, builtins.c, builtins.def,
10777         c-aux-info.c, c-common.c, c-common.def, c-common.h,
10778         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
10779         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
10780         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
10781         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
10782         conditions.h, config.gcc, configure.frag, configure.in,
10783         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
10784         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
10785         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
10786         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
10787         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
10788         emit-rtl.c, errors.c, errors.h, except.c, except.h,
10789         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
10790         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
10791         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
10792         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
10793         gencheck.c, gencodes.c, genconfig.c, genemit.c,
10794         genextract.c, genflags.c, gengenrtl.c, genmultilib,
10795         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
10796         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
10797         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
10798         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
10799         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
10800         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
10801         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
10802         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
10803         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
10804         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
10805         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
10806         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
10807         params.h, predict.c, predict.def, predict.h, prefix.c,
10808         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
10809         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
10810         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
10811         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
10812         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
10813         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
10814         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
10815         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
10816         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
10817         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
10818         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
10819         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
10820         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
10821         xcoffout.h: replace "GNU CC" with "GCC".
10822
10823 2001-08-21  Richard Henderson  <rth@redhat.com>
10824
10825         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
10826         (final_scan_insn): Consider jump tables data even if we have no
10827         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
10828         ADDR_VEC_ALIGN.
10829         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
10830         (ASM_OUTPUT_CASE_END): Remove.
10831         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
10832         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
10833         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
10834
10835 2001-08-21  Richard Henderson  <rth@redhat.com>
10836
10837         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
10838         at barrier insns.  Emit stop bits before barriers.
10839
10840         * flow.c (flow_find_cross_jump): Don't consider unconditional
10841         return insns for commoning.
10842
10843         * final.c (compute_alignments): Fix typo.
10844
10845         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
10846         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
10847         (store_bit_field): Use mode_for_extraction more places.
10848         (extract_bit_field): Likewise.
10849
10850 2001-08-21  Zack Weinberg  <zackw@panix.com>
10851
10852         * caller-save.c: Don't include insn-codes.h.
10853         (reg_save_code, reg_restore_code): Make arrays of int.
10854         All uses updated to match.
10855         (insert_save, insert_restore): No need to initialize "code"
10856         variable upon declaration.
10857         * Makefile.in: update dependencies; fix typo in clean rule.
10858
10859 2001-08-21  Richard Henderson  <rth@redhat.com>
10860
10861         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
10862         (merge_if_block): Handle fallout from same.
10863
10864 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10865
10866         * builtins.c (type_to_class): Fix typo in last change.
10867
10868 2001-08-21  Richard Henderson  <rth@redhat.com>
10869
10870         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
10871         ia64_asm_output_label.
10872
10873         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
10874         copy of gp while the real gp register contains garbage.
10875
10876 2001-08-21  Zack Weinberg  <zackw@panix.com>
10877
10878         * expmed.c (mode_for_extraction): New function.
10879         (store_bit_field, extract_bit_field): Use it.
10880         * expr.h: Prototype it and provide an enum for its first argument.
10881
10882         * combine.c, function.c, recog.c: Don't include insn-codes.h.
10883         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
10884         and digging through the insn_data tables.
10885         * Makefile.in: Update dependencies.
10886
10887 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10888
10889         * cppfiles.c (stack_include_file): line-map.c now handles include
10890         depth.
10891         (handle_missing_handler): Similarly.
10892         (_cpp_execute_include): Similarly.
10893         (_cpp_pop_file_buffer): Similarly.
10894         * cpphash.h (struct cpp_reader): Remove system_include_depth,
10895         buffer_stack_depth and include_depth.
10896         * cpplib.c (do_include_common): line-map.c now handles include depth.
10897         (cpp_push_buffer): Similarly.
10898         (_cpp_pop_buffer): Similarly.
10899         * cppmacro.c (builtin_macro): Update.
10900         * line-map.c (init_line_maps): Set depth.
10901         (add_line_map): Increment "used" earlier.  Update and use the
10902         include depth.
10903         (trace_include): Use the include depth.
10904         * line-map.h (struct line_maps): New member depth.
10905
10906 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10907
10908         * cppfiles.c (stack_include_file): Don't handle -H here.
10909         * cppinit.c (cpp_start_read): Set include tracing after
10910         cpp_post_options and after stacking the main file.
10911         * line-map.c (trace_include): New.
10912         (init_line_maps, add_line_map): Update.
10913         * line-map.h (struct line_maps): New member trace_includes.
10914
10915 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10916
10917         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
10918         * cppfiles.c (stack_include_file): Only stack a file if there
10919         is something to do.  Return a boolean indicating whether a
10920         buffer was stacked or not.
10921         (_cpp_execute_include): Similarly.
10922         (_cpp_read_file): Similarly.
10923         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
10924
10925 2001-08-21  Sam Steingold  <sds@gnu.org>
10926
10927         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
10928         (RECACHE): keep obufp_before_macroname up to date
10929
10930 2001-08-21  Zack Weinberg  <zackw@panix.com>
10931
10932         * stmt.c: Don't include insn-codes.h.
10933         (expand_end_case): Machine specific logic moved to expr.c.
10934         No need to worry about __builtin_classify_type.
10935         (check_for_full_enumeration_handling, emit_case_nodes):
10936         Kill #if 0 blocks.
10937
10938         * builtins.o (expand_builtin_classify_type): Split up so code
10939         can be shared with fold_builtin_classify_type.
10940         (type_to_class, fold_builtin_classify_type): New functions.
10941         (fold_builtins): Handle __builtin_classify_type.
10942
10943         * expr.c (do_tablejump): Now static.
10944         (case_values_threshold, try_casesi, try_tablejump): New;
10945         code mostly from stmt.c (expand_end_case).
10946         (expr.h): Update prototypes.
10947
10948         * Makefile.in (stmt.o): Update dependencies.
10949
10950 2001-08-21  Will Cohen  <wcohen@redhat.com>
10951
10952         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
10953         declaration of variable i.
10954         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
10955         declaration of variable i.
10956
10957 2001-08-21  Richard Henderson  <rth@redhat.com>
10958
10959         * crtstuff.c: Fix thinko last change.  Move list tails to start
10960         of CRT_END section.  Tidy ifdefs.
10961         (__EH_FRAME_BEGIN__): Always static for ELF.
10962         (__do_global_ctors_1): Rename from __frame_dummy.
10963         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
10964         name change; don't hide __EH_FRAME_BEGIN__.
10965
10966 2001-08-21  Richard Henderson  <rth@redhat.com>
10967
10968         * gdbinit.in: Move break on exit after break on fancy_abort.
10969
10970         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
10971         sized types.
10972
10973 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10974
10975         * cpphash.h (_cpp_push_next_buffer): New.
10976         * cppinit.c (do_includes): Remove.
10977         (push_include, free_chain, _cpp_push_next_buffer): New.
10978         (cpp_start_read): Use them to rework command line option handling.
10979         (cpp_handle_option): Combine handling of -include and -imacros.
10980         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
10981         appropriate.  Always insert missing \n at EOF.
10982         * cpplib.c (start_directive): Get the directive position right.
10983         * cppmain.c (cb_file_change): Always print the first line, unless
10984         preprocessed.
10985
10986 2001-08-20  Andreas Jaeger  <aj@suse.de>
10987
10988         * profile.c (compute_branch_probabilities): Remove extra new-line
10989         in error message.
10990         * flow.c (verify_flow_info): Likewise.
10991
10992 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
10993
10994         * basic-block.h (basic_block): Add new field 'flags'.
10995         (BB_REACHABLE): Define.
10996         (expunge_block): Declare.
10997         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
10998         (EXIT_BLOCK_PTR): Ditto.
10999         (expunge_block): Remove static declaration.
11000         (cleanup_cfg): Clear bb->aux on every basic block.
11001         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
11002         computing reachability.
11003         (delete_unreachable_blocks): Delete block b if b->flags has
11004         BB_REACHABLE unset.
11005
11006 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
11007
11008         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
11009
11010 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11011
11012         * sparc.c (sparc_variable_issue): Fix typo in last change.
11013
11014 2001-08-20  Richard Henderson  <rth@redhat.com>
11015
11016         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
11017
11018 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11019
11020         * pa.h (RETURN_IN_MEMORY): Improve comment.
11021
11022 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
11023
11024         * doc/invoke.texi (Profiling options): Clarify the interactions
11025         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
11026
11027 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
11028
11029         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
11030         command.
11031
11032 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11033
11034         * gcc.c (make_relative_prefix): Allocate a sufficiently large
11035         buffer.
11036
11037 2001-08-20  Richard Henderson  <rth@redhat.com>
11038
11039         * final.c (end_final): Fix typo last change.
11040
11041 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11042
11043         * cppinit.c (init_standard_includes): The returned buffer
11044         is already malloc-ed.
11045         * gcc.c (add_prefix): Similarly.
11046         * prefix.c (translate_name): Update to support clear buffer
11047         ownership rules.
11048         (update_path): Similarly.  Be sure to free any newly allocated
11049         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
11050         (tr): New function.
11051         * prefix.h (update_path): Update prototype and document.
11052         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
11053         up and update to new buffer ownership rules.
11054         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
11055
11056 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
11057
11058         * final.c (compute_alignments): New function.
11059         (init_insn_lengths): Do not care label_align.
11060         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
11061         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
11062         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
11063         (shorted_branches): Realloc label_align array; do
11064         not call init_insn_lengths; Do not care about loop alignments.
11065         * output.h (compute_alignments): Declare.
11066         * toplev.c (rest_of_compilation): Call compute_alignments.
11067         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
11068
11069         * predict.c (block_info_def): Add npredecesors, remove nvisited;
11070         change visited to tovisit.
11071         (propagate_freq): Use faster traversing algorithm.
11072         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
11073         to tovisit; reverse meaning.
11074
11075         * predict.c (struct block_info_def): Remove nvisited.
11076         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
11077         (estimate_bb_frequencies): Call mark_dfs_back_edges.
11078
11079 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
11080
11081         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
11082         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
11083         (TARGET_FUSED_MADD): New.
11084         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
11085         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
11086         the multiply-add instructions.
11087
11088 2001-08-19  Richard Henderson  <rth@redhat.com>
11089
11090         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
11091         is aligned to pointer size.
11092
11093 2001-08-19  Richard Henderson  <rth@redhat.com>
11094
11095         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
11096         display markers during final schedule.
11097
11098 2001-08-19  Richard Henderson  <rth@redhat.com>
11099
11100         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
11101
11102 2001-08-19  Richard Henderson  <rth@redhat.com>
11103
11104         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
11105         in the same string.
11106         (ASM_NAME_TO_STRING): Remove.
11107         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
11108         in the same string.  Remove support for expressions.
11109
11110 2001-08-19  Richard Henderson  <rth@redhat.com>
11111
11112         * config/i386/i386.md (tablejump): Make an expander; handle
11113         pic relative addressing here.
11114         (tablejump_1): Rename from tablejump_pic.
11115         (casesi): Remove.
11116
11117 2001-08-19  Richard Henderson  <rth@redhat.com>
11118
11119         * regclass.c (fix_register): Fix typo.
11120
11121 2001-08-18  Richard Henderson  <rth@redhat.com>
11122
11123         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
11124         (struct _Unwind_Context): Expand br_loc to hold it.
11125         (uw_frame_state_for): Handle leaf functions better.
11126         (uw_update_reg_address): Update for br_loc change.
11127
11128 2001-08-18  Richard Henderson  <rth@redhat.com>
11129
11130         * crtstuff.c: Move list heads before code that uses them.
11131         (__JCR_LIST__): Remove initial null.
11132         (frame_dummy, __frame_dummy): Do java registration here ...
11133         (__do_global_ctors_aux): ... not here.
11134
11135         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
11136         (__do_global_dtors_aux): Update to match.
11137         (__JCR_LIST__, __do_jv_register_classes): New.
11138         (.init): Call it.
11139         * config/ia64/crtend.asm (__JCR_END__): New.
11140         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
11141         instead of an indirect LTOFF22 reloc.
11142
11143 2001-08-18  Richard Henderson  <rth@redhat.com>
11144
11145         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
11146         * regclass.c (init_reg_sets_1): Fix typo.
11147         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
11148         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
11149         (ia64_compute_frame_size): Make ar.unat live when in use.
11150         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
11151         for ar.pfs; remove ar.unat handling.
11152         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
11153         call-saved.
11154         (PREDICATE_CODES): Add ar_pfs_reg_operand.
11155         * config/ia64/ia64-protos.h: Update decls.
11156         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
11157         (sibcall_pic): Likewise.
11158
11159 2001-08-18  Richard Henderson  <rth@redhat.com>
11160
11161         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
11162         pred_rel_mutex when searching for insn_group_barrier.
11163         * config/ia64/ia64.md (cycle_display): Combine the expander
11164         and insn patterns.
11165
11166         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
11167         bit before asm as needed.
11168
11169 2001-08-18  Richard Henderson  <rth@redhat.com>
11170
11171         * timevar.def (TV_MACH_DEP): New.
11172         * toplev.c (rest_of_compilation): Use it.
11173         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
11174
11175 2001-08-18  Zack Weinberg  <zackw@panix.com>
11176
11177         * unwind-dw2.c (execute_stack_op): Add default aborts to
11178         the inner switches to prevent warnings.
11179
11180 2001-08-18  Richard Henderson  <rth@redhat.com>
11181
11182         * timevar.h (struct timevar_time_def): Change element type to float.
11183         (ticks_to_msec, clocks_to_msec): Likewise.
11184         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
11185         (get_time): Likewise.
11186         (timevar_print): Adjust zero check and printing to match.
11187
11188 2001-08-18  Zack Weinberg  <zackw@panix.com>
11189
11190         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
11191         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
11192         Eliminate overfull or underfull hboxes.
11193
11194 2001-08-18  Zack Weinberg  <zackw@panix.com>
11195
11196         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
11197
11198 2001-08-18  Zack Weinberg  <zackw@panix.com>
11199
11200         * haifa-sched.c: Convert to target hooks.  Macros replaced
11201         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
11202         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
11203         MD_SCHED_FINISH, and HAVE_cycle_display.
11204         * target-def.h (TARGET_SCHED_ADJUST_COST,
11205         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
11206         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
11207         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
11208         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
11209         New hook #defines to be overridden.
11210         (TARGET_SCHED): Bring them all together.
11211         (TARGET_INITIALIZER): Update.
11212         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
11213         instead of 'struct rtx_def *' throughout.
11214         (struct sched): New set of hooks for the scheduler.
11215         * Makefile.in (haifa-sched.o): Depend on target.h.
11216         * doc/tm.texi: Document the new scheduler hooks, together in
11217         their own section, instead of scattered around.
11218         Fix a bunch of underfull/overfull hboxes.
11219
11220         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
11221         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
11222         sparc.h: Don't define any of the old scheduler macros.
11223
11224         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
11225         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
11226         sparc.c: Create hook functions from code extracted from
11227         corresponding target header, or make existing hooks static, as
11228         appropriate.  Set the appropriate entries in targetm.
11229
11230         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
11231         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
11232         rs6000-protos.h, s390-protos.h, sparc-protos.h:
11233         Remove prototypes for functions which are now static.
11234
11235         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
11236         related gunk; the Haifa scheduler is now the only choice.
11237
11238 2001-08-18  Zack Weinberg  <zackw@panix.com>
11239
11240         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
11241         * genopinit.c: Put floating point divide insns in sdiv_optab.
11242         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
11243         * config/gofast.h, config/c4x/c4x.h,
11244         config/ia64/hpux_longdouble.h, config/mips/mips.h,
11245         config/pa/long_double.h, config/rs6000/sysv4.h,
11246         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
11247         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
11248         (init_optabs): Use init_optabv for overflow-trapping optabs.
11249         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
11250         cmp_optab RTX codes so have_insn_for can find them.
11251
11252         * optabs.c (expand_simple_binop, expand_simple_unop,
11253         have_insn_for, gen_sub3_insn): New interfaces.
11254         * expr.h: Prototype new functions.
11255         (enum optab_methods): Move here from optabs.h.
11256
11257         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
11258         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
11259         Use new functions instead of working directly with optabs.
11260         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
11261         unroll.c: Don't include optabs.h.
11262         * caller-save.c, combine.c, function.c, stmt.c: Just include
11263         insn-codes.h, not optabs.h.
11264         * Makefile.in: Update dependencies.
11265
11266         * combine.c (make_compound_operation, simplify_comparison):
11267         Fix typos testing for this or that instruction.
11268
11269 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
11270
11271         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
11272         generating libgcc.a.
11273
11274 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11275
11276         * except.c (TYPE_HASH): Delete.
11277
11278         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
11279         HOST_WIDE_INT.
11280
11281         * tree.c (TYPE_HASH): Delete.
11282
11283         * tree.h (TYPE_HASH): Define.
11284
11285 2001-08-18  Graham Stott  <grahams@redhat.com>
11286
11287         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
11288         define_split.
11289         (adddi3_internal_2+2): Likewise.
11290         (eh_set_lr_di+1): Likewise.
11291
11292 2001-08-17  Richard Henderson  <rth@redhat.com>
11293
11294         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
11295         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
11296         * dwarf2asm.c: ... here.
11297         * dwarfout.c: Remove them.
11298
11299         * varasm.c (assemble_integer): Add align parameter.
11300         (assemble_real, output_constant, output_constructor): Likewise.
11301         * output.h: Update decls.
11302         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
11303         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
11304         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
11305         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
11306         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
11307         Update all callers.
11308
11309         * final.c (end_final): Abort profile block generation if we
11310         haven't layed it out properly.
11311         * output.h (assemble_eh_integer): Remove stale decl.
11312         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
11313         (min_align): New.
11314         (assemble_integer): Handle unaligned data.
11315         (assemble_real): Abort on unaligned data.
11316         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
11317         anything useful.
11318         (default_dtor_section_asm_out_destructor): Use assemble_align.
11319         (default_named_section_asm_out_constructor): Likewise.
11320         (default_ctor_section_asm_out_constructor): Likewise.
11321         * config/darwin.c (machopic_asm_out_constructor): Likewise.
11322         (machopic_asm_out_destructor): Likewise.
11323         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
11324         (nextstep_asm_out_destructor): Likewise.
11325         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
11326         (vms_asm_out_destructor): Likewise.
11327
11328 2001-08-17  Richard Henderson  <rth@redhat.com>
11329
11330         * config/mips/iris6.h (TARGET_IRIX6): New.
11331         (current_section_name, current_section_flags): New.
11332         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
11333         (MAX_OFILE_ALIGNMENT): New.
11334         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
11335         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
11336         (copy_file_data): Split out from
11337         (mips_asm_file_end): ... here.
11338         (mips_asm_file_start): Remove extra .section directive.  Use
11339         tmpfile instead of mips_make_temp_file.
11340         (mips_unique_section): Use const char * as needed for warnings.
11341         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
11342         re-add align parameter.
11343         (iris6_asm_named_section): New.
11344         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
11345         (iris6_asm_output_align, iris6_section_align_1): New.
11346         (iris6_asm_file_start, iris6_asm_file_end): New.
11347         * config/mips/mips-protos.h: Update decls.
11348
11349 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
11350
11351         * doc/install.texi (Install GCC): Add links to build status pages.
11352         (Specific): Ditto.
11353         (Final install): Ditto; request updates for specific info
11354
11355 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11356
11357         * cpperror.c (print_location):  Don't take a file name; use the
11358         line map instead.
11359         (_cpp_begin_message): Similarly.
11360         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
11361         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
11362         (cpp_pedwarn_with_file_and_line): Remove.
11363         * cppfiles.c (stack_include_file): Update; set filename to stdin
11364         here when appropriate.
11365         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
11366         (_cpp_begin_message): Don't take a file name.
11367         * cppinit.c: Add comment.
11368         * cpplex.c: Fix end-of-directive indicator.
11369         * cpplib.c: Don't include intl.h.
11370         (run_directive, do_diagnostic): Update.
11371         (do_line): Update to not use nominal_fname.
11372         (cpp_push_buffer): Don't take a filename.
11373         * cpplib.h (struct ht): Remove.
11374         (cpp_push_buffer): Don't take a filename.
11375         (cpp_pedwarn_with_file_and_line): Remove.
11376         * cppmacro.c (struct cpp_macro): Remove file.
11377         (builtin_macro): Update.
11378         (_cpp_create_definition): Update.
11379         * cppmain.c: Correct comment.
11380         * fix-header.c (read_scan_file): Update.
11381
11382 2001-08-17  Kazu Hirata  <kazu@hxi.com>
11383
11384         * sbitmap.c: Fix comment formatting.
11385         * sched-deps.c: Likewise.
11386         * sibcall.c: Likewise.
11387         * simplify-rtx.c: Likewise.
11388         * ssa.c: Likewise.
11389         * ssa-ccp.c: Likewise.
11390         * stor-layout.c: Likewise.
11391         * timevar.c: Likewise.
11392         * toplev.c: Likewise.
11393         * unwind-dw2.c: Likewise.
11394         * unwind-dw2-fde.c: Likewise.
11395         * varasm.c: Likewise.
11396
11397 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11398
11399         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
11400         or larger than an integer in memory.
11401
11402 2001-08-17  Zack Weinberg  <zackw@panix.com>
11403
11404         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
11405         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
11406         * rtl.h: Don't forward-declare union tree_node here.  Don't
11407         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
11408         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
11409         and tree respectively.
11410         * tree.h: Don't forward-declare struct rtx_def here.  Don't
11411         typedef tree here.  Change all uses of struct rtx_def *,
11412         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
11413         and tree respectively.
11414
11415 2001-08-17  Richard Henderson  <rth@redhat.com>
11416
11417         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
11418         config/mips/openbsd.h: Fix typos last change.
11419
11420 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11421
11422         * doc/invoke.texi (Optimize Options): The default for
11423         -finline-limit is 600.
11424
11425 2001-08-17  Richard Henderson  <rth@redhat.com>
11426
11427         * varasm.c (text_section): Allow TEXT_SECTION to override the
11428         printing of TEXT_SECTION_ASM_OP.
11429         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
11430         (DATA_SECTION, BSS_SECTION): Remove.
11431         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
11432         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
11433         Rename from s/_NAME//.
11434         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
11435         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
11436         (TEXT_SECTION): ... here.  New.
11437         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
11438         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
11439         * config/mips/openbsd.h: Likewise.
11440         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
11441         (mips_asm_file_end): Likewise test.
11442         (mips_output_function_epilogue): Likewise.  Switch back to data
11443         section after emitting the function.
11444
11445         * doc/tm.texi (Sections): Document TEXT_SECTION.
11446
11447 2001-08-17  Richard Henderson  <rth@redhat.com>
11448
11449         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
11450         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
11451
11452 2001-08-17  Richard Henderson  <rth@redhat.com>
11453
11454         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
11455         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
11456         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
11457         Add aligned attribute.
11458
11459 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
11460
11461         * config/sh/sh.md: Add modes to unspecs in first insn to match
11462         those in the second.
11463
11464         * Makefile.in: Fix collect2 copy for Cygwin.
11465
11466 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
11467
11468         Install the proper patch.
11469         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
11470         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
11471         (expand_function_start): Likewise.
11472         * stmt.c (expand_decl): Likewise.
11473         * varasm.c (make_decl_rtx): Likewise.
11474
11475 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
11476
11477         * final.c: Undo my previous accidental checkin.
11478         * output.h: Likewise.
11479         * tm.texi: Likewise.
11480
11481 2001-08-16  Richard Henderson  <rth@redhat.com>
11482
11483         * varasm.c (named_section_flags): Remove align parameter.
11484         * varasm.c, dwarf2out.c: Update all callers.
11485         * output.h: Update prototypes.
11486
11487         * target.h (target.asm_out.named_section): Remove align parameter.
11488         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
11489         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
11490         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
11491         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
11492         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
11493
11494         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
11495         (get_named_section_flags, set_named_section_flags): New.
11496         (named_section_flags): Use them.
11497         (named_section): Do decl vs section flags check here...
11498         (default_section_type_flags): ... not here.
11499         (init_varasm_once): Create in_named_htab.
11500         (resolve_unique_section): Mark reloc unused.
11501
11502 2001-08-16  Richard Henderson  <rth@redhat.com>
11503
11504         * varasm.c (force_const_mem): Keep pool alignment in bits.
11505         (output_constant_pool): Use assemble_align.
11506
11507 2001-08-16  Zack Weinberg  <zackw@panix.com>
11508
11509         * doc/tm.texi: Remove extra @table command.
11510
11511 2001-08-16  Zack Weinberg  <zackw@panix.com>
11512
11513         * final.c (shorten_branches): Clear the end of the label_align
11514         array only if we made it larger.  Break up messy expressions
11515         for clarity.
11516
11517         * diagnostic.c (internal_error): Check for error recursion
11518         before doing ICE suppression.
11519
11520         * timevar.c: Timing variables now count in milliseconds.
11521         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
11522         (get_time): Not here.
11523         (timevar_print): Don't print any timer whose user, cpu, and
11524         wall times are all zero as displayed.
11525         * timevar.h: Update comment aboout units.  Make timevar
11526         counters unsigned.
11527
11528 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
11529
11530         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
11531         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
11532         (expand_function_start): Likewise.
11533         * stmt.c (expand_decl): Likewise.
11534         * varasm.c (make_decl_rtx): Likewise.
11535
11536 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
11537
11538         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
11539         (finalize_record_size): Don't set TYPE_USER_ALIGN.
11540
11541 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11542
11543         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
11544         variables.
11545
11546 2001-08-16  Andreas Jaeger  <aj@suse.de>
11547
11548         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
11549         prototype.
11550
11551 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
11552
11553         * rtl.h (only_sets_cc0_p): New prototype.
11554         * jump.c (sets_cc0_p): Handle INSN.
11555         (only_sets_cc0_p): New function.
11556         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
11557         (tidy_fallthru_edge): Likewise.
11558         * integrate.c (copy_insn_list): Likewise.
11559         * unroll.c (unroll_loop): Likewise.
11560         (copy_loop_body): Likewise.
11561
11562 2001-08-15  Jason Eckhardt  <jle@redhat.com>
11563
11564         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
11565
11566 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
11567
11568         * predict.c (struct block_info_def): Remove nvisited.
11569         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
11570         (estimate_bb_frequencies): Call mark_dfs_back_edges.
11571
11572         * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
11573         (ix86_adjust_cost): Teach scheduler that latency to load operand can
11574         be masked.
11575
11576 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
11577
11578         * predict.def: Update hitrates.
11579
11580 2001-08-15  Richard Henderson  <rth@redhat.com>
11581
11582         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
11583
11584 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
11585
11586         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
11587         note from its associated jump.
11588
11589 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
11590
11591         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
11592         also on 64-bit s390x targets.
11593
11594 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
11595
11596         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
11597         function.
11598         (arm_expand_prologue): Handled nested functions which take a
11599         variable argument list.
11600         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
11601         macro with an invocation of
11602         arm_compute_initial_elimination_offset.
11603         * config/arm/arm-protos.h: Prototype
11604         arm_compute_initial_elimination_offset.
11605
11606 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11607
11608         * doc/install.texi (Specific, avr): Fix markup.
11609         (Specific, c4x): Ditto.
11610
11611 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11612
11613         * predict.c (dump_prediction): Change `bool' parameter to `int'.
11614
11615 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
11616
11617         * Makefile.in (OBJS): Add rtl-error.o
11618         (rtl-error.o): New rule.
11619         (diagnostic.o): Adjust dependency.
11620         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
11621         error_for_asm, _fatal_insn, _fatal_insn_not_found,
11622         warning_for_asm): Move to...
11623         rtl-error.c: ...here.  New file.
11624
11625 2001-08-14  Richard Henderson  <rth@redhat.com>
11626
11627         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
11628         if USING_SJLJ_EXCEPTIONS.
11629
11630 2001-08-14  Steve Ellcey <sje@cup.hp.com>
11631
11632         * tlink.c (scan_linker_output): Check string for unsatisfied in
11633         addition to undefined and unresolved.
11634
11635 2001-08-14  Graham Stott  <grahams@redhat.com>
11636
11637         * libgcc2.c (*): Replace EH_FRAME_SECTION with
11638         EH_FRAME_SECTION_NAME.
11639
11640 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
11641
11642         * genattrtab.c (simplify_test_exp_in_temp): New function.
11643         (simplify_test_exp): Avoid explicit use of temporary obstack.
11644         (simplify_cond, insert_right_side, evaluate_eq_attr,
11645         simplify_and_tree, simplify_or_tree, eliminate_known_true):
11646         Use simplify_test_exp_in_temp.
11647         (optimize_attrs): Iterate until expression stabilizes.
11648
11649 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
11650
11651         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
11652         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
11653
11654 2001-08-13  Richard Henderson  <rth@redhat.com>
11655
11656         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
11657         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
11658         * config/arm/conix-elf.h: Likewise.
11659
11660 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
11661
11662         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
11663         in gcc.c.
11664         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11665
11666         * gcse.c (hash_scan_set): Expressions that are set as part of
11667         jump instructions are not available.
11668
11669 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
11670
11671         * config/s390/s390.c (print_operand, s390_function_prologue,
11672         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
11673
11674 2001-08-13  Richard Henderson  <rth@redhat.com>
11675
11676         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
11677         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
11678         * doc/tm.texi (Exception Region Output): Document it.
11679
11680 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
11681
11682         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
11683         DWARF2 instead of stabs by default.
11684
11685 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
11686
11687         * config/rs6000/rs6000.c: Include optabs.h.
11688
11689 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
11690
11691         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
11692         save/restore routines.
11693         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
11694
11695 2001-08-13  Andreas Jaeger  <aj@suse.de>
11696
11697         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
11698         the english is correct.
11699
11700 2001-08-13  Zack Weinberg  <zackw@panix.com>
11701
11702         * expr.h: Split out optab- and libfunc-related code to...
11703         * optabs.h, libfuncs.h: ... these new headers.
11704
11705         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
11706         (OPTABS_H): New.
11707         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
11708         dependencies.
11709         * mkconfig.sh: Don't include insn-codes.h from config.h.
11710
11711         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
11712         enum insn_code is available.  Move reload_in_optab and
11713         reload_out_optab array declarations to optabs.h.
11714         * regmove.c (gen_add3_insn): Move to optabs.c, export from
11715         there, prototype in expr.h.
11716         * gencodes.c: Cleanup: zap global variables, don't use
11717         printf where puts will do, don't bother defining MAX_INSN_CODE
11718         which nothing uses, let CODE_FOR_nothing get its value implicitly.
11719
11720         * genemit.c, genopinit.c: Include optabs.h in generated file.
11721         * genoutput.c: Include insn-codes.h in generated file.
11722         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
11723         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
11724         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
11725         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
11726         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
11727         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
11728         Include optabs.h.
11729         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
11730         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
11731         config/m88k/m88k.c, config/sparc/sparc.c:
11732         Include libfuncs.h.
11733         * reload.c: Include expr.h and optabs.h before reload.h.
11734         * config/alpha/alpha.c: Include tree.h before reload.h.
11735         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
11736         and reload.h in that order.
11737         * config/sparc/sparc.c: Include debug.h.
11738         * recog.c: Include insn-codes.h.
11739
11740 2001-08-13  Andreas Jaeger  <aj@suse.de>
11741
11742         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
11743         s390*linux.
11744
11745 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
11746
11747         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
11748         * gcc.c (init_spec): Fix typo in comment.
11749         * varasm.c (data_section): Fix typo in comment.
11750
11751 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
11752
11753         * predict.c (dump_prediction): New argument "USED".
11754         (combine_predictions_for_insn): Determine the used heuristics,
11755         output the case no heuristic applied.
11756         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
11757
11758 2001-08-13  Andreas Jaeger  <aj@suse.de>
11759
11760         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
11761         register %rip.
11762
11763 2001-08-13  Kazu Hirata  <kazu@hxi.com>
11764
11765         * jump.c: Fix formatting.
11766
11767 2001-08-13  Kazu Hirata  <kazu@hxi.com>
11768
11769         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
11770         length.
11771
11772 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
11773
11774         * loop.c (check_dbra_loop): Use condjump_label to compute
11775         jump_label.
11776
11777         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
11778         to better document the files they're in.
11779
11780 2001-08-12  Zack Weinberg  <zackw@panix.com>
11781
11782         * recog.h (struct insn_operand_data): Shrink 'mode' field
11783         to 16 bits.
11784
11785 2001-08-12  Kazu Hirata  <kazu@hxi.com>
11786
11787         * gcc.c: Fix comment formatting.
11788         * gccspec.c: Likewise.
11789         * gcov.c: Likewise.
11790         * gcse.c: Likewise.
11791         * genemit.c: Likewise.
11792         * gengenrtl.c: Likewise.
11793         * genrecog.c: Likewise.
11794         * gensupport.c: Likewise.
11795         * ggc-page.c: Likewise.
11796         * global.c: Likewise.
11797         * graph.c: Likewise.
11798         * ifcvt.c: Likewise.
11799         * integrate.c: Likewise.
11800         * lcm.c: Likewise.
11801         * libgcc2.c: Likewise.
11802         * loop.c: Likewise.
11803         * mbchar.c: Likewise.
11804         * optabs.c: Likewise.
11805         * predict.c: Likewise.
11806         * prefix.c: Likewise.
11807         * profile.c: Likewise.
11808         * protoize.c: Likewise.
11809         * real.c: Likewise.
11810         * recog.c: Likewise.
11811         * regclass.c: Likewise.
11812         * regmove.c: Likewise.
11813         * reg-stack.c: Likewise.
11814         * reload1.c: Likewise.
11815         * resource.c: Likewise.
11816         * rtlanal.c: Likewise.
11817         * rtl.c: Likewise.
11818
11819 2001-08-12  Kazu Hirata  <kazu@hxi.com>
11820
11821         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
11822         a tree representing a constant is passed to the macro.
11823
11824 2001-08-12  Richard Henderson  <rth@redhat.com>
11825
11826         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
11827         (rs6000_elf_asm_out_destructor): New.
11828         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
11829         (DTORS_SECTION_ASM_OP): Remove.
11830         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11831         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
11832
11833 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
11834
11835         Revert:
11836         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11837         * gcc.c (set_collect_gcc_options): New function, split out from
11838         main.
11839         Ignore elided switches.
11840         (do_spec_1): Invoke before executing command.
11841         (set_input): Export.
11842         Move declaration ...
11843         * gcc.h (set_input): ... here.
11844         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
11845         file.
11846
11847 2001-08-12  Richard Henderson  <rth@redhat.com>
11848
11849         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
11850         thinko wrt TARGET_RELOCATABLE.
11851
11852 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
11853
11854         * fix-header.c (cb_file_change): Update prototype.
11855
11856 2001-08-11  Zack Weinberg  <zackw@panix.com>
11857
11858         * toplev.c (set_float_handler): Make static.
11859         * toplev.h: Don't prototype set_float_handler.
11860
11861         * simplify-rtx.c: Don't include setjmp.h.
11862         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
11863         New functions.
11864         (simplify_unary_operation, simplify_binary_operation): Use them,
11865         via do_float_handler.
11866
11867         * fold-const.c: Don't include setjmp.h.
11868         (exact_real_inverse_1): New function.
11869         (exact_real_inverse): Use it, via do_float_handler.
11870
11871         * varasm.c: Don't include setjmp.h.
11872         (assemble_real_1): New function.
11873         (assemble_real): Use it, via do_float_handler.
11874         Call internal_error if we get a trap here.
11875
11876         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
11877         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
11878
11879 2001-08-11  Zack Weinberg  <zackw@panix.com>
11880
11881         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
11882         STACK_BOUNDARY if not already defined.
11883
11884         * calls.c, function.c, reload1.c, explow.c: Don't default
11885         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
11886         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
11887
11888         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
11889         to run-time test.
11890
11891         * doc/tm.texi: Document that STACK_BOUNDARY is required;
11892         clarify difference between it and PREFERRED_STACK_BOUNDARY.
11893
11894 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11895
11896         * cppmacro.c (enter_macro_context): Push macro expansions even
11897         if empty.
11898
11899 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11900
11901         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
11902         (rs6000_elf_section_type_flags): Actually return a value.
11903
11904 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
11905
11906         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
11907         Clean up code: add missing comments and prototypes, fix warnings,
11908         remove obsolete code, fix spacing to conform to coding style.
11909
11910 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
11911
11912         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
11913         and TARGET_ASM_CLOSE_PAREN.
11914         (regclass_map): CC register belongs to class NO_REGS.
11915         (legitimize_pic_address): Don't generate unnecessary moves
11916         (to avoid confusing loop optimization).
11917         (check_and_change_labels): Replace jump_long by indirect_jump.
11918         (s390_final_chunkify): Don't start a new literal pool on section
11919         switch in 64-bit code.
11920         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
11921
11922         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
11923         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
11924         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
11925         modes correctly.
11926         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
11927         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
11928         (CONST_COSTS): Fixed incorrect costs.
11929
11930         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
11931         Use emit_jump instead of emit_jump_insn (gen_jump).
11932         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
11933         (to avoid confusing flow analysis).
11934         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
11935         (casesi, casesi_jump): New.
11936         (jump_long): Removed.  Functionality merged into indirect_jump.
11937         (indirect_jump): Accept address_operand, not just register_operand.
11938         (cjump_long, icjump_long): Use same logic as indirect_jump.
11939         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
11940         Fixed broken setjmp/longjmp handling.
11941         (do_builtin_setjmp_setup): Removed.
11942
11943         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
11944         broken GNU as versions that don't accept .quad with large
11945         negative values.  Use hexadecimal output instead.
11946         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
11947         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
11948         FUNCTION_EPILOGUE): Removed.  Now in targetm.
11949
11950         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
11951
11952         * config/s390/fixdfdi.h: Add missing copyright statement.
11953         Fix type conflicts on 64-bit.  Add missing SFmode routines.
11954
11955         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
11956         email address.
11957
11958 2001-08-11  Richard Henderson  <rth@redhat.com>
11959
11960         * rtl.h (REG_EH_RETHROW): Remove.
11961         * rtl.c (reg_note_name): Update.
11962         * combine.c (distribute_notes): Don't check for it.
11963
11964 2001-08-11  Richard Henderson  <rth@redhat.com>
11965
11966         * combine.c (distribute_notes): Place REG_SETJMP.
11967
11968 2001-08-11  Richard Henderson  <rth@redhat.com>
11969
11970         * doc/extend.texi (Arrays and pointers implementation): Discourage
11971         relying on sign-extension of pointers.
11972
11973 2001-08-11  H.J. Lu <hjl@gnu.org>
11974
11975         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
11976         in_dtors.
11977         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
11978         RDATA_SECTION_ASM_OP.
11979
11980 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11981
11982         * doc/install.texi (Specific, c4x): Fix cross-reference to the
11983         main manual to work both for info and HTML versions.
11984
11985 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11986             Matt Kraai <kraai@alumni.carnegiemellon.edu>
11987
11988         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
11989         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
11990         (struct cpp_pool): New member first.
11991         * cppinit.c (append_include_chain): Plug memory leaks.
11992         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
11993         Allocate pragma structures from the (aligned) macro pool to
11994         avoid leaking memory.
11995         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
11996         so we don't leak memory.
11997         * hashtable.c (ht_destroy): New.
11998         * hashtable.h (ht_destroy): New.
11999
12000 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
12001             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12002
12003         * c-lex.c (map): Make const.
12004         (cb_file_change): Update for callback passing a line map.
12005         Don't assume we have a previous map.  Remove sanity check
12006         about popping too many files.
12007         * cpperror.c (print_location): Make map const.
12008         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
12009         (cpp_make_system_header): Similarly.
12010         (search_from): Similarly.
12011         (_cpp_execute_include): Don't remember where we came from.
12012         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
12013         (struct cpp_reader): Make map const.
12014         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
12015         * cpplib.c (do_line): Update; line maps now hold sysp.
12016         (cpp_push_buffer): Similarly.
12017         (_cpp_do_file_change): Similarly; callback with map instead.
12018         (cpp_get_line_maps): Constify return value.
12019         (_cpp_pop_buffer): Update.
12020         * cpplib.h (struct cpp_file_change): Remove.
12021         (struct cpp_callbacks): Update.
12022         (cpp_get_line_maps): Constify return value.
12023         * cppmacro.c (_cpp_create_definition): Update.
12024         * cppmain.c (struct printer): Constify map.
12025         (maybe_print_line): Similarly.
12026         (print_line): Similarly.  Deduce flags 1 and 2 here.
12027         (cb_file_change): Update.
12028         * line-map.c (free_line_maps): Warn regardless.
12029         (add_line_map): Return pointer to const.  When passed NULL to_file
12030         with LC_LEAVE, use the obvious values for the return point so the
12031         caller doesn't have to figure them out.
12032         (lookup_line): Return pointer to const.
12033         (print_containing_files): Take pointer to const.
12034         * line-map.h (struct line_map): New members reason, sysp.
12035         (add_line_map): Return pointer to const.
12036         (lookup_line): Similarly.
12037         (print_containing_files): Take pointer to const.
12038
12039 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
12040             Richard Henderson  <rth@redhat.com>
12041
12042         * regmove.c (regmove_optimize): Avoid setting a register twice in
12043         a parallel set.
12044
12045 2001-08-10  Richard Henderson  <rth@redhat.com>
12046
12047         * doc/extend.texi (Arrays and pointers implementation): Document
12048         behavior of pointer/integer conversion.
12049
12050 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
12051
12052         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
12053
12054 2001-08-10  Richard Henderson  <rth@redhat.com>
12055
12056         * doc/extend.texi (C Implementation): New chapter.
12057         * doc/gcc.texi (Top): Link it in.
12058
12059 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
12060
12061         * doc/install.texi (Specific): Fix CVS merge botch.
12062
12063 2001-08-10  Richard Henderson  <rth@redhat.com>
12064
12065         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
12066         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
12067
12068 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
12069
12070         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
12071         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
12072         this macro is now required.
12073
12074         * cselib.c (cselib_process_insn), flow.c (propagate_block),
12075         loop.c (find_and_verify_loops), reload.c (reload): Check
12076         for rtx code of CALL_INSN, not CALL, when deciding if we
12077         need to check for REG_SETJMP note.
12078
12079         * gcse.c (compute_hash_table, compute_store_table): Update
12080         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
12081         logic.
12082
12083         * config/avr/avr.c: Fix typo.
12084         * config/convex/convex.c (expand_movstr): Use adjust_address.
12085         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
12086         variable.
12087         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
12088         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
12089         Fix typo.
12090         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
12091         Do define STACK_BOUNDARY.
12092         * config/i370/i370.c: Include expr.h.
12093         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
12094         config/pa/som.h, config/v850/v850.h: Take in_ctors and
12095         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
12096         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
12097         * config/m88k/m88k.c: Include c-tree.h after expr.h.
12098         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
12099         * config/romp/romp.c: Include expr.h after tree.h.
12100         Include toplev.h.
12101         (output_fpop): Use xmalloc, not oballoc.
12102         * config/we32k/we32k.c: Include expr.h.
12103
12104 2001-08-10  Kazu Hirata  <kazu@hxi.com>
12105
12106         * config/h8300/h8300.h: Fix formatting.
12107
12108 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
12109
12110         * c-common.h (RETURN_NULLIFIED_P): Lose.
12111         * c-semantics.c (genrtl_return_stmt): Don't check it.
12112
12113 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
12114
12115         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
12116         (mips_annotate_frame_insn): New function.
12117         (mips_emit_frame_related_store): New function.
12118         (save_restore_insns): Don't mark instructions that set up the base
12119         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
12120         the store instructions instead.
12121         (mips_expand_prologue): If the stack size is moved into a temporary
12122         register, do not mark that move as frame-related.  Add a
12123         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
12124
12125 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
12126
12127         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
12128         stack slot as unchanging if current_function_calls_eh_return.
12129
12130 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
12131
12132         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
12133         access the second half of the TFmode scratch operand.
12134
12135 2001-08-10  Anthony Green  <green@redhat.com>
12136
12137         * java/class.c (emit_register_classes): Conditionalize code on
12138         JCR_SECTION_NAME.
12139
12140 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12141
12142         * doc/install.texi (Specific, avr): Fix cross-reference to the
12143         main manual to work both for info and HTML versions.
12144
12145 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12146
12147         * stmt.c (expand_null_return_1): Remove code to generate simple returns
12148         and "use_goto" argument.
12149         (expand_null_return, expand_value_return): Update all callers.
12150         * function.c (expand_function_end): Remove code to generate simple
12151         return.
12152         * config/vax/vax.md (epilogue): New expander for function return.
12153         * doc/md.texi (epilogue): Remove "if defined".
12154
12155 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
12156
12157         * Makefile.in: Partially revert my previous change:
12158         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
12159         of the hashtab.o and safe-ctype.o rules.
12160
12161 2001-08-09  Richard Henderson  <rth@redhat.com>
12162
12163         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
12164         (USE_COLLECT2): Remove duplicate definition.
12165         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
12166         (use_collect2): Remove dead code.
12167         * configure.in (use_collect2): Remove will_use_collect2 and
12168         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
12169         * configure: Rebuild.
12170
12171         * target.h (targetm.asm_out.constructor): New.
12172         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
12173         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
12174         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
12175         * varasm.c (in_ctors, in_dtors): New.
12176         (assemble_constructor, assemble_destructor): Remove.
12177         (default_stabs_asm_out_destructor): New.
12178         (default_named_section_asm_out_destructor): New.
12179         (dtors_section, default_dtor_section_asm_out_destructor): New.
12180         (default_stabs_asm_out_constructor): New.
12181         (default_named_section_asm_out_constructor): New.
12182         (ctors_section, default_ctor_section_asm_out_constructor): New.
12183         * output.h: Update declarations.
12184         * c-decl.c (c_expand_body): Use target hooks instead of
12185         assemble_constructor and assemble_destructor.
12186         * profile.c (output_func_start_profiler): Likewise.
12187         * objc/objc-act.c (finish_objc): Likewise.
12188         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
12189         for the constructor.
12190         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
12191
12192         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
12193         (DTORS_SECTION_ASM_OP): Likewise.
12194         (__CTOR_LIST__): Use attribute section when possible.
12195         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
12196
12197         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
12198         ASM_OUTPUT_CONSTRUCTOR.
12199
12200         * config/darwin.c (machopic_asm_out_constructor): New.
12201         (machopic_asm_out_destructor): New.
12202         * config/darwin-protos.h: Update declarations.
12203         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12204         (ASM_OUTPUT_DESTRUCTOR): Remove.
12205         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12206         * config/nextstep.c (nextstep_asm_out_constructor): New.
12207         (nextstep_asm_out_destructor): New.
12208         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12209         (ASM_OUTPUT_DESTRUCTOR): Remove.
12210         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12211         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
12212         ASM_OUTPUT_*STRUCTOR.
12213         * config/i386/aix386ng.h: Likewise.
12214
12215         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
12216         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
12217         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
12218         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12219         * config/lynx.h: Likewise.
12220         * config/netware.h: Likewise.
12221         * config/psos.h: Likewise.
12222         * config/alpha/alpha-interix.h: Likewise.
12223         * config/alpha/elf.h: Likewise.
12224         * config/arc/arc.h: Likewise.
12225         * config/arm/aof.h: Likewise.
12226         * config/arm/coff.h: Likewise.
12227         * config/arm/elf.h: Likewise.
12228         * config/c4x/c4x.h: Likewise.
12229         * config/h8300/h8300.h: Likewise.
12230         * config/i386/cygwin.h: Likewise.
12231         * config/i386/djgpp.h: Likewise.
12232         * config/i386/i386-coff.h: Likewise.
12233         * config/i386/i386-interix.h: Likewise.
12234         * config/i386/sco5.h: Likewise.
12235         * config/i386/vsta.h: Likewise.
12236         * config/i386/win32.h: Likewise.
12237         * config/i960/i960-coff.h: Likewise.
12238         * config/ia64/sysv4.h: Likewise.
12239         * config/m68hc11/m68hc11.h: Likewise.
12240         * config/m68k/coff.h: Likewise.
12241         * config/m68k/mot3300.h: Likewise.
12242         * config/m88k/m88k.h: Likewise.
12243         * config/mcore/mcore-pe.h: Likewise.
12244         * config/mcore/mcore.h: Likewise.
12245         * config/mips/elf.h: Likewise.
12246         * config/mips/elf64.h: Likewise.
12247         * config/mips/iris6.h: Likewise.
12248         * config/pa/pa64-hpux.h: Likewise.
12249         * config/rs6000/sysv4.h: Likewise.
12250         * config/sh/sh.h: Likewise.
12251         * config/sparc/litecoff.h: Likewise.
12252
12253         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
12254         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
12255         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12256         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12257         (ASM_OUTPUT_DESTRUCTOR): Remove.
12258         * config/a29k/a29k.c: Move include of tree.h.
12259         * config/a29k/udi.h: Delete file.
12260         * config/alpha/alpha.c (vms_asm_out_constructor): New.
12261         (vms_asm_out_destructor): New.
12262         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
12263         (EXTRA_SECTION_FUNCTIONS): Likewise.
12264         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12265         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12266         * config/c4x/c4x.c: Move include of tree.h.
12267         * config/clipper/clipper.c (clix_asm_out_constructor): New.
12268         (clix_asm_out_destructor): New.
12269         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12270         (ASM_OUTPUT_DESTRUCTOR): Remove.
12271         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12272         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12273         (TARGET_ASM_CONSTRUCTOR): New.
12274         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
12275         (sco_asm_out_constructor): New.
12276         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
12277         * config/i386/svr3gas.h: Remove stack grows up code.
12278         Remove code duplicated from i386/sysv3.h.
12279         (TARGET_ASM_CONSTRUCTOR): New.
12280         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12281         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
12282         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12283         (TARGET_ASM_CONSTRUCTOR): New.
12284         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
12285         (m68hc11_asm_out_destructor): New.
12286         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
12287         (TARGET_ASM_DESTRUCTOR): New.
12288         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
12289         * config/m68k/dpx2.h: Properly undef all the bits inherited from
12290         config/svr3.h pertaining to section manipulation.
12291         * config/m68k/dpx2g.h: Remove #if 0 code.
12292         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
12293         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
12294         (ASM_OUTPUT_CONSTRUCTOR): Remove.
12295         (TARGET_ASM_CONSTRUCTOR): New.
12296         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
12297         (m88k_svr3_asm_out_constructor): New.
12298         (m88k_svr3_asm_out_destructor): New.
12299         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12300         (ASM_OUTPUT_DESTRUCTOR): Remove.
12301         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12302         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
12303         * config/rs6000/aix.h: Likewise.
12304         * config/mips/rtems64.h: Don't undef removed constructor related bits.
12305         * config/mips/vxworks.h: Likewise.
12306         * config/rs6000/lynx.h: Likewise.
12307         * config/sh/elf.h: Likewise.
12308         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
12309         (DTORS_SECTION_ASM_OP): New.
12310         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12311         (ASM_OUTPUT_DESTRUCTOR): Remove.
12312         * config/sparc/sol2-sld-64.h: Likewise.
12313         * config/vax/vax.c (vms_asm_out_constructor): New.
12314         (vms_asm_out_destructor): New.
12315         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12316         (ASM_OUTPUT_DESTRUCTOR): Remove.
12317         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12318
12319         * doc/tm.texi (@node Initialization): Update.
12320
12321 2001-08-09  Richard Henderson  <rth@redhat.com>
12322
12323         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
12324         (__do_global_dtors_aux): Use gp-relative static data to avoid
12325         one dynamic relocation.
12326         (__do_frame_setup): Register Java classes.
12327         * config/alpha/crtend.asm (__JCR_END__): New.
12328
12329 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
12330
12331         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
12332         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
12333         (GEN, STAGESTUFF): Add new files.
12334         (insn-constants.h, s-constants, tm-preds.h, s-preds,
12335         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
12336         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
12337         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
12338         as well as insn-codes.h and insn-flags.h in config.h; and no
12339         extra headers in tconfig.h and hconfig.h.
12340
12341         * gencodes.c: Eliminate code to generate predicate declarations
12342         or #defines for md-file constants.
12343         * genconstants.c, genpreds.c: New files.
12344
12345         * i386.md: Re-order guard expressions such that TARGET_64BIT
12346         comes first, when this permits better optimization.  Add
12347         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
12348         why this is desirable.
12349
12350 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
12351
12352         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
12353         (find_fde_for_dso): Remove.
12354         (_Unwind_IteratePhdrCallback): New.
12355         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
12356         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
12357
12358 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12359
12360         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
12361         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
12362
12363 2001-08-09  Graham Stott  <grahams@redhat.com>
12364
12365         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
12366         (vis_no_unit): Use it.
12367         (visualize_no_unit): Add the insn only if room exists.
12368
12369 2001-08-09  Graham Stott  <grahams@redhat.com>
12370
12371         * predict.c (estimate_probability): Replace magic numbers with
12372         appropriate enumeration.
12373
12374 2001-08-09  Graham Stott  <grahams@redhat.com>
12375
12376         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
12377         parameter.
12378         (EXTRACT_FLAGS): Likewise.
12379
12380 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
12381
12382         * config/mips/mips.c    (mips_legitimate_address_p): Check for
12383         CONST_INT in last patch.
12384
12385 2001-08-08  Anthony Green  <green@redhat.com>
12386
12387         * java/class.c (emit_register_classes): Use assemble_jcr if
12388         possible.  Keep the original mechanism as a fallback.
12389         * defaults.h (JCR_SECTION_NAME): Define if we have named section
12390         and weak symbol support.
12391         * crtstuff.c (__JCR_LIST__): Define.
12392         (__JCR_END__): Define.
12393         (_Jv_RegiserClasses): Define weak symbol if possible.
12394         (__do_global_ctors_aux): Register classes for ELF targets with
12395         weak symbol support.
12396
12397 2001-08-08  Kazu Hirata  <kazu@hxi.com>
12398
12399         * dbxout.c: Fix comment formatting.
12400         * dependence.c: Likewise.
12401         * df.c: Likewise.
12402         * diagnostic.c: Likewise.
12403         * dominance.c: Likewise.
12404         * doprint.c: Likewise.
12405         * dwarf2out.c: Likewise.
12406         * dwarfout.c: Likewise.
12407         * emit-rtl.c: Likewise.
12408         * except.c: Likewise.
12409         * explow.c: Likewise.
12410         * expmed.c: Likewise.
12411         * expr.c: Likewise.
12412         * flow.c: Likewise.
12413         * fold-const.c: Likewise.
12414         * function.c: Likewise.
12415
12416 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12417
12418         * global.c (retry_global_alloc): Avoid shadowing allocno.
12419
12420 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
12421
12422         * except.c (remove_fixup_regions): Fix typo.
12423
12424 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
12425
12426         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
12427         unsigned HOST_WIDE_INT to avoid warning.
12428         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
12429         * flow.c (set_block_for_new_insns): Likewise.
12430
12431 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
12432
12433         * sibcall.c (return_value_pseudo): New static variable.
12434         (skip_copy_to_return_value): Handle return_value_pseudo.
12435         (call_ends_block_p): Ensure that return_value_pseudo is set.
12436         (optimize_sibling_and_tail_recursive_call): Discover the
12437         load of pseudo return value in alternate exit block.
12438
12439 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
12440
12441         * calls.c (ECF_ALWAYS_RETURN): New constant.
12442         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
12443         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
12444         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
12445         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
12446         * rtl.c (reg_note_name): New name.
12447         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
12448
12449 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
12450
12451         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
12452
12453 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
12454
12455         * alias.c (get_alias_set): Return a previously calculated
12456         alias set for a VAR_DECL.
12457         * function.c (gen_mem_addressof): Calculate the alias set before
12458         touching the RTL.
12459
12460 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
12461
12462         * predict.def: Set hitrates according our experimental run.
12463
12464 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
12465
12466         * i386.h (HARD_REGNO_RENAME_OK): New macro.
12467
12468 2001-08-08  H.J. Lu <hjl@gnu.org>
12469
12470         * config/mips/mips.c (mips_unique_section): New. Copied from
12471         config/mips/elf.h.
12472
12473         * config/mips/mips-protos.h (mips_unique_section): New
12474         prototype.
12475
12476         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
12477
12478         * config/mips/little.h: New. Generic little endian mips
12479         targets. Only mips*-*-linux* is converted to use it so far.
12480
12481         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
12482         (WCHAR_TYPE): Defined
12483         (WCHAR_TYPE_SIZE): Likewise.
12484         (INIT_SUBTARGET_OPTABS): Likewise.
12485         (BSS_SECTION_ASM_OP): Likewise.
12486         (SBSS_SECTION_ASM_OP): Likewise.
12487         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12488         (ASM_DECLARE_OBJECT_NAME): Likewise.
12489         (UNIQUE_SECTION): Likewise.
12490         (EXTRA_SECTIONS): Likewise.
12491         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
12492         (ASM_OUTPUT_DESTRUCTOR): Likewise.
12493         (ASM_OUTPUT_DEF): Likewise.
12494         (HANDLE_SYSV_PRAGMA): Removed.
12495         (NO_IMPLICIT_EXTERN_C): Likewise.
12496         (TARGET_MEM_FUNCTIONS): Likewise.
12497         (STARTFILE_SPEC): Likewise.
12498         (ENDFILE_SPEC): Likewise.
12499         (LIB_SPEC): Likewise.
12500         (INVOKE__main): Likewise.
12501         (CTOR_LIST_BEGIN): Likewise.
12502         (CTOR_LIST_END): Likewise.
12503         (DTOR_LIST_BEGIN): Likewise.
12504         (DTOR_LIST_END): Likewise.
12505         (SET_ASM_OP): Likewise.
12506         (ASM_OUTPUT_SOURCE_LINE): Likewise.
12507         (ASM_OUTPUT_DEF): Likewise.
12508         (ASM_OUTPUT_IDENT): Likewise.
12509
12510         * config/mips/mips.h (ASM_SPEC): Undefine before define.
12511         (CPLUSPLUS_CPP_SPEC): Likewise.
12512         (ASM_APP_ON) Redefine only if not defined.
12513         (ASM_APP_OFF): Likewise.
12514         (ASM_OUTPUT_SOURCE_LINE): Likewise.
12515         (ASM_OUTPUT_IDENT): Likewise.
12516
12517         * config.gcc: Update tm_file for Linux/mips.
12518
12519 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
12520
12521         * cselib.c (cselib_record_sets): If insn is predicated, turn
12522         sources into IF_THEN_ELSEs.
12523
12524         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
12525         Turn into define_insn_and_split.
12526
12527         * sched-deps.c: Include "cselib.h".
12528         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
12529         Use cselib to turn memory addresses into VALUEs.
12530         (sched_analyze): Call cselib_init/cselib_finish if necessary.
12531         * sched-int.h (struct sched_info): New member USE_CSELIB.
12532         * sched-ebb.c (ebb_sched_info): Initialize it.
12533         * sched-rgn.c (rgn_sched_info): Likewise.
12534         * Makefile.in (sched-deps.o): Update dependencies.
12535
12536         * cselib.h (cselib_subst_to_values): Declare.
12537         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
12538         that have no value and autoincs to be handled by generating a new
12539         dummy value.
12540
12541 2001-08-08  Graham Stott  <grahams@redhat.com>
12542
12543         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
12544         within fixed length SEQUENCE.
12545
12546 2001-08-08  Graham Stott  <grahams@redhat.com>
12547
12548         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
12549         (diagnostic_prefixing_rule): Likewise.
12550         (diagnostic_line_cutoff): Likewise.
12551         (diagnostic_kind_count): Likewise.
12552
12553 2001-08-08  Graham Stott  <grahams@redhat.com>
12554
12555         * alias.c (find_base_decl): Delete redundent assignment.
12556
12557 2001-08-08  Graham Stott  <grahams@redhat.com>
12558
12559         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
12560         (abs): Uppercase and paranthesize macro parameter.
12561         (MEM_DEPENDENCY): Add whitespace.
12562
12563 2001-08-08  Graham Stott  <grahams@redhat.com>
12564
12565         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
12566         failure check for CONST_INT
12567
12568 2001-08-08  Graham Stott  <grahams@redhat.com>
12569
12570         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
12571         (libcall_dead_p): Likewise.
12572
12573         (mark_used_regs): Constify fmt.
12574         (find_use_as_address): Likewise.
12575
12576 2001-08-08  Graham Stott  <grahams@redhat.com>
12577
12578         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
12579          parameter.
12580
12581 2001-08-08  Graham Stott  <grahams@redhat.com>
12582
12583         * combine.c (combine_simplify_rtx): Update comment and
12584         remove erroneous test.
12585
12586 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
12587
12588         * cppinit.c (cpp_finish): Pop the final buffer without comment.
12589         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
12590         take care to avoid multiple no-newline at EOF warnings in that
12591         case.
12592
12593 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
12594
12595         * calls.c (expand_call): Do not emit INSN_SETJMP note.
12596         (emit_library_call_value_1): Likewise.
12597         (emit_call_1): Emit REG_SETJMP note.
12598         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
12599         of INSN_SETJMP
12600         * cselib.c (cselib_process_insn): Likewise.
12601         * flow.c (propagate_block): Likewise.
12602         * loop.c (find_and_verify_loops): Likewise.
12603         * reload.c (find_equiv_regs): Likewise.
12604         * reload1.c (reload): Likewise.
12605         * resource.c (mark_referenced_resources,
12606         mark_set_resources): Likewise.
12607         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
12608         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
12609         * haifa-sched.c (unlink_other_notes): Likewise.
12610         (reemit_notes): Likewise.
12611         * sched-ebb.c (sched_ebb): Likewise.
12612         * sched-rgc.c (sched_region): Likewise.
12613         * rtl.c (note_insn_name): Likewise.
12614         (reg_note_name): Add REG_SETJMP
12615         * rtl.h (reg_note): Add REG_SETJMP.
12616         (insn_note): Remove NOTE_INSN_SETJMP.
12617
12618         * profile.c (branch_prob): Add fake edges for setjmp.
12619
12620 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
12621
12622         * config.gcc: Quote target_cpu_default2 correctly for
12623         powerpc*-*-* targets.
12624
12625 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
12626
12627         * cpplib.h, line-map.h: Update comments.
12628         * cppmain.c (printer_init): Move inline.
12629         (maybe_print_line, print_line): Take a map pointer.
12630         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
12631         (cb_file_change): Don't use prior value of print.map.
12632
12633 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
12634
12635         * doc/install.texi: Document fine-grained multilib configuration.
12636
12637 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
12638
12639         * rtlanal.c (find_first_parameter_load): Call note_stores
12640         only on the instructions.
12641
12642 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
12643
12644         * alias.c (nonlocal_mentioned_p):
12645         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
12646         * calls.c (emit_call_1): Likewise.
12647         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
12648         * cselib.c (cselib_process_insn): Likewise.
12649         * df.c (df_insns_modify): Likewise.
12650         * flow.c (need_fake_edge_p): Likewise.
12651         (propagate_one_insn): Likewise.
12652         * haifa-sched.c (reemit_notes): Likewise.
12653         * integrate.c (copy_insn_list): Likewise.
12654         * jump.c (delete_prior_computation): Likewise.
12655         * local-alloc.c (validate_equiv_mem): Likewise.
12656         * loop.c (scan_loop): Likewise.
12657         * predict.c (estimate_probability): Likewise.
12658         * reload.c (reload): Likewise.
12659         * sched-deps (sched_analyze): Likewise.
12660         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
12661         * gcse.c (compute_hash_table): Likewise.
12662         (mark_call): Likewise.
12663         (store_killed_in_insn): Likewise.
12664
12665 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
12666
12667         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
12668
12669 2001-08-06  Richard Henderson  <rth@redhat.com>
12670
12671         * varasm.c (assemble_gc_entry): Remove.
12672         * output.h: Likewise.
12673
12674 2001-08-06  Richard Henderson  <rth@redhat.com>
12675
12676         * varasm.c (assemble_constructor): Take a symbol_ref and a
12677         priority instead of a bare string.  Move priority handling
12678         here from cp/decl2.c.
12679         * output.h: Update decls.
12680
12681         * c-decl.c (c_expand_body): Update calls to assemble_constructor
12682         and assemble_destructor.
12683         * profile.c (output_func_start_profiler): Likewise.
12684         * objc/objc-act.c (finish_objc): Likewise.
12685         (build_module_descriptor): Return the symbol not the symbol name.
12686
12687 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
12688
12689         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
12690         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
12691         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
12692         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
12693         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
12694         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
12695
12696 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
12697
12698         * cpperror.c (print_containing_files): Moved to line-map.c.
12699         (print_location): line-map.c handles re-listing or otherwise.
12700         * cpphash.h (struct lexer_state): Remove next_bol.
12701         (struct cpp_buffer): Remove include_stack_listed.
12702         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
12703         Remove faked buffer handling.
12704         (_cpp_do_file_change): Tweak.
12705         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
12706         * cppmain.c (struct printer): Remove filename.
12707         (print_line, cb_file_change): Update accordingly.
12708         * line-map.c: Include intl.h.
12709         (init_line_maps): Initialize last_listed.
12710         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
12711         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
12712         (print_containing_files): New.
12713         * line-map.h (struct line_maps): New member last_listed.
12714         (print_containing_files, INCLUDED_FROM): New.
12715         * Makefile.in: Update.
12716         * po/POTFILES.in: Add line-map.c.
12717
12718 2001-08-06  Richard Henderson  <rth@redhat.com>
12719
12720         * except.c (convert_from_eh_region_ranges_1): Never mark
12721         USE or CLOBBER insns as throwing.
12722
12723         * expr.c (store_constructor): Don't clobber memory targets.
12724
12725 2001-08-06  Andreas Jaeger  <aj@suse.de>
12726
12727         * profile.c (branch_prob): Remove unused variable insn.
12728
12729         * Makefile.in (local-alloc.o): Add dependency on except.h.
12730
12731         * local-alloc.c: Include except.h for can_throw_internal prototype.
12732
12733 2001-08-06  Richard Henderson  <rth@redhat.com>
12734
12735         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
12736         * function.c (expand_main_function): Implement it.
12737         * doc/tm.texi: Document it.
12738
12739 2001-08-06  Stan Shebs  <shebs@apple.com>
12740
12741         * doc/install.texi: Document powerpc-*-darwin* details.
12742
12743 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
12744
12745         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
12746         (ASM_CPU_SPEC): Move back to rs6000.h
12747         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
12748
12749         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
12750
12751         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
12752         readded.
12753
12754         * config/rs6000/linux64.h: Ditto.
12755
12756         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
12757         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
12758         nothing.
12759
12760         Remove accidently readded definitions of FUNCTION_PROLOGUE,
12761         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
12762
12763         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
12764         to rs6000.h
12765
12766 2001-08-05  Richard Henderson  <rth@redhat.com>
12767
12768         * local-alloc.c (update_equiv_regs): Do not move insns that
12769         can throw.
12770
12771 2001-08-05  Jan Hubicka  <jh@suse.cz>
12772
12773         * Makefile.in (reload1.o): Add dedendancy on except.h
12774         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
12775         prototypes.
12776         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
12777         indicating wehther edges has been cleaned up.
12778         * reload1.c: Inlucde except.h
12779         (fixup_abnormal_edges): Accept deleted insns.
12780         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
12781         after combine.
12782
12783 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
12784
12785         * cpplib.c (do_line): Correct line number after pop_buffer.
12786
12787 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
12788
12789         PR preprocessor/3824
12790         * line-map.c: Update comments.
12791         * line-map.h: Update comments.
12792         * tradcif.y: Don't consider large numbers unsigned.
12793
12794 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
12795
12796         PR preprocessor/3081
12797         * c-lex.c (map): New.
12798         (cb_file_change): Update map and use it.
12799         (cb_def_pragma, cb_define, cb_undef): Use map and line.
12800         (c_lex): Update to use map.
12801         * cpperror.c (print_location): Move to using logical line numbers.
12802         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
12803         (cpp_make_system_header): Similarly.
12804         (_cpp_execute_include): Stop line numbering hacks.  Store the
12805         line we will return to.
12806         * cpphash.h (CPP_BUF_LINE): Remove.
12807         (struct cpp_buffer): Remove lineno and pseudo_newlines.
12808         Add map and return_to_line.
12809         (_cpp_do_file_change): Update.
12810         * cppinit.c (cpp_start_read): Update line kludge.
12811         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
12812         (trigraph_ok): Use logical line numbers for diagnostics.
12813         (skip_block_comment): Likewise.
12814         (skip_whitespace): Likewise.
12815         (skip_line_comment): Use pfile->line instead.
12816         (_cpp_lex_token): Update to use logical line numbering exclusively.
12817         Handle BOL locally.  Accept new lines in directives, but keep
12818         pfile->line decremented.  Diagnostics use logical lines.  Update
12819         directive handling.
12820         * cpplib.c (SEEN_EOL): New.
12821         (skip_rest_of_line, check_eol): Use it.
12822         (end_directive): Increase line number when accepting the newline
12823         at the end of a directive.
12824         (run_directive): Simplify.
12825         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
12826         (_cpp_do_file_change): Update to take buffer line number as an
12827         argument, and store the current map in the cpp_reader.  Remove
12828         line number kludges.
12829         (_cpp_do__Pragma): Restore output position after a _Pragma.
12830         (cpp_push_buffer): Don't set output line or lineno.
12831         (_cpp_pop_buffer): Transfer more info from a faked buffer.
12832         Remove line kludge.  Set output_line.
12833         * cppmacro.c (builtin_macro): Update handling of __LINE__.
12834         (parse_arg): Use logical lines.
12835         (save_lookahead_token): Save EOFs too now.
12836         * cppmain.c (struct printer): Fix comments.
12837         (printer_init): Simplify, let caller do errors.
12838         (scan_translation_unit, check_multiline_token, dump_macro): Update.
12839         (maybe_print_line): Simplify.
12840         (print_line): Don't print a linemarker if -P.
12841         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
12842         (cb_file_change): Simplify.
12843         * line-map.h (LAST_SOURCE_LINE): Fix.
12844         (CURRENT_LINE_MAP): New.
12845
12846 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
12847
12848         * doloop.c (doloop_modify_runtime): Properly compute number of
12849         iterations if loop was unrolled.
12850
12851         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
12852         if their CSELIB_VAL_PTRs are.
12853
12854         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
12855         (setup_spill_pointers): Initialize it.
12856         (spill_restore_mem): Set it.
12857         (do_spill, do_restore): Use it to add REG_INC note.
12858         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
12859
12860         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
12861         asms if other insns are available.
12862
12863         * config/ia64/ia64.c (condop_operator): New predicate.
12864         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
12865         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
12866         patterns.
12867
12868         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
12869         temporary register than directly using a MEM.
12870
12871 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
12872
12873         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
12874         parameter in last change.
12875
12876 2001-08-04  Zack Weinberg  <zackw@panix.com>
12877
12878         * sparc.md: Don't use #if inside C test expression.
12879
12880 2001-08-04  Richard Henderson  <rth@redhat.com>
12881
12882         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
12883
12884 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12885
12886         * cpphash.h (struct cpp_reader): New member directive_line.
12887         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
12888         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
12889         do_pragma): Pass line to callbacks.
12890         (start_directive): Record line of directive.
12891         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
12892         cb_include): Similarly.
12893         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
12894         Similarly.
12895
12896 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
12897
12898         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
12899         comment.
12900
12901 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
12902
12903         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
12904
12905         * reload1.c (fixup_abnormal_edges): New static function.
12906         (reload): Use it.
12907
12908         * flow.c (need_fake_edge_p): New function.
12909         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
12910         avoid call insn to be very last insn in the insn stream.
12911
12912         * profile.c (branch_prob): Call flow_call_edges_add instead of
12913         doing that by hand; cleanup cfg to re-merge basic blocks once
12914         we are done.
12915
12916 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12917
12918         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
12919         are also on line-map.h.
12920         * cppfiles.c (stack_include_file): Update.
12921         * cpphash.h (struct cpp_buffer): New member return_at_eof.
12922         (_cpp_pop_buffer): New.
12923         * cppinit.c (cpp_destroy, cpp_finish): Update.
12924         (do_includes): Mark each buffer to return at EOF.
12925         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
12926         return as requested.
12927         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
12928         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
12929         * cpplib.h (cpp_pop_buffer): Remove.
12930         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
12931         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
12932         buffers.
12933         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
12934         to pop buffers.
12935         (do_preprocessing): Update.
12936         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
12937         * c-parse.in (_yylex): Similarly.
12938         * scan-decls.c (scan_decls): Similarly.
12939         * line-map.h: Update comments.
12940
12941         * objc/Make-lang.in (objc-act.o): Update dependencies.
12942
12943 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12944
12945         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
12946         and soft register for operand 0.
12947         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
12948
12949 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12950
12951         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
12952         register for operand 0.
12953         ("bitcmpqi_z_used"): Allow memory for operand 0.
12954         (split "bitcmpqi"): New split to handle address reg as operand 1.
12955
12956 2001-08-04  Andreas Jaeger  <aj@suse.de>
12957
12958         * gcse.c: Revert Daniel's last patch.
12959
12960 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
12961
12962         * sparc-protos.h: Add prototypes for fp_zero_operand and
12963         reg_or_0_operand.
12964         * sh-protos.h: Add prototype for fpul_operand.
12965
12966 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
12967
12968         * doc/extend.texi (Other Builtins): Fix typo in last change.
12969
12970 2001-08-03  Richard Henderson  <rth@redhat.com>
12971
12972         * target.h (gcc_target): Add asm_out.named_section,
12973         section_type_flags, have_named_sections.
12974         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
12975         (TARGET_HAVE_NAMED_SECTIONS): New.
12976         (TARGET_SECTION_TYPE_FLAGS): New.
12977
12978         * Makefile.in (toplev.o): Depend on TARGET_H.
12979         (varasm.o, dbxout.o): Likewise.
12980         * c-common.c (decl_attributes): Check targetm.have_named_sections
12981         instead of ifdef ASM_OUTPUT_SECTION_NAME.
12982         * dbxout.c (dbxout_function_decl): Likewise.
12983         (dbxout_function_end): Likewise.
12984         * toplev.c (compile_file): Likewise.
12985         * varasm.c (exception_section): Likewise.
12986         * cp/decl2.c (finish_objects): Likewise.
12987
12988         * defaults.h (EH_FRAME_SECTION): Remove.
12989         (EH_FRAME_SECTION_ASM_OP): Remove.
12990         (EH_FRAME_SECTION_NAME): New.
12991         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
12992         (UNIQUE_SECTION_P): Remove.
12993         * dwarf2out.c (SECTION_FORMAT): Remove.
12994         (ASM_OUTPUT_SECTION): Remove.
12995         (output_call_frame_info): Use named_section_flags.
12996         (output_comp_unit, dwarf2out_start_source_file): Likewise.
12997         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
12998         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
12999         * varasm.c (in_eh_frame, eh_frame_section): Remove.
13000         (named_section_flags): New.
13001         (named_section): Use it and targetm.section_type_flags.
13002         (resolve_unique_section): New.
13003         (assemble_start_function): Use it.
13004         (asm_emit_uninitialised, assemble_variable): Likewise.
13005         (default_section_type_flags): New.
13006         (default_no_named_section, default_elf_asm_named_section): New.
13007         (default_coff_asm_named_section, default_pe_asm_named_section): New.
13008         * output.h: Update varasm.c decls.
13009         (SECTION_*): New flags.
13010
13011         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
13012         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
13013
13014         * config/elfos.h (UNIQUE_SECTION_P): Remove.
13015         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
13016         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
13017         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
13018         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
13019         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
13020         * config/mips/elf.h, config/mips/elf64.h: Likewise.
13021         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
13022         * config/pa/pa64-hpux.h,
13023
13024         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
13025         (TARGET_ASM_NAMED_SECTION): New.
13026         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
13027         * config/alpha/vms.h, config/arm/coff.h: Likewise.
13028         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
13029         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
13030         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
13031         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
13032         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
13033         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
13034         * config/i386/sco5.h, config/i386/win32.h: Likewise.
13035         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
13036         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
13037         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
13038         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
13039         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
13040         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
13041         * config/sparc/sysv4.h: Likewise.
13042
13043         * config/nextstep.h: Error until named sections implemented.
13044
13045         * config/a29k/a29k.c (a29k_asm_named_section): New.
13046         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
13047         (vms_section_type_flags, vms_asm_named_section): New.
13048         * config/arm/arm.c (arm_elf_asm_named_section): New.
13049         * config/avr/avr.c (asm_output_section_name): Remove.
13050         * config/avr/avr-protos.h: Update.
13051         * config/c4x/c4x.c (c4x_asm_named_section): New.
13052         * config/h8300/h8300.c (h8300_asm_named_section): New.
13053         * config/i386/i386.c (sco_asm_named_section): New.
13054         * config/i386/winnt.c (SECTION_PE_SHARED): New.
13055         (i386_pe_section_type_flags): New.
13056         (i386_pe_asm_named_section): New.
13057         * config/i386/i386-protos.h: Update.
13058         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
13059         * config/mcore/mcore.c (mcore_asm_named_section): New.
13060         * config/mips/mips.c (iris6_asm_named_section): New.
13061         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
13062         instead of UNIQUE_SECTION_P.
13063         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
13064         (xcoff_asm_named_section): New.
13065         * config/sh/sh.c (sh_asm_named_section): New.
13066         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
13067
13068         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
13069         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
13070         (EH_FRAME_SECTION_NAME): New.
13071         (EXCEPTION_SECTION): New.
13072         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
13073         (DEBUG_*_SECTION): Remove.
13074         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
13075         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
13076         (EH_FRAME_SECTION_ASM_OP): Remove.
13077
13078         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
13079         (ASM_OUTPUT_SECTION_NAME): Remove.
13080         (TARGET_ASM_NAMED_SECTION): New.
13081         (TARGET_HAVE_NAMED_SECTIONS): New.
13082         (TARGET_SECTION_TYPE_FLAGS): New.
13083         (EH_FRAME_SECTION_ASM_OP): Remove.
13084         (EH_FRAME_SECTION_NAME): New.
13085
13086 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
13087
13088         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
13089         for complex expressions when cfun == 0.
13090         * doc/extend.texi: Document that __builtin_constant_p can be
13091         used in data initializers as well as functions.
13092
13093 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
13094
13095         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
13096         variable I locally, instead of expecting a declaration in the
13097         calling context.
13098
13099 2001-08-03  Richard Henderson  <rth@redhat.com>
13100
13101         * except.c (collect_one_action_chain): Add an explicit cleanup
13102         action if regions surrounding a catch were encoded entirely
13103         within the call-site entry.
13104
13105 2001-08-03  Richard Henderson  <rth@redhat.com>
13106
13107         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
13108         don't take REGNO of a non-register.
13109
13110 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13111
13112         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
13113         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
13114         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
13115         (__gthread_mutex_init_function): New function for mutex initialization.
13116
13117 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
13118
13119         * Makefile.in: Revert screwed up commit.
13120
13121 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13122
13123         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
13124         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
13125         merged by linker script to get a final _exit().
13126         (__do_global_dtors): New for destructor handling in specific exit
13127         section.
13128         (__do_global_ctors): New for constructors in specific install section.
13129         (__map_data_section): Map data sections before running constructors.
13130         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
13131         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
13132         (DTORS_SECTION_ASM_OP): Likewise.
13133         (CTORS_SECTION_FUNCTION): Define to force a reference to
13134         __do_global_ctors.
13135         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
13136
13137 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
13138
13139         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
13140
13141         * Makefile.in: Add df.h to gcse.c dependencies.
13142
13143 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13144
13145         * varasm.c (output_constant_def_contents): Use for the length of a
13146         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
13147         depending on which is larger.
13148
13149 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
13150
13151         * gcse.c: Include df.h for use as a dataflow analyzer.
13152         Remove regvec.
13153         Declaration of reg_set_info: gone.
13154         New df_analyzer variable used by store motion.
13155         (reg_set_info): Deleted.
13156         (mark_mem_regs): New function, analyze regs used by a mem.
13157         (store_ops_ok): Use dataflow analyzer results to determine if
13158         necessary regs are changed in the block.
13159         (find_moveable_store): Remove check for symbol ref, we can handle
13160         much more complex expressions now.
13161         (compute_store_table): Remove most of the code, it's unnecessary
13162         now that the dataflow analyzer records the info for us.
13163         (store_killed_after): Add parameter to say whether to do the
13164         store_ops_okay test, used to speed up testing when we already know
13165         the answer, and just want to know if the store itself was killed.
13166         (build_store_vector): Largely rewritten to calculate the various
13167         vectors properly, and somewhat optimized.
13168         (store_motion): Init the df_analyzer, get REG_DEF chains.
13169         Also handle trapping expressions (since mems almost always trap)
13170         (simple_mem): Redefine what a simple mem is.
13171
13172 2001-08-03  DJ Delorie  <dj@redhat.com>
13173
13174         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
13175         set from a constant part of the condition.
13176
13177 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
13178
13179         * mkdeps.c (deps_add_default_target): Make local variable
13180         ``start'' a const char pointer.
13181         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
13182
13183 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13184
13185         * doc/install.texi (Configuration): Fix markup.
13186         (Specific, i?86-*-udk): Likewise.
13187         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
13188         --with-gnu-ld.
13189         Document --enable-threads and --enable-libgcj status.
13190         (Specific, mips-sgi-irix*): Canonicalize triples.
13191         (Specific, mips-sgi-irix5): Warn about problems with this config.
13192         Mention required GNU as patch.
13193         Native assembler problems are fixed.
13194         (Specific, mips-sgi-irix6): Update O32 ABI support status.
13195         Document --enable-threads and --enable-libgcj status.
13196
13197 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
13198
13199         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
13200         of mkinstalldirs.
13201
13202 2001-08-03  Richard Henderson  <rth@redhat.com>
13203
13204         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
13205         constant data.
13206
13207 2001-08-03  Richard Henderson  <rth@redhat.com>
13208
13209         * rtlanal.c (find_first_parameter_load): Stop if we
13210         reach a CODE_LABEL at BOUNDARY.
13211
13212 2001-08-03  Richard Henderson  <rth@redhat.com>
13213
13214         * config/alpha/alpha.md (force_movdi): New insn.
13215         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
13216         Tweek FRP marking of VMS prologue insns.
13217         * config/alpha/vms.h (EPILOGUE_USES): New.
13218
13219 2001-08-02  Richard Henderson  <rth@redhat.com>
13220
13221         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
13222
13223 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
13224
13225         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
13226         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
13227         config/convex/convex.h, config/d30v/d30v.c,
13228         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13229         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
13230         config/mips/mips.h, config/mn10200/mn10200.h,
13231         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
13232         config/v850/v850.h, config/vax/openbsd.h,
13233         config/vax/openbsd1.h, config/vax/ultrix.h,
13234         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
13235         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
13236         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
13237         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
13238         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
13239         in comments and documentation.
13240
13241 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13242
13243         * line-map.c: New.
13244         * line-map.h: New.
13245         * Makefile.in (line-map.o): New.
13246         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
13247         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
13248         * cpperror.c (print_containing_files): Similarly.
13249         (print_location): Update.  Don't output a space before _Pragma.
13250         * cppfiles.c (stack_include_file): Set to line 1 immediately.
13251         (stack_include_filee, cpp_make_system_header): Update.
13252         (_cpp_execute_include): Get logical line number right for calling
13253         as-yet-unterminated #include.
13254         * cpphash.h (struct cpp_reader): Add line_maps.
13255         (_cpp_do_file_change): Update.
13256         * cppinit.c (cpp_create_reader): Initialize line maps.
13257         (cpp_destroy): Destroy line maps.
13258         (cpp_start_read): Get logical line number right.
13259         * cpplex.c (parse_string): Only warn once for multi-line strings.
13260         Use boolean variable for null warning.
13261         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
13262         already.
13263         (do_include_common): End the directive early.
13264         (do_line): Don't warn about out-of-range lines in preprocessed
13265         source.  Update.  Remove unused variables.
13266         (_cpp_do_file_change): Update for new line mapping.
13267         (pragma_cb): New typedef.
13268         (cpp_register_pragma): Stop looking ahead before calling the
13269         handler.  Clean up.
13270         (do_pragma_system_header): End directive early.
13271         (cpp_get_line_maps): New.
13272         (cpp_pop_buffer): Fudge logical line.  Update.
13273         * cpplib.h: Include line-map.h
13274         (enum cpp_fc_reason): Remove.
13275         (struct cpp_file_change): Update.
13276         (cpp_get_line_maps): New.
13277         * cppmain.c (struct_printer): New member map.
13278         (cb_file_change): Update for new mappings.
13279         * fix-header.c (cb_file_change): Similarly.
13280
13281 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
13282
13283         * Makefile.in (libgcc.mk): Define mkinstalldirs.
13284         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
13285
13286 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
13287
13288         * config/vax/vax.c: include expr.h.
13289
13290 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
13291
13292         * Makefile.in ($(srcdir)/configure): Only rebuild in
13293         maintainer mode.
13294         ($(srcdir)/config.in): Only define in maintainer mode.
13295         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
13296
13297 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
13298
13299         * doc/install.texi (Install GCC: Binaries): Update Bull info.
13300
13301 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13302
13303         * gcc.c (set_collect_gcc_options): New function, split out from
13304         main.
13305         Ignore elided switches.
13306         (do_spec_1): Invoke before executing command.
13307         (set_input): Export.
13308         Move declaration ...
13309         * gcc.h (set_input): ... here.
13310         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
13311         file.
13312
13313 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
13314
13315         Kill -fhonor-std.
13316         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
13317         interaction.
13318         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
13319
13320 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
13321
13322         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
13323         for the unnamed instructions it expands to.
13324
13325 2001-08-02  Richard Henderson  <rth@redhat.com>
13326
13327         * regclass.c (call_really_used_regs): Conditionally define.
13328         (init_reg_sets_1): Don't use it if not defined.
13329         (fix_register): Similarly, don't set it.
13330
13331 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13332
13333         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
13334         Correct comment that had been missed in the previous change.
13335
13336 2001-08-01  Stan Shebs  <shebs@apple.com>
13337
13338         * config/darwin.c (machopic_stub_name): Try matching by name.
13339         (update_stubs): New function.
13340         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
13341         unconditionally.
13342
13343 2001-08-01  Richard Henderson  <rth@redhat.com>
13344
13345         * except.c (output_function_exception_table): Use assemble_align.
13346         * varasm.c (assemble_eh_label): Remove.
13347         (assemble_eh_align, assemble_eh_integer): Remove.
13348
13349 2001-08-01  Robert Lipe  <robertl@caldera.com>
13350
13351         * dwarfout.c: Remove reference to README.DWARF.
13352
13353 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
13354
13355         * regclass.c (call_really_used_regs): New array for registers which
13356         are actually used by a call.
13357         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
13358         new array.
13359         (fix_register): Set call_really_used too.
13360         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
13361         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
13362
13363 2001-08-01  Richard Henderson  <rth@redhat.com>
13364
13365         * read-rtl.c (read_name): Consider \r whitespace.
13366
13367 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
13368
13369         * config.gcc: Recognize powerpc-*-netbsd*.
13370
13371         * doc/install.texi (Host/target specific installation notes for
13372         GCC): Mention powerpc-*-netbsd*.
13373
13374         * config/rs6000/netbsd.h: New file.
13375         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
13376         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
13377         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
13378         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
13379         (TARGET_VERSION): Redefine.
13380
13381         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
13382         mcall-netbsd as a match for mcall-sysv.
13383         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
13384         (ncrti.S, ncrtn.S): New targets.
13385         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
13386
13387         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
13388         "netbsd' as a V4 ABI.
13389         (ASM_SPEC): Check for -mcall-netbsd.
13390         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
13391         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
13392         (LIB_SPEC, ENDFILE_SPEC): Ditto.
13393         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
13394         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
13395         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
13396         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
13397
13398         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
13399         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
13400
13401 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13402
13403         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
13404         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
13405         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
13406         including "unwind-pe.h".
13407
13408 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
13409
13410         * rs6000.md (define_splits): Kill unused constraints.
13411
13412 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
13413                               Jan Hubicka  <jh@suse.cz>
13414
13415         * function.c (thread_prologue_and_epilogue_insns): Kill code
13416         dealing with non-existent CFG.
13417
13418 2001-08-01  Kazu Hirata  <kazu@hxi.com>
13419
13420         * alias.c: Fix comment formatting.
13421         * bitmap.c: Likewise.
13422         * builtins.c: Likewise.
13423         * calls.c: Likewise.
13424         * c-common.c: Likewise.
13425         * c-decl.c: Likewise.
13426         * c-dump.c: Likewise.
13427         * c-lex.c: Likewise.
13428         * collect2.c: Likewise.
13429         * combine.c: Likewise.
13430         * conflict.c: Likewise.
13431         * cppfiles.c: Likewise.
13432         * cppinit.c: Likewise.
13433         * cpplex.c: Likewise.
13434         * cpplib.c: Likewise.
13435         * cppmacro.c: Likewise.
13436         * cppspec.c: Likewise.
13437         * c-pragma.c: Likewise.
13438         * crtstuff.c: Likewise.
13439         * cse.c: Likewise.
13440         * cselib.c: Likewise.
13441         * c-semantics.c: Likewise.
13442         * c-typeck.c: Likewise.
13443
13444 2001-08-01  H.J. Lu <hjl@gnu.org>
13445
13446         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
13447
13448 2001-08-01  H.J. Lu <hjl@gnu.org>
13449
13450         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
13451
13452 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
13453
13454         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
13455         contextualizing Objective-C class name lookup by the lexer.
13456         (typespec_reserved_nonattr): Disable ObjC class name lookup after
13457         seeing a TYPESPEC.
13458         (protocoldef): Add support for forward @protocol declarations.
13459         (yylexname): Suppress ObjC class name lookup in certain contexts;
13460         re-enable after lookup is complete.
13461         (_yylex): Re-enable ObjC class name lookup when certain
13462         punctuation marks are seen.
13463
13464         * objc/objc-act.c (check_protocol_recursively): New function used
13465         for finding circular dependencies in protocols.
13466         (objc_declare_protocols): New function for handling forward
13467         @protocol declarations.
13468         (receiver_is_class_object): Detect the case when 'self' is used
13469         inside of a class method.
13470         (build_message_expr): Issue a warning if class method is desired
13471         but instance method is found instead.
13472         (conforms_to_protocol): Streamline.
13473         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
13474         protocol Foo, even if 'Bar foo' does not.
13475         (check_protocols): Streamline.
13476         (start_protocol): Add checks for circular and duplicate protocol
13477         definitions.
13478         (encode_aggregate_within): For typedefs of structs, encode the
13479         underlying struct.
13480         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
13481         (objc_declare_protocols): New prototype.
13482
13483 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13484
13485         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
13486         * cpplex.c (handle_newline): Update prototype.  Maintain logical
13487         line number.
13488         (skip_escaped_newlines, skip_block_comment, parse_string):
13489         Update accordingly.
13490         (_cpp_lex_token): Update, and store token position within the token.
13491         * cpplib.h (struct cpp_token): Add line and column entries.
13492         * cppmacro.c (replace_args): Position stringified tokens correctly.
13493
13494 2001-08-01  Andreas Jaeger  <aj@suse.de>
13495
13496         * basic-block.h: Add prototype for last_loop_beg_note.
13497
13498 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
13499
13500         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
13501         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
13502         comment.
13503         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
13504         while handling WITH_CLEANUP_EXPR node. Use second operand calling
13505         expand_decl_cleanup.
13506         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
13507         the first RTX.
13508         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
13509         operand while calling simple_cst_equal.
13510         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
13511         operand is the cleanup expression, the third is the RTL_EXPR.
13512         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
13513
13514 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
13515
13516         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
13517
13518 2001-07-31  matthew green  <mrg@eterna.com.au>
13519
13520         * config.gcc (i386-*-netbsdelf): New description.
13521         * config/i386/netbsd-elf.h: New file.
13522
13523 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
13524
13525         * loop.c (check_dbra_loop): Use single_set to compute
13526         jump_label.
13527
13528 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
13529
13530         PowerPC reorg and support for powerpc64-*-linux*.
13531
13532         Also fixes emitting of constants on 32 bit and 64 bit
13533         platforms.
13534
13535         * config.gcc: powerpc64-*-linux* is a new target.
13536         Things that needed aix.h now also include xcoff.h
13537
13538         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
13539         xcoff.h.
13540         Move AIX specific stuff into aix.h.
13541         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
13542         with more than just XCOFF now.
13543         (SET_ASM_OP): Remove, now defined where needed.
13544         (FUNCTION_PROLOGUE): New macro definition.
13545         (FUNCTION_EPILOGUE): New macro definition.
13546         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
13547
13548         * config/rs6000/xcoff.h: New file.
13549
13550         * config/rs6000/linux64.h: New file.
13551
13552         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
13553
13554 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
13555
13556         * rs6000.c (print_operand_address): Handle ELF syntax.
13557         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
13558         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
13559         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
13560
13561 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
13562
13563         * rs6000.c (rs6000_override_options): Only disable
13564         flag_function_sections for XCOFF.
13565         (exact_log2_cint_operand): New predicate.
13566         (reg_or_{add,sub}_cint64_operand): New predicates.
13567         (add_operand): Compare CONST_INT with fewer function calls.
13568         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
13569         (print_operand, case 'p'): Ensure positive operand.
13570         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
13571         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
13572         (PREDICATE_CODES): Add new predicates.
13573         * rs6000.md (addsi3): Split 32-bit constants more correctly.
13574         (divsi3, modsi3): Ensure positive power-of-2.
13575         (adddi3): Use new predicate.  Split 32-bit constants more
13576         correctly.  Re-arrange splitter to handle any constant.
13577         (subdi3): Use new predicate.
13578         (divdi3, moddi3): Ensure positive power-of-2.
13579         (movdi): Use rs6000_emit_set_const.
13580         (load_toc_v4_pic_di): Delete.
13581
13582 2001-07-31  Graham Stott <grahams@redhat.com>
13583
13584         * function.c (pad_below): Revert 2001-07-26 patch.
13585
13586 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
13587
13588         * reg-stack (convert_regs_1): Fix best edge condition.
13589
13590 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
13591
13592         * jump.c (duplicate_loop_exit_test): Better test for jumps
13593         entering the loop; create loop pre_header.
13594
13595 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
13596
13597         * doc/install.texi: Add s390 and s390x as new targets.
13598         * doc/invoke.texi: Add documentation of S/390 and zSeries
13599         target options.
13600         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
13601
13602 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
13603
13604         * config/m68k/m68k.md: Replace all general_operand with
13605         nonimmediate_operand for all destinations.
13606         * config/m68k/m68k.c (not_sp_operand): Likewise.
13607
13608 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
13609
13610         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
13611
13612 2001-07-30  Richard Henderson  <rth@redhat.com>
13613
13614         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
13615         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
13616
13617 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
13618
13619         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
13620         Add missing doc strings
13621         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
13622         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
13623
13624 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
13625
13626         * i386.c (ix86_output_main_function_alignment_hack): New function.
13627         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
13628
13629         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
13630         edges by EDGE_DFS_BACK flag.
13631         (dump_edge_info): Add dfs_back flag.
13632         * basic-block.h (EDGE_DFS_BACK): New constant.
13633         (mark_dfs_back_edges): Declare.
13634         * alias.c (loop_p): Remove.
13635         (mark_constant_function): Use mark_dfs_back_edges.
13636
13637         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
13638         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
13639         (compensate_edge): Break out from ...
13640         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
13641         (convert_regs_2): Set block_done once block is really done;
13642         Do updating of the predecessors counts.
13643
13644         * toplev.c (rest_of_compilation): Recompute block_for_insn
13645         before post-reload cfg_cleanup.
13646         * function.c (thread_prologue_epilogue_insns):
13647         Call set_block_for_new_insns when emitting prologue directly.
13648
13649 2001-07-30  Andreas Jaeger  <aj@suse.de>
13650
13651         * jump.c: Add prototype for mark_modified_reg.
13652
13653         * cse.c (set_live_p): Add unused attribute.
13654
13655         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
13656         overflow.
13657         (scan_for_source_files): Use long for count to avoid overflow.
13658         (output_data): Likewise.
13659         (output_data): Don't use string concatatenation to silence gcc
13660         -traditional.
13661
13662         * predict.c: Fix typos and grammar.
13663
13664         * gcse.c (insert_insn_end_bb): Remove unused variables.
13665
13666 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
13667
13668         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
13669         (attempt_auto_inc): LIkewise.
13670         (mark_used_reg): Likewise.
13671         (try_pre_increment_1): Likewise.
13672         * regclass.c (regclass): Likewise.
13673         * global.c (allocno_compare): Update comment; change scaling factor.
13674         * local-alloc.c (QTY_CMP_PRI): Likewise.
13675         * regs.h (REG_FREQ_FROM_BB): New.
13676         (REG_FREQ_MAX): Likewise.
13677
13678 2001-07-30  H.J. Lu <hjl@gnu.org>
13679
13680         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
13681         -D_GNU_SOURCE.
13682
13683 2001-07-30  H.J. Lu  (hjl@gnu.org)
13684
13685         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
13686         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
13687         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
13688
13689 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
13690
13691         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
13692         as -mthumb-interwork when -mcpu=arm7 is specified.
13693
13694 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
13695
13696         * predict.def (noreturn, loop branch, loop exit): Mark as first
13697         match heuristics.
13698
13699 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
13700
13701         * combine.c (try_combine): Avoid barrier after noop jumps.
13702
13703 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13704
13705         * cpphash.h (struct cpp_reader): Remove import_warning.
13706         * cpplib.c (skip_rest_of_line): Don't bother turning off
13707         macro expansion.
13708         (parse_include): Move include handling to...
13709         (do_include_common): ... here.  Move import warning from...
13710         (do_import): ... here.
13711         (do_pragma_poison): Don't do a callback for poison identifiers.
13712         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
13713         * cppmain.c (setup_callbacks): Similarly.
13714
13715 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
13716
13717         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
13718         handle multiple sets.
13719         * except.c (sjlj_mark_call_sites): .... here.
13720         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
13721
13722 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
13723
13724         Suggested by Richard Henderson and Richard Kenner:
13725         * combine.c (recog_for_combine): Use the fake recog
13726         only if instruction does not match.
13727         * rtl.h (NOOP_MOVE_INSN_CODE): New.
13728         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
13729
13730         * combine.c (try_combine): Discover noop jump as direct jump.
13731
13732 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
13733
13734         * df.c (df_rd_global_compute): Add successors to worklist, not
13735         current item.
13736         (df_ru_global_compute): Ditto.
13737
13738 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
13739
13740         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
13741         increment REG_N_SETS.
13742
13743 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
13744
13745         * sbitmap.h: New prototype for sbitmap_a_xor_b.
13746
13747         * sbitmap.c (sbitmap_a_xor_b): New function.
13748         ifdef the basic block stuff on IN_GCC.
13749
13750 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13751
13752         * cppexp.c (parse_defined): Always record the macro name.
13753         (lex): Don't worry about identifiers, or special-case
13754         CPP_NOT here.
13755         (_cpp_parse_expr): Figure out at the end of the routine
13756         whether we saw a valid !defined() expression.
13757         * cppfiles.c (stack_include_file): Update for mi_valid.
13758         (_cpp_pop_file_buffer): Similarly.
13759         * cpplex.c (_cpp_lex_token): Similarly.
13760         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
13761         mi_if_not_defined, mi_lexed): Remove.
13762         (mi_valid): New.
13763         * cpplib.c (do_if): Simplify.
13764         (do_endif, push_conditional, _cpp_handle_directive): Update
13765         for renaming of mi_state to mi_valid.
13766 doc:
13767         * cpp.texi: Add index entries for digraphs, and add comment
13768         that C++ refers to them as alternative tokens.
13769
13770 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
13771
13772         * basic-block.h (CLEANUP_PRE_LOOP): New.
13773         * except.c (finish_eh_generation): Update call of cleanup_cfg.
13774         * sibcall.c (optimize_sibling_calls): Likewise.
13775         * toplev.c (rest_of_compilation): Likewise.
13776         * flow.c (try_forward_edges): Take argument MODE;
13777         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
13778         (try_optimize_cfg): Update call of try_forward_edges.
13779
13780 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
13781                                 Jan Hubicka  <jh@suse.cz>
13782
13783         * (validate_replace_rtx_1): Fix simplification of MINUS.
13784
13785 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
13786
13787         PR preprocessor/3669
13788         * cppinit.c (init_dependency_output): Turn off dump requests
13789         if sending dependencies to stdout.
13790
13791 2001-07-28  Richard Henderson  <rth@redhat.com>
13792
13793         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
13794         not optimizing.
13795
13796 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
13797
13798         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
13799
13800 2001-07-28  Kazu Hirata  <kazu@hxi.com>
13801
13802         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
13803         is VAR_DECL first to prevent an ICE.
13804
13805 2001-07-28  Richard Henderson  <rth@redhat.com>
13806
13807         * varasm.c (immed_real_const_1): Don't elide special cases for
13808         nested functions.
13809         (clear_const_double_mem): Clear const_tiny_rtx too.
13810
13811 2001-07-28  Richard Henderson  <rth@redhat.com>
13812
13813         * dwarf2out.c (dw_val_class_offset): New.
13814         (struct dw_ranges_struct, dw_ranges_ref): New.
13815         (ranges_table, ranges_table_allocated): New.
13816         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
13817         (add_AT_offset, add_ranges, output_ranges): New.
13818         (print_die, output_die): Handle dw_val_class_offset.
13819         (attr_checksum, size_of_die, value_format): Likewise.
13820         (gen_lexical_block_die): Handle non-contiguous blocks.
13821         (gen_block_die): Likewise.
13822         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
13823         if needed.  Dump the ranges table.
13824         * final.c (final_start_function): Remove unnecessary notes and
13825         rebuild the block tree before numbering the blocks.
13826         * function.c (reorder_blocks_0): Walk the existing block tree
13827         to unmark all blocks.
13828         (reorder_blocks_1): Create block fragments when duplicate block
13829         notes are seen.
13830         (reorder_fix_fragments): New.
13831         (reorder_blocks): Call it.
13832         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
13833
13834 2001-07-28  Richard Henderson  <rth@redhat.com>
13835
13836         * emit-rtl.c (adjust_address): Make a copy of the memory address.
13837
13838 2001-07-28  Richard Henderson  <rth@redhat.com>
13839
13840         * flow.c (add_to_mem_set_list): New function.
13841         (init_propagate_block_info): Use it.
13842         (mark_set_1): Likewise.
13843         (insn_dead_p): Canonicalize memory address for dead store
13844         comparison.  Allow wider mode stores to kill narrower mode stores.
13845         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
13846         (invalidate_mems_from_set): Don't handle MEMs.
13847
13848 2001-07-28  Kazu Hirata  <kazu@hxi.com>
13849
13850         * config/h8300/h8300.h: Fix formatting.
13851
13852 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
13853
13854         * basic-block.h (EDGE_FREQUENCY): New macro.
13855         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
13856         for new BB/edges.
13857         * flow.c (find_sub_basic_blocks): Likewise.
13858         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
13859         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
13860
13861         * predict.c (DEF_PREDICTOR): New argument FLAGS.
13862         (HITRATE): New macro.
13863         (PRED_FLAG_FIRST_MATCH): New constant.
13864         (predictor_info): New field flgags.
13865         (combine_predictions_for_insn): Use DS theory to combine
13866         probabilities; set the edge probabilities when finished.
13867         (estimate_probability): Avoid duplicated matches
13868         of LOOP_BRANCH heuristics for nested loops; update comment.
13869         * predict.def: Add flags for each prediction, set probabilities
13870         according to B&L paper.
13871         * predict.h (DEF_PREDICTOR): New argument FLAGS.
13872
13873         * profile.c (compute_branch_probabilities):  Cleanup way the edge
13874         probabilities are computed and REG_BR_PROB notes are dropped; if
13875         values does not match, emit error.
13876         (init_branch_prob): Do error instead of warning when profile driven
13877         feedback is missing or corrupt.
13878
13879 2001-07-27  DJ Delorie  <dj@redhat.com>
13880
13881         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
13882         against a constant, try to adjust the compare to have the desired
13883         constant in it so that min/max optimizations happen more often.
13884
13885 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
13886
13887         * flow.c (last_loop_beg_note): New function.
13888         (redirect_edge_and_branch): Use it.
13889         (split_edge): Likewise.
13890
13891         * alias.c (loop_p): Avoid uninitialized memory access.
13892
13893         * flow.c (try_forward_edges): Avoid accessing freed memory.
13894
13895         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
13896         variable access.
13897
13898 2001-07-26  Andrew Haley  <aph@redhat.com>
13899         Joern Rennecke <amylaar@redhat.com>
13900
13901         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
13902         (SUBTARGET_CPP_ENDIAN_SPEC): New.
13903         (SUBTARGET_CPP_SPEC): New.
13904         (CPP_SPEC): Remove.
13905         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
13906         (SUBTARGET_CPP_PTR_SPEC): New.
13907         (CPP_DEFAULT_CPU_SPEC): New.
13908         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
13909         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
13910         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
13911         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
13912         (SUBTARGET_CPP_SPEC): Define as an empty string.
13913
13914 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13915
13916         * doc/install.texi (Configuration): Properly link the host
13917         specific instructions also when generating HTML.
13918
13919 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
13920
13921         * flow.c (redirect_edge_and_branch_force): Test
13922         target->global_live_at_start.
13923
13924 2001-07-26  Richard Henderson  <rth@redhat.com>
13925
13926         * simplify-rtx.c (avoid_constant_pool_reference): Export.
13927         * rtl.h (avoid_constant_pool_reference): Declare it.
13928         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
13929         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
13930
13931 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
13932
13933         * rtl.h (cleanup_barriers): Declare.
13934         * jump.c (cleanup_barriers): New function.
13935         * toplev.c (rest_of_compilation): Call cleanup_barriers
13936         before loop optimizer and after bb_reorder.
13937
13938         * flow.c (back_edge_of_syntactic_loop_p): New.
13939         (split_edge): Use it.
13940
13941 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13942
13943         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
13944
13945 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
13946
13947         * cse.c (cse_process_notes): Replace any registers if the address
13948         remains valid.
13949
13950 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
13951
13952         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
13953         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
13954         (propagate_block): Update prototype.
13955         * flow.c (update_life_info): Simplify the CFG and
13956         recalculate the global regs which are alive when
13957         removing dead code during a global update.
13958         (propagate_block): Return non-zero if an INSN is
13959         deleted.
13960
13961 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13962
13963         * Makefile.in (LIBICONV): Define.
13964
13965 2001-07-26  Catherine Moore  <clm@redhat.com>
13966
13967         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
13968         of conditional to avoid tree checking errors.
13969
13970 2001-07-26  Kazu Hirata  <kazu@hxi.com>
13971
13972         * regmove.c (regmove_optimize): Don't replace a reg with
13973         another reg of a different mode.
13974
13975 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
13976
13977         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
13978         limit length of dependency flush list.
13979         * params.h (MAX_PENDING_LIST_LENGTH): Define.
13980         * sched-int.h  (struct deps): Add pending_flush_length field.
13981         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
13982         has 1 element in it.
13983         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
13984         (sched_analyze): After a jump, if the pending memory flush list is too
13985         large, flush the pending lists.
13986         (init_deps): Initialize pending_flush_length to 0.
13987         * doc/invoke.texi (max_pending_list_length): Document parameter.
13988
13989 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
13990
13991         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
13992         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
13993         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
13994
13995 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13996
13997         * cpphash.h (struct_lexer_state): Delete was_skipping.
13998         Move skipping here from struct cpp_reader.
13999         * cpplex.c (parse_identifier): Update.
14000         (_cpp_lex_token): Don't skip tokens in a directive.
14001         * cpplib.c (struct if_stack): Update.
14002         (start_directive, end_directive): Don't change skipping state.
14003         (_cpp_handle_directive): Update.
14004         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
14005         (do_else, do_endif): Update; only check for excess tokens if not
14006         in a skipped conditional block.
14007         (push_conditional): Update for new struct if_stack.
14008
14009 2001-07-26  Graham Stott  <grahams@redhat.com>
14010
14011         * function.c (locate_and_pad_parm): Also pad initial offset
14012         so that the total argument size also includes the padding.
14013
14014 2001-07-26  Graham Stott <grahams@redhat.com>
14015
14016         * gensupport.c (alter_output_for_insn): Correct enable checking failure
14017         change XSTR to XTMPL.
14018
14019         (process_one_cond_exec): Likewise
14020
14021 2001-07-25  Richard Henderson  <rth@redhat.com>
14022
14023         * varasm.c (assemble_variable): Create DECL_RTL before setting
14024         TREE_ASM_WRITTEN.
14025
14026 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
14027
14028         * predict.c (estimate_probability): Avoid duplicated predictions.
14029
14030         * loop.c (find_and_verify_loops): Grok multiple barriers.
14031
14032 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14033
14034         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
14035
14036         * dbxout.c: Consistently use putc instead of fputc.
14037         (print_wide_int): New function; call instead of direct fprintf.
14038         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
14039         (dbxout_type_fields, dbxout_type_method_1): Likewise.
14040         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
14041         (print_int_cst_octal): Likewise.
14042         (print_octal): Show we wrote characters.
14043         (dbxout_type): Set have_used_extensions in more places.
14044
14045 2001-07-25  Catherine Moore  <clm@redhat.com>
14046
14047         * config/v850/v850.c (v850_va_arg):  Use addr
14048         instead of valist to build incr.
14049
14050 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
14051
14052         * flow.c (delete_dead_jumptables): New function.
14053         (life_analyzis): Call it.
14054         * bb-reorder.c (skip_insns_after_block): Handle contradictory
14055         sequences.
14056
14057 2001-07-25  Richard Henderson  <rth@redhat.com>
14058
14059         * except.c (reachable_handlers): Handle a region being removed
14060         out from under a RESX.
14061
14062 2001-07-25  Richard Henderson  <rth@redhat.com>
14063
14064         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
14065         swap GE/GT if it is an fp comparison.
14066
14067 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
14068
14069         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
14070         operands.
14071
14072 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
14073
14074         * ssa.c (rename_insn_1): Do not wrap an assignment to a
14075         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
14076         glitch.
14077
14078         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
14079         throw an exception.
14080         (visit_expression): When attempting to simplify an expression,
14081         retrieve any modes for arguments before they are simplified
14082         to constants.
14083
14084 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
14085             Janis Johnson  <janis@us.ibm.com>
14086
14087         * stmt.c (expand_goto): A nonlocal goto can be a call too.
14088         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
14089         pointer parameters to match documented usage of nonlocal_goto.
14090         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
14091         parameters to their correct order.
14092         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
14093         parameters to their correct order.
14094
14095 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
14096
14097         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
14098
14099 2001-07-25  Jan Hubicka  <jh@suse.cz>
14100             Richard Henderson  <rth@redhat.com>
14101
14102         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
14103         the sequence.
14104         (make_edges): New argument update_p; populate the edge cache if set.
14105         (find_basic_blocks): Update make_edges invocation.
14106
14107 2001-07-24  Joel Sherrill <joel@OARcorp.com>
14108
14109         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
14110
14111 2001-07-24  Joel Sherrill <joel@OARcorp.com>
14112
14113         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
14114         -Acpu and -Amachine.h.
14115         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
14116         Corrected header to say ELF not a.out.
14117         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
14118         when given -msoft-float.
14119
14120 2001-07-24  Joel Sherrill <joel@OARcorp.com>
14121
14122         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
14123         extra multilib parts like arm-elf.
14124         (i960-*-coff*, i960-*-rtems): Should not use collect2.
14125         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
14126         crtfini.o as extra multilib parts.
14127
14128 2001-07-24  Joel Sherrill <joel@OARcorp.com>
14129
14130         * configure.in: Add rtems as a supported thread model.
14131         * gthr-rtems.h: Add missing entry point __gthread_active_p.
14132         * configure: Rebuilt.
14133
14134 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
14135
14136         * stor-layout.c (get_mode_alignment): make it work when
14137         BITS_PER_UNIT is not a power of two.
14138         * builtins.c (get_pointer_alignment): Likewise.
14139
14140 2001-07-24  Richard Henderson  <rth@redhat.com>
14141
14142         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
14143         the retrieved constant into the expected mode.
14144
14145 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
14146
14147         * flow.c (try_simplify_condjump): Avoid duplicated edges.
14148         (verify_flow_info): Check for duplicated edges; clarify
14149         error reporting.
14150
14151         * flow.c (block_label): Update basic_block_for_insn.
14152         (commit_edge_insertions): Call compute_bb_for_insn.
14153
14154         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
14155         returns too.
14156
14157         * flow.c (redirect_edge_and_branch,
14158         try_optimize_cfg): Use redirect_edge_succ_nodup
14159         (redirect_edge_succ_nodup): New.
14160         * basic_block.h (redirect_edge_succ_nodup): Declare.
14161
14162         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
14163         after gcse.
14164
14165 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
14166
14167         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
14168         (try_crossjump_to_edge): Update commetns.
14169         (try_crossjump_bb): Likewise.
14170
14171 2001-07-24  Richard Henderson  <rth@redhat.com>
14172
14173         * combine.c (distribute_notes): Move set of need_refresh
14174         for noop_move_p down to catch all cases.
14175
14176 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
14177
14178         * recog.c (split_all_insns_noflow): New.
14179         * rtl.h (split_all_insns_noflow): Declare.
14180         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
14181         * m68hc11.c (m68hc11_reorg): Likewise.
14182         * sh.c (machine_dependent_reorg): Likewise.
14183         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
14184         call.
14185
14186 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
14187
14188         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
14189         (ashlsi3_n splitter): Likewise.
14190         (lshrsi3_n splitter): Likewise.
14191
14192         (GOTaddr2picreg): Make const SImode.
14193         (sym_label2reg): Likewise.
14194         (symGOT2reg): Likewise.
14195         (symGOTOFF2reg) Likewise.
14196
14197         (casesi_worker_0): Make unspec SImode.
14198
14199 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
14200
14201         * config/sh/sh.c (barrier_align): Check that an operand really is
14202         an insn before extracting its INSN_CODE.
14203
14204 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
14205
14206         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
14207         dangling else.
14208
14209         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
14210         for SImode to prevent overflow.
14211
14212 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14213
14214         * config/mips/irix6-libc-compat.c: New file.
14215         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
14216         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
14217         passing workaround.
14218
14219 2001-07-24  lars brinkhoff  <lars@nocrew.org>
14220
14221         * rtl.texi (REG_POINTER): Document.
14222         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
14223         QFmode, HFmode, TQFmode, QCmode, and HCmode.
14224
14225 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
14226
14227         * flow.c (delete_noop_moves): Do not confuse libcall regions.
14228
14229 2001-07-23  Richard Henderson  <rth@redhat.com>
14230
14231         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
14232
14233 2001-07-23  Kazu Hirata  <kazu@hxi.com>
14234
14235         * config/h8300/h8300-protos.h: Add a prototype for
14236         general_operand_dst_push.
14237         * config/h8300/h8300.c (general_operand_dst_push): New.
14238         * config/h8300/h8300.h (OK_FOR_T): New.
14239         (EXTRA_CONSTRAINT): Use it.
14240         * config/h8300/h8300.md (movqi_push): Remove and integrate into
14241         the existing movqi pattern.
14242         (movhi_push): Likewise.
14243
14244         * reload.c: Fix comment typos.
14245
14246 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
14247
14248         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
14249
14250 2001-07-23  H.J. Lu  (hjl@gnu.org)
14251
14252         * doc/extend.texi: Update __builtin_return_address and
14253         __builtin_frame_address.
14254
14255 2001-07-23  Richard Henderson  <rth@redhat.com>
14256
14257         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
14258         before CSE.
14259         * config/i386/i386.md: New setcc+movzbl peephole2.
14260
14261 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14262
14263         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
14264         * objc/objc-act.c: Include debug.h.
14265         (synth_module_prologue): Save and restore debug hooks too.
14266
14267 2001-07-23  lars brinkhoff  <lars@nocrew.org>
14268
14269         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
14270         and C4X_FLOAT_FORMAT.
14271         (BOOL_TYPE_SIZE): Document.
14272
14273 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
14274
14275         * unroll.c (loop_iterations): Fix miscalculation of initial
14276         giv offset.
14277
14278 2001-07-13  Andrew Haley  <aph@redhat.com>
14279
14280         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
14281         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
14282         * config/sh/sh.c (sh_can_redirect_branch): New function.
14283         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
14284         * reorg.c (steal_delay_list_from_target): Use
14285         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
14286
14287 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
14288
14289         * flow.c (try_simplify_condjump): Unlink insn chain on
14290         fallthru edge; use can_fallthru.
14291
14292 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
14293
14294         * basic-block.h (find_sub_basic_block): Declare.
14295         * flow.c (make_edges): New arguments MIN and MAX;
14296         (find_sub_basic_blocks): Revamp to use make_edges
14297         and purge_dead_edges.
14298         (find_basic_blocks): Update call of find_sub_basic_block.
14299
14300         * recog.c (split_all_insns): Always expect CFG to be consistent;
14301         call find_sub_basic_blocks in case something has changed.
14302         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
14303         has been built.
14304
14305         * basic-block.h (delete_noop_moves): Declare.
14306         * combine.c (combine_instructions): Call it.
14307         (recog_for_combine): Tolerate noop moves
14308         (distribute_notes): Force refresh when register dies at noop move.
14309         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
14310         too.
14311         (life_analysis): Update delete_noop_moves call.
14312         (set_noop_p): Move too ...
14313         * rtlanal.c (noop_move_p): ... here.
14314         * rtl.h (noop_move_p): Declare.
14315
14316         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
14317         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
14318         after combine.
14319         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
14320         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
14321
14322 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
14323
14324         * reload.c (push_reload): Fix typo in comment.
14325         (find_reloads_address): Ditto.
14326         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
14327
14328 2001-07-22  Richard Henderson  <rth@redhat.com>
14329
14330         * flow.c: Grammar check and clarify a lot of comments.
14331         (try_simplify_condjump): Rename variables to be clearer.
14332         (try_forward_edges): Skip complex and fallthru edges.
14333         Rearrange tests to avoid duplicate checks.
14334         (flow_find_cross_jump): Likewise.
14335         (outgoing_edges_match): Allow match if neither branch has
14336         probability data.  Loosen probability match to 5%.
14337         (try_crossjump_to_edge): Hoist repeated indirection into
14338         local variables.
14339         (try_crossjump_bb): Don't check complex edges.  Eliminate
14340         redundant crossjump tests.
14341         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
14342         checks before more expensive checks.
14343
14344 2001-07-22  Richard Henderson  <rth@redhat.com>
14345
14346         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
14347         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
14348         arguments.
14349
14350 2001-07-22  Richard Henderson  <rth@redhat.com>
14351
14352         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
14353         (const_sint32_operand): Likewise.
14354         * m68k.md (anon mulsi pattern): Use const_int_operand not
14355         const_sint32_operand.
14356         (umulsi3_highpart): Zero extend a constant input.
14357         (smulsi3_highpart): Don't bother checking SImode constant.
14358         (const_umulsi3_highpart): Give op3 DImode.
14359         (const_smulsi3_highpart): Likewise.
14360
14361 2001-07-22  Richard Henderson  <rth@redhat.com>
14362
14363         * flow.c (split_block): Make sure bb_note is included in the
14364         new block when splitting before a label.
14365
14366 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
14367
14368         * basic-block.h (redirect_edge_and_branch_force,
14369         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
14370         * flow.c (redirect_edge_and_branch_force,
14371         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
14372         (redirect_edge_and_branch_force): Fix copying of lifeness information.
14373         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
14374         * ifcvt.c (dead_or_predictable): Take BB as an new destination
14375         instead of label; update CFG after transformation.
14376         (find_if_case_1): Update call, use redirect_edge_and_branch_force
14377         for finishing the transformation; handle even case where ELSE
14378         does not follow THEN.
14379         (find_if_case_2): Update call of dead_or_predictable; simplify
14380         CFG update.
14381
14382         * emit-rtl.c (split_branch_probability): New global variable.
14383         (try_split): Take care to set split_branch_probability and
14384         create REG_BR_PROB note for new jump insns.
14385         * md.texi (define_split): Document new feature.
14386
14387         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
14388
14389 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
14390
14391         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
14392         (asm_out_file): Remove redundant declaration.
14393         (assemble_asm): Remove old #if 0 block.
14394         (assemble_variable): Remove end of function; debug output is
14395         now handled with global_decl.  Remove old #if 0 block.  Update.
14396         Remove saved_in_section and associated no-op code.
14397         * Makefile.in (varasm.o): Correct dependencies.
14398
14399 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
14400
14401         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
14402         the definition in defaults.h.
14403
14404 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
14405
14406         * jump.c: Update comments.
14407         (delete_barrier_successors, delete_unreferenced_labels,
14408         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
14409         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
14410         jump_optimize, jump_optimize_minimal): Kill.
14411         (rebuild_jump_labels): Move code from jump_optimize_1.
14412         (purge_line_number_notes): Likewise.
14413         (copy_loop_headers): Likewise.
14414         * reg-stack.c: Update comment.
14415         * stmt.c: Likewise.
14416         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
14417         JUMP_AFTER_REGSCAN): Kill.
14418         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
14419         purge_line_number_notes and copy_loop_headers.
14420
14421 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
14422            Richard Henderson  <rth@redhat.com>
14423
14424         * dbxout.c (dbxout_global_decl): New.
14425         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
14426         * sdbout.c (sdbout_finish): New.
14427         (sdbout_debug_hooks): Use it, add comments.
14428         (sdbout_global_decl): Defer initialised public vars to
14429         sdbout_finish.
14430         * varasm.c (assemble_variable): Don't output debug information
14431         for file-scope variables.
14432
14433 2001-07-22  Richard Henderson  <rth@redhat.com>
14434
14435         * config/alpha/alpha.c (get_trap_mode_suffix): New.
14436         (get_round_mode_suffix): New.
14437         (print_operand): Use them for [/].  Remove support for [&'`()+].
14438         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
14439         * config/alpha/alpha.md (attr round_suffix): New.
14440         (attr trap_suffix): New.
14441         (all insns): Set them appropriately.  Use %/ instead of the
14442         myriad punctuators.
14443
14444 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14445
14446         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
14447
14448 2001-07-22  Richard Henderson  <rth@redhat.com>
14449
14450         * regrename.c (regrename_optimize): Compute nregs for each
14451         potential target register.
14452
14453 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
14454            Richard Henderson  <rth@redhat.com>
14455
14456         * dbxout.c (dbxout_global_decl): New.
14457         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
14458         * sdbout.c (sdbout_finish): New.
14459         (sdbout_debug_hooks): Use it, add comments.
14460         (sdbout_global_decl): Defer initialised public vars to
14461         sdbout_finish.
14462         * varasm.c (assemble_variable): Don't output debug information
14463         for file-scope variables.
14464
14465 2001-07-21  H.J. Lu  (hjl@gnu.org)
14466
14467         * config/mips/mips.c (mips_cpu): Moved into ...
14468         (override_options): Here.
14469
14470         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
14471         mips_tune.
14472         (mips_cpu): Removed.
14473
14474 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14475
14476         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
14477         ("iorqi3"): Likewise.
14478         ("xorqi3"): Likewise.
14479         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
14480         ("*subhi3_sp): Likewise.
14481         ("*subhi3"): Likewise.
14482         ("extendhisi2"): Accept D, X and Y as source operand to avoid
14483         reload problems.
14484
14485 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
14486
14487         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
14488         * config/freebsd.h: Likewise.
14489         * config/linux.h: Likewise.
14490         * config/openbsd.h: Likewise.
14491         * config/alpha/linux-elf.h: Likewise.
14492         * config/arm/linux-elf.h: Likewise.
14493         * config/d30v/d30v.h: Likewise.
14494         * config/fr30/fr30.h: Likewise.
14495         * config/ia64/aix.h: Likewise.
14496         * config/ia64/ia64.h: Likewise.
14497         * config/mips/linux.h: Likewise.
14498         * config/pj/pj.h: Likewise.
14499         * config/rs6000/linux.h: Likewise.
14500         * config/sparc/linux.h: Likewise.
14501         * config/sparc/linux64.h: Likewise.
14502
14503 2001-07-20  Bruce Korb  <bkorb@gnu.org>
14504
14505         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
14506         because getc() and char* may disagree on signedness.
14507
14508 2001-07-20  Richard Henderson  <rth@redhat.com>
14509
14510         * doc/rtl.texi (REG_DEAD): Update for current semantics.
14511
14512         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
14513         insns to delete in the presence of cc0 in a jump insn.
14514
14515 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
14516                                 Jan Hubicka  <jh@suse.cz>
14517
14518         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
14519         of doing the change by hand.
14520
14521 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
14522
14523         * rtlanal.c (set_noop_p): Return true for noop jumps.
14524
14525         * expr.c (emit_single_push_insn): Add call to push expander.
14526         * expr.h (optab_index): Add OTI_push
14527         (push_optab): New constant.
14528         * genopinit.c (optabs): Add push_optab.
14529         * optabs.c (init_optab): Init push optab.
14530         * md.texi (push??1): Document
14531
14532 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14533
14534         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
14535         expand to emit the pattern; put a REG_INC note for push/pop
14536         instructions.
14537         ("movdf", "movdf_internal"): Likewise.
14538         ("movsi", "movsi_internal"): Likewise.
14539         ("movsf", "movsf_internal"): Likewise.
14540         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
14541
14542 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14543
14544         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
14545         gen_highpart.
14546
14547 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
14548
14549         * params.def: Change default max inline insns to 100.
14550
14551 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
14552
14553         * combine.c (combine_simplify_rtx): Generate a new shift operation
14554         when simplifying the first operand of a (neg (ashift)) expression.
14555
14556 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
14557
14558         * regclass.c (N_REG_INTS): Use only 32 bits per element.
14559
14560 2001-07-20  Kelley Cook  <kelley.cook@home.com>
14561
14562         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
14563         information.   Move rest into ...
14564         (*-*-solaris): ... here.  Eliminate redundant information and
14565         reword necessary packages section.  Delete 4.x assembler bug info.
14566         (sparc-sun-*): Merge into ...
14567         (sparc-sun-sunos*): here.
14568
14569 2001-07-20  Catherine Moore  <clm@redhat.com>
14570
14571         * config/v850/v850.md (casesi): Generate LABEL_REF
14572         with Pmode.
14573
14574 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
14575
14576         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
14577         * i386.c (ix86_zero_extend_to_Pmode): Make global.
14578         * i386.md (strclrsi expander): Use it.
14579
14580 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
14581
14582         * integrate.c (copy_insn_list): handle
14583         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
14584         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
14585         identically as to CODE_LABEL.
14586
14587         * fold-const (fold): Convert A/B/C to A/(B*C) and
14588         A/(B/C) to (A/B)*C
14589
14590         * except.c (connect_post_landing_pads): Delete the RESX insns.
14591
14592 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
14593
14594         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
14595
14596         * config/mips/mips.md (nmadd/nmsub): Use macro.
14597
14598 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
14599
14600         * cppinit.c (remove_dup_dir): Make static.
14601         (remove_dup_dirs): Make static. Only warn about preempting a
14602         system directory with a non-system directory.
14603
14604 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
14605
14606         * ifcvt.c (noce_try_store_flag_constants): Correct order
14607         of parameters to trunc_int_for_mode.
14608
14609 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
14610
14611         * reorg.c (fill_simple_delay_slots): If an instruction might throw
14612         an exception that will be caught within this function, do not fill
14613         its delay slot with any subsequent instruction.
14614
14615 2001-07-19  Steve Ellcey <sje@cup.hp.com>
14616
14617         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
14618         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
14619         pointer extension instruction.
14620         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
14621         * simplify-rtx.c (simplify_unary_operation) Likewise.
14622         * explow.c (convert_memory_address) Check value of
14623         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
14624         less than zero.
14625         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
14626         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
14627         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
14628         Add Multilib Support.
14629         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
14630         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
14631         Add Multilib Support.
14632         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
14633         support.
14634         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
14635         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
14636         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
14637
14638 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
14639
14640         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
14641         old and new operands in `<', `3' and `b'.
14642
14643 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14644
14645         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
14646         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
14647         (toplev.o): Don't depend on xcoffout.h.
14648         * c-decl.c: Include debug.h
14649         (duplicate_decls): Use debug hook.
14650         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
14651         (dbx_debug_hooks, xcoff_debug_hooks): Update.
14652         (dbxout_types): Remove.
14653         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
14654         * debug.c (do_nothing_debug_hooks): Update.
14655         (debug_true_tree, debug_nothing_rtx): New.
14656         * debug.h (struct rtx_def): New.
14657         (struct gcc_debug_hooks): New hooks ignore_block,
14658         outlining_inline_function and label.
14659         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
14660         dwarf2out_frame_finish): New.
14661         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
14662         Make static, update prototype.
14663         (dwarf2_debug_hooks): Update.
14664         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
14665         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
14666         * dwarfout.c (dwarf_debug_hooks): Update.
14667         * emit-rtl.c: Include debug.h.
14668         (remove_unnecessary_notes): Use debug hook.
14669         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
14670         (final_scan_insn): Use debug hook.
14671         * integrate.c (output_inline_function): Use debug hook.
14672         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
14673         (sdb_debug_hooks): Update.
14674         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
14675         * toplev.c: Don't include xcoffout.h.
14676         (note_outlining_of_inline_function, debug_ignore_block): Remove.
14677         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
14678         Remove.
14679         * tree.h (dwarf2out_do_frame): Remove.
14680
14681 2001-07-19  Catherine Moore  <clm@cygnus.com>
14682
14683         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
14684
14685 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
14686
14687         * reload1.c (eliminate_regs_in_insn): When updating a set
14688         to the frame pointer to the hardware frame pointer, perform
14689         the update always not just when REPLACE is set.
14690
14691         * reload1.c (choose_reload_regs): Don't inherit a reload
14692         that crosses multiple registers if registers past the first
14693         don't fit in the desired class.
14694
14695         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
14696         when negating constants.
14697
14698 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
14699
14700         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
14701         * doc/tree.texi: Ditto.
14702
14703 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
14704             Jakub Jelinek  <jakub@redhat.com>
14705
14706         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
14707         (extract_cie_info): Handle "eh" augmentation properly,
14708         remember eh_ptr.
14709         (struct frame_state, __frame_state_for): New.
14710
14711 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14712
14713         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
14714         HANDLE_SYSV_PRAGMA): Define.
14715         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
14716         previous args.
14717         (copy_object): Caller changed.
14718
14719 2001-07-19  Andreas Schwab  <schwab@suse.de>
14720
14721         * configure.in (assembler dwarf2 debug_line support): Define nop
14722         insn for m68k.
14723         * configure: Regenerated.
14724
14725 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14726
14727         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
14728         dwarfout.h.
14729         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
14730         to conditionally compiled block.
14731         (dbx_debug_hooks, xcoff_debug_hooks): Update.
14732         * dbxout.h (dbxout_function): Remove.
14733         * debug.c (do_nothing_debug_hooks): Update.
14734         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
14735         global_decl, deferred_inline_function.
14736         * dwarf2out.c (dwarf2_debug_hooks): Update.
14737         (dwarf2out_global_decl): New.
14738         * dwarfout.c: Don't include dwarfout.h.
14739         (dwarfout_global_decl, dwarfout_function_decl,
14740         dwarfout_deferred_inline_function): New.
14741         (dwarf_debug_hooks): Update.
14742         * dwarfout.h: Remove.
14743         * final.c: Don't include dwarfout.h.
14744         * sdbout.c (sdbout_global_decl): New.
14745         (sdbout_debug_hooks): Update.
14746         * toplev.c: Don't include dwarfout.h.
14747         (check_global_declarations, rest_of_compilation): Use new debug hooks.
14748         (note_deferral_of_defined_inline_function): Remove.
14749         * toplev.h (note_deferral_of_defined_inline_function): Remove.
14750         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
14751         * ch/lex.c: Don't include dwarfout.h.
14752         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
14753         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
14754         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
14755         * cp/optimize.c: Include debug.h.
14756         (maybe_clone_body): Use debug hook.
14757         * cp/semantics.c: Include debug.h.
14758         (expand_body): Use debug hook.
14759         * po/POTFILES.in: Remove dwarfout.h.
14760
14761 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14762
14763         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
14764         * c-parse.in (yyerror, _yylex): Similarly.
14765         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
14766         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
14767         Update comments.
14768         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
14769         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
14770
14771 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
14772
14773         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
14774         in-class declaration at -g1.  Fixes c++/2814.
14775
14776 2001-07-18  Richard Henderson  <rth@redhat.com>
14777
14778         * doc/md.texi (reload_in/out): Document restrictions in predicates
14779         and constraints for these patterns.  Document empty string matching
14780         ALL_REGS.
14781
14782 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14783
14784         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
14785
14786 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
14787
14788         * cse.c: Undo my previous patch.
14789
14790 2001-07-18  Tom Tromey  <tromey@redhat.com>
14791
14792         For PR java/2812:
14793         * configure: Rebuilt.
14794         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
14795         instead.
14796         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
14797
14798 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
14799                                 Jan Hubicka  <jh@suse.cz>
14800
14801         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
14802         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
14803         * jump.c (mark_jump_label): Do not forward branches.
14804
14805 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
14806
14807         * cse.c (delete_trivially_dead_insns): Delete the libcall block
14808         when return value is unused.
14809
14810 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
14811
14812         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
14813
14814 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
14815
14816         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
14817         on error.  We can't blindly return the result of
14818         pthread_mutex_trylock because it returns a positive number on
14819         error, while we must return -1 on error.
14820         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
14821         fixes.
14822         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
14823
14824 2001-07-18  Andreas Jaeger  <aj@suse.de>
14825
14826         * integrate.c (output_inline_function): Correct type of debug_hooks.
14827
14828 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
14829
14830         * combine.c (combine_simplify_rtx): DIV can be treated
14831         associatively for floats if unsafe math optimisations are enabled.
14832
14833 2001-07-17  Richard Henderson  <rth@redhat.com>
14834
14835         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
14836
14837 2001-07-17  Richard Henderson  <rth@redhat.com>
14838
14839         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
14840         don't force the function address into a register.
14841         (expand_call, emit_library_call_value_1): Update callers.
14842         * builtins.c (expand_builtin_apply): Likewise.
14843         * expr.h (prepare_call_address): Update decl.
14844
14845 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
14846
14847         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
14848         config directory.
14849         * config/i386/chorus.h: Move up.
14850         * config/sparc/chorus.h: Likewise.
14851         * config/rs6000/chorus.h: Likewise.
14852         * config/chorus.h: Moved here.
14853
14854 2001-07-17  Andreas Schwab  <schwab@suse.de>
14855
14856         * configure.in  (assembler eh_frame optimization): Handle big
14857         endian.
14858         * configure: Regenerated.
14859
14860 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
14861
14862         * expr.c (epxand_expr): Convert divisions into multiplications by
14863         reciprocals if -ffast-math.
14864
14865 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
14866
14867         * dbxout.c (dbxout_really_begin_function): Rename to
14868         dbxout_begin_function.
14869         (dbx_debug_hooks, xcoff_debug_hooks): Update.
14870         (dbxout_begin_function): Remove.
14871         (dbxout_function): Update.
14872         (dbxout_source_line): Update prototype.
14873         * dbxout.h (dbxout_begin_function): Remove.
14874         * debug.c (do_nothing_debug_hooks): Update.
14875         (debug_nothing_tree): Update.
14876         (debug_nothing_charstar_rtx): Remove.
14877         * debug.h (union tree_node): Declare.
14878         (struct rtx_def): Remove.
14879         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
14880         begin_function.  Change source_line prototype.
14881         (debug_nothing_tree): New.
14882         (debug_nothing_charstar_rtx): Delete.
14883         (dwarf2out_begin_prologue): Moved from ...
14884         * tree.h: ... here.
14885         * dwarf2out.c (dwarf2_debug_hooks): Update.
14886         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
14887         debug info, call dwarf2out_source_line.
14888         (dwarf2out_souce_line): Update prototype.
14889         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
14890         Change prototype, make static.
14891         (dwarfout_source_line): Update prototype.
14892         (dwarf_debug_hooks): Update.
14893         * dwarfout.h (dwarfout_begin_function): Remove.
14894         * final.c (final_start_function, final_scan_insn): Use appropriate
14895         debug hooks, update to use notice_source_line.
14896         (output_source_line): Rename notice_source_line.  Don't call the
14897         source_line debug hook.
14898         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
14899         make static, update prototype.
14900         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
14901         prototype.
14902         (sdbout_end_prologue): New.
14903         (sdbout_source_line): Update prototype.
14904         (sdbout_debug_hooks): Update.
14905         (sdbout_symbol): Remove unused var.
14906         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
14907         Delete.
14908         * varasm.c: Include debug.h.
14909         (assemble_start_function): Use begin_function debug_hook.
14910         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
14911         update with prototype.
14912         (xcoffout_source_line): Update prototype.
14913         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
14914         update prototype.
14915         (xcoffout_source_line): Update prototype.
14916
14917 2001-07-17  Richard Henderson  <rth@redhat.com>
14918
14919         * c-typeck.c (build_binary_op): Do not shorten unsigned
14920         right shift after sign extension.
14921
14922 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
14923
14924         * combine.c (combine_simplify_rtx): Attempt to simplify
14925         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
14926
14927         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
14928         (simplify_binary_operation, simplify_unary_operation,
14929          simplify_relational_operation): Use it.
14930
14931         * combine.c (combine_simplify_rtx): Don't do associative law
14932         on divisions; allow associative law on floats.
14933
14934 2001-07-17  H.J. Lu <hjl@gnu.org>
14935             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14936
14937         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
14938         ASM_OUTPUT_WEAK_ALIAS are defined.
14939         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
14940         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
14941         Moved ...
14942         * config/mips/iris5.h: ... here.
14943         (HANDLE_SYSV_PRAGMA): Defined as 1.
14944         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
14945         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
14946         symbol.
14947
14948 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
14949
14950         * c-parse.in (all_prefix_attributes): New variable.
14951         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
14952         (maybe_resetattrs): New production.
14953         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
14954         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
14955         notype_initdcl, nested_function, notype_nested_function,
14956         component_decl, components, components_notype,
14957         component_declarator, component_notype_declarator,
14958         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
14959         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
14960         after a comma being applied to more than one declarator.
14961         * doc/extend.texi (Attribute Syntax): Update.  Remove
14962         documentation of bugs that are no longer present.
14963
14964 2001-07-13  Eric Christopher  <echristo@redhat.com>
14965
14966         * config/mips/mips.h: Change TUNE_MIPS* options to use
14967         mips_tune.
14968         (EXTRA_SPECS): Add cc1_cpu_spec.
14969         * config/mips/mips.md (muldf3): Fix typo.
14970
14971 2001-07-16  Richard Henderson  <rth@redhat.com>
14972
14973         * config/m68k/m68k.c: Include expr.h and reload.h.
14974         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
14975         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
14976
14977 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
14978             Richard Henderson  <rth@redhat.com>
14979
14980         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
14981         (insn_live_p): Fix fall off end of function.
14982         (dead_libcall_p): Remove COUNTS argument; update callers.
14983         (delete_trivially_dead_insns): Remove unused variables.
14984
14985 2001-07-17  Andreas Jaeger  <aj@suse.de>
14986
14987         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
14988         x86-64 pic support.
14989
14990         * lcm.c (optimize_mode_switching): Avoid warning for unused
14991         variable if !NORMAL_MODE.
14992
14993         * flow.c (try_crossjump_to_edge): Remove unused variable.
14994
14995 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14996
14997         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
14998         atexit declaration in stdlib.h.
14999
15000 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
15001
15002         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
15003
15004 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
15005
15006         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
15007         * except.c (finish_eh_generation): Update call of cleanup_cfg;
15008         do rebuild_jump_labels instead of jump_optimize
15009         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
15010         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
15011         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
15012
15013         * flow.c: Include timevar.h
15014         (find_basic_block): Push/pop timevar;
15015         (cleanup_cfg): Likewise.
15016         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
15017         * Makefile: Add dependencies on timevar.h
15018
15019         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
15020         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
15021
15022         * rtl.h (delete_trivially_dead_insns): Add new parameter.
15023         * toplev.c (rest_of_compilation): Update calls.
15024         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
15025         (delete_trivially_dead_insns): ... here; accept new argument
15026         preserve_basic_blocks; preserve basic blocks if set.
15027
15028         * reg-stack.c (stack_regs_mentioned): Return 0 if
15029         stack_regs_mentioned_data is not initialized.
15030         (reg_to_stack): Make stack_regs_mentioned survive after the
15031         reg-stack is completted; do not call cleanup_cfg.
15032         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
15033         make cleanup_cfg after bb-reorder to output to debug file.
15034
15035 2001-07-16  Richard Henderson  <rth@redhat.com>
15036
15037         * regclass.c (init_reg_sets): Use only 32 bits per initializer
15038         from int_reg_class_contents.
15039
15040 2001-07-16  Richard Henderson  <rth@redhat.com>
15041
15042         * hard-reg-set.h (regs_invalidated_by_call): Declare.
15043         * regclass.c (regs_invalidated_by_call): Move from cse.c.
15044         (init_reg_sets_1): Move initialization from cse_main.
15045         * cse.c (regs_invalidated_by_call): Move to regclass.c.
15046         (cse_main): Move its initialization also.
15047         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
15048         * flow.c (propagate_one_insn): Likewise.
15049         * gcse.c (compute_hash_table): Likewise.
15050         (compute_kill_rd, compute_store_table): Likewise.
15051         * sched-deps.c (sched_analyze_1): Likewise.
15052
15053 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
15054
15055         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
15056         gen_rtx_SET.
15057
15058 2001-07-16  Steve Ellcey <sje@cup.hp.com>
15059
15060         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
15061         in if statement so we don't access undefined memory.
15062
15063 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
15064
15065         * gcse.c: Update comment at top.
15066         Update comment on mem handling.
15067         mem_last_set, mem_first_set, mem_set_in_block: gone.
15068         Declaration of reg_set_info: gone.
15069         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
15070         pointless with load_killed_in_block_p (they are *more*
15071         conservative then it, not less, and less accurate).
15072         (oprs_not_set_p): Ditto.
15073         (alloc_gcse_mem): Don't allocate mem_set_in_block
15074         (free_gcse_mem): Don't free it, either.
15075         (record_last_mem_set_info): Update comment in front, remove
15076         mem_*set_* stuff. Note the reason we don't handle stores directly
15077         here.
15078         (compute_hash_table): Update comments to reflect reality. Remove
15079         mem_*set_* references.
15080         (reset_opr_set_tables): Remove mem_*set_* references.
15081         (mark_call): Ditto.
15082         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
15083         (mark_clobber): Ditto (on both parts, we double set here too).
15084         (expr_killed_p): Remove mem_set_in_block test.
15085         (compute_transp): Remove mem_set_in_block test.
15086
15087         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
15088         of edge, and removal of phi alternative to dump file.
15089         (ssa_ccp_substitute_constants): Add note about register now being
15090         constant, and which uses were replaced in what insns to dump file.
15091
15092 2001-07-16  Andreas Jaeger  <aj@suse.de>
15093
15094         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
15095         variables of type HOST_WIDEST_INT.
15096
15097         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
15098         (__bb_exit_func): Correct type of count_max to avoid overflow.
15099         (num_digits): Handle long long argument.
15100
15101         * combine.c (gen_lowpart_for_combine): Remove unused variable.
15102
15103 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15104
15105         * output.h (sdb_begin_function_line): Restore as an extern
15106         variable.
15107         * sdbout.c (sdb_begin_function_line): Make extern.
15108
15109 2001-07-15  Richard Henderson  <rth@redhat.com>
15110
15111         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
15112         * genrecog.c (maybe_both_true_mode): New.
15113         (maybe_both_true_2): Use it.
15114         (write_switch): Don't put Pmode in a switch.
15115         * rtl.c (mode arrays): Don't explicitly size them.
15116
15117 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
15118
15119         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
15120         handling; move unconditional splitting before mode switching.
15121
15122         * i386.md (type): Add fistp type.
15123         (i387, length_attr, scheduling definitions): Handle this type.
15124         (fix_trunc?f?i2): Revamp to use mode switching.
15125         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
15126         * i386.h (fp_cw_mode): New enum
15127         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
15128         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
15129
15130 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15131
15132         * Makefile.in (integrate.o): Add debug.h.
15133         * integrate.c (debug.h): Add.
15134         (output_inline_function): Save, reset, and restore debug_hooks.
15135
15136 2001-07-15  Richard Henderson  <rth@redhat.com>
15137
15138         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
15139         instead of COMPARE for the EQUIV expression.
15140
15141 2001-07-15  Richard Henderson  <rth@redhat.com>
15142
15143         * flow.c (redirect_edge_and_branch_force): Initialize
15144         global_live_at_start and global_live_at_end.
15145         (allocate_bb_life_data): Export.
15146         * basic-block.h (allocate_bb_life_data): Declare.
15147         * toplev.c (rest_of_compilation): Call it.
15148
15149 2001-07-15  Richard Henderson  <rth@redhat.com>
15150
15151         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
15152         (alpha_tablejump_best_label): New.
15153         * config/alpha/alpha-protos.h: Declare them.
15154         * config/alpha/alpha.md: Use braced strings for code blocks.
15155         (tablejump_osf): Break out add with r29.
15156         (tablejump_osf_internal): Remove.
15157         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
15158         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
15159
15160 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
15161
15162         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
15163         of the movable.
15164
15165         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
15166
15167         * i386-protos.h (ix86_split_fp_branch): Update prototype.
15168         (ix86_fp_jump_nontrivial_p): New.
15169         * i386.md (fp_jcc_?): Update call of split_fp_branch;
15170         use ix86_fp_jump_nontrivial_p.
15171         * i386.c (ix86_fp_jump_nontrivial_p): New.
15172         (ix86_split_fp_branch): Accept code instead of rtx.
15173         (ix86_expand_compare): Expand comparison early in case
15174         doing so is resonably cheap.
15175
15176 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
15177
15178         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
15179         not 'machine'.
15180         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
15181         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
15182
15183 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
15184
15185         * dbxout.c (dbxout_source_line): Make static, update prototype.
15186         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
15187         (dbxout_init, dbxout_finish, dbxout_source_line,
15188         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
15189         * dbxout.h (dbxout_source_line): Delete.
15190         * debug.c (debug_nothing_file, debug_nothing_file_int,
15191         debug_nothing_file_charstar_rtx): New.
15192         (do_nothing_debug_hooks): Update.
15193         (debug_nothing_void, debug_nothing_charstar_rtx,
15194         dwarf2out_end_epilogue): New.
15195         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
15196         * debug.h (struct rtx_def): Declare.
15197         (gcc_debug_hooks): New hooks source_line, end_epilogue
15198         and end_function.
15199         (debug_nothing_void, debug_nothing_charstar_rtx,
15200         dwarf2out_end_epilogue): New.
15201         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
15202         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
15203         (dwarf2_debug_hooks): Update.
15204         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
15205         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
15206         * dwarf2out.h (dwarf2out_source_line): Remove.
15207         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
15208         Make static, update prototype.
15209         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
15210         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
15211         (dwarf_debug_hooks): Update.
15212         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
15213         dwarfout_end_function): Remove.
15214         * final.c (profile_function): Use debug hooks for ending functions
15215         and epilogues.
15216         (output_source_line, final_end_function): Update prototype,
15217         use debug hooks.
15218         (final_start_function, final_scan_insn): Update.
15219         * output.h (sdb_begin_function_line): Remove.
15220         (final_end_function): Update prototype.
15221         * sdbout.c (sdb_begin_function_line): Make static.
15222         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
15223         (sdbout_source_line): New.
15224         (sdbout_end_epilogue, sdbout_end_function): Make static, update
15225         prototypes.
15226         (sdb_debug_hooks): Update.
15227         (sdbout_init, sdbout_source_line,
15228         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
15229         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
15230         * toplev.c (compile_file, rest_of_compilation): Update.
15231         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
15232         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
15233         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
15234         Update for prototype changes.
15235         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
15236         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
15237
15238 2001-07-15  Richard Henderson  <rth@redhat.com>
15239
15240         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
15241         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
15242         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
15243         * config/alpha/alpha.c: Likewise.
15244         * config/alpha/alpha.md: Likewise.
15245         * config/alpha/alpha32.h: Likewise.
15246         * config/alpha/vms.h: Likewise.
15247         (OPEN_VMS): Remove.
15248
15249 2001-07-14  Richard Henderson  <rth@redhat.com>
15250
15251         * config/alpha/alpha.md: Use define_constants for unspec values.
15252         Substitute throughout.
15253
15254 2001-07-14  Tim Josling  <tej@melbpc.org.au>
15255
15256         * tree.def (EXPON_EXPR) remove. Never supported anyway.
15257
15258 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15259
15260         * pa.md: Remove unused constraints from define_split's.
15261
15262 2001-04-14  Richard Henderson  <rth@redhat.com>
15263
15264         * ifcvt.c (find_cond_trap): Test for exit block.
15265
15266 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
15267
15268         Re-install recently reverted patch.
15269         * emit-rtl.c (try_split): Update mark_jump_label call.
15270         * flow.c (find_sub_basic_blocks): Likewise.
15271         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
15272         jump_back_p): Kill.
15273         (mark_all_labels): Kill second parameter.
15274         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
15275         (rebuild_jump_labels, jump_optimize_minimal): Update call
15276         of jump_optimize_1.
15277         (jump_optimize_1): Kill crossjumping code.
15278         (mark_jump_label): Kill cross_jump parameter.
15279         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
15280         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
15281         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
15282          splitting.
15283         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
15284         DFI_bpro.
15285         (dump_file_info): Likewise.
15286         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
15287         reorganize passes to do reg-stack first, bb-reorder second.
15288         * invoke.texi (-d letters doc): Remove the jump2 pass.
15289
15290 2001-07-14  Richard Henderson  <rth@redhat.com>
15291
15292         * ifcvt.c (find_cond_trap): New.
15293         (find_if_header): Call it.
15294         (merge_if_block): Relax existing jump sanity check.
15295         * jump.c (jump_optimize_1): Remove conditional trap handling.
15296
15297 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
15298
15299         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
15300         millicode.
15301         (insn_refs_are_delayed): Correct comment.
15302         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
15303         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
15304         instead of r31.  Make associated insn !TARGET_64BIT, and
15305         provide an additional 64-bit insn that clobbers r2.
15306         (divsi3): Likewise.
15307         (udivsi3): Likewise.
15308         (modsi3): Likewise.
15309         (umodsi3): Likewise.
15310
15311 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
15312
15313         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
15314
15315         * flow.c (redirect_edge_and_branch_force, split_edge,
15316         try_crossjump_to_edge): Use set_block_for_new_insns.
15317         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
15318
15319 2001-07-13  H.J. Lu  (hjl@gnu.org)
15320
15321         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
15322         the correct patch.
15323
15324 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
15325
15326         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
15327
15328 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
15329
15330         * c-common.c (decl_attributes): Take a pointer to the node to
15331         which attributes are to be attached, and a flags argument.
15332         * c-common.h (enum attribute_flags): New.
15333         (decl_attributes): Update prototype.
15334         * c-decl.c (start_decl, push_parm_decl, finish_struct,
15335         finish_enum, start_function): Update calls to decl_attributes.
15336         * c-parse.in (component_declarator, component_notype_declarator,
15337         label): Update calls to decl_attributes.
15338
15339 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
15340
15341         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
15342         * config/avr/avr.c (legitimate_address_p): Return value changed
15343         from letter to register classes. For better debugging.
15344
15345 2001-07-13  Kazu Hirata  <kazu@hxi.com>
15346
15347         * jump.c (reversed_comparison_code_parts): Fix comment typos.
15348
15349 2001-07-13  H.J. Lu  (hjl@gnu.org)
15350
15351         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
15352
15353 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
15354
15355         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
15356         correctly for shared configurations.
15357         * config/t-libgcc-pic:  New.
15358         * config/{i386,m68k,sparc}/t-openbsd:  New.
15359         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
15360         Support -shared.  Support debugging libraries with -g.
15361         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
15362         frame information does not emit pointer diffs.
15363         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
15364         emit pointer diffs.
15365
15366 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
15367
15368         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
15369
15370 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
15371
15372         * combine.c (try_combine): Ensure const_int pow2 is positive.
15373
15374 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
15375
15376         * config.gcc: Add configuration for s/390.
15377         * config/s390/s390.c: New. Subroutines for code generation.
15378         * config/s390/s390.h: New. Definitions for s/390.
15379         * config/s390/s390-protos.h: New. Prototypes.
15380         * config/s390/linux.h: New. Definitions for linux for s/390.
15381         * config/s390/linux64.h: New. Definitions for linux for zSeries.
15382         * config/s390/t-linux: New. Makefile fragment.
15383         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
15384         * config/s390/fixdfdi.h: New. Fix L_fix*di.
15385
15386 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
15387
15388         * emit-rtl.c (try_split): Update mark_jump_label call.
15389         * flow.c (find_sub_basic_blocks): Likewise.
15390         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
15391         jump_back_p): Kill.
15392         (mark_all_labels): Kill second parameter.
15393         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
15394         (rebuild_jump_labels, jump_optimize_minimal): Update call
15395         of jump_optimize_1.
15396         (jump_optimize_1): Kill crossjumping code.
15397         (mark_jump_label): Kill cross_jump parameter.
15398         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
15399         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
15400         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
15401          splitting.
15402         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
15403         DFI_bpro.
15404         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
15405         reorganize passes to do reg-stack first, bb-reorder second.
15406         * invoke.texi (-d letters doc): Remove the jump2 pass.
15407
15408 2001-07-12  Steve Ellcey <sje@cup.hp.com>
15409
15410         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
15411
15412 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
15413
15414         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
15415         basic blocks.
15416         (verify_flow_info): Make diagnostics prettier.
15417
15418 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
15419
15420         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
15421
15422         * flow.c (outgoing_edges_match): Return early if condition reversal
15423         failed.
15424
15425 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
15426
15427         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
15428         (mips_move_2words): When splitting a move into two instructions,
15429         prefix the second address operand with '%D'.
15430
15431 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
15432
15433         * Makefile.in (final.o): Depend on debug.h.
15434         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
15435         (dbx_debug_hooks): Add new hooks.
15436         (xcoff_debug_hooks): New.
15437         * debug.c (debug_nothing_file_int_int): New.
15438         (do_nothing_debug_hooks): Update.
15439         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
15440         (debug_nothing_file_int_int): New.
15441         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
15442         static, update prototype.
15443         (dwarf2_debug_hooks): Update.
15444         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
15445         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
15446         static, update prototype.
15447         (dwarf_debug_hooks): Update.
15448         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
15449         * final.c: Include debug.h.
15450         (final_scan_insn): Use debug hooks when beginning and ending blocks.
15451         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
15452         static, update prototype.
15453         (sdb_debug_hooks): Update.
15454         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
15455         * toplev.c: Distinguish between xcoff and dbx.
15456
15457         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
15458         Call all debug hooks, not just dwarf ones.
15459
15460 2001-07-11  Timothy Wall  <twall@redhat.com>
15461
15462         * config.gcc: Add configuration for AIX5/IA64.
15463         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
15464         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
15465         support prefix/suffix code.
15466         * config/ia64/t-aix: New.  Makefile fragment.
15467         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
15468
15469 2001-07-11  Kazu Hirata  <kazu@hxi.com>
15470
15471         * recog.c (validate_change): Fix a comment typo.
15472
15473 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
15474
15475         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
15476         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
15477         hooks directly.
15478         * dbxout.c (dbx_debug_hooks): Add new hooks.
15479         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
15480         make static.
15481         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
15482         make static.
15483         * dbxout.h (dbxout_start_new_source_file,
15484         dbxout_resume_previous_source_file): Delete.
15485         * debug.c (do_nothing_debug_hooks): Add new hooks.
15486         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
15487         (debug_nothing_int_charstar, debug_nothing_int): New.
15488         * debug.h (gcc_debug_hooks): New hooks define, undef,
15489         start_source_file and end_source_file.
15490         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
15491         (debug_nothing_int_charstar, debug_nothing_int): New.
15492         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
15493         the conditionally compiled section.
15494         (dwarf2out_start_source_file, dwarf2out_end_source_file,
15495         dwarf2out_define, dwarf2out_undef): Make static.
15496         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
15497         dwarf2out_define, dwarf2out_undef): Remove.
15498         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
15499         (dwarfout_start_source_file, dwarfout_end_source_file,
15500         dwarfout_define, dwarfout_undef): Make static.
15501         (dwarfout_start_source_file_check,
15502         dwarfout_end_source_file_check): New.
15503         (dwarfout_define, dwarfout_finish): Update.
15504         * dwarfout.h (dwarfout_start_new_source_file,
15505         dwarfout_resume_previous_source_file, dwarfout_define,
15506         dwarfout_undef): Remove.
15507         * sdbout.c (sdb_debug_hooks): Add new hooks.
15508         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
15509         make static.
15510         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
15511         make static, take an arg.
15512         * sdbout.h (sdbout_start_new_source_file,
15513         sdbout_resume_previous_source_file): Delete.
15514         * toplev.c (debug_start_source_file, debug_end_source_file,
15515         debug_define, debug_undef): Delete.
15516         * toplev.h (debug_start_source_file, debug_end_source_file,
15517         debug_define, debug_undef): Delete.
15518
15519         * java/jcf-parse.c: Include debug.h.
15520         (parse_class_file): Update to use debug hooks directly.
15521         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
15522
15523 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15524
15525         * alias.c (set_mem_alias_set): New function.
15526         * rtl.h (set_mem_alias_set): Declare it.
15527         * builtins.c (expand_builtin_return_addr): Call it instead of
15528         using MEM_ALIAS_SET accessor.
15529         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
15530         (get_memory_rtx, expand_builtin_va_arg): Likewise.
15531         (expand_builtin_va_copy):Likewise.
15532         * caller-save.c (setup_save_areas): Likewise.
15533         * calls.c (compute_argument_addresses): Likewise.
15534         * explow.c (set_mem_attributes): Likewise.
15535         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
15536         (expand_assignment, store_constructor_field, store_field): Likewise.
15537         (expand_expr_unaligned): Likewise.
15538         * function.c (assign_stack_temp_for_type): Likewise.
15539         (put_reg_into_stack, gen_mem_addressof): Likewise.
15540         * ifcvt.c (noce_try_cmove_arith): Likewise.
15541         * reload1.c (reload, alter_reg): Likewise.
15542         * config/alpha/alpha.c (get_aligned_mem): Likewise.
15543         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
15544         (alpha_expand_unaligned_store): Likewise
15545         (alpha_expand_unaligned_load_words): Likewise.
15546         (alpha_expand_unaligned_store_words): Likewise.
15547         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
15548         (alpha_expand_epilogue): Likewise.
15549         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15550         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
15551         * config/i386/i386.c (legitimize_pic_address): Likewise.
15552         * config/i960/i960.c (setup_incoming_varargs): Likewise.
15553         * config/ia64/ia64.c (spill_restore_mem): Likewise.
15554         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15555         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
15556         * config/mips/mips.c (mips_va_arg): Likewise.
15557         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
15558         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
15559         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
15560         (setup_incoming_varargs, rs6000_va_arg): Likewise.
15561         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
15562         (rs6000_emit_epilogue): Likewise.
15563         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
15564         * config/sparc/sparc.c (sparc_va_arg): Likewise.
15565         * config/v850/v850.c (v850_va_arg): Likewise.
15566
15567 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
15568
15569         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
15570         when fallthru edge is present.
15571         (mege_blocks): Handle case where creation of jump insn
15572         is required.
15573
15574         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
15575         CLEANUP_POST_REGSTACK): New constants.
15576         * except.c (finish_eh_generation): Update call of cleanup_cfg,
15577         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
15578         * output.h (cleanup_cfg): Update prototype.
15579         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
15580         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
15581         cleanup_cfg call; kill missleading comment.
15582         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
15583         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
15584         parameter; control optimizations performed using it.
15585         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
15586         try_crossjump_bb): New functions.
15587
15588 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15589
15590         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
15591         extern.
15592         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
15593         pa_output_function_prologue.
15594         * pa-protos.h (pa_output_function_prologue): New prototype.
15595
15596 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15597
15598         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
15599         and low to get correct sign extension in low+high test.
15600
15601 2001-07-11  Janis Johnson <janis@us.ibm.com>
15602
15603         * gcov.c (arcdata): Use gcov_type to fix branch percentage
15604         for large hit count.
15605
15606         * profile.c (branch_prob): Fix .bbg info for computed gotos
15607         and C++ EH code.
15608
15609 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
15610
15611         * stmt.c (parse_output_constraint): New function, split out
15612         from ...
15613         (expand_asm_operands): ... here.  Use parse_output_constraint.
15614         * tree.h (parse_output_constraint): Declare it.
15615
15616 2001-07-11  Richard Henderson  <rth@redhat.com>
15617
15618         * bitmap.c: Comment some functions; fiddle whitespace.
15619         (bitmap_free): Don't export.
15620         (bitmap_element_allocate): Use memset.
15621         * bitmap.h (bitmap_free): Don't declare.
15622
15623 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
15624
15625         * gcse.c, lcm.c, sched-deps.c:
15626         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
15627
15628         * flow.c (flow_loops_find): Free dom if we found no loops, since
15629         we aren't going to save it.
15630
15631         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
15632         done.
15633
15634 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
15635
15636         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
15637
15638 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15639
15640         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
15641         #ifndef DWARF2_DEBUGGING_INFO.
15642
15643 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
15644
15645         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
15646
15647 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
15648
15649         * config/mips/mips.c (gen_int_relational): Tell the caller not to
15650         reverse a branch if a NE comparison is implemented with GTU.
15651
15652 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
15653             H.J. Lu  <hjl@gnu.org>
15654
15655         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
15656         constant addresses.
15657         (call_internal2): Likewise.
15658         (call_value_internal1): Likewise.
15659         (call_value_internal2): Likewise.
15660         (call_value_multiple_internal1): Likewise.
15661         (call_value_multiple_internal2): Likewise.
15662
15663 2001-07-10  Kazu Hirata  <kazu@hxi.com>
15664
15665         * calls.c (emit_library_call_value_1): Fix a comment typo.
15666         * dwarf2out.c (mem_loc_descriptor): Likewise.
15667         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
15668
15669 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
15670
15671         * simplify-rtx.c (simplify_subreg): Fix typo in comment
15672
15673 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15674
15675         * recog.c (offsettable_address_p): Handle LO_SUM case.
15676         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
15677         instead of plus_constant.
15678
15679 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15680
15681         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
15682         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
15683
15684 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15685
15686         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
15687         adjust_address_nv instead of plus_constant.
15688
15689 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
15690
15691         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
15692         dwarf2out.o): Depend on debug.h, wrap long lines.
15693         * dbxout.c: Include debug.h.
15694         (dbx_debug_hooks): New.
15695         (dbxout_init): Make static, take just 2 args.
15696         (dbxout_finish): Make static.
15697         * dbxout.h (dbxout_init, dbxout_finish): Delete.
15698         * debug.c: New file.
15699         * debug.h: New file.
15700         * dwarf2out.c: Include debug.h.
15701         (dwarf2_debug_hooks): New.
15702         (dwarf2out_init): Make static.
15703         (dwarf2out_finish): Make static, take 2 args.
15704         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
15705         * dwarfout.c: Include debug.h.
15706         (dwarf_debug_hooks): New.
15707         (dwarfout_init): Make static.
15708         (dwarfout_finish): Make static, take 2 args.
15709         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
15710         * sdbout.c: Include debug.h.
15711         (sdb_debug_hooks): New.
15712         (sdbout_init): Make static, take 2 args.
15713         * sdbout.h (sdbout_init): Delete.
15714         * toplev.c: Include debug.h.
15715         (debug_hooks): New.
15716         (compile_file): Set deubg_hooks based on command line options.
15717         Use the hooks unconditionally rather than conditional compilation.
15718
15719 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
15720
15721         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
15722         first_insn_after_basic_block_note instead.
15723
15724         * df.c (df_bb_refs_unlink): #if 0 out for now.
15725
15726 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
15727
15728         * ssa.h: Add prototype for ssa_const_prop
15729         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
15730         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
15731         (ssa_fast_dce): Remove unused variable
15732
15733 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
15734
15735         * diagnostic.c (finish_diagnostic): Rename to
15736         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
15737         calls thourghout.
15738
15739 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
15740
15741         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
15742         .loc support.
15743
15744         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
15745         (dump_file): Only pad the demangled name with spaces if the
15746         mangled name was padded with spaces.
15747
15748 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
15749
15750         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
15751         edge detection.
15752
15753 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15754
15755         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
15756         extraction if no direct load if either EXPAND_CONST_ADDRESS or
15757         EXPAND_INITIALIZER.
15758
15759         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
15760         whether can put offset inside LO_SUM to check mode alignment, not size.
15761
15762 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
15763
15764         * doc/tm.texi (Misc): Fix thinko.
15765
15766 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
15767
15768         * regmove.c (replace_in_call_usage): Fix warnings.
15769         * sched-deps.c (add_dependence): Fix warnings.
15770         * simplify-rtx.c (simplify_subreg): Likewise.
15771         Return NULL_RTX instead of NULL.
15772
15773         * reg-stack.c (emit_swap_insn): Eliminate warnings.
15774         (subst_asm_stack_regs): Likewise.
15775
15776         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
15777         warnings.
15778
15779         * dwarf2out.c (output_call_frame_info): Declare i as int.
15780         (build_abbrev_table): Declare n_alloc as int.
15781         (dwarf2out_finish): Initialize die.
15782         * except.c: Declare sjlj_funcdef_number as unsigned.
15783         (connect_post_landing_pads): Declare j as unsigned.
15784         (convert_to_eh_region_ranges): Initialize call_site.
15785         (output_function_exception_table): Initialize tt_format_size.
15786         * expr.c (move_by_pieces_1): Initialize to1.
15787         (store_constructor): Initialize minelt and maxelt.
15788         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
15789         * function.c (instantiate_decls): Avoid signed/unsigned warning.
15790
15791         * c-decl.c (combine_parm_decls): Unused, remove.
15792         * c-tree.h: Remove prototype for combine_parm_decls.
15793
15794         * reload.c (push_reload): Fix warning.
15795         (regno_clobbered_p): Likewise.
15796         * reload1.c (replace_pseudos_in_call_usage): Likewise.
15797         (reload_combine): Likewise.
15798
15799         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
15800         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
15801         warnings.
15802         * bitmap.c (bitmap_operation): Change user.
15803         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
15804
15805 2001-07-10  Eric Christopher  <echristo@redhat.com>
15806
15807         * config/mips/mips.c (override_options): Fix typo.
15808
15809 2001-07-09  Stan Shebs  <shebs@apple.com>
15810
15811         * target.h (struct gcc_target): New fields init_builtins and
15812         expand_builtin.
15813         * target-def.h (TARGET_INIT_BUILTINS): New macro.
15814         (TARGET_EXPAND_BUILTIN): New macro.
15815         (TARGET_INITIALIZER): Add them.
15816         * builtins.c: Include target.h.
15817         (expand_builtin): Use targetm.expand_builtin.
15818         (default_init_builtins): New function.
15819         (default_expand_builtin): New function.
15820         * expr.h (default_init_builtins): Declare.
15821         (default_expand_builtin): Declare.
15822         * c-common.c (c_common_nodes_and_builtins): Use
15823         targetm.init_builtins.
15824         * defaults.h (MD_INIT_BUILTINS): Remove.
15825         * Makefile.in (builtins.o): Depend on target.h.
15826
15827         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
15828         (TARGET_EXPAND_BUILTIN): Define.
15829         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
15830         (MD_EXPAND_BUILTIN): Remove.
15831
15832         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
15833         (TARGET_EXPAND_BUILTIN): Define.
15834         (c4x_init_builtins): Make endlink arg a local.
15835         (c4x_print_operand): Fix typos in adjust_address usages.
15836         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
15837         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
15838         (MD_EXPAND_BUILTIN): Remove.
15839
15840         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
15841         (TARGET_EXPAND_BUILTIN): Define.
15842         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
15843         (ix86_init_builtins): Call new function only if TARGET_MMX.
15844         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
15845         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
15846         (MD_EXPAND_BUILTIN): Remove.
15847
15848         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
15849         (TARGET_EXPAND_BUILTIN): Define.
15850         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
15851         (MD_EXPAND_BUILTIN): Remove.
15852
15853         * doc/tm.texi: Document these changes.
15854
15855 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
15856
15857         * basic-block.h (tree_node): Forward declare if needed.
15858         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
15859         (BLOCK_HEAD_TREE): Define.
15860         (BLOCK_END_TREE): Define.
15861         (struct loops): Rename field 'tree' to 'tree_root'.
15862         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
15863         'end_tree'.
15864         (flow_loops_tree_build): Rename reference to field 'tree' to
15865         'tree_root'.
15866         (flow_loops_level_compute): Ditto.
15867         * predict.c (estimate_bb_frequencies): Ditto.
15868         * tree.h (struct tree_common): Add field 'aux'.
15869
15870 2001-07-09  Stan Shebs  <shebs@apple.com>
15871
15872         * config/darwin.c (darwin_encode_section_info): Don't mark any
15873         DECL_EXTERNAL node as defined.
15874
15875 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15876
15877         * pa.c (pa_init_machine_status, pa_mark_machine_status,
15878         pa_free_machine_status, hppa_init_pic_save): Delete.
15879         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
15880         (hppa_profile_hook): Use hppa_pic_save_rtx.
15881         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
15882         hppa_init_pic_save): Delete.
15883         (hppa_pic_save_rtx): Declare.
15884         * pa.md (call, call_value, sibcall, sibcall_value,
15885         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
15886
15887 2001-07-09  Kazu Hirata  <kazu@hxi.com>
15888
15889         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
15890         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
15891
15892 2001-07-09  Andreas Jaeger  <aj@suse.de>
15893
15894         * output.h: Add declaration of final_forward_branch_p.
15895
15896         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
15897
15898         * varray.c: Include errors.h for internal_error and trim_filename
15899         declarations.
15900
15901         * Makefile.in (varray.o): Add errors.h.
15902
15903 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
15904
15905         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
15906         * optabs.c (have_add2_insn): Check whether the add insn chosen
15907         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
15908         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
15909
15910 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
15911
15912         * Makefile.in (OBJS): Add ssa-ccp.o
15913         (ssa-ccp.o): Add dependencies.
15914         * toplev.c (DFI_ssa_ccp): New dump file enum.
15915         (dump_file): Add entry for dumping after SSA CCP.
15916         (flag_ssa_ccp): New flag variable.
15917         (f_options): Add -fssa-ccp.
15918         (rest_of_compilation): Run SSA CCP if requested.
15919         * timevar.def (TV_SSA_CCP): New timevar.
15920         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
15921         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
15922         Fix minor typo in SSA DCE documentation.
15923         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
15924         Add documentation for new dump option.  Renumber dump files
15925         appropriately.
15926
15927 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
15928
15929         * emit-rtl.c (gen_highpart_mode): New.
15930         * rtl.h (gen_highpart_mode): Declare.
15931         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
15932         operand can be VOIDmode constant.
15933
15934 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
15935
15936         * flow.c (redirect_edge_and_branch_force): New.
15937         (can_fallthru): Ensure that basic blocks are succeeding.
15938         (try_optimize_cfg): Do not delete basic block if it is the last one.
15939
15940         * flow.c (try_redirect_by_replacing_jump): Do not remove
15941         jumps with side effects, unlink chain on fallthru edge;
15942         set block for new jump instruction; avoid basic block to
15943         over by line number note.
15944
15945         * flow.c (try_simplify_condjump): Verify that the condjump
15946         is not always falling through.
15947
15948         Re-install patch:
15949         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
15950
15951         * flow.c (forwarder_block_p): Fix for fallthru blocks.
15952         (try_redirect_by_replacing_jump): Update properly the count
15953         and frequency information.
15954
15955 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15956
15957         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
15958         address that is a LO_SUM specially.
15959         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
15960
15961         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
15962
15963         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
15964         (operand_subword): Use them.
15965         (change_address_1): Renamed from change_address; new arg VALIDATE.
15966         * expr.h: Reflect above changes; change_address now macro.
15967         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
15968         making MEM.
15969         * cselib.c (add_mem_for_addr): Likewise.
15970         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
15971         * regmove.c (try_apply_stack_adjustment): Likewise.
15972         * reload.c (push_reload, make_memloc): Likewise.
15973         * reload1.c (eliminate_regs): Likewise.
15974         * simplify-rtx.c (simplify_replace_rtx): Likewise.
15975         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
15976         adjust_addess.
15977         * combine.c (make_extraction, simplify_shift_const): Likewise.
15978         (gen_lowpart_for_combine): Likewise.
15979         * cse.c (gen_lowpart_if_possible): Likewise.
15980         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
15981         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
15982         * optabs.c (gen_move_insn): Likewise.
15983         * reload1.c (alter_reg): Likewise.
15984         * simplify-rtx.c (simplify_subreg): Likewise.
15985         * stmt.c (expand_anon_union_decl): Likewise.
15986         * recog.c (validate_replace_rtx_1): Likewise.
15987         (expr.h): Include.
15988         * Makefile.in (recog.o): Add $(EXPR_H).
15989         * explow.c (stabilize): Call replace_equiv_address.
15990         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15991         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
15992
15993 2001-07-03  Andrew Haley  <aph@redhat.com>
15994
15995         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
15996         the mode of the memory location.
15997
15998 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
15999
16000         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
16001
16002 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
16003
16004         * final.c (output_addr_const): Use target opening and
16005         closing parentheses.
16006         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
16007         defaults, add to TARGET_ASM_OUT.
16008         * target.h (struct gcc_target): Add open_paren and close_paren.
16009         * doc/md.texi: Update.
16010         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
16011         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
16012         TARGET_ASM_CLOSE_PAREN.
16013         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
16014         Override.
16015         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
16016         Override.
16017         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
16018         * config/a29k/a29k.h: Similarly.
16019         * config/alpha/alpha.h: Similarly.
16020         * config/arc/arc.h: Similarly.
16021         * config/arm/aof.h: Similarly.
16022         * config/arm/aout.h: Similarly.
16023         * config/avr/avr.h: Similarly.
16024         * config/c4x/c4x.h: Similarly.
16025         * config/clipper/clipper.h: Similarly.
16026         * config/convex/convex.h: Similarly.
16027         * config/d30v/d30v.h: Similarly.
16028         * config/dsp16xx/dsp16xx.h: Similarly.
16029         * config/elxsi/elxsi.h: Similarly.
16030         * config/fr30/fr30.h: Similarly.
16031         * config/h8300/h8300.h: Similarly.
16032         * config/i370/i370.h: Similarly.
16033         * config/i386/i386.h: Similarly.
16034         * config/i860/i860.h: Similarly.
16035         * config/i960/i960.h: Similarly.
16036         * config/ia64/ia64.h: Similarly.
16037         * config/m32r/m32r.h: Similarly.
16038         * config/m68hc11/m68hc11.h: Similarly.
16039         * config/m68k/m68k.h: Similarly.
16040         * config/m88k/m88k.h: Similarly.
16041         * config/mcore/mcore.h: Similarly.
16042         * config/mips/mips.h: Similarly.
16043         * config/mn10200/mn10200.h: Similarly.
16044         * config/mn10300/mn10300.h: Similarly.
16045         * config/ns32k/ns32k.h: Similarly.
16046         * config/pa/pa.h: Similarly.
16047         * config/pdp11/pdp11.h: Similarly.
16048         * config/pj/pj.h: Similarly.
16049         * config/romp/romp.h: Similarly.
16050         * config/rs6000/rs6000.h: Similarly.
16051         * config/sh/sh.h: Similarly.
16052         * config/sparc/sparc.h: Similarly.
16053         * config/v850/v850.h: Similarly.
16054         * config/vax/vax.h: Similarly.
16055         * config/we32k/we32k.h: Similarly.
16056
16057 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
16058
16059         * doc/c-tree.texi: Document representation of attributes.
16060
16061 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16062
16063         * doc/tm.texi: Update some places for the rename of target to
16064         targetm.  Fix typo.
16065
16066 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16067
16068         * target.h (struct gcc_target): Add insert_attributes.
16069         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
16070         (TARGET_INITIALIZER): Update.
16071         * tree.c, tree.h (default_insert_attributes): New function.
16072         Update comments on other default functions to refer to targetm,
16073         not target.
16074         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
16075         TARGET_INSERT_ATTRIBUTES.
16076         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
16077         * c-common.c (decl_attributes): Use targetm.insert_attributes.
16078         Don't use PRAGMA_INSERT_ATTRIBUTES.
16079         * Makefile.in (c-common.o): Depend on $(TARGET_H).
16080         * c-decl.c (start_decl, start_function): Don't call
16081         SET_DEFAULT_DECL_ATTRIBUTES.
16082         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
16083         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
16084         declare.
16085         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
16086         (c4x_check_attribute): Avoid modifying attribute list itself.
16087         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
16088         Make static.
16089         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
16090         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
16091         declare.
16092         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
16093         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
16094         Make static.
16095         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
16096         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
16097         declare.
16098         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
16099         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
16100         Adjust parameters.  Make static.
16101
16102 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16103
16104         * c-common.c (decl_attributes): Only take a single attributes
16105         parameter.
16106         * c-common.h (decl_attributes): Update prototype.
16107         * c-decl.c (start_decl, start_function): Only take a single
16108         attributes parameter.  Update calls to decl_attributes.
16109         (finish_struct, finish_enum): Update calls to decl_attributes.
16110         (push_parm_decl): Expect unified list of attributes.  Update call
16111         to decl_attributes.
16112         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
16113         notype_nested_function, component_declarator,
16114         component_notype_declarator, label): Update calls to
16115         decl_attributes.
16116         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
16117         lists that are passed to push_parm_decl.
16118         * c-tree.h (start_function, start_decl): Update prototypes.
16119         * config/sh/sh-protos.h, config/sh/sh.c
16120         (sh_pragma_insert_attributes): Only take a single attributes
16121         parameter.
16122         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
16123         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
16124         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
16125         build_module_descriptor, generate_static_references,
16126         generate_strings, build_selector_translation_table,
16127         generate_descriptor_table, generate_protocols,
16128         generate_ivars_list, generate_dispatch_table,
16129         generate_protocol_list, generate_category,
16130         generate_shared_structures, really_start_method, add_objc_decls,
16131         generate_classref_translation_entry): Update calls to start_decl
16132         and start_function.
16133         (build_tmp_function_decl, start_method_def): Unify attribute lists
16134         that are passed to push_parm_decl.
16135
16136 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
16137
16138         * final.c (no_asm_to_stream): New.
16139         (final_scan_insn): Use target structures for prologue ends
16140         and epilogue starts.
16141         * output.h (no_asm_to_stream): New.
16142         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
16143         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
16144         (TARGET_ASM_OUT): Update.
16145         * target.h (struct gcc_target): New members function_end_prologue
16146         and function_begin_epilogue.
16147         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
16148         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
16149         * config/alpha/alpha.c (output_end_prologue): Rename to
16150         alpha_output_function_end_prologue.  Use in target struct
16151         and make static.
16152         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
16153         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
16154         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
16155         ia64_output_function_end_prologue.  Use in target struct
16156         and make static.
16157         (ia64_function_prologue, ia64_funciton_epilogue): Rename
16158         mistyped prototypes.
16159         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
16160         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
16161         Delete.
16162         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
16163         an use in target struct, make static.
16164         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
16165         Delete.
16166
16167 2001-07-08  Richard Henderson  <rth@redhat.com>
16168
16169         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
16170
16171 2001-07-08  Richard Henderson  <rth@redhat.com>
16172
16173         * config/i386/i386.md: Remove constraints strings from define_split
16174         and define_peephole2 patterns.
16175         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
16176         (eh_return): Use them.
16177
16178 2001-07-08  Richard Henderson  <rth@redhat.com>
16179
16180         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
16181         Document MD_FALLBACK_FRAME_STATE_FOR.
16182
16183 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16184
16185         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
16186         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
16187         elimination.
16188         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
16189
16190 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
16191
16192         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
16193         of the label inside NAME as opposed to just the end of NAME.
16194
16195 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
16196
16197         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
16198         * config/alpha/alpha.c (alpha_init_machine_status,
16199         alpha_mark_machine_status, alpha_free_machine_status): Delete.
16200         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
16201         (vms_valid_decl_attribute_p): Make static, conditionally compile.
16202         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
16203
16204 2001-07-06  Stan Shebs  <shebs@apple.com>
16205
16206         * target.h (targetm): Rename global from "target", so as not to
16207         conflict with local variables.
16208         * c-decl.c: Ditto.
16209         * c-typeck.c: Ditto.
16210         * final.c: Ditto.
16211         * tree.c: Ditto.
16212         * cp/decl.c: Ditto.
16213         * cp/decl2.c: Ditto.
16214         * cp/typeck.c: Ditto.
16215         * 1750a/1750a.c: Ditto.
16216         * a29k/a29k.c: Ditto.
16217         * arc/arc.c: Ditto.
16218         * arm/arm.c: Ditto.
16219         * avr/avr.c: Ditto.
16220         * clipper/clipper.c: Ditto.
16221         * convex/convex.c: Ditto.
16222         * d30v/d30v.c: Ditto.
16223         * dsp16xx/dsp16xx.c: Ditto.
16224         * elxsi/elxsi.c: Ditto.
16225         * fr30/fr30.c: Ditto.
16226         * h8300/h8300.c: Ditto.
16227         * i370/i370.c: Ditto.
16228         * i386/i386.c: Ditto.
16229         * i860/i860.c: Ditto.
16230         * i960/i960.c: Ditto.
16231         * ia64/ia64.c: Ditto.
16232         * m32r/m32r.c: Ditto.
16233         * m68hc11/m68hc11.c: Ditto.
16234         * m68k/m68k.c: Ditto.
16235         * m88k/m88k.c: Ditto.
16236         * mips/mips.c: Ditto.
16237         * ns32k/ns32k.c: Ditto.
16238         * pa/pa.c: Ditto.
16239         * pdp11/pdp11.c: Ditto.
16240         * romp/romp.c: Ditto.
16241         * rs6000/rs6000.c: Ditto.
16242         * sh/sh.c: Ditto.
16243         * sparc/sparc.c: Ditto.
16244         * vax/vax.c: Ditto.
16245         * we32k/we32k.c: Ditto.
16246         * doc/tm.texi: Update the manual to match.
16247
16248 2001-07-06  Richard Henderson  <rth@redhat.com>
16249
16250         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
16251         DWARF2_UNWIND_INFO not just whether it is defined.
16252
16253 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
16254
16255         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
16256         call to simplify_binary_operation returns a new pattern.
16257
16258 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
16259
16260         * glimits.h (__SHRT_MAX__): New.
16261         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
16262         (SHRT_MAX): Define in terms of __SHRT_MAX__.
16263
16264 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
16265
16266         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
16267         avoid warnings.
16268
16269 2001-07-06  Richard Henderson  <rth@redhat.com>
16270
16271         * bitmap.c (bitmap_release_memory): Move adjacent to the
16272         allocation functions.
16273         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
16274         the implementation.  Binary search for the set bit.
16275         (bitmap_union_of_diff): Allocate the temporary on the stack
16276         instead of using xmalloc.
16277
16278 2001-07-06  Richard Henderson  <rth@redhat.com>
16279
16280         * genrecog.c (validate_pattern): Warn for constraints in
16281         define_{expand,split,peephole2}.  Remove strict_low_part
16282         before looking up match_dup.
16283
16284 2001-07-06  DJ Delorie  <dj@redhat.com>
16285
16286         * doc/gcc.texi (Makefile): Rename to be a more general purpose
16287         chapter about various build hints and history.  Add section
16288         talking about the various types of native and cross builds.
16289
16290 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
16291
16292         * Makefile.in (final.o): Depend on target.h.
16293         * final.c: Include target.h.
16294         (default_function_pro_epilogue): New.
16295         (final_start_function): Use target structure for function prologues.
16296         (final_end_function): Use target structure for function epilogues.
16297         * fold-const.c (real_hex_to_f): Constify s and p.
16298         * output.h (default_function_pro_epilogue): New.
16299         * real.h (real_hex_to_f): Update prototype.
16300         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
16301         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
16302         (TARGET_INITIALIZER): Update.
16303         * target.h (gcc_target): Add struct asm_out.
16304         * doc/tm.texi: Update.
16305
16306 config:
16307         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
16308         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
16309         in cpu/cpu.c, or rename old functions consistently.  Take
16310         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
16311         redundant macros and prototypes.  Make new functions static.
16312
16313         * 1750a/1750a.c: Similarly.
16314         * 1750a/1750a.h: Similarly.
16315         * a29k/a29k-protos.h: Similarly.
16316         * a29k/a29k.c: Similarly.
16317         * a29k/a29k.h: Similarly.
16318         * arc/arc-protos.h: Similarly.
16319         * arc/arc.c: Similarly.
16320         * arc/arc.h: Similarly.
16321         * arm/arm-protos.h: Similarly.
16322         * arm/arm.c: Similarly.
16323         * arm/arm.h: Similarly.
16324         * avr/avr-protos.h: Similarly.
16325         * avr/avr.c: Similarly.
16326         * avr/avr.h: Similarly.
16327         * clipper/clipper-protos.h: Similarly.
16328         * clipper/clipper.c: Similarly.
16329         * clipper/clipper.h: Similarly.
16330         * convex/convex.c: Similarly.
16331         * convex/convex.h: Similarly.
16332         * d30v/d30v-protos.h: Similarly.
16333         * d30v/d30v.c: Similarly.
16334         * d30v/d30v.h: Similarly.
16335         * d30v/d30v.md: Similarly.
16336         * dsp16xx/dsp16xx-protos.h: Similarly.
16337         * dsp16xx/dsp16xx.c: Similarly.
16338         * dsp16xx/dsp16xx.h: Similarly.
16339         * elxsi/elxsi.c: Similarly.
16340         * elxsi/elxsi.h: Similarly.
16341         * fr30/fr30.c: Similarly.
16342         * fr30/fr30.md: Similarly.
16343         * h8300/h8300-protos.h: Similarly.
16344         * h8300/h8300.c: Similarly.
16345         * h8300/h8300.h: Similarly.
16346         * i370/i370-protos.h: Similarly.
16347         * i370/i370.c: Similarly.
16348         * i370/i370.h: Similarly.
16349         * i386/i386.c: Similarly.
16350         * i386/osf1elf.h: Similarly.
16351         * i386/osfrose.h: Similarly.
16352         * i860/i860-protos.h: Similarly.
16353         * i860/i860.c: Similarly.
16354         * i860/i860.h: Similarly.
16355         * i960/i960-protos.h: Similarly.
16356         * i960/i960.c: Similarly.
16357         * i960/i960.h: Similarly.
16358         * ia64/ia64-protos.h: Similarly.
16359         * ia64/ia64.c: Similarly.
16360         * ia64/ia64.h: Similarly.
16361         * m32r/m32r-protos.h: Similarly.
16362         * m32r/m32r.c: Similarly.
16363         * m32r/m32r.h: Similarly.
16364         * m68hc11/m68hc11-protos.h: Similarly.
16365         * m68hc11/m68hc11.c: Similarly.
16366         * m68hc11/m68hc11.h: Similarly.
16367         * m68k/crds.h: Similarly.
16368         * m68k/dpx2.h: Similarly.
16369         * m68k/m68k-protos.h: Similarly.
16370         * m68k/m68k.c: Similarly.
16371         * m68k/m68k.h: Similarly.
16372         * m68k/news.h: Similarly.
16373         * m88k/m88k-protos.h: Similarly.
16374         * m88k/m88k.c: Similarly.
16375         * m88k/m88k.h: Similarly.
16376         * mips/mips-protos.h: Similarly.
16377         * mips/mips.c: Similarly.
16378         * mips/mips.h: Similarly.
16379         * ns32k/merlin.h: Similarly.
16380         * ns32k/ns32k.c: Similarly.
16381         * ns32k/ns32k.h: Similarly.
16382         * ns32k/tek6000.h: Similarly.
16383         * pa/pa-protos.h: Similarly.
16384         * pa/pa.c: Similarly.
16385         * pa/pa.h: Similarly.
16386         * pdp11/2bsd.h: Similarly.
16387         * pdp11/pdp11-protos.h: Similarly.
16388         * pdp11/pdp11.c: Similarly.
16389         * pdp11/pdp11.h: Similarly.
16390         * romp/romp-protos.h: Similarly.
16391         * romp/romp.c: Similarly.
16392         * romp/romp.h: Similarly.
16393         * rs6000/rs6000-protos.h: Similarly.
16394         * rs6000/rs6000.c: Similarly.
16395         * rs6000/rs6000.h: Similarly.
16396         * rs6000/sysv4.h: Similarly.
16397         * sh/sh-protos.h: Similarly.
16398         * sh/sh.c: Similarly.
16399         * sh/sh.h: Similarly.
16400         * sparc/sparc-protos.h: Similarly.
16401         * sparc/sparc.c: Similarly.
16402         * sparc/sparc.h: Similarly.
16403         * vax/vax.c: Similarly.
16404         * vax/vax.h: Similarly.
16405         * vax/vms.h: Similarly.
16406         * we32k/we32k.c: Similarly.
16407         * we32k/we32k.h: Similarly.
16408
16409 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
16410
16411         * basic-block.h (first_insn_after_basic_block_note): Declare.
16412         * flow.c (first_insn_after_basic_block_note): Define.  Moved
16413         from...
16414         * ssa.c (first_insn_after_basic_block_note): Remove.
16415         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
16416         necessary.
16417         (ssa_eliminate_dead_code): Properly update the CFG and PHI
16418         nodes when we find a dead conditional branch.  Insert BARRIERs
16419         after any blocks with no successors, but which do not have
16420         any BARRIERs.
16421
16422 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
16423
16424         * varray.c (varray_check_failed): Use internal_error.
16425
16426 2001-07-05  Andrew Haley  <aph@redhat.com>
16427
16428         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
16429         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
16430         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
16431
16432 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
16433
16434         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
16435         reference if the target constant is also a SYMBOL_REF.
16436
16437 2001-07-05  Eric Christopher  <echristo@redhat.com>
16438
16439         * config/mips/mips.h (MASK_MIPS3900): Remove.
16440         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
16441         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
16442         (TARGET_MIPS3900): Change to use mips_arch.
16443         (TARGET_MIPS4000): New.
16444         (TARGET_MIPS4100): New.
16445         (TARGET_MIPS4300): New.
16446         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
16447         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
16448         for -mipsX.
16449         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
16450         (ISA_HAS_BRANCHLIKELY): To here.
16451         (CC1_CPU_SPEC):  New.
16452         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
16453         (mips_arch_string): Declare.
16454         (mips_arch): Declare.
16455         (TARGET_OPTIONS): Add -march and -mtune.
16456
16457         * config/mips/mips.c (mips_arch_string): New.
16458         (mips_arch): New.
16459         (override_options): Handle -march for codegen and -mtune
16460         for scheduling. Use mips_arch. Move tx39 target default here.
16461         (mips_parse_cpu): Move error message to override_options.
16462
16463         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
16464
16465         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
16466
16467         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
16468         (MIPS Options): Ditto.  Change mcpu entry to historical text.
16469
16470 2001-07-05  H.J. Lu  (hjl@gnu.org)
16471
16472         * config/mips/mips.c (mips_parse_cpu): New function to parse
16473         -march=*/-mcpu=*.
16474
16475 2001-07-05  Jim Wilson  <wilson@redhat.com>
16476
16477         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
16478         * config/ia64/t-ia64: Likewise.
16479         (LIB1ASMFUNCS): Update comment.
16480
16481 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
16482
16483         * doc/install.texi (Install GCC: Binaries): Fix typo.
16484
16485 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16486
16487         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
16488         reference using the stack pointer, adjust it since we push Y
16489         temporarily.
16490         ("*ashrsi3"): Likewise.
16491         ("*lshrsi3"): Likewise.
16492
16493 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16494
16495         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
16496         when -fomit-frame-pointer is used.
16497
16498 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
16499
16500         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
16501         (try_redirect_by_replacing_jump): Reverse updating properly the
16502         count and frequency information.  Reverse removing cc0 setter.
16503         (forwarder_block_p): Reverse fixing for fallthru blocks.
16504
16505 2001-07-05  DJ Delorie  <dj@redhat.com>
16506
16507         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
16508         (translate_options): If the above is defined, use it to map
16509         given options to new options.
16510         * doc/tm.texi: Document it.
16511
16512 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
16513             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16514
16515         * doc/invoke.texi (Optimize Options): Document that -fgcse may
16516         cause programs using computed gotos to run more slowly.
16517
16518 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16519
16520         * doc/install.texi (Specific): Markup, spelling and typo fixes.
16521         Fixed sorting.
16522         Consistently require binutils 2.11.2, not prereleases.
16523         (Specific, decstation-*): Canonicalize as mips-dec-*.
16524         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
16525         always necessary.
16526         (Specific, m68k-altos): Removed reference to README.altos, deleted.
16527         (Specific, mips-*): Reword MIPS C compiler requirements.
16528         (Specific, powerpc*-*-*): New, mention --with-cpu once.
16529         (Specific, sunv5): Removed, obsolete.
16530
16531 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
16532
16533         * dwarf2out.c (output_loc_list): Use an all ones mask for
16534         .text asm output and don't rely on long long
16535         literals. Reformat some long lines.
16536
16537 2001-07-05  Andreas Jaeger  <aj@suse.de>
16538
16539         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
16540         section.
16541
16542 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
16543
16544         * dwarf2out.c (dwarf2out_define): Update comment.
16545         (dwarf2out_undef): Ditto.
16546         (dwarf2out_start_source_file): Ditto.
16547         (dwarf2out_end_source_file): Ditto.
16548         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
16549         since we never call the start/end debug hook for the primary file.
16550
16551 2001-07-04  Kazu Hirata  <kazu@hxi.com>
16552
16553         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
16554         from shll.
16555
16556 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
16557
16558         * cppinit.c (remove_dup_dirs): Inform if a system include
16559         directory is being reordered.
16560         * doc/invoke.texi (Directory Options): GCC warns if you hide a
16561         system include.
16562         * doc/cpp.texi (Search Paths): Likewise.
16563         * doc/gcc.texi (Interoperation): Remove information about
16564         -I/usr/include.
16565
16566 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
16567
16568         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
16569         (VARRAY_TOP_CHAR_PTR): Likewise.
16570
16571 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16572
16573         * gcc.c (process_command): Don't assign elements of a const char*.
16574
16575 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16576
16577         * emit-rtl.c (change_address): Don't abort if invalid address while
16578         reload is in progress.
16579
16580 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
16581
16582         * c-lex.c (cb_file_change): Pass line number to
16583         debug_start_source_file.
16584         (cb_undefine): Pass correct line number to debug_undef.
16585
16586         * toplev.c (debug_start_source_file): Add line number to
16587         parameters. Pass it along to dwarf2out_start_source_file.
16588         (decode_g_option): Stop resetting debug level back to normal when
16589         we change debug formats, unless the current level is
16590         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
16591         3).
16592
16593         * toplev.h (debug_start_source_file): Add line number to
16594         parameters.
16595
16596         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
16597         parameters.
16598
16599         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
16600         parameters.
16601         Output debug_macinfo data for starting file if requested.
16602         (dwarf2out_end_source_file): Output debug_macinfo data for ending
16603         file if requested.
16604         (dwarf2out_define): Output debug_macinfo data for defining a macro
16605         if requested.
16606         (dwarf2out_undef): Output debug_macinfo data for undefining a
16607         macro if requested.
16608         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
16609         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
16610         (macinfo_section_label): New. DWARF2 macro info section label.
16611         (dwarf2out_init): If we want macro info, output the start label
16612         for the section.
16613         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
16614         attribute to the compilation unit die pointing to the macro info.
16615
16616 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
16617
16618         * dwarf2out.c (new_loc_list): Move to inside #ifdef
16619         DWARF2_DEBUGGING_INFO.
16620         (add_loc_descr_to_loc_list): Ditto.
16621         (output_loc_list): Ditto.
16622         Also, fix thinko in curr not being initialized.
16623         (gen_internal_sym): Ditto.
16624
16625 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16626
16627         * emit-rtl.c (replace_equiv_address): New function.
16628         * expr.h (replace_equiv_address): New declaration.
16629         * explow.c (validize_mem): Call it instead of change_address and
16630         also call if -fforce-addr and address is constant.
16631         * expr.c: Replace more calls to change_address with adjust_address
16632         and/or replace_equiv_address or to validize_mem.
16633         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
16634         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
16635         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
16636         * config/i370/i370.md, config/i860/i860.md: Likewise.
16637         * config/i960/i960.md, config/mips/mips.c: Likewise.
16638         * config/mips/mips.md, config/pa/pa.md: Likewise.
16639         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
16640         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
16641
16642 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16643
16644         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
16645
16646         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
16647         function.
16648
16649 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
16650
16651         * doc/include: New directory.
16652         * doc/fdl.texi: Move to doc/include/fdl.texi.
16653         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
16654         * doc/include/funding.texi, doc/include/gpl.texi: New files.
16655         * doc/gcc.texi: Use funding.texi and gpl.texi.
16656         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
16657         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
16658         Update dependencies and use -I $(docdir)/include.
16659
16660 2001-07-04  Anthony Green  <green@redhat.com>
16661
16662         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
16663
16664 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16665
16666         * doc/install.texi (sparc64-*-*): Remove garbage.
16667
16668 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
16669
16670         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
16671         Fix typo in last change to use adjust_address.
16672
16673 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16674
16675         * doc/install.texi (Specific): Update information for *-*-solaris*.
16676
16677 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16678
16679         * explow.c (plus_constant_wide): Reinitialize Y for restart.
16680
16681 2001-07-03  Stan Shebs  <shebs@apple.com>
16682
16683         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
16684         case for flag_no_mach_text_sections.
16685         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
16686         * config/darwin.c (flag_no_mach_text_sections): Remove.
16687         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
16688
16689 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16690
16691         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
16692         and avoid checking for constant as first operand.
16693         * recog.c (find_constant_term_loc): No longer static.
16694         (adj_offettable_operand): Delete.
16695         * rtl.h (adj_offsettable_operand): Delete declaration.
16696         (find_constant_term): Add declaration.
16697         * caller-save.c: Replace calls to adj_offsettable_operand with calls
16698         to adjust_address.
16699         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
16700         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
16701         * config/i386/i386.c, config/i386/i386.md: Likewise.
16702         * config/i860/i860.c, config/i960/i960.c: Likewise.
16703         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
16704         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
16705         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
16706         * config/mips/mips.c, config/mips/mips.md: Likewise.
16707         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
16708         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
16709         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
16710         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
16711         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
16712         * config/ns32k/ns32k.md: Likewise.
16713
16714 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
16715
16716         * rtl.c (copy_rtx): Handle 'T' format letter.
16717         * gensupport.c (collect_insn_data): Likewise.
16718         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
16719
16720 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
16721
16722         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
16723         -B option.  Use 'dir' not 'foo' as example directory name.
16724
16725 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16726
16727         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16728         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
16729
16730 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
16731
16732         * doc/cppinternals.texi: Improve formatting and logical markup.
16733
16734 2001-07-03  Andreas Jaeger  <aj@suse.de>
16735
16736         * Makefile.in (insn-recog.o): Add dependency on reload.h.
16737
16738         * genrecog.c (write_header): Include reload.h for prototypes in
16739         insn-recog.c.
16740
16741 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16742
16743 config:
16744         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
16745         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
16746         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
16747         i386_pe_valid_type_attribute_p): Add.
16748         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
16749         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
16750
16751 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16752
16753         * explow.c (plus_constant_wide, case LO_SUM): New case.
16754         (plus_constant_for_output_wide): Delete.
16755         * rtl.h (plus_constant_for_output): Delete.
16756         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
16757         instead of plus_constant_for_output.
16758         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
16759         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
16760         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
16761         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
16762         * config/sparc/sparc.md: Likewise.
16763         Convert some change_address calls to adjust_address.
16764
16765 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
16766
16767         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
16768         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
16769         documentation of -std and -Wwrite-strings.
16770
16771 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
16772
16773         * cse.c (canon_hash): Don't register registers in very small
16774         register classes, as extending their lifetime might cause
16775         reload to fail.
16776
16777 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
16778
16779         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
16780
16781         * flow.c (forwarder_block_p): Fix for fallthru blocks.
16782         (try_redirect_by_replacing_jump): Update properly the count
16783         and frequency information.
16784
16785 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
16786
16787         * toplev.c (dump_file_index): Move SSA dumps just after first
16788         jump dump.
16789         (dump_file): Corresponding changes.
16790         (rest_of_compilation): Move SSA path to just after the first
16791         jump pass.
16792         * doc/gcc.texi (Passes): Update due to movement of SSA path.
16793         * doc/invoke.texi: Update dump file #s as they were completely
16794         out of date with reality.
16795
16796 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
16797
16798         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
16799
16800         * expr.c (emit_move_insn_1): Deal with non-default
16801         STACK_PUSH_CODE.
16802
16803         * expr.c (emit_single_push_insn): Fix warning.
16804
16805 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
16806
16807         * expr.c (emit_move_insn_1): Avoid modifying
16808         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
16809
16810 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16811
16812         * emit-rtl.c (adjust_address): New function.
16813         * expr.h (adjust_address): Add declaration.
16814         * builtins.c: Replace some calls to change_address with calls to it
16815         or to validize_mem.
16816         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
16817         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
16818         * config/arm/arm.c, config/convex/convex.c: Likewise.
16819         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
16820         * config/i386/i386.c, config/i386/i386.md: Likewise.
16821         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
16822         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
16823         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
16824         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
16825         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
16826
16827 2001-07-02  Jim Wilson  <wilson@redhat.com>
16828
16829         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
16830
16831 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
16832
16833         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
16834         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
16835
16836 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
16837
16838         * cppinit.c (lang_defaults): New table.
16839         (set_lang): Just read from lang_defaults into the live options
16840         structure.
16841
16842 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
16843
16844         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
16845         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
16846         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
16847
16848 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16849
16850         * doc/install.texi: Various spelling and markup fixes.
16851         (Installing GCC): Component specific installation instructions are
16852         gone.
16853         Fix reference.
16854         Warn about removing old install dir in the presence of shared libs.
16855         (Configuration): Invoke with options target to match configure
16856         --help.
16857         Consistently refer to gas, gld pathnames.
16858         Invert --enable-multilib documentation.
16859         Remove references to old compiler versions.
16860
16861 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16862
16863         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
16864
16865 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16866
16867         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
16868         section.
16869         (Specific, mips*-sgi-irix5): Note IDO download.
16870         Reworded MIPS C hints.
16871         Use GNU as instead of GAS.
16872         Markup fixes.
16873         Removed SGI Freeware reference, IRIX 6 only.
16874         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
16875         Note N64 library requirement/workaround.
16876         Update O32 hints.
16877         Complete list of structure passing bug victims.
16878
16879 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16880
16881         * doc/install.texi: Remove CVS Id.
16882
16883 2001-07-02  Andreas Jaeger  <aj@suse.de>
16884
16885         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
16886         (find_inherently_necessary): Remove unused variable.
16887
16888 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
16889
16890         * c-common.h (TDI_inlined): New ast dump phase.
16891         (dump_flag_name): New function.
16892         * c-dump.c (dump_files): Add inlined phase.
16893         (dump_flag_name): Define.
16894         * doc/invoke.texi (-fdump-ast-inlined): Document.
16895
16896 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16897
16898         * stor-layout.c (layout_decl): Revert change to handling of alignment
16899         in packed types.
16900
16901 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16902
16903         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
16904         for FIELD_DECL.
16905
16906 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
16907
16908         * doc/tm.texi (FUNCTION_ARG): Document that the last call
16909         is special.
16910
16911 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
16912
16913         * tlink.c (recompile_files): Remove COMPILER_PATH and
16914         LIBRARY_PATH from the environment.
16915
16916 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
16917
16918         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
16919         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
16920         enumerators.
16921         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
16922
16923         * c-parse.in (OBJC_STRING): Kill.
16924         (objc_string): Decompose to [objc_string] '@' STRING.
16925         (reswords): Take the leading '@' off all the Objective C keywords.
16926         (objc_rid_sans_at): Kill.
16927         (init_reswords): Don't initialize it.
16928         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
16929         (_yylex): Kill reconsider label.  Look ahead one token after
16930         an '@'; if we get an identifier, check whether it's an
16931         Objective C @-keyword.  If so, return the keyword.  Otherwise,
16932         put back the token and return the '@' as a terminal.
16933
16934         * cpplib.c (lex_macro_node): Remove unnecessary check for
16935         leading '@' on identifier.  Clarify control flow and commentary.
16936
16937 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16938
16939         * cse.c (new_label_ref): Variable deleted.
16940         (insert): Remove set of new_label_ref.
16941         (check_for_label_ref): New function.
16942         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
16943
16944 See ChangeLog.5 for earlier changes.