OSDN Git Service

2a1e4df1df92f2f746f5a19f878490a87c11c54c
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-11-29  Corey Minyard <minyard@acm.org>
2
3         * recog.c (validate_replace_rtx_1): Use simplify_gen_binary
4         instead of plus_constant.
5         * simplify-rtx.c (neg_const_int): New.
6         (simplify_gen_binary, simplify_plus_minus): Use it.
7
8 2001-12-12  Roger Sayle  <roger@eyesopen.com>
9
10         * builtins.c (expand_builtin_memset, expand_builtin_memcpy,
11         expand_builtin_strcpy): Additional arguments TARGET and MODE.
12         (expand_builtin_bzero, expand_builtin_strcpy,
13         expand_builtin_strncpy, expand_builtin_bzero): Pass additional
14         TARGET and MODE parameters to the above functions.
15         (expand_builtin_memset, expand_builtin_memcpy): Optimize the
16         case where the LEN parameter is constant zero.
17         (expand_builtin_memcmp): No longer conditional on
18         HAVE_cmpstrsi.  Take an additional mode parameter.  Optimize
19         the cases where len is either constant zero or one.
20         Optimize to call to memcpy, even if the memcpy isn't inlined.
21         (expand_builtin_strncpy): Optimize to call memcpy, even if the
22         memcpy isn't inlined.
23         (expand_builtin_strcmp, expand_builtin_strncmp): Always attempt
24         to optimize to a call to memcmp.
25         (expand_builtin): expand_builtin_memcmp can always be called,
26         and pass the required parameters to expand_builtin_memcmp,
27         expand_builtin_memset, expand_builtin_memcpy and
28         expand_builtin_strcpy.
29
30 2001-12-12  David O'Brien  <obrien@FreeBSD.org>
31
32         * config.gcc (arm-*-freebsd*): Add target.
33         * config/arm/freebsd.h: New file.
34         * config/arm/arm.h (CPP_PREDEFINES): Do not define.
35         (CPP_SPEC): #undef before defining.
36         (CPP_CPU_ARCH_SPEC): Add -Acpu=arm -Amachine=arm.
37         * config/arm/conix-elf.h (CPP_PREDEFINES): Remove -Acpu=arm
38         -Amachine=arm.
39         * config/arm/linux-elf.h: Likewise.
40         * config/arm/netbsd.h: Likewise.
41         * config/arm/riscix.h: Likewise.
42         * config/arm/riscix1-1.h: Likewise.
43         * config/arm/semiaof.h: Likewise.
44
45 2001-12-12  Richard Henderson  <rth@redhat.com>
46
47         * regrename.c (copyprop_hardreg_forward): New optimization.
48         (kill_value_regno, kill_value, init_value_data, kill_clobbered_value,
49         kill_set_value, kill_autoinc_value, copy_value, find_oldest_value_reg,
50         replace_oldest_value_reg, replace_oldest_value_addr,
51         replace_oldest_value_mem, copyprop_hardreg_forward_1,
52         debug_value_data, validate_value_data): New.
53         * rtl.h (copyprop_hardreg_forward): Declare.
54         * toplev.c (flag_cprop_registers): New.
55         (f_options): Add -fcprop-registers
56         (rest_of_compilation): Invoke it.
57         (parse_options_and_default_flags): Set it at -O1.
58         * doc/invoke.texi: Document it.
59
60 2001-12-12  Jakub Jelinek  <jakub@redhat.com>
61
62         * dwarf2out.c (dw_val_class): Add dw_val_class_range_list.
63         (DEBUG_RANGES_SECTION_LABEL): Define.
64         (ranges_section_label): Add.
65         (add_AT_range_list): New.
66         (print_die, sizeof_die, value_format): Handle dw_val_class_range_list.
67         (output_loc_list): Location expression length is always 2-byte.
68         (output_die): Handle dw_val_class_range_list.
69         (gen_lexical_block_die): Call add_AT_range_list.
70         (dwarf2out_init): Initialize ranges_section_label.
71         (dwarf2out_finish): Emit ranges_section_label.
72
73 2001-12-12  Jakub Jelinek  <jakub@redhat.com>
74
75         * c-typeck.c (digest_init): Allow initializing
76         static storage duration objects with compound literals.
77         * doc/extend.texi (Compound literals): Document the extension.
78
79 2001-12-12  Richard Henderson  <rth@redhat.com>
80
81         * emit-rtl.c (adjust_address_1): Always copy address to avoid
82         shared rtl.
83
84 Wed Dec 12 07:37:52 2001  Olivier Hainque <hainque@act-europe.fr>
85
86         * stmt.c (expand_end_case): Do subtraction of lower bound as trees
87         to avoid overflow.
88
89 Wed Dec 12 07:35:24 2001  Douglas B. Rupp  <rupp@gnat.com>
90
91         * cppfiles.c (read_include_file): Set buffer size properly when
92         file is shorter than expected.
93
94 Wed Dec 12 08:35:33 2001  Nicola Pero  <n.pero@mi.flashnet.it>
95
96         * objc/objc-act.c (encode_complete_bitfield): Fixed encoding
97         enumeral types - encode them using 'i'.
98
99 2001-12-12  Nathan Sidwell  <nathan@codesourcery.com>
100
101         * doc/extend.texi (Deprecated Features): Deprecate implicit
102         typename. Document that named return and initializer lists are now
103         removed.
104
105 2001-12-11  Roger Sayle <roger@eyesopen.com>
106
107         * except.c (reachable_next_level): Handle ERT_UNKNOWN to avoid
108         compiler warning about enumeration values not being handled.
109
110 2001-12-11  Momchil Velikov  <velco@fadata.bg>
111
112         * config/fp-bit.c (pack_d): Cast to ``fractype'' for long long
113         shifts.
114
115 2001-12-11  Richard Henderson  <rth@redhat.com>
116
117         * config/alpha/alpha.h (TARGET_FIXUP_EV5_PREFETCH): New.
118         * config/alpha/linux.h (TARGET_FIXUP_EV5_PREFETCH): New.
119         * config/alpha/alpha.md (prefetch): New.
120
121 2001-12-11  Richard Henderson  <rth@redhat.com>
122
123         * combine.c (simplify_and_const_int): Simplify (AND (PLUS X Y) C)
124         if C has only low bits set and doesn't intersect with X or Y.
125
126 Tue Dec 11 23:58:39 EST 2001  John Wehle  (john@feith.com)
127
128         * basic-block.h (flow_preorder_transversal_compute): Declare.
129         * cfganal.c (flow_preorder_transversal_compute): Implement.
130
131 Tue Dec 11 23:54:27 EST 2001  John Wehle  (john@feith.com)
132
133         * cfganal.c (flow_depth_first_order_compute): Always
134         increment dfsnum.
135
136 2001-11-30 Alan Matsuoka <alanm@redhat.com>
137
138         * combine.c (combine_simplify_rtx) : Can't simplify
139         cases that use mode class MODE_CC.
140
141 2001-12-11  Richard Henderson  <rth@redhat.com>
142
143         * expmed.c (expand_divmod): Ignore sdiv_pow2_cheap for modes in
144         which there is no divide expander.
145
146 2001-12-11  Richard Henderson  <rth@redhat.com>
147
148         * except.c (sjlj_find_directly_reachable_regions): Don't
149         consider RNL_BLOCKED a directly reachable region.
150         (sjlj_assign_call_site_values): Trust directly_reachable.
151         (sjlj_emit_dispatch_table): Likewise.
152
153 2001-12-11  Richard Henderson  <rth@redhat.com>
154
155         * config/alpha/alpha.md (divmodsi_internal_er): Split, so that
156         we represent the address load's dependency on the gp.
157         (divmoddi_internal_er): Likewise.
158         (divmodsi_internal_er_1, divmoddi_internal_er_1): New.
159
160 2001-12-11  Richard Henderson  <rth@redhat.com>
161
162         * emit-rtl.c (widen_memory_access): New.
163         * expr.h (widen_memory_access): Declare it.
164         * config/alpha/alpha.c (get_aligned_mem): Use it.
165
166 2001-12-11  Richard Henderson  <rth@redhat.com>
167
168         * combine.c (simplify_shift_const): Move SHIFT_COUNT_TRUNCATED
169         simplification above out of range check.
170
171 2001-12-11  Dan Nicolaescu  <dann@ics.uci.edu>
172
173         * config/sparc/sparc.md (prefetch): New.
174
175 2001-12-11  Aldy Hernandez  <aldyh@redhat.com>
176
177         * output.h (regno_uninitialized): Make argument unsigned.
178
179         * flow.c (regno_uninitialized): Make regno unsigned.
180
181 2001-12-11  David O'Brien  <obrien@FreeBSD.org>
182
183         * elfos.h (ENDFILE_SPEC, STARTFILE_SPEC): Do not define.
184         * config/cris/cris.h (ENDFILE_SPEC): Define.
185         * config/i386/i386elf.h ((ENDFILE_SPEC, STARTFILE_SPEC): Define.
186         * config/pa/elf.h: Likewise.
187
188 2001-12-11  Richard Henderson  <rth@redhat.com>
189
190         * objc/objc-act.c (build_string_class_template): New.
191         (build_objc_string_object): Call it.
192
193 2001-12-11  Steve Ellcey  <sje@cup.hp.com>
194
195         * doc/tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): New.
196         * defaults.h (FUNCTION_ARG_REG_LITTLE_ENDIAN): New.
197         * calls.c (store_unaligned_arguments_into_pseudos): Check
198         FUNCTION_ARG_REG_LITTLE_ENDIAN to see how structures
199         are passed/returned.
200         * expr.c (move_block_from_reg): Ditto.
201         (move_block_from_reg): Ditto.
202         (copy_blkmode_from_reg): Ditto.
203         * stmt.c (expand_return): Ditto.
204         * stor-layout.c (compute_record_mode): If
205         FUNCTION_ARG_REG_LITTLE_ENDIAN is set then check
206         MEMBER_TYPE_FORCES_BLK even if mode == VOIDmode.
207         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set to true
208         so that Structures of one field are still treated as structures.
209         (FUNCTION_ARG_REG_LITTLE_ENDIAN): New, set it to true.
210         (FUNCTION_ARG_PADDING): Set to ia64_hpux_function_arg_padding().
211         (PAD_VARARGS_DOWN): Modify from default to not pad structures down.
212         * config/ia64/ia64-protos.h (ia64_hpux_function_arg_padding): New.
213         * config/ia64/ia64.c (ia64_hpux_function_arg_padding): New function
214         to special case handling of structure padding.
215
216 2001-12-11  Daniel Berlin  <dan@cgsoftware.com>
217
218         * sched-rgn.c (CONST_BASED_ADDRESS_P): CONST_INT -> CONSTANT_P.
219         (may_trap_exp): Stores only are risk if they trap, too, not just
220         if code == MEM.
221
222 2001-12-11  Aldy Hernandez  <aldyh@redhat.com>
223
224         * flow.c (find_regno_partial): Indent properly.  Add a default to
225         switch.
226
227 2001-12-11  Neil Booth  <neil@daikokuya.demon.co.uk>
228
229         * c-common.c (combine_strings): Complain if concatenating
230         __FUNCTION__.
231         * c-parse.in (yylexname): Flag artificial strings.
232         * tree.h (TREE_ARTIFICIAL_STRING_P): New.
233 doc:
234         * extend.texi: Update.
235
236 2001-12-11  Aldy Hernandez  <aldyh@redhat.com>
237
238         * c-common.c (type_for_mode): Handle unsigned vectors.
239         (type_for_mode): Remove redundant calls to TYPE_MODE.
240
241         * tree.c (make_vector): New.
242         (build_common_tree_nodes_2): Use make_vector for vector types.
243         Add unsigned vector types.
244
245         * tree.h (tree_index): Add unsigned types for vectors.
246         (unsigned_V16QI_type_node): New.
247         (unsigned_V4SI_type_node): New.
248         (unsigned_V8QI_type_node): New.
249         (unsigned_V8HI_type_node): New.
250         (unsigned_V4HI_type_node): New.
251         (unsigned_V2SI_type_node): New.
252
253 2001-12-11  Stan Shebs  <shebs@apple.com>
254
255         * objc/objc-act.c (finish_message_expr): Fix misplaced parens in a
256         test of class names.
257
258 2001-12-11  David O'Brien  <obrien@FreeBSD.org>
259
260         * config.gcc (m68020-*-elf*): Expand tm_file to include all needed
261         cpu configuration headers.
262         * config/h8300/elf.h: Include dbxelf.h.
263         * config/m68k/linux.h: Likewise.
264         * config/m68k/m68020-elf.h: Likewise.
265         * config/m68k/m68kv4.h: Likewise.
266         * config/sh/elf.h: Likewise.
267         * config/m68k/m68kemb.h: Add comment about the its purpose.
268
269 2001-12-11  Richard Henderson  <rth@redhat.com>
270
271         * objc/objc-act.c (build_constructor): Cast initializer values
272         to the proper field types.
273
274 2001-12-11  Jakub Jelinek  <jakub@redhat.com>
275
276         * unwind-dw2.c (execute_cfa_program): Fix DW_CFA_restore handling.
277
278 2001-12-10  Roger Sayle <roger@eyesopen.com>
279
280         * builtins.c (expand_builtin): Use a switch statement to list
281         those functions not expanded without optimizations, instead of a
282         series of equality tests.
283
284 Tue Dec 11 07:08:57 2001  Douglas B. Rupp  <rupp@gnat.com>
285
286         * config/alpha/vms.h (LIB_SPEC): Define.
287         * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Don't set component field.
288
289         * libgcc2.c (_bb): Remove ctime declaration.
290
291         * Makefile.in (stage[1234]-start): $(LN_S) utilities in a manner
292         that works if LN_S = cp.
293
294         * config/alpha/x-vms (version): Change "." to "_".
295
296         * configure.in: Hardcode that vfork works on VMS host.
297         * configure: Regenerated.
298
299 Mon Dec 10 18:37:31 2001  Douglas B. Rupp  <rupp@gnat.com>
300
301         * gcc.c (convert_filename): Add do_obj parameter. Don't convert
302         unless do_obj true.
303         (process_command): Modify calls to convert_filename.
304
305 2001-12-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
306
307         * config/sparc/sol2-sld-64.h: Include dbxelf.h again.
308
309 Mon Dec 10 15:54:27 2001  Jeffrey A Law  (law@cygnus.com)
310
311         * combine.c (known_cond): Check mode of each operand to determine
312         if COND is comparing floating point values.
313
314 2001-12-10  David Edelsohn  <edelsohn@gnu.org>
315
316         * rs6000.h (processor_type): Add PPC405.
317         (RTX_COSTS): Add PPC405.  Correct rs64 and ppc630 multiply costs.
318         * rs6000.md: Add PPC405 information.  Utilize imul2 and imul3 for
319         rios1, rs64, and ppc630 processors.
320         * rs6000.c (processor_target_table): Add PPC405.
321
322 2001-12-10  Richard Henderson  <rth@redhat.com>
323
324         * config/alpha/alpha.md (unaligned_extendhidi): Call gen_lowpart
325         instead of hardcoding subregs into the _be and _le patterns.
326
327 2001-12-10  Neil Booth  <neil@daikokuya.demon.co.uk>
328
329         * c-lex.c, c-parse.in, c-typeck.c: Revert concatenation changes.
330
331 Mon Dec 10 09:19:11 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
332
333         * config/i386/i386.md (leave, leave_rex64): Adjust pattern to match
334         what insn does.
335
336 2001-12-10  Joseph S. Myers  <jsm28@cam.ac.uk>
337
338         * doc/cpp.texi: Don't condition menus on @ifinfo.  Condition the
339         copyright notice formerly conditioned on @ifinfo on @ifnottex
340         instead.
341
342 Mon Dec 10 06:15:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
343
344         * vmsdbgout.c (lookup_filename): Remove warning.
345
346 Mon Dec 10 06:09:57 2001  Douglas B. Rupp  <rupp@gnat.com>
347
348         * Makefile.in: Add $(OUTPUT_OPTION) to compilation rules.
349
350         * config.gcc (alpha*-dec-vms*): Change to alpha*-dec-*vms*
351         (exeext, target_alias, prefix, local_prefix): Define.
352         * config/alpha/x-vms (USE_COLLECT2): Make empty.
353         * config/alpha/xm-vms.h (INCLUDE_DEFAULTS): Use Unix style
354         file specifications. Remove ".".
355         (GCC_INCLUDE_DIR): Remove redefinition (redundant).
356         * fixinc/mkfixinc.sh (alpha*-dec-vms*):  Change to alpha*-dec-*vms*
357
358 2001-12-09  Nathan Sidwell  <nathan@codesourcery.com>
359
360         * Makefile.in (.po.gmo): Use POSIXLY_CORRECT argument ordering.
361
362 Sun Dec  9 21:57:24 2001  Douglas B. Rupp  <rupp@gnat.com>
363
364         * config/alpha/t-vms (EXTRA_PARTS): Append $(VMS_EXTRA_PARTS)
365         Add rules for building [vp]crt0.o
366         * config/alpha/vms.h (START_FILE_SPEC): Define.
367         * config/alpha/x-vms (VMS_EXTRA_PARTS): Define
368         * config/alpha/vms-crt0.c, config/alpha/vms-psxcrt0.c: New files.
369         * doc/invoke.texi: Document special Alpha/VMS options.
370
371 Sun Dec  9 20:25:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
372
373         * hwint.h (HOST_BITS_PER_LONGLONG): Deal with __int64 type.
374         * vmsdbg.h (DST_SRC_COMMAND): Test for type of long long or __int64,
375         not GNUC.
376
377 Sun Dec  9 20:19:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
378                           Douglas B. Rupp  <rupp@gnat.com>
379
380         * tree.c (append_random_char): Conditionalize INO for VMS.
381
382 2001-12-09  Richard Henderson  <rth@redhat.com>
383
384         * cfgcleanup.c (label_is_jump_target_p): New function.
385         (try_optimize_cfg): Use label_is_jump_target_p to check if label is
386         target of a JUMP_INSN from the preceding block.
387
388 Sun Dec  9 18:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
389
390         * vmsdbgout.c (lookup_filename): Assign null string instead
391         of null pointer to fnam.
392
393 2001-12-09  Richard Henderson  <rth@redhat.com>
394
395         * config/alpha/alpha.c (alpha_align_insns): Suppress realignment
396         immediately after a call; insert nops before a call.
397
398 2001-12-09  Richard Henderson  <rth@redhat.com>
399
400         * config/alpha/alpha.c (alpha_align_insns): Use align_functions,
401         not FUNCTION_BOUNDARY.
402         * config/alpha/alpha.h (TRAMPOLINE_ALIGNMENT): New.
403         * config/alpha/alpha32.h, config/alpha/vms.h: Likewise.
404         * config/alpha/unicosmk.h (FUNCTION_BOUNDARY): Remove.
405
406 2001-12-09  Hans-Peter Nilsson  <hp@bitrange.com>
407
408         * config/mmix/mmix.c (mmix_function_block_profiler,
409         mmix_block_profiler, mmix_function_block_profiler_exit): Delete
410         unused functions.
411         * config/mmix/mmix-protos.h (mmix_function_block_profiler,
412         mmix_block_profiler, mmix_function_block_profiler_exit): Delete
413         prototypes.
414
415         * config/cris/cris.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER):
416         Delete obsoleted macros.
417
418 2001-12-09  Joseph S. Myers  <jsm28@cam.ac.uk>
419
420         * doc/cpp.texi, doc/cppinternals.texi, doc/invoke.texi,
421         doc/md.texi, doc/rtl.texi, doc/tm.texi: Use American spelling.
422
423         * ChangeLog.2, ChangeLog.3, ChangeLog.5, ChangeLog, alias.c,
424         cfgbuild.c, expmed.c, expr.c, final.c, flow.c, fold-const.c,
425         function.c, config/alpha/alpha.md, config/alpha/vms-ld.c,
426         config/arm/arm.c, config/arm/arm.h, config/c4x/libgcc.S,
427         config/i370/i370.c, config/i386/i386.c,
428         config/i386/i386-interix.h, config/i386/i386.md,
429         config/i386/i386.h, config/i386/netbsd-elf.h, config/ia64/ia64.c,
430         config/m32r/m32r-protos.h, config/mcore/mcore.h,
431         config/rs6000/rs6000.h, config/sparc/linux64.h,
432         config/sparc/sparc.c, config/v850/v850-protos.h,
433         config/cris/cris.h, config/s390/s390.md, config/elfos.h: Fix
434         spelling errors.
435
436 2001-12-09  Daniel Berlin  <dan@cgsoftware.com>
437
438         * config/rs6000/rs6000.h (enum rs6000_builtins): Add remaining
439         altivec builtins (VCF?X, VCT?XS, VSEL, V*EFP, VRFI*).
440
441         * config/rs6000/rs6000.c: Ditto.
442
443         * config/rs6000/rs6000.md: Ditto.
444
445 2001-12-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
446
447         * 1750a.md: Add default case in switch.
448         * alpha/vms.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
449         if-else statement.
450         * dsp16xx.c (print_operand_address): Likewise.
451         * i386/osf1elf.h (FUNCTION_PROFILER): Const-ify.
452         * ia64.md: Add missing braces.
453         * rs6000-protos.h (s8bit_cint_operand): Prototype.
454         * s390.h (INITIAL_ELIMINATION_OFFSET): Add abort clause in
455         if-else statement.
456         * stormy16.h (REG_CLASS_CONTENTS): Add missing braces.
457         * v850.h (OUTPUT_ADDR_CONST_EXTRA): Don't issue a `return'.
458         * dbxout.c (dbxout_source_file): Move a variable into the scope
459         where it is used.
460         * final.c (profile_function): Mark parameter with
461         ATTRIBUTE_UNUSED.
462         * genemit.c (gen_expand): Likewise for generated file.
463         * insn-addr.h (INSN_ADDRESSES_NEW): Avoid undefined behavior.
464
465         * vmsdbg.h: Delete spurious close-comment.
466         (DST_HEADER): Fix typo in ENUM_BITFIELD parameter.
467         * vmsdbgout.c (write_modbeg): Define return type.
468
469         * m68k/3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
470         * m68k/amix.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
471         * m68k/atari.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
472         * m68k/hp320.h (ASM_OUTPUT_ALIGN): Likewise.
473         * m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Likewise.
474         * m68k/sgs.h (ASM_OUTPUT_ALIGN): Likewise.
475         * m68k/tower-as.h (ASM_OUTPUT_ALIGN): Likewise.
476
477 2001-12-08  Tom Rix  <trix@redhat.com>
478
479         * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete MASK_STRING.
480         * config/rs6000/aix51.h (NON_POWERPC_MASKS): Same.
481         * config/rs6000/rs6000.md (load_multiple, store_multiple): Do not use
482         for powerpc64.
483         * config/rs6000/rs6000.md (movstrsi_8reg, movstrsi_6reg,
484         movstrsi_4reg, movstrsi_1_reg): Add powerpc64.
485         * config/rs6000/rs6000.c (expand_block_move): Do not use
486         gen_movstrsi_2reg and powerpc64.
487
488 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
489
490         * c-common.h (rid): Add RID_CHOOSE_EXPR and
491         RID_TYPES_COMPATIBLE_P.
492
493         * c-parse.in (reswords): Add __builtin_choose_expr.
494         Add __builtin_types_compatible_p.
495         Add CHOOSE_EXPR token.
496         Add TYPES_COMPATIBLE_P token.
497         Add production for CHOOSE_EXPR.
498         Add production for TYPES_COMPATIBLE_P.
499
500         * doc/extend.texi (__builtin_choose_expr): Add documentation.
501         (__builtin_types_compatible_p): Likewise.
502
503 2001-12-08  David Edelsohn  <edelsohn@gnu.org>
504
505         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
506         to unions.
507
508 2001-12-08  Neil Booth  <neil@daikokuya.demon.co.uk>
509
510         * c-parse.in: Take string literals in assembler constructs,
511         not expressions.
512         * c-typeck.c (build_asm_stmt, simple_asm_stmt): No need to
513         check the strings are STRING_CSTs.
514
515 2001-12-08  Neil Booth  <neil@daikokuya.demon.co.uk>
516
517         * c-lex.c (c_lex): Peek a token ahead for a string to concatenate,
518         using combine_strings to do the concatenation.
519         * c-parse.in: Replace uses of the string non-terminal with STRING.
520         Don't attempt string concatenation.
521         (OBJC_STRING): New terminal.
522         (string): Remove non-terminal.
523         (_yylex): Call combine_strings on function names.  Generate
524         OBJC_STRING terminals; don't pass '@' on to yacc.
525         * c-typeck.c (simple_asm_stmt): Don't concatenate strings here.
526         (build_asm_stmt): Similarly.
527
528 2001-12-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
529
530         * rtlanal.c (get_jump_table_offset): Delete unused variable.
531
532 2001-12-08  Richard Earnshaw  <rearnsha@arm.com>
533
534         * arm.md (VUNSPEC_PREFETCH): Delete constant definition.
535         (prefetch): Rewrite using PREFETCH RTL primitive.
536         * arm.h (arm_builtins): Delete ARM_BUILTIN_PREFETCH).
537         * arm.c (arm_init_builtins): Don't initialize a builtin for
538         __builtin_prefetch here.
539         (arm_expand_builtin): Don't expand __builtin_prefetch here.
540
541 2001-12-08  Richard Earnshaw  <rearnsha@arm.com>
542
543         * final.c (cleanup_subreg_operands):  Use recog_data.operand_loc
544         in test for a subreg.
545
546 2001-12-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
547
548         * rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
549         strings.
550
551 2001-12-07  Richard Henderson  <rth@redhat.com>
552
553         * doc/extend.texi: Fix typo last change.
554
555         * c-decl.c (c_language): Remove duplicate.
556
557 2001-12-07  Dale Johannesen  <dalej@apple.com>
558
559         * config/rs6000/darwin.h: Set MAX_LONG_TYPE_SIZE to 32.
560         * config/rs6000/rs6000.c (rs6000_emit_move): In Darwin-
561         specific codegen, eliminate a register copy.
562         (print_operand_address): Add support for Darwin's lo16(constant)
563         syntax.
564         (rs6000_machopic_legitimize_pic_address): Fix darwin-specific
565         generation of addresses within very large data objects.
566         (s8bit_cint_operand):  New.
567         * config/rs6000/rs6000.md: Remove "iu" reference for 750/7400.
568         Move "mtjmpr" to correct functional unit for 750/7400/7450.
569         Add imul2 and imul3 insn types for multiplication by 16- and
570         8-bit constants.
571         Change tablejump patterns to strongly discourage using LR
572         rather than CTR.
573         Add %lo16 patterns for Darwin loads and stores.
574
575 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
576
577         * alpha.md: Use (HOST_WIDE_INT)1<<63 in lieu of 0x8000000000000000.
578
579 2001-12-07  Stephane Carrez  <Stephane.Carrez@sun.com>
580
581         * config/sparc/sparc.c (epilogue_renumber): Do not replace %fp
582         with %sp because it can cause the delayed instruction to load
583         below the stack.
584
585 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
586
587         * alpha.c (alpha_expand_unaligned_store,
588         alpha_expand_unaligned_store_words): Use constm1_rtx in place of
589         call to immed_double_const.
590
591 2001-12-07  Aldy Hernandez  <aldyh@redhat.com>
592
593         * doc/extend.texi (Variable Attributes): Document vector_size.
594
595         * attribs.c (c_common_attribute_table): Add vector_size.
596         (handle_vector_size_attribute): New.
597         (vector_size_helper): New.
598         (decl_attributes): Relayout the decl after calculating attribs.
599
600 2001-12-07  Joseph S. Myers  <jsm28@cam.ac.uk>
601
602         * doc/gcc.texi: Don't include install-old.texi.  Adjust menu
603         description for Trouble section.
604         * doc/install-old.texi: Adjust for inclusion as chapter of new
605         installation manual.
606         * doc/install.texi, doc/include/fdl.texi, doc/install.texi2html:
607         Adjust to include old installation chapter as chapter of new
608         installation manual.
609
610 Fri Dec  7 11:07:35 EST 2001  John Wehle  (john@feith.com)
611
612         * rtl.h (get_jump_table_offset): Declare.
613         * rtlanal.c (get_jump_table_offset): Implement.
614
615 Fri Dec  7 07:06:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
616
617         * final.c (bb_head, bb_tail, bb_file_label_num, bb_func_label_num):
618         Deleted; were used only by BB profiler code.
619         (sbb_head, sbb_tail, sbb_label_num): Likewise.
620         (end_final): Delete now-unused vars I, PTR, and SPTR.
621
622         * expr.c (store_field): Remove warning.
623         (expand_expr, case COMPONENT_REF, case VIEW_CONVERT_EXPR): Likewise.
624         (highest_pow2_factor, case MIN_EXPR, case MAX_EXPR): Add cases.
625         (highest_pow2_factor, case *_DIV_EXPR): Only can do something if
626         divisor constant power of 2.
627         (highest_pow2_factor, case COMPOUND_EXPR): Look at operand 1.
628
629 2001-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
630
631         * alpha.c (function_arg): Cast value to HOST_WIDE_INT before
632         shifting.
633
634 2001-12-06  Aldy Hernandez  <aldyh@redhat.com>
635
636         * rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.
637         (DWARF_FRAME_REGISTERS): Delete.
638
639 2001-12-06  Janis Johnson  <janis187@us.ibm.com>
640
641         * builtin-types.def (BT_FN_VOID_PTR_VAR): New.
642         * builtins.def (BUILT_IN_PREFETCH): Change arguments.
643         * builtins.c (expand_builtin_prefetch): Two arguments are now optional,
644         with defaults for read prefetch with high degree of locality.
645         * doc/extend.texi (__builtin_prefetch): Update documentation.
646         * doc/md.texi (prefetch): Add documentation.
647
648 2001-12-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
649
650         * fixinc/inclhack.def (stdio_va_list): Handle __VA_LIST__ in Tru64
651         UNIX V5.1A stdio.h.
652         * fixinc/fixincl.x: Regenerate.
653         Fixes PR libf2c/4826.
654
655 2001-12-06  Aldy Hernandez  <aldyh@redhat.com>
656             Richard Henderson  <rth@redhat.com>
657
658         * doc/tm.texi (DWARF_FRAME_REGISTERS): Add documentation.
659         (PRE_GCC3_DWARF_FRAME_REGISTERS): Same.
660
661         * unwind-dw2.c (__frame_state_for): Change DWARF_FRAME_REGISTERS
662         to PRE_GCC3_DWARF_FRAME_REGISTERS.
663         (frame_state): Same.
664         (PRE_GCC3_DWARF_FRAME_REGISTERS): Define if not already defined.
665
666 2001-12-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
667
668         * langhooks.c (lhd_staticp): Mark parameter with
669         ATTRIBUTE_UNUSED.
670
671 2001-12-06  H.J. Lu <hjl@gnu.org>
672
673         * Makefile.in (.po.gmo): Use "-test -d po || mkdir po" to
674         reduce noise.
675         (.po.pox): Likewise.
676         (o/$(PACKAGE).pot): Likewise.
677
678 2001-12-06  Alexandre Oliva  <aoliva@redhat.com>
679
680         * tree.c (get_callee_fndecl): Move DECL_ABSTRACT_ORIGIN-following...
681         * tree-inline.c (expand_call_inline): ... here.
682
683 2001-12-06  H.J. Lu <hjl@gnu.org>
684
685         * Makefile.in (.po.gmo): Use "-mkdir po" for parallel build.
686         (.po.pox): Likewise.
687         (o/$(PACKAGE).pot): Likewise.
688
689 2001-12-06  David O'Brien  <obrien@FreeBSD.org>
690
691         * config.gcc: Include dbxelf.h before elfos.h.
692         * elfos.h: Don't include dbxelf.h, let config.gcc handle it.
693
694 2001-12-06  Zack Weinberg  <zack@codesourcery.com>
695
696         * cppfiles.c (open_file): If we've opened a directory by
697         mistake, close it.
698         (find_include_file): Avoid turning / into // or // into ///.
699
700 2001-12-06  Nick Clifton  <nickc@cambridge.redhat.com>
701
702         * config/arm/arm.h (STRUCT_VALUE): Suppress definition.
703         (STRUCT_VALUE_REGNUM): Restore definition.
704
705 2001-12-06  Andrew MacLeod <amacleod@redhat.com>
706
707         * flow.c (find_regno_partial): Return register, not the expression
708         the register is in.
709
710 Thu Dec  6 09:24:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
711
712         * function.c (handle_epilogue_set): Check for FP setting case when
713         SP is set from FP in same insn.
714
715 2001-12-06  Nick Clifton  <nickc@cambridge.redhat.com>
716
717         * config/arm/arm.c (load_multiple_sequence): Pass pointer to
718         RTX when calling alter_subreg().
719         (store_multiple_sequence): Pass pointer to RTX when calling
720         alter_subreg().
721
722 Thu Dec  6 06:55:13 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
723
724         * function.c (assing_parms): Fix typo in last change.
725         * config/clipper.c (clipper_builtin_saveregs): Remove Checker code.
726         * config/m88k/m88k.c (m88k_builtin_saveregs): Likewise.
727         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
728         * config/sparc/sparc.c (sparc_builtin_saveregs): Likewise.
729
730 2001-12-06  Alan Modra  <amodra@bigpond.net.au>
731
732         * config/rs6000/rs6000.c (rs6000_unique_section): Simplify and
733         correct code selecting section.
734
735 Thu Dec  6 12:45:33 CET 2001  Jan Hubicka  <jh@suse.cz>
736
737         * final.c (count_basic_block, add_bb, add_bb_string):
738         Kill.
739         (end_final, final_start_function, final, final_scan_insn,
740         leaf_function_p): Kill BB profiler related code.
741         * flags.h (profile_block_flag): Kill.
742         * libgcc2.c (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE,
743         BB_BUCKETS, BBINBUFSIZE, bb_edge, bb_func_mode, bb_func,
744         __bb, bb_src, bb_dst, bb_tracefile, bb_hashbuckets,
745         bb_func_head, bb_callcount, bb_mode, bb_stack, bb_stacksize
746         reported, GOPENDECOMPRESS, GOPENCOMPRESS, gopen, gclose,
747         __bb_exit_trace_func, __bb_init_prg, __bb_trace_func,
748         __bb_trace_func_ret, __bb_init_file, __bb_trace_ret,
749         __bb_init_trace_func): Kill.
750         * toplev.c (profile_block_flag): Kill.
751         (indepdendent_decode_option, process_options): Kill -a related code.
752         * alpha.c (direct_call_operand): Likewise.
753         * arm.c (arm_expand_prologue, thumb_expand_prologue,
754         thumb_expand_epilogue): Likewise.
755         * c4x.c (c4x_expand_prologue, c4x_null_epilogue_p): Likewise.
756         * c4x.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
757         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
758         MACHINE_STATE_RESTORE): Kill.
759         * d30v.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
760         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
761         MACHINE_STATE_RESTORE): Kill.
762         * fr30.c (fr30_expand_prologue): Kill BB profiler related code.
763         * i386.c (ix86_can_use_return_insn_p, ix86_expand_prologue,
764         ix86_expand_epilogue, ix86_expand_epilogue): Kill BB profiler related
765         code.
766         (ix86_output_function_block_profiler, ix86_output_block_profiler): Kill.
767         * i386.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
768         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
769         MACHINE_STATE_RESTORE): Kill.
770         * fr30.c (fr30_expand_prologue): Kill BB profiler related code.
771         * i960.c (i960_output_function_prologue): Kill BB profiler related
772         code.
773         * ia64.c (ia64_compute_frame_size): Likewise.
774         * ia64.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
775         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
776         MACHINE_STATE_RESTORE): Kill.
777         * m32r.c (m32r_expand_prolofue): Kill BB profiler related code.
778         * m68hc11.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
779         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
780         MACHINE_STATE_RESTORE): Kill.
781         * m68k.c (m68k_output_function_epilogue): Kill BB profiler related code.
782         * m68k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
783         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
784         MACHINE_STATE_RESTORE): Kill.
785         * m88k.c (output_options, m88k_layout_frame, m88k_expand_prologue):
786         Kill BB profiler related code.
787         * m88k.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
788         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
789         MACHINE_STATE_RESTORE): Kill.
790         * mips.c (mips_expand_prologue): Kill BB profiler related code.
791         * mmix.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
792         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
793         MACHINE_STATE_RESTORE): Kill.
794         * rs6000.c (rs6000_override_options): Kill BB profiler related code.
795         * s960.c (s390_function_prologue): Kill BB profiler related code.
796         * s960.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
797         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
798         MACHINE_STATE_RESTORE): Kill.
799         * linux-aout.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
800         * linux.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
801         * linux64.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
802         * sol2.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
803         * sparc.c (sparc_override_options, eligible_for_sibcall_delay,
804         sparc_nonflat_function_epilogue): Kill BB profiler related code.
805         (sparc_function_block_profiler, sparc_block_profiler,
806         sparc_function_block_profiler_exit): Kill.
807         * sparc.h (OVERRIDE_OPTIONS): Kill BB profiler related code.
808         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
809         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
810         MACHINE_STATE_RESTORE): Kill.
811         * sun4o3.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
812         * sunos4.h (MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Kill.
813         * stormy16.h (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
814         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
815         MACHINE_STATE_RESTORE): Kill.
816         * doc/invoke.texi: Kill documentation of -a and -ax.
817         * tm.texi (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER,
818         FUNCTION_BLOCK_PROFILER_EXIT, MACHINE_STATE_SAVE,
819         MACHINE_STATE_RESTORE): Kill.
820
821 2001-10-26  Steve Christiansen  <smc@us.ibm.com>
822
823         * doc/rtl.texi: Use a table to display RTL format characters.
824
825 2001-12-06  Bo Thorsen  <bo@suse.co.uk>
826
827         * config/i386/linux64.h (LINK_SPEC): Correct name of dynamic linker.
828
829 Wed Dec  5 19:18:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
830
831         * function.c (keep_stack_depressed): Check global_live_at_start
832         of EXIT_BLOCK for temp register and verify it isn't in equiv_reg_src.
833
834 2001-12-05  David O'Brien  <obrien@FreeBSD.org>
835
836         * config.gcc (powerpc-*-freebsd*): Use the proper tmake_file files,
837         as set by the generic FreeBSD configure framework.
838
839 2001-12-04  Jason Merrill  <jason@redhat.com>
840
841         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
842         start_inlining, end_inlining.
843         * tree-inline.c (expand_call_inline): Call them.
844         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_START_INLINING): Define.
845         (LANG_HOOKS_TREE_INLINING_END_INLINING): Define.
846         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Add them.
847         * langhooks.c (lhd_tree_inlining_start_inlining): New fn.
848         (lhd_tree_inlining_end_inlining): New fn.
849
850 2001-12-05  Neil Booth  <neil@daikokuya.demon.co.uk>
851
852         * c-common.c (shadow_warning): New function, moved from cp/decl.c.
853         * c-common.h (shadow_warning): New.
854         * c-decl.c: Include c-common.h.
855         (warn_if_shadowing): New, broken out of pushdecl.
856         (pushdecl): Use warn_if_shadowing.
857         (store_parm_decls): Prevent duplicate -Wshadow warnings.
858
859 Wed Dec  5 17:59:19 2001  Douglas B. Rupp  <rupp@gnat.com>
860
861         * config/alpha/vms.h (SIZE_TYPE, PTRDIFF_TYPE): Remove, were disabled.
862         (DOLLARS_IN_IDENTIFIERS, LINK_SPEC): Remove duplicate.
863         (LIB_SPEC): Remove.
864
865 Wed Dec  5 16:03:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
866
867         * doc/c-tree.texi (RECORD_TYPE, UNION_TYPE): Expand on definition.
868         (QUAL_UNION_TYPE): New type.
869
870         * varasm.c (output_constant, case ERROR_MARK): New case.
871
872         * attribs.c (handle_no_check_memory_usage_atribute): Deleted.
873         (c_com): Delete its reference.
874         * builtins.c: Delete memory checking code.
875         * calls.c, expr.c, function.c, stmt.c: Likewise.
876         * builtins.c (expand_builtin_arg_info): Remove reference to
877         EXPAND_MEMORY_USE_* modifiers.
878         * explow.c (expr_size): Likewise.
879         * expr.c (expand_expr, expand_increment): Likewise.
880         * expr.h (ARGS_SIZE_RTX): Likewise.
881         * function.c (assign_parms, expand_pending_sizeso): Likewise.
882         * c-decl.c (duplicate_decls): Don't handle DECL_NO_CHECK_MEMORY_USAGE.
883         * expr.c (in_check_memory_usage): Delete.
884         (get_push_address, get_memory_usage_from_modifier): Delete.
885         (expand_assigment): Use EXPAND_WRITE on destination.
886         (expand_expr): Delete ro_modifier.
887         * expr.h (expand_modifier): Delete EXPAND_MEMORY_* entries and
888         add EXPAND_WRITE.
889         (memory_use_mode): Delete.
890         * flags.h (flag_check_memory_usage): Deleted.
891         (flag_prefix_function_name): Likewise.
892         * function.c (expand_function_start): Don't set
893         current_function_check_memory_usage.
894         * function.h (check_memory_usage): Delete.
895         * libfuncs.h, optabs.c: Delete chkr_* stuff.
896         * stmt.c (expand_asm_opernd): Change EXPAND_MEMORY_USE_WO to
897         EXPAND_WRITE.
898         * toplev.c (flag_check_memory_usage): Deleted.
899         (flag_prefix_function_name): Likewise.
900         (f_options, process_options): Delete references to above.
901         * tree.h (DECL_NO_CHECK_MEMORY_USAGE): Deleted.
902         * varasm.c (CHKR_PREFIX): Deleted.
903         (make_decl_rtl): Remove flag_prefix_function_name handling.
904         (assemble_name): Likewise.
905         * doc/extend.texi: Remove no_check_memory_usage attribute.
906         * doc/invoke.texi: Remove -fcheck-memory-usage
907         and -fprefix-function-name.
908
909 2001-12-05  Andreas Schwab  <schwab@suse.de>
910
911         * Makefile.in (STMP_FIXPROTO, STMP_FIXINC): Use substituted values
912         from autoconf.
913
914 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
915
916         * config.gcc: Include arm/xscale-coff.h before arm/arm.h.
917
918 2001-12-05  William Cohen  <wcohen@redhat.com>
919
920         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Correct typo in
921         instruction.
922
923 2001-12-05  Daniel Berlin  <dan@cgsoftware.com>
924
925         * config/rs6000/rs6000.h (enum rs6000_builtins): Add more altivec
926         builtins.
927
928         * config/rs6000/rs6000.md: Modeling of 7450 altivec changed to
929         better reflect reality (change from Apple's tree).
930         Add more of altivec instructions.
931         Add ftruncv4sf2 pattern.
932         Remove more unspecs (vector merge instructions, etc).
933
934         * config/rs6000/rs6000.c (bdesc_3arg): New, for 3 argument altivec
935         builtins.
936         (bdesc_1arg): New, for 1 argument altivec builtins.
937         (altivec_expand_builtin): Handle unary and ternary ops.
938         (altivec_init_builtins): Ditto.
939
940 Wed Dec  5 09:33:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
941
942         * config/alpha/vms.h (ADA_LONG_TYPE_SIZE): New macro.
943         * doc/tm.texi (ADA_LONG_TYPE_SIZE): Document it.
944
945 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
946
947         * gcse.c (store_killed_in_insn): Consider pure calls
948         as potential store killers in addition to normal calls.
949
950 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
951
952         * expr.c (expand_expr): When checking promoted value, use
953         DECL_MODE (exp) and not mode.
954
955 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
956
957         * c-typeck.c (output_init_element): Call digest_init
958         just once, not in each if branch and check its return value for
959         error_mark_node.
960
961 2001-12-05  Jakub Jelinek  <jakub@redhat.com>
962
963         * c-decl.c (pushdecl): Only increase n_incomplete if pushed decl's
964         type is RECORD_TYPE, UNION_TYPE or ARRAY_TYPE thereof.
965         (finish_struct): Break the loop if n_incomplete went to 0.
966         For ARRAY_TYPE, if it is not TYPE_DECL, layout the decl too.
967
968 Wed Dec  5 07:41:13 2001  Douglas B. Rupp  <rupp@gnat.com>
969
970         * config/alpha/alpha.c (alpha_va_start): Update VMS case.
971
972 Wed Dec  5 07:27:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
973                           Douglas B. Rupp  <rupp@gnat.com>
974
975         * vmsdbg.h, vmsdbgout.c: Add documentation and minor cleanups.
976         * doc/invoke.texi: Add -gvms.
977         * doc/passes.texi: Add mention of vmsdbgout.c.
978         * doc/tm.texi: Document VMS debugging output.
979
980 Wed Dec  5 06:26:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
981
982         * function.h (tree, rtx): Remove no-longer-needed definitions.
983
984         * function.c (keep_stack_depressed): Refine check for register
985         clobbered over call.
986
987         * expr.c (store_expr): When copying string constant into array,
988         use functions that update memrefs instead of computations on
989         addresses to better track MEMs.  Also properly handle 32/64 pointers.
990         (expand_expr): Use TARGET even if not reg for multi-word CONSTRUCTOR.
991         (expand_expr, case CONSTRUCTOR): Fix errors in parms to assign_temp.
992
993         * emit-rtl.c (component_ref_for_mem_expr): Try harder to find decl
994         underneath COMPONENT_REFs.
995         (set_mem_attributes): Also strip VIEW_CONVERT_EXPR.
996
997 2001-12-05  Neil Booth  <neil@daikokuya.demon.co.uk>
998
999         * toplev.c (display_target_options): Don't print twice.
1000
1001 Wed Dec  5 00:42:16 EST 2001  John Wehle  (john@feith.com)
1002
1003         * emit-rtl.c (set_unique_reg_note): Don't set
1004         a REG_EQUAL or REG_EQUIV note if multiple sets
1005         are present.
1006
1007 2001-12-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1008
1009         * cfgrtl.c (verify_flow_info): Allow jump table data in fallthru if
1010         CASE_DROPS_THROUGH.
1011
1012 2001-12-04  Andrew MacLeod  <amacleod@redhat.com>
1013
1014         * rtl.h (initialize_uninitialized_subregs): New prototype.
1015         * toplev.c (rest_of_compilation): Call initialize_uninitialized_subregs
1016         when optimization is on.
1017         * flow.c (find_regno_partial): Find subregs within an expression.
1018         (initialize_uninitialized_subregs): Initialize live on entry registers
1019         which are used in subreg expressions.
1020
1021 2001-12-04  Phil Edwards  <pme@gcc.gnu.org>
1022
1023         * Makefile.in:  Add INSTALL_SCRIPT using INSTALL definition.
1024
1025 2001-12-04  DJ Delorie  <dj@redhat.com>
1026
1027         * fixinc/fixincl.c (initialize): Avoid problemsome macro
1028         parameter names (PR 3388).
1029
1030 2001-12-05  Alan Modra  <amodra@bigpond.net.au>
1031
1032         * config/rs6000/rs6000.c (rs6000_legitimize_address): Fix typo.
1033         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Here too.
1034
1035 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1036
1037         * c-common.def (COMPOUND_LITERAL_EXPR): New.
1038         * c-common.c (c_expand_expr): Handle COMPOUND_LITERAL_EXPR.
1039         (c_staticp): New function.
1040         * c-common.h (COMPOUND_LITERAL_EXPR_DECL): New.
1041         (c_staticp): Declare.
1042         * c-typeck.c (default_function_array_conversion, build_unary_op):
1043         Don't handle CONSTRUCTOR specially.
1044         (lvalue_p, mark_addressable): Handle COMPOUND_LITERAL_EXPR.
1045         * c-decl.c (build_compound_literal): New function.
1046         * c-tree.h (build_compound_literal): Declare.
1047         * c-parse.in (primary): Use build_compound_literal.
1048         * c-lang.c (LANG_HOOKS_STATICP): Define.
1049         * objc/objc-lang.c (LANG_HOOKS_STATICP): Likewise.
1050         * doc/c-tree.texi: Document COMPOUND_LITERAL_EXPR.
1051         * doc/extend.texi: Update documentation of compound literals.
1052         Fixes PR c/4787.
1053
1054 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1055
1056         * langhooks.h (struct lang_hooks): Add staticp.
1057         * langhooks-def.h (lhd_staticp, LANG_HOOKS_STATICP): New.
1058         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_STATICP.
1059         * langhooks.c (lhd_staticp): New function.
1060         * tree.c (staticp): Call lang_hooks.staticp for language-specific
1061         tree codes.
1062
1063 2001-12-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1064
1065         * cppspec.c (lang_specific_driver): Set is_cpp_driver.
1066         * gcc.c (process_command): Ensure the cpp driver sees
1067         --help and --target-help, and that the help is printed
1068         exactly once.
1069
1070 2001-12-04  David Edelsohn  <edelsohn@gnu.org>
1071
1072         * config/elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.
1073
1074 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1075
1076         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Don't unset
1077         flag_strict_aliasing.  Use separate assignment statements.
1078
1079 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
1080
1081         * build-make, cross-make: Delete file.
1082         * configure.in: Set and substitute CROSS, ALL,
1083         SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_PREFIX_1, HOST_CC,
1084         HOST_CFLAGS, STMP_FIXINC, and STMP_FIXPROTO depending on
1085         whether build == host and host == target.  Do not
1086         AC_SUBST_FILE build_overrides or cross_overrides.  Do not
1087         AC_SUBST cross_defines or extra_c_flags.
1088         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): New.
1089         (SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_CC, HOST_PREFIX,
1090         HOST_PREFIX_1, HOST_CFLAGS, ALL, INTERNAL_CFLAGS): Set
1091         partially or completely with autoconf-substituted @variable@
1092         notation.
1093         (INSTALL_TARGET, @cross_defines@, @cross_overrides@,
1094         @build_overrides@, @extra_c_flags@, all.build, install-build,
1095         install-cross-rest, install-float-h-cross): Deleted.
1096         (install-normal): Rename to install.  Delete old "install"
1097         indirection rule.
1098
1099 2001-12-04  Andrew MacLeod  <amacleod@redhat.com>
1100
1101         * stmt.c (expand_return): Clear destination instead of clobbering it
1102         when setting a return value via bitsets.
1103
1104 2001-12-04  Alexandre Oliva  <aoliva@redhat.com>
1105
1106         * tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if
1107         it has DECL_SAVED_TREE.
1108
1109         * c-decl.c (duplicate_decls): Revert rth's patch.  If newdecl
1110         is in a different binding level, get its abstract origin to be
1111         olddecl.
1112         * tree-inline.c (expand_call_inline): Move DECL_INITIAL sanity
1113         check earlier.
1114         * tree.c (get_callee_fndecl): Follow DECL_ABSTRACT_ORIGIN if
1115         DECL_INITIAL is NULL.
1116
1117 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
1118
1119         * flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.
1120         Return correct value if one of the subexpressions was optimized to
1121         0 resp. 1.  Optimize (x | A) | x and (x & A) | x.
1122         (and_reg_cond): Similarly.
1123
1124 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
1125
1126         * function.c (assign_parms): Set last_named only for last named
1127         argument.
1128
1129 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1130
1131         * doc/install.texi: Use the GFDL.  Include years from old install
1132         manual in copyright notice.  Include copyright and GFDL notice on
1133         HTML index page.  Include usual footer on testing.html.
1134         * doc/install.texi2html: Build gfdl.html.  Use -I
1135         $SOURCEDIR/include.
1136         * doc/include/fdl.texi: Adapt for use in the install manual.
1137
1138 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1139
1140         * doc/install.texi: Document that installed native compiler for
1141         building cross compilers should be GCC 2.95 or later.
1142
1143 2001-12-03  Eric Christopher  <echristo@redhat.com>
1144
1145         * config/mips/mips.h (CALL_REALLY_USED_REGISTERS): New macro.
1146         * config/mips/mips.md: Check TARGET_DEBUG_D_MODE before split
1147         patterns.
1148
1149 2001-12-03  Janis Johnson  <janis187@us.ibm.com>
1150
1151         * rtl.def (PREFETCH): New rtx code.
1152         * doc/rtl.texi (PREFETCH): Add documentation.
1153         * function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx.
1154         * rtlanal.c (reg_referenced_p): Ditto.
1155         * sched-vis.c (print_exp):  Ditto.
1156         * ssa-dce.c (find_inherently_necessary):  Ditto.
1157
1158         * config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
1159           (PREFETCH_BLOCK): Define.
1160         * config/ia64/ia64.md (itanium_class): Add lfetch.
1161           (prefetch, prefetch_internal): New.
1162
1163         * builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
1164         * builtins.def (BUILT_IN_PREFETCH): New.
1165         * builtins.c (expand_builtin_expect): New.
1166           (expand_builtin): Call it.
1167         * doc/extend.texi: Document __builtin_prefetch.
1168
1169         * config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid
1170           conflicts with new generic prefetch functionality.
1171         * config/i386/i386.c (ix86_expand_builtin): Use new name for
1172           prefetch_sse.
1173
1174 2001-12-02  Ziemowit Laski  <zlaski@apple.com>
1175
1176         * objc/Make-lang.in: Update copyright.
1177         (OBJC_OBJS): Add objc-lang.o.
1178         (objc-lang.o): New rule.
1179         * objc/config-lang.in: Fix file description and update
1180         copyright.
1181         * objc/objc-act.c: Do not include langhooks.h and
1182         langhooks-def.h
1183         (lang_hooks): Move (along with LANG_HOOKS...) to objc-lang.c.
1184         (objc_post_options): Move to objc-lang.c.
1185         (objc_init_options): Move to objc-lang.c.
1186         (objc_init): Make non-static.
1187         (objc_decode_option): Make non-static.
1188         (HASHFUNCTION): Remove macro.
1189         (hash_func): New function.
1190         (hash_enter): Replace HASHFUNCTION with hash_func.
1191         (hash_lookup): Replace HASHFUNCTION with hash_func.
1192         (maybe_objc_tree_codes): New function.
1193         (init_objc): Move ObjC tree code initialization to
1194         maybe_objc_tree_codes().
1195         * objc/objc-act.h (GCC_OBJC_ACT_H): New include guard.
1196         (objc_init): New public prototype.
1197         (objc_decode_option): New public prototype.
1198         (maybe_add_objc_tree_codes): New public prototype.
1199         * objc/objc-lang.c: New file.
1200         (lang_hooks): Moved from objc-act.c.
1201         (objc_post_options): Moved from objc-act.c.
1202         (objc_init_options): Moved from objc-act.c.
1203
1204 2001-12-03  Geoff Keating  <geoffk@redhat.com>
1205
1206         * emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension
1207         of array elements.
1208
1209 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1210
1211         PR c/4988
1212         * gcc.c (process_command): Don't add a preprocessor option for
1213         --help and --target-help; cc1 is enough.
1214
1215 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1216
1217         * c-decl.c (grokdeclarator): Use ISO word.
1218         * cppinit.c: Remove leading capital from diagnostic messages, as
1219         per GNU coding standards.
1220         * emit-rtl.c: Similarly.
1221         * final.c: Similarly.
1222         * gcc.c: Similarly.
1223         * tradcpp.c: Similarly.
1224         * config/arm/arm.c: Similarly.
1225         * config/arm/arm.h: Similarly.
1226         * config/avr/avr.c: Similarly.
1227         * config/avr/avr.h: Similarly.
1228         * config/c4x/c4x.c: Similarly.
1229         * config/cris/cris.c: Similarly.
1230         * config/cris/cris.h: Similarly.
1231         * config/d30v/d30v.c: Similarly.
1232         * config/dsp16xx/dsp16xx.c: Similarly.
1233         * config/dsp16xx/dsp16xx.h: Similarly.
1234         * config/h8300/h8300.c: Similarly.
1235         * config/i386/i386.c: Similarly.
1236         * config/i386/xm-djgpp.h: Similarly.
1237         * config/i960/i960.h: Similarly.
1238         * config/m32r/m32r.c: Similarly.
1239         * config/m68hc11/m68hc11.c: Similarly.
1240         * config/m88k/m88k.c: Similarly.
1241         * config/m88k/m88k.h: Similarly.
1242         * config/mcore/mcore.c: Similarly.
1243         * config/mcore/mcore.h: Similarly.
1244         * config/mips/mips.c: Similarly.
1245         * config/mmix/mmix.c: Similarly.
1246         * config/pa/pa.c: Similarly.
1247         * config/rs6000/rs6000.c: Similarly.
1248         * config/rs6000/sysv4.h: Similarly.
1249         * config/s390/s390.c: Similarly.
1250         * config/sparc/sparc.c: Similarly.
1251         * config/v850/v850-c.c: Similarly.
1252         * config/v850/v850.c: Similarly.
1253
1254 2001-12-03  Zack Weinberg  <zack@codesourcery.com>
1255
1256         * rs6000.h (RETURN_IN_MEMORY): Cast result of
1257         int_size_in_bytes to unsigned HOST_WIDEST_INT so that -1 > 8.
1258
1259 Mon Dec  3 09:18:34 2001  Jeffrey A Law  (law@cygnus.com)
1260
1261         * mn10200.md (negsf2): Use -0x8000 instead of 0x8000 for
1262         bit twiddling constant.
1263
1264 Mon Dec  3 16:16:37 CET 2001  Jan Hubicka  <jh@suse.cz>
1265
1266         * gcse.c (delete_null_pointer_checks_1): Do not use delete_list;
1267         call purge_dead_edges after removing.
1268         (delete_null_pointer_checks): Do not handle delete_list.
1269
1270         * cfgbuild.c (inside_basic_block_p, control_flow_insn_p): Break out from ...
1271         (count_basic_blocks): ... here.
1272         (find_basic_blocks, find_bb_boundaries): Cleanup.
1273
1274         * stor-layout.c (fixup_signed_type, fixup_unsigned_type): Avoid
1275         overflow for types greater then 2 * HOST_WIDE_INT.
1276
1277         * reload.c (find_reloads): Update the duplicates after swapingg.
1278
1279 Mon Dec  3 13:52:19 CET 2001  Jan Hubicka  <jh@suse.cz>
1280
1281         * i386.md (movabsqi*): Use 'b' prefix instead of 'q'.
1282
1283 2001-12-02  Zack Weinberg  <zack@codesourcery.com>
1284
1285         * config/rs6000/rs6000.h (MASK_ALTIVEC_ABI,
1286         MASK_LONG_DOUBLE_128): Delete.
1287         (MASK_AIX_STRUCT_RET, MASK_AIX_STRUCT_RET_SET,
1288         TARGET_AIX_STRUCT_RET): New flags.
1289         (TARGET_SWITCHES): Remove entries for -mlong-double-128 and
1290         -mlong-double-64.  Add entries for -m(no-)aix-struct-return
1291         and -m(no-)svr4-struct-return.
1292         (TARGET_OPTIONS): Add entry for -mlong-double-.
1293         (rs6000_long_double_size_string, rs6000_long_double_type_size,
1294         rs6000_altivec_abi): Declare.
1295         (TARGET_LONG_DOUBLE_128, TARGET_ALTIVEC_ABI,
1296         LONG_DOUBLE_TYPE_SIZE): Change definitions to match.
1297         (RETURN_IN_MEMORY): If !TARGET_AIX_STRUCT_RET, return
1298         structures of size <= 8 bytes in registers.
1299         (PRINT_OPERAND_PUNCT_VALID_P): Take out '$' and '*'.
1300
1301         * config/rs6000/rs6000.c (rs6000_long_double_size_string,
1302         rs6000_long_double_type_size, rs6000_altivec_abi): New
1303         globals.
1304         (rs6000_override_options): Set rs6000_long_double_type_size
1305         from rs6000_long_double_size_string, if nonzero.  Set the
1306         MASK_AIX_STRUCT_RET bit in target_flags from DEFAULT_ABI, if
1307         not already set.
1308         (rs6000_parse_abi_options): Set rs6000_altivec_abi, not a
1309         target_flags bit.
1310         (rs6000_init_builtins): This hook now takes no arguments.
1311
1312         * config/rs6000/netbsd.h, config/rs6000/linux.h: Define
1313         DRAFT_V4_STRUCT_RET to 1.
1314
1315 2001-12-03  Joseph S. Myers  <jsm28@cam.ac.uk>
1316
1317         * c-typeck.c (really_start_incremental_init, push_init_level):
1318         Avoid constructor_max_index being other than an INTEGER_CST.
1319
1320 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
1321
1322         * config/rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count
1323         unsigned.
1324         (ASM_GENERATE_INTERNAL_LABEL): Same.
1325         (UNIQUE_SECTION): Fix typo.
1326
1327 2001-12-02  Richard Henderson  <rth@redhat.com>
1328
1329         * c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
1330
1331 2001-12-02  Richard Henderson  <rth@redhat.com>
1332
1333         * rtl.h (mem_attrs): Rename decl to expr; adjust all users.
1334         (MEM_EXPR): Rename from MEM_DECL; adjust all users.
1335         * emit-rtl.c (set_mem_expr): Rename from set_mem_decl.
1336         * expr.h, final.c, reload1.c: Adjust users.
1337
1338         * alias.c (nonoverlapping_component_refs_p): New.
1339         (decl_for_component_ref, adjust_offset_for_component_ref): New.
1340         (nonoverlapping_memrefs_p): Use them.
1341         * emit-rtl.c (component_ref_for_mem_expr): New.
1342         (set_mem_attributes): Use it.
1343         (set_mem_offset): New.
1344         * expr.c (expand_assignment): Call set_mem_attributes for
1345         inner references; adjust the memory offset as needed.
1346         * print-rtl.c (print_mem_expr): New.
1347         (print_rtx): Use it.
1348
1349 Sun Dec  2 09:22:25 2001  Douglas B. Rupp  <rupp@gnat.com>
1350
1351         * config/x-interix3 (SYSTEM_HEADER_DIR): Put back default.
1352
1353         * config/alpha/vms.h (VMS_DEBUGGING_INFO): New macro.
1354         (PREFERRED_DEBUGGING_TYPE): Define as VMS_AND_DWARF2_DEBUG.
1355         (ASM_SPEC): Don't redefine.
1356         (OPTIMIZATION_OPTIONS, OVERRIDE_OPTIONS, LINK_SPEC): Define.
1357         * config/alpha/t-vms (EXTRA_PARTS): Use; add rule for vms-dwarf2.asm.
1358         * config/alpha/vms-dwarf2.asm: New file.
1359
1360         * Makefile.in (OBJS): Add vmsdbgout.c and its rule.
1361         * c-lex.c (init_c_lex): Test for VMS_AND_DWARF2_DEBUG.
1362         * debug.h (gcc_debug_hooks): Add vmsdbg_debug_hooks.
1363         (vmsdbgout_after_prologue): New declaration.
1364         * defaults.h (VMS_DEBUGGING_INFO): Add to PREFERRED_DEBUGGING_TYPE.
1365         * dwarf2.h (dwarf_attribute): New DW_AT_VMS_rtnbeg_pd_address.
1366         * dwarf2out.c (dwarf2out_do_frame): Test for VMS_AND_DWARF2_DEBUG.
1367         (dwarf2out_frame_finish): Test for VMS_AND_DWARF2_DEBUG.
1368         (dwarf_attr_name): Use DW_AT_VMS_rtnbeg_pd_address.
1369         (add_name_and_src_coords_attributes): Test VMS_DEBUGGING_INFO
1370         * final.c (final_start_function): Test for VMS_AND_DWARF2_DEBUG.
1371         Test VMS_DEBUGGING_INFO.
1372         (final_end_function): Test for VMS_AND_DWARF2_DEBUG.
1373         (final_scan_insn): Test for VMS_AND_DWARF2_DEBUG and VMS_DEBUG.
1374         * flags.h (debug_info_type): Add VMS_DEBUG and VMS_AND_DWARF2_DEBUG.
1375         * toplev.c (compile_file): Test VMS_DEBUGGING_INFO, VMS_DEBUG, and
1376         VMS_AND_DWARF2_DEBUG.
1377         (rest_of_type_compilation): Test for VMS_AND_DWARF2_DEBUG.
1378         (decode_g_option): Add "vms" to debug_type_names.
1379         (process_options): Set vmsdbg_debug_hooks if -gvms.
1380         (lang_independent_init): Emit line number for VMS unless -g0.
1381         * tree.c: (build_complex_type): Test for VMS_AND_DWARF2_DEBUG.
1382         * vmsdbg.h, vmsdbgout.c: New files.
1383
1384 Sun Dec  2 09:03:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1385
1386         * cfgbuild.c (SET_STATE): Add cast to eliminate warning.a
1387
1388 2001-12-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1389
1390         * cfgrtl.c (purge_all_dead_edges): Initialize variable.
1391         * dwarf2out.c (is_cxx): Prototype.
1392         * local-alloc.c (block_alloc): Avoid 'unsigned>=0 is always true'
1393         warning.
1394         * objc/objc-act.c (defer_fn): Avoid signed/unsigned warning.
1395
1396 Sun Dec  2 07:12:30 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1397
1398         * libgcc2.c (__bb_exit_func): Fix line wrap problems.
1399
1400 2001-12-02  Geoff Keating  <geoffk@redhat.com>
1401
1402         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Simplify.
1403         * config/rs6000/rs6000.c (rs6000_emit_move): Use adjust_address
1404         rather than simplify_subreg.  Check for volatile-ness.  Check that
1405         we're not splitting one slow operation into two slow operations.
1406
1407 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
1408
1409         * emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT
1410         before shifting.
1411
1412 2001-12-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1413
1414         * c-decl.c (duplicate_decls, push_parm_decl): Remove leading
1415         capital from diagnostics.
1416         * c-lex.c (cb_file_change): Similarly.
1417         * c-parse.in : Similarly.
1418         * cfgrtl.c (verify_flow_info): Similarly.
1419         * collect2.c: Similarly.
1420         * cppfiles.c (find_include_file): Similarly.
1421         * cppinit.c (cpp_handle_option): Similarly.
1422         * cpplex.c (cpp_spell_token): Similarly.
1423         * cppmain.c (do_preprocessing): Similarly.
1424         * gcc.c (translate_options, process_command, do_spec1,
1425         main, pfatal_execute): Similarly.
1426         * genattr.c (main): Similarly.
1427         * genattrtab.c (check_attr_test, operate_exp, simplify_test_exp,
1428         write_test_expr, main): Similarly.
1429         * gencodes.c (main): Similarly.
1430         * genconfig.c (main): Similarly.
1431         * genconstants.c (main): Similarly.
1432         * genemit.c (main): Similarly.
1433         * genextract.c (main): Similarly.
1434         * genflags.c (main): Similarly.
1435         * genopinit.c (main): Similarly.
1436         * genoutput.c (process_template, main): Similarly.
1437         * genpeep.c (main): Similarly.
1438         * genrecog.c (main): Similarly.
1439         * gensupport.c (is_predicable, identify_predicable_attribute,
1440         alter_predicate_for_insn, init_md_reader_args, main): Similarly.
1441         * ggc-page.c (alloc_anon): Similarly.
1442         * mips-tfile.c (add_string, add_procedure, add_file, read_line,
1443         parse_begin, parse_bend, parse_def, parse_end, parse_file,
1444         parse_stabs_common, parse_stabs, write_varray, write_object,
1445         read_seek, copy_object, main, error): Similarly.
1446         * profile.c (compute_branch_probabilities): Similarly.
1447         * reg-stack.c (check_asm_stack_operands): Similarly.
1448         * reload.c (find_reloads): Similarly.
1449         * reload1.c (spill_failure, failed_reload): Similarly.
1450         * rtl-error.c (_fatal_insn_not_found): Similarly.
1451         * toplev.c (read_integral_parameter, crash_signal,
1452         decode_f_option, set_target_switch, parse_options_and_default_flags)
1453         : Similarly.
1454         * tradcif.y (parse_number, yylex): Similarly.
1455         * tradcpp.c (main, fancy_abort): Similarly.
1456         * tree.c (tree_check_failed): Similarly.
1457         * varray.c (varray_check_failed): Similarly.
1458         * xcoffout.c (xcoff_output_standard_types): Similarly.
1459 objc:
1460         * objc-act.c (get_object_ref, lookup_and_install_protocols,
1461         build_objc_string_object, objc_declare_alias, build_ivar_chain,
1462         finish_message_expr, build_protocol_expr, is_public,
1463         start_class): Similarly.
1464
1465 2001-12-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1466
1467         * c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
1468         trailing period from diagnostics.
1469         * c-lex.c (cb_file_change): Similarly.
1470         * cppmacro.c (check_trad_stringification): Similarly.
1471         * gcc.c (do_spec_1): Similarly.
1472         * genattr.c (main): Similarly.
1473         * genattrtab.c (main, operate_exp, make_length_attrs): Similarly.
1474         * gencodes.c (main): Similarly.
1475         * genconfig.c (main): Similarly.
1476         * genconstants.c (main): Similarly.
1477         * genemit.c (main): Similarly.
1478         * genextract.c (main): Similarly.
1479         * genopinit.c (main): Similarly.
1480         * genoutput.c (main): Similarly.
1481         * genpeep.c (main): Similarly.
1482         * genrecog.c (main): Similarly.
1483         * mips-tfile.c (add_file, error): Similarly.
1484         * profile.c (init_branch_prob): Similarly.
1485         * reload1.c (spill_failure): Similarly.
1486         * stmt.c (parse_output_constraint): Similarly.
1487         * varasm.c (assemble_variable): Similarly.
1488
1489 2001-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1490
1491         * m68k.c (init_FPA_table): Provide static prototype.
1492         * mips/abi64.h (mips_function_value): Move prototype to ...
1493         * mips-protos.h (mips_function_value): ... here.
1494         * mips.c: Include halfpic.h.
1495         * output.h (rdata_section): Prototype.
1496
1497         * h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
1498         * m88k.c (m88k_svr3_asm_out_constructor,
1499         m88k_svr3_asm_out_destructor): Wrap with CTOR_LIST_BEGIN &&
1500         !OBJECT_FORMAT_ELF.
1501         * mcore.c (mcore_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
1502         * sh.c (sh_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
1503         * sparc.c (sparc_elf_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
1504
1505 2001-12-01  Geoff Keating  <geoffk@redhat.com>
1506
1507         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Complex
1508         LO_SUM addresses less than word size are not legitimate,
1509         because they lead to invalid SUBREGs.
1510         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
1511
1512 2001-12-01  Olivier Hainque <hainque@act-europe.fr>
1513
1514         * unroll.c (loop_iterations): Give up on jumps with null JUMP_LABEL
1515         while scanning for multiple back edges.
1516
1517 2001-12-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1518
1519         * ginclude/ppc-asm.h (JUMP_TARGET): New macro.
1520         * config/rs6000/tramp.asm: Use it.
1521
1522 2001-12-01  Zack Weinberg  <zack@codesourcery.com>
1523
1524         * gencheck.c, gengenrtl.c: Don't define xmalloc.
1525         * gensupport.c: Don't define xstrdup, xcalloc, xrealloc,
1526         xmalloc.
1527
1528 2001-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1529
1530         * pa.c (output_ascii): Cast `p' to unsigned char.
1531
1532 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
1533
1534         * config/rs6000/rs6000.c (altivec_expand_builtin): add
1535         ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf,
1536         *_16qi,_8hi, rename existing V4SI ones to *_4si.
1537         (altivec_init_builtins): Ditto.
1538         (bdesc_2arg): Rename CODE_FOR_* to match changes in MD file.
1539
1540         * config/rs6000/rs6000.md: Add attribute types vecsimple,
1541         veccomplex, vecfloat, and vecperm, for altivec instructions.
1542         Modify altivec patterns to use appropriate attribute type.
1543         Modify altivec patterns to match RTL operations where appropriate
1544         (IE no unspec where we can avoid it).
1545         Add vector unit scheduling for ppc7450.
1546         Rename patterns to what they are where appropriate
1547         (altivec_vaddfp->addv4sf3, etc)
1548
1549         * config/rs6000/rs6000.h (enum rs6000_builtins): Change VRS->VSR.
1550         Pass -mppc, and define _ARCH_PPC, if -mcpu=7450 is used.
1551
1552         * config/rs6000/sysv4.h: Add -mcpu=7450.
1553
1554         * testsuite/gcc.dg/altivec-1.c: Update test to take into account renamed
1555         _builtin_altivec_ld_interal function.
1556
1557 2001-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1558
1559         * configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen,
1560         strchr, strrchr, isascii, gettimeofday.
1561         * config.in, configure: Regenerate.
1562
1563 2001-11-30  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
1564
1565         * unroll.c (unroll_loop): Correct special exit cases.
1566
1567 2001-11-30  Stephane Carrez  <Stephane.Carrez@sun.com>
1568
1569         * config/sparc/sparc.c (DF_MODES_NO_S): Fix pr/3623, define to
1570         accept DFmode and DImode only.
1571
1572 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
1573
1574         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
1575         (STACK_DYNAMIC_OFFSET): Same.
1576
1577 2001-11-30  Richard Henderson  <rth@redhat.com>
1578
1579         * c-decl.c (duplicate_decls): Copy DECL_SAVED_TREE.
1580
1581 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
1582
1583         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): New.
1584         (CONDITIONAL_REGISTER_USAGE): Set call_really_used_registers to
1585         the values in call_used_registers.
1586
1587 Fri Nov 30 12:48:26 2001  Jeffrey A Law  (law@cygnus.com)
1588
1589         * gthr-dce.h: If _DCE_THREADS is not defined, then just include
1590         gthr-single.
1591
1592 2001-11-30  Jason Merrill  <jason@redhat.com>
1593
1594         * dwarf2out.c (is_cxx): New fn.
1595         (add_data_member_location_attribute): Check it.
1596         * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++.
1597
1598 Fri Nov 30 08:26:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1599
1600         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Handle const1_rtx.
1601
1602 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
1603
1604         * genopinit.c (gen_insn): Handle MODE_VECTOR_INT and
1605         MODE_VECTOR_FLOAT as allowed.
1606
1607 2001-11-29  Zack Weinberg  <zack@codesourcery.com>
1608
1609         Purge cruft now we have build libiberty.
1610
1611         * Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR,
1612         HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR,
1613         USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT,
1614         USE_HOST_STRSTR): Delete variables.
1615         (vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o,
1616         hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o,
1617         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
1618         $(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules.
1619         (LIBIBERTY, BUILD_LIBIBERTY): New variables.
1620         (LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY).
1621         (LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY).
1622         (HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY).
1623         (HOST_LIBS): Ditto.
1624         (HOST_RTL): Remove hashtab.o safe-ctype.o.
1625         (OBJS): Remove splay-tree.o.
1626         (gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a.
1627         (distclean): No need to delete splay-tree.c obstack.c
1628         hashtab.c safe-ctype.c.
1629         (mostlyclean): Delete build copies of print-rtl.c bitmap.c
1630         errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1).
1631         * aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR):
1632         Delete.
1633         * configure.in: Don't use them.
1634         Set and substitute @FORBUILD@.
1635         * config.in, configure: Regenerate.
1636         * doprint.c: Move to libiberty/_doprnt.c.
1637         * doc/configterms.texi: Document that libiberty is now built
1638         up to three times.  Fix typo.
1639
1640 2001-11-30  Jason Merrill  <jason@redhat.com>
1641
1642         * dwarf2out.c (add_data_member_location_attribute): Do the
1643         right thing for virtual bases.
1644         * dbxout.c (dbxout_type): For a virtual base, print the offset
1645         within the vtable.
1646
1647 2001-11-29  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
1648
1649         * doloop.c (doloop_valid_p): Check for LTU and GTU as well.
1650
1651 2001-11-29  Aldy Hernandez  <aldyh@redhat.com>
1652
1653         * config/rs6000/rs6000.c (function_arg): Unnamed vector arguments
1654         go in memory.
1655         Remove unused attribute for named.
1656
1657 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1658
1659         * genattrtab.c (attr_rtx_1): New function containing the
1660         majority of `attr_rtx'.  Move variable declarations into the
1661         scope where they are used.  Eliminate unnecessary gotos.
1662         (attr_rtx): Now just a wrapper for `attr_rtx_1' using VA_OPEN,
1663         VA_FIXEDARG, and VA_CLOSE.
1664
1665 2001-11-30  Hans-Peter Nilsson  <hp@axis.com>
1666
1667         * config/cris/cris.c (cris_notice_update_cc): Check first
1668         destination also against overlap with cc_status.value2 and second
1669         destination against overlap with cc_status.value1.  For overlaps,
1670         clear overlapped value, don't just CC_STATUS_INIT.
1671
1672         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix spacing and FIXME.
1673         Fix typo in comment.
1674         (LINK_SPEC): Remove whitespace at end of line.
1675
1676 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1677
1678         * c-lex.c (init_c_lex): Canonicalize "-" filename to "".
1679
1680 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
1681
1682         * gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
1683         macros for the supported debugging types.
1684
1685 2001-11-29  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1686
1687         PR other/4932
1688         * config/i386/i386.c (print_operand):  Verify that the
1689           argument to %c is a constant and not a conditional which
1690           needs to be reversed.
1691
1692 Thu Nov 29 11:12:59 2001  Geoffrey Keating (geoffk@redhat.com)
1693
1694         * emit-rtl.c (gen_lowpart_common): Fix conversion of
1695         REAL_VALUE_TYPEs to an array of target integers.  Fix extraction
1696         of low part of those arrays for 32bit and 64bit hosts.
1697
1698 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1699
1700         * Makefile.in (insn-output.o): Depend on insn-codes.h.
1701
1702 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1703
1704         * configure.in (target_list): Add generated-manpages.
1705         * configure: Regenerate.
1706         * Makefile.in (generated-manpages): Depend on
1707         lang.generated-manpages.
1708         * objc/Make-lang.in (objc.generated-manpages): New dummy target.
1709
1710 2001-11-29  Nick Clifton  <nickc@cambridge.redhat.com>
1711
1712         * config/arm/crti.asm (_init): Add .thumb_func if compiled
1713         with -mthumb.
1714         (_fini): Add .thumb_func if compiled with -mthumb.
1715
1716 2001-11-28  Eric Christopher  <echristo@redhat.com>
1717
1718         * config/mips/mips.c (override_options): Fix thinko in mips_tune
1719         for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.
1720
1721 Thu Nov 29 00:24:15 EST 2001  John Wehle  (john@feith.com)
1722
1723         * alpha.md (tablejump): Use pic_offset_table_rtx
1724         instead of gen_rtx_REG.
1725
1726 Wed Nov 28 15:36:13 2001  Jeffrey A Law  (law@cygnus.com)
1727
1728         * expr.c (store_expr): When copying a string constant into an
1729         array, reset the known alignment of the MEM for the section to
1730         be cleared to BITS_PER_UNIT.
1731
1732 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
1733
1734         * config/cris/cris.c: Remove whitespace at end of line.
1735
1736 Wed Nov 28 14:51:23 2001  Douglas B. Rupp  <rupp@gnat.com>
1737
1738         * config.gcc (i[34567]86-*-interix3*): New case.
1739         * config/x-interix3, config/interix3.h, config/i386/i386-interix3.h:
1740         New files.
1741
1742 2001-11-28  Richard Henderson  <rth@redhat.com>
1743
1744         * config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
1745         symbolic_operand as the predicate.
1746
1747 2001-11-28  Richard Henderson  <rth@redhat.com>
1748
1749         * doloop.c (doloop_modify_runtime): Properly select induction
1750         variable; skip late entry test if biv initializer created by loop.
1751
1752 Wed Nov 28 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1753
1754         * tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
1755         EXPR_WITH_FILE_LOCATION, so change checks and documentation.
1756
1757         * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
1758
1759         * tree.h: Add missing checks on some macros; make formatting more
1760         consistent.
1761
1762         * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
1763         level; only add to pending_sizes if find it.
1764
1765         * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
1766
1767         * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
1768         Add casts to remove warnings.
1769
1770         * Makefile.in (OBJS): Sort alphabetically.
1771
1772         * print-rtl.c (print_rtx): If RTX code is bad, just say so.
1773         Also minor cleanups.
1774
1775 Wed Nov 28 06:52:27 2001  Arnaud Charlet  <charlet@ACT-Europe.FR>
1776
1777         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
1778         (FLAGS_TO_PASS): Add STAGE_PREFIX.
1779         (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
1780         to STAGE_PREFIX.
1781
1782 Wed Nov 28 10:42:19 CET 2001  Jan Hubicka  <jh@suse.cz>
1783
1784         * cse.c (true_dependence_in_rtx): New function.
1785         (invalidate): Use it.
1786
1787         * c-common.h (GOTO_FAKE_P): New macro.
1788         * tree-inline.c (GOTO_FAKE_P): Set.
1789         * c-tree.texi (GOTO_FAKE_P): Document.
1790
1791         * varasm.c (assemble_variable): Set reloc to 3 for error_mark
1792         containing pointers.
1793         (output_addressed_constants): Check for local/external relocations.
1794         * elfos.h (SELECT_SECTION): Classify data section.
1795         * tm.texi (SELECT_SECTION): Update documentation.
1796
1797         * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
1798         (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
1799
1800 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1801
1802         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
1803         UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
1804         OBJECT_FORMAT_ROSE.
1805
1806 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
1807
1808         * config/cris/cris.c: Tweak spacing for prototypes.
1809         (LOSE_AND_RETURN): New macro.
1810         (cris_operand_lossage): New function.
1811         (cris_print_index, cris_print_base): Use cris_operand_lossage
1812         rather than fatal_insn.
1813         (cris_print_operand, cris_print_operand_address): Use
1814         LOSE_AND_RETURN rather than fatal_insn and internal_error.
1815         (cris_output_addr_const): Use LOSE_AND_RETURN and
1816         output_operand_lossage rather than fatal_insn and internal_error
1817         for valid but unexpected rtx expressions.
1818
1819         * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
1820         for a SUBREG in src or dest, abort instead.
1821
1822 2001-11-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1823
1824         * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
1825         doc.
1826
1827 2001-11-27  Jakub Jelinek  <jakub@redhat.com>
1828
1829         * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
1830         preprocessor define.  If only DBX_DEBUGGING_INFO or only
1831         DWARF2_DEBUGGING_INFO is supported for the target, provide
1832         appropriate definitions.
1833
1834 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1835
1836         * Makefile.in: Update, and add c-objc-common.o dependencies.
1837         * c-lang.c: Remove unnecessary includes.
1838         (c_init): Move bulk of code to c_objc_common_init, and call it.
1839         (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
1840         inline_forbidden_p, c_cannot_inline_tree_fn): Move to
1841         c-objc-common.c.
1842         * c-objc-common.c: New.  Mostly pulled from c-lang.c.
1843         * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
1844         c_objc_common_init, c_missing_noreturn_ok_p): New.
1845         * toplev.c: Update comment.
1846         * doc/passes.texi: Update.
1847 objc:
1848         * objc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
1849         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
1850         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
1851         (objc_init): Update to use c_objc_common_init.
1852
1853 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1854
1855         * cpphash.c (_cpp_init_hashtable): Update.
1856         * cpphash.h (struct spec_nodes): Remove n_L.
1857         * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
1858
1859 2001-11-17  Richard Henderson  <rth@redhat.com>
1860
1861         * unroll.c (loop_iterations): Move last change ...
1862         * doloop.c (doloop_modify_runtime): ... here.
1863
1864 2001-11-17  Corey Minyard  <minyard@acm.org>
1865             Richard Henderson  <rth@redhat.com>
1866
1867         * unroll.c (loop_iterations): Detect one situation in which we
1868         overestimate the number of iterations.
1869
1870 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1871
1872         * gcc.c (set_input): Export.
1873         Move declaration ...
1874         gcc.h (set_input): ... here.
1875
1876 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1877
1878         * gcc.c (set_collect_gcc_options): New function, split out from
1879         main.
1880         Ignore elided switches.
1881         (do_spec): Invoke before executing command.
1882         (do_spec_1): Likewise.
1883         Fixes PR other/3968.
1884
1885 2001-11-27  Hans-Peter Nilsson  <hp@axis.com>
1886
1887         * config/cris/cris.h (INT_ASM_OP): Remove.
1888
1889 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1890
1891         * config/i386/sol2.h (WINT_TYPE): Redefine.
1892         (WINT_TYPE_SIZE): Likewise.
1893
1894 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1895
1896         * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
1897         (dup2): Make static and add prototype.
1898         * m68k/plexus.h: Don't define NO_DUP2.
1899         * configure.in (AC_CHECK_FUNCS): Add dup2.
1900         * config.in, configure: Regenerate.
1901
1902         * ia64/aix.h (REG_SIZE): Don't #undef.
1903         * sparc.h (REG_SIZE): Delete.
1904         * flow.c (mark_used_regs): Don't use REG_SIZE.
1905         * regs.h (REG_SIZE): Delete.
1906
1907 2001-11-27  Andreas Schwab  <schwab@suse.de>
1908
1909         * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
1910         PREFERRED_DEBUGGING_TYPE.
1911
1912 Tue Nov 27 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1913
1914         * Makefile.in (c-lang.o): Depends on langhooks-def.h.
1915         (expr.o, varasm.o): Depends on langhooks.h.
1916         * c-common.c (c_safe_from_p): Always declare.
1917         (c_expand_expr): Refine when declared.
1918         * c-lang.c (c-common.h): Now include.
1919         (LANG_HOOKS_SAFE_FROM_P): Define new hook.
1920         (c_init): Don't set lang_safe_from_expr.
1921         * expr.c (langhooks.h): Now include.
1922         (lang_safe_from_p): No longer define.
1923         (safe_from_p): Use lang hook.
1924         (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
1925         (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
1926         * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
1927         * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
1928         (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
1929         * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
1930         * langhooks.h (struct lang_hooks): New fields expand_constant
1931         and safe_from_p.
1932         * output.h (output_constant): Size arg is HOST_WIDE_INT.
1933         * stmt.c (expand_decl_init): No longer need to expand constant
1934         for CONST_DECL.
1935         * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
1936         * toplev.c (lang_expand_constant): Delete var.
1937         * tree.c (save_expr): Don't put another SAVE_EXPR around simple
1938         operations on SAVE_EXPR.
1939         * varasm.c (langhooks.h): Now include.
1940         (compare_constant_1): Use lang_hooks, not lang_expand_constant.
1941         (record_constant_1, output_addressed_constants): Likewise.
1942         (initializer_constant_valid_p, output_constant): Likewise.
1943         (output_constant_def): Process no-defer of string constant.
1944         (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
1945         (output_constant): Strip more conversions.
1946         Track our size and pad for the rest.
1947         (array_size_for_constructor): Remove code for non-byte STRING_CST.
1948         (output_constructor): SIZE now HOST_WIDE_INT.
1949
1950 2001-11-27  Richard Henderson  <rth@redhat.com>
1951
1952         * ifcvt.c (noce_try_store_flag_constants): Test for overflow
1953         in computing DIFF.
1954
1955 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
1956
1957         * cppfiles.c (read_include_file): Add comment.
1958
1959 2001-11-26  Richard Henderson  <rth@redhat.com>
1960
1961         * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
1962
1963 2001-11-26  Richard Henderson  <rth@redhat.com>
1964
1965         * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
1966         * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
1967         commented out override.
1968
1969 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1970
1971         * cppfiles.c (stack_include_file): Don't optimize zero-length
1972         files.
1973         (read_include_file): NUL-terminate read files.
1974         * cpplex.c (handle_newline, skip_escaped_newlines,
1975         get_effective_char, skip_whitespace, parse_identifier,
1976         parse_identifier_slow, parse_number, parse_string,
1977         _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
1978         NUL-terminated.
1979         * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
1980         Be sure buffers are NUL terminated.
1981         * cppmacro.c (warn_of_redefinition): Kill compile warning.
1982
1983 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1984
1985         * c-common.c: Include tree-inline.h.
1986         (c_language): Move separate definitions here.
1987         (c_common_init_options, c_common_post_options): New.
1988         (c_common_lang_init): Rename c_common_init.
1989         * c-common.h (c_common_lang_init): Similarly.
1990         (c_common_init_options, c_common_post_options): New.
1991         * c-lang.c (c_post_options): Move body to c_common_post_options.
1992         (c_init_options): Use c_common_init_options.
1993         (c_init): Update.
1994         * langhooks.def: Rearrange.
1995         * langhooks.h: Rearrange, and improve comments.
1996         * toplev.c (do_compile): New function.
1997         (toplev_main): Use it.
1998         (lang_independent_f_options, parse_options_and_default_flags,
1999         process_options): Remove trailing periods.
2000         * Makefile.in: Update.
2001 objc:   * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
2002         functions.
2003         (ojbc_init): Update.
2004
2005 2001-11-26  Richard Henderson  <rth@redhat.com>
2006
2007         * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
2008
2009 2001-11-26  DJ Delorie  <dj@redhat.com>
2010
2011         * expr.c (store_constructor): Actually use the value computed
2012         if WORD_REGISTER_OPERATIONS.
2013
2014 2001-11-26  Richard Henderson  <rth@redhat.com>
2015
2016         * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
2017         for CONSTRUCTOR.
2018
2019 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
2020
2021         * rs6000.c (output_mi_thunk): Handle minimal-toc and call
2022         correct function on AIX.
2023
2024 2001-11-26  Alexandre Oliva  <aoliva@redhat.com>
2025
2026         * toplev.c (process_options): Don't force
2027         flag_optimize_sibling_calls to zero just because exceptions are
2028         enabled.
2029
2030 Mon Nov 26 12:37:05 2001  Jeffrey A Law  (law@cygnus.com)
2031
2032         * df.h (transfer_function_sbitmap): Use PARAMS around argument
2033         list in function prototypes.
2034         (transfer_function_bitmap): Likewise.
2035
2036 2001-11-26  Loren J. Rittle  <ljrittle@acm.org>
2037
2038         * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
2039         * config/i386/netbsd-elf.h: Likewise.
2040
2041 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
2042
2043         * doc/trouble.texi: Remove outdated RS/6000 comments.
2044
2045 Mon Nov 26 13:49:41 CET 2001  Jan Hubicka  <jh@suse.cz>
2046
2047         * final.c (walk_alter_subreg): Fix return value.
2048
2049 Mon Nov 26 11:36:20 CET 2001  Jan Hubicka  <jh@suse.cz>
2050
2051         * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
2052         alter_subreg.
2053         * sparc.md (post-reload splitters): Do not call alter_subreg.
2054         * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
2055
2056 2001-11-25  Aldy Hernandez  <aldyh@redhat.com>
2057
2058         * regclass.c (choose_hard_reg_mode): Handle vector arguments.
2059
2060 2001-11-26  Alan Modra  <amodra@bigpond.net.au>
2061
2062         * final.c: (insn_lengths): Make it an int *, so that large jump
2063         tables don't overflow.
2064
2065 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
2066
2067         * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
2068         (format_types): Use it for scanf.
2069         (dollar_arguments_pointer_p): New.
2070         (init_dollar_format_checking): Store details of which arguments
2071         are pointers.
2072         (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
2073         (finish_dollar_format_checking): Take extra parameter
2074         pointer_gap_ok.  Treat unused arguments differently if
2075         pointer_gap_ok and the unused arguments are pointers.
2076         (check_format_info_main): Pass extra argument to
2077         finish_dollar_format_checking.
2078         * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
2079         unused arguments are present between used arguments with operand
2080         numbers.
2081
2082 2001-11-25  Daniel Berlin  <dan@cgsoftware.com>
2083
2084         * df.c: Add prototypes for hybrid_search_bitmap and
2085         hybrid_search_sbitmap.
2086         (hybrid_search_bitmap): New function.
2087         (hybrid_search_sbitmap): New function.
2088         (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
2089         (iterative_dataflow_bitmap): Ditto.
2090
2091 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2092
2093         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
2094         address computations.
2095
2096 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2097
2098         * config/m68hc11/m68hc11.c (d_register_operand): Must accept
2099         register b (low part of d).
2100
2101 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2102
2103         * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
2104         passed to mcount.
2105
2106 Sun Nov 25 06:22:09 2001  Douglas B. Rupp  <rupp@gnat.com>
2107
2108         * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
2109         * config/alpha/x-vms: New file, to compile the above.
2110         * config.gcc (alpha*-dec-vms*): Add x-vms.
2111
2112 2001-11-24  Hans-Peter Nilsson  <hp@axis.com>
2113
2114         * genextract.c (main): Set ro_loc for peepholes.
2115
2116 Sat Nov 24 17:04:10 2001  Douglas B. Rupp  <rupp@gnat.com>
2117
2118         * fix-header.c (main): Move inf_buffer termination and inf_limit
2119         calculation to after read.
2120
2121         * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
2122         (__UNIX_FOPEN): Define.
2123
2124 Sat Nov 24 16:11:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2125
2126         * function.c (assign_stack_temp_for_type): Clear alias set before
2127         setting new one.
2128
2129 2001-11-23  David Edelsohn  <edelsohn@gnu.org>
2130
2131         * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
2132         format.
2133         * rs6000.md (cmptf): Fix typo.
2134
2135 2001-11-23  Richard Sandiford  <rsandifo@redhat.com>
2136
2137         * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
2138         * varasm.c (output_constructor): Use assemble_integer rather
2139         than ASM_OUTPUT_BYTE.
2140
2141 2001-11-23  Andreas Jaeger  <aj@suse.de>
2142
2143         * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
2144         extension.
2145
2146 2001-11-23  Nick Clifton  <nickc@cambridge.redhat.com>
2147
2148         * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
2149         default definition.
2150         (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
2151         (MULTILIB_DEFAULTS): Remove previous definition.
2152
2153 2001-11-23  Neil Booth  <neil@daikokuya.demon.co.uk>
2154
2155         * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
2156         * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
2157
2158 2001-11-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2159
2160         * cris.h: Revert thinko in last patch.
2161
2162 2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
2163
2164         * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
2165         FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
2166         cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
2167         dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
2168         explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
2169         sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
2170
2171         * predict.c, reg-stack.c: Fix spelling errors.
2172
2173 2001-10-09  Andrew Haley  <aph@redhat.com>
2174
2175         * calls.c (check_sibcall_argument_overlap): Use slot_offset for
2176         start of stack slot.
2177
2178 2001-11-22  Graham Stott  <grahams@redhat.com>
2179
2180         * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
2181         replacement jump after original jump.
2182
2183         (verify_flow_info): Remove redundent initialisation.
2184         Handle reaching end of insn list before finding a BARRIER.
2185         Only issue one missing barrier diagnostic.
2186
2187 2001-11-22  Graham Stott  <grahams@redhat.com>
2188
2189         * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
2190
2191 Thu Nov 22 06:49:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2192
2193         * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
2194         insn actually does.
2195
2196 2001-11-22  Nick Clifton  <nickc@cambridge.redhat.com>
2197
2198         * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
2199         Fix typo -mm32rx=> -m32rx.
2200
2201         * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
2202         targets.
2203
2204         * config.gcc (xscale-coff): Add necessary header files to
2205         tm_file variable.
2206
2207 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
2208
2209         * rs6000.c (output_cbranch): Use $, not %$, in output template.
2210
2211 2001-11-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2212
2213         * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
2214         (lang_type_quals): Declare.
2215         (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
2216         retrieve language-specific qualifiers for a type node, instead of
2217         C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
2218         lang_dump_tree.
2219         * tree-dump.h: Rename from c-dump.h.
2220         * c-common.h (C_TYPE_QUALS): Removed.
2221         Move declarations for tree-dump.c interface to...
2222         * tree.h: ... here. Remove lang_dump_tree.
2223         * langhooks.h (struct lang_hooks_for_tree_dump): New.
2224         (struct lang_hooks): Add tree_dump hooks.
2225         * langhooks.c (lhd_tree_dump_dump_tree): New function.
2226         (lhd_tree_dump_type_quals): New function.
2227         * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
2228         Declare.
2229         (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
2230         * Makefile.in: Move tree-dump.o to language-independent back-end.
2231
2232 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2233
2234         * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
2235         * alpha.h (DBX_REGISTER_NUMBER): Likewise.
2236         * arc.h (DBX_REGISTER_NUMBER): Likewise.
2237         * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
2238         * avr.h (DBX_REGISTER_NUMBER): Likewise.
2239         * c4x.h (DBX_REGISTER_NUMBER): Likewise.
2240         * clipper.h (DBX_REGISTER_NUMBER): Likewise.
2241         * convex.h (DBX_REGISTER_NUMBER): Likewise.
2242         * cris.h (DBX_REGISTER_NUMBER): Likewise.
2243         * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
2244         * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
2245         * fr30.h (DBX_REGISTER_NUMBER): Likewise.
2246         * h8300.h (DBX_REGISTER_NUMBER): Likewise.
2247         * i370.h (DBX_REGISTER_NUMBER): Likewise.
2248         * i860.h (DBX_REGISTER_NUMBER): Likewise.
2249         * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
2250         * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
2251         * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
2252         * m32r.h (DBX_REGISTER_NUMBER): Likewise.
2253         * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
2254         * m88k.h (DBX_REGISTER_NUMBER): Likewise.
2255         * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
2256         * mcore.h (DBX_REGISTER_NUMBER): Likewise.
2257         * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
2258         * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
2259         * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
2260         * romp.h (DBX_REGISTER_NUMBER): Likewise.
2261         * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
2262         * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
2263         * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
2264         * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
2265         * v850.h (DBX_REGISTER_NUMBER): Likewise.
2266         * vax.h (DBX_REGISTER_NUMBER): Likewise.
2267         * we32k.h (DBX_REGISTER_NUMBER): Likewise.
2268
2269         * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
2270         * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
2271
2272 2001-11-21  H.J. Lu <hjl@gnu.org>
2273
2274         * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
2275
2276 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2277
2278         * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
2279         emit_cmp_and_jump_insns.
2280
2281         * stormy16.c (xstormy16_expand_builtin_va_arg,
2282         xstormy16_expand_casesi): Likewise.
2283
2284 Wed Nov 21 17:37:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2285
2286         * function.c (keep_stack_depressed): Major rework.
2287         (handle_epilogue_set, emit_equiv_load): New functions.
2288         (thread_prologue_and_epilogue_insns): keep_stack_depressed now
2289         has return value.
2290         * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
2291         * rtl.h (SET_IS_RETURN_P): New macro.
2292
2293         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
2294         and also support TREE_ADDRESSABLE.
2295         * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
2296
2297 2001-11-21  David Edelsohn  <edelsohn@gnu.org>
2298
2299         * rs6000.md (cmptf_internal1): Replace %$ with $.
2300
2301 Wed Nov 21 16:44:01 2001  Douglas B. Rupp  <rupp@gnat.com>
2302
2303         * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
2304         (read_include_file): Use STAT_SIZE_TOO_BIG.
2305
2306         * cppinit.c (INO_T_COPY): Define.
2307         (INO_T_EQ): Uppercase parameters.
2308         (append_include_chain): Use INO_T_COPY.
2309
2310 2001-11-21  Richard Sandiford  <rsandifo@redhat.com>
2311
2312         * cfg.c: Fix typos and formatting in the introductory comment.
2313
2314 Wed Nov 21 12:38:37 CET 2001  Jan Hubicka
2315
2316         * profile.c (compute_branch_probabilites):  Compute probabilities
2317         for entry/exit edges; estimate probabilities for zero counts.
2318
2319 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
2320
2321         * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
2322         to emit_library_call.
2323         * function.c (expand_main_function, expand_function_start,
2324         expand_function_end): Likewise.
2325         * profile.c (output_func_start_profiler): Likewise.
2326         * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
2327         second argument to emit_library_call.
2328         * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
2329         as second argument to emit_library_call.
2330         * calls.c (emit_library_call): Update fn_type description.
2331
2332 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
2333
2334         * c-decl.c (c_expand_deferred_function): Only call c_expand_body
2335         if fndecl is still DECL_INLINE and has DECL_RESULT.
2336
2337 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2338
2339         * clipper.c (clipper_movstr): Avoid uninitialized warning.
2340         * i960.c (is_mask, legitimize_address): Likewise.
2341         * m88k.c (m88k_expand_prologue): Likewise.
2342         * m88k.md: Likewise.
2343         * mcore.c (emit_new_cond_insn): Likewise.
2344         * stormy16.c (xstormy16_emit_cbranch): Likewise.
2345
2346 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
2347
2348         * config.gcc: Delete powerpcle-*-solaris2* stanza.
2349         * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
2350         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
2351         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2352         config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
2353         config/rs6000/t-ppcos: Expunge all references to Solaris.
2354
2355         * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
2356
2357         * config/rs6000/rs6000.md: Replace '%$' with '$' in all
2358         output templates.
2359         * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
2360         and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
2361
2362 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2363
2364         * sh.md: Avoid uninitialized warnings.
2365         * vax.c (vax_rtx_cost): Likewise.
2366
2367 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
2368
2369         * rs6000.c (direct_return): Check if we are saving altivec
2370         registers.
2371         (first_altivec_reg_to_save): New.
2372         Updated stack frame layout comments.
2373         (rs6000_stack_info): Calculate altivec register save size.
2374         Save link register if we saved some altivec registers.
2375         (rs6000_stack_info): Align save size to 16 if altivec abi or
2376         abi_darwin.
2377         (rs6000_stack_info): Calculate altivec register offsets.
2378         (rs6000_stack_info): Add altivec info to save_size.
2379         (debug_stack_info): Add altivec debug info.
2380         (rs6000_emit_prologue): Save altivec registers and vrsave.
2381         (compute_vrsave_mask): New.
2382         (altivec_expand_builtin): Remove unused variables.
2383         (rs6000_parse_abi_options): Add static qualifier.
2384         (rs6000_expand_builtin): Remove unused parameters.
2385         (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
2386         (altivec_init_builtins): Same.
2387         (is_altivec_return_reg): New.
2388         (vrsave_operation): New.
2389         (ALTIVEC_REG_BIT): New.
2390         (generate_set_vrsave): New.
2391
2392         * rs6000.md (get_vrsave): New.
2393         (set_vrsave): New.
2394         (*set_vrsave_internal): New.
2395
2396         * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
2397         altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
2398         altivec_padding_size, vrsave_mask.
2399         (TOTAL_ALTIVEC_REGS): New.
2400         (EPILOGUE_USES): Add VRSAVE_REGNO.
2401
2402 2001-11-20  Jeff Law <law@redhat.com>
2403
2404         * unroll.c (copy_loop_body): Update LABEL_NUSES for the
2405         exit label as necessary.
2406
2407 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
2408
2409         * reload1.c (elimination_effects): Use function_invariant_p
2410         instead of CONSTANT_P when considering register equivalences.
2411
2412 2001-11-20  David O'Brien  <obrien@FreeBSD.org>
2413
2414         * config.gcc: Add FreeBSD/PowerPC target.
2415         (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
2416         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
2417         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
2418         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
2419         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
2420         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
2421         freebsd-spec.h to tm_file.
2422         (rs6000-*-lynxos*): Add lynx.h to tm_file.
2423         * config/freebsd.h: Tidy up.
2424         (USING_CONFIG_FREEBSD): Define.
2425         (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
2426         FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
2427         FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
2428         (TARGET_HAS_F_SETLKW): Define.
2429         (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
2430         * config/freebsd-spec.h: New file.
2431         * config/rs6000/freebsd.h: New file.
2432         * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
2433         * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
2434         USING_SVR4_H to know when to turn on ELF support.
2435         * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
2436         define only if not already defined.
2437         Add FreeBSD support.
2438         * config/rs6000/aix.h (TARGET_VERSION): Define.
2439         * config/rs6000/beos.h: Likewise.
2440         * config/rs6000/darwin.h: Likewise.
2441         * config/rs6000/mach.h: Likewise.
2442         * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
2443         Don't include lynx.h directly.
2444
2445 2001-11-20  Graham Stott  <grahams@redhat.com>
2446
2447         * unwind-dw2-fde.c (__deregister_frame_info_bases):
2448         Fix lossage in last change return OB.
2449
2450 Tue Nov 20 11:56:12 2001  Douglas B. Rupp  <rupp@gnat.com>
2451
2452         * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
2453         Remove unneeded exit related macros.
2454
2455 2001-11-20  David Edelsohn  <edelsohn@gnu.org>
2456
2457         * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
2458
2459         * rs6000.c (rs6000_emit_move): Add TFmode case.
2460         * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
2461         LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
2462         LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
2463         * rs6000.h: ... to here.
2464         * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
2465         trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
2466         fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
2467
2468 Tue Nov 20 06:41:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2469
2470         * emit-rtl.c (get_mem_attrs): Fix typo.
2471
2472 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
2473
2474         * c-lang.c (finish_file): Backout 2001-11-16
2475         changes, instead set DECL_DEFER_OUTPUT for static inline functions
2476         before calling c_expand_deferred_function.
2477
2478 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
2479
2480         * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
2481         Don't register empty .eh_frame sections.
2482         (__deregister_frame_info_bases, __deregister_frame): Don't
2483         unregister them either.
2484
2485 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
2486
2487         * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
2488         (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
2489         * configure: Regenerate.
2490         * config.in: Add dummy definitions of new flags.
2491         * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
2492         * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
2493         * gcc.c (ASM_DEBUG_SPEC): New macro.
2494         (asm_debug): New static variable.
2495         (default_compilers): Add asm_debug when assembling from
2496         user input.
2497         (static_specs): Add asm_debug.
2498
2499 2001-11-20  Loren J. Rittle  <ljrittle@acm.org>
2500
2501         * config.gcc (*-*-freebsd*): Remove configuration block.
2502
2503 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
2504
2505         bootstrap/4422
2506         * configure.in: Setup ability to run ./stage[1234]/xgcc in
2507         fixinc *as if* it were a proper lang subdirectory.
2508         * configure: Rebuilt.
2509
2510 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
2511
2512         * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
2513
2514 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2515
2516         * 1750a.md: Don't use hex format for a const_int.
2517
2518 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
2519
2520         * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
2521
2522 2001-11-19  Zack Weinberg  <zack@codesourcery.com>
2523
2524         * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
2525         defined (prevents link errors when gettext isn't in the system
2526         library).
2527
2528 2001-11-19  DJ Delorie  <dj@redhat.com>
2529
2530         * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
2531         (validate_const_int): New.
2532         (read_rtx): Validate constant integers.
2533         * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
2534
2535 2001-11-19  Jakub Jelinek  <jakub@redhat.com>
2536
2537         * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
2538
2539 Mon Nov 19 16:57:44 2001  Douglas B. Rupp  <rupp@gnat.com>
2540
2541         * toplev.c (DUMPFILE_FORMAT): Define default.
2542         (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
2543         (close_dump_file, compile_file): Likewise.
2544         * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
2545         * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
2546
2547 2001-11-19  Jeff Law <law@redhat.com>
2548
2549         * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
2550         a nop-jump.
2551
2552 2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2553
2554         * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
2555         Don't fall off the base token run.
2556
2557 2001-11-19  Jason Wilkins <fenix@io.com>
2558
2559         * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
2560
2561 Mon Nov 19 15:13:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2562
2563         * tree.def (VIEW_CONVERT_EXPR): New tree code.
2564         * tree.h (handled_component_p): New declaration.
2565         * alias.c (handled_component_p): Move function from here ...
2566         * expr.c (handled_component_p): ... to here and non longer static.
2567         (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
2568         (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
2569         (get_inner_reference): Handle VIEW_CONVERT_EXPR.
2570         (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
2571         (expand_expr, case VIEW_CONVERT_EXPR): New case.
2572         (expand_expr, cse ADDR_EXPR): No need to copy if already
2573         BIGGEST_ALIGNMENT.
2574         * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
2575         * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
2576         (output_constant): Handle VIEW_CONVERT_EXPR.
2577         * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
2578         Add new case for VIEW_CONVERT_EXPR.
2579
2580 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2581
2582         * a29k/unix.h (ASM_FILE_START): Const-ify.
2583         * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
2584         * i386/isc.h (ASM_FILE_START): Const-ify.
2585         * i386/sun386.h (ASM_FILE_START): Likewise.
2586         * m32r.md: Likewise.
2587         * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
2588         * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
2589         * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
2590         * mn10200.md: Initialize variable.
2591
2592 Mon Nov 19 18:06:21 CET 2001  Jan Hubicka  <jh@suse.cz>
2593
2594         * gcse.c (try_replace_reg): Copy RTX before creating note.
2595
2596         * df.h (df_ref_flags): New uenum.
2597         (DF_REF_FLAGS): New macro.
2598         (struct ref): Add field "flags".
2599         * df.c (HANDLE_SUBREG): Remove.
2600         (df_ref_create): Likewise; set flags field of ref.
2601         (df_def_record_1): Strip down read_write subreg; remove
2602         commented out code; set READ_WRITE flag.
2603         (read_modify_subreg_p): New static function.
2604         (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
2605         new argument "flags".
2606         (df_insn_refs_record): Update call of df_uses_record.
2607         (df_insn_modify): Avoid #if 0 around comment.
2608         (df_dump): Dump the read/write flag.
2609
2610         * predict.c (propagate_freq): Make cyclic_probability and frequency
2611         volatile
2612
2613         * i386.c (ix86_cc_mode): Accept USE.
2614
2615         * cfgrtl.c (purge_dead_edges):  Cleanup EDGE_ABNORMAL flag if computed
2616         jump is turned into simplejump.
2617
2618 2001-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
2619
2620         * doc/fragments.texi, doc/trouble.texi: Remove links to old
2621         installation chapter.
2622         * doc/gcc.texi: Don't claim that this manual documents
2623         installation.  Mark Installation menu entry as being out of date.
2624
2625 Mon Nov 19 07:21:35 2001  Douglas B. Rupp  <rupp@gnat.com>
2626
2627         * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
2628         (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
2629         * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
2630
2631 2001-11-19  Jason Merrill  <jason@redhat.com>
2632
2633         * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
2634         cur_token, not after.
2635
2636         * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
2637         Lose ASM_OUTPUT_CONSTRUCTOR.
2638         * system.h: Poison it and INT_ASM_OP.
2639         * c-lang.c (finish_file): Don't check for it.
2640         * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
2641
2642 2001-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2643
2644         * mmix.c (mmix_cc1_ignored_option): Const-ify.
2645         (mmix_init_machine_status): Make static to match declaration.
2646         (mmix_unique_section): Const-ify.
2647         (mmix_output_quoted_string): Avoid automatic aggregate
2648         initialization.
2649         (mmix_output_register_setting): Likewise.
2650         (mmix_output_shiftvalue_op_from_str): Likewise.
2651
2652         * mmix.h (mmix_cc1_ignored_option): Const-ify.
2653         (ASM_OUTPUT_BYTE): Fix format specifier warning.
2654         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2655
2656 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2657
2658         PR c/4448
2659         * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
2660         name __objc_thread_exit_status so that it matches the
2661         variable defined in objc/thr.h.
2662
2663 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2664
2665         PR bootstrap/4020
2666         * mklibgcc.in: Add missing semi-colons.
2667         * Makefile.in: Same.
2668
2669 Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2670
2671         * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
2672         after re-laying out decl in incomplete case.
2673         (expand_expr, case ADDR_EXPR): Fix typo in copy case.
2674
2675 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
2676
2677         * doc/install-old.texi: Move some sections out to ...
2678         * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
2679         ... here.  New files.  Make into chapters rather than sections.
2680         * doc/gcc.texi: Include the new files and add menu entries for
2681         them.
2682         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2683
2684 Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2685
2686         * tree.h (TYPE_ALIGN_OK): New flag.
2687         * emit-rtl.c (set_mem_attributes): Handle it.
2688         * expr.c (emit_single_push_insn): Only set to alias set 0 if
2689         doing sibcall optimization.
2690         (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
2691         when make temporary.
2692         (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
2693         (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
2694
2695         * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
2696
2697 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
2698
2699         * c-decl.c (c_decode_option): Give deprecation warning for
2700         -traditional.
2701         * doc/invoke.texi (-traditional): Note that this option is
2702         deprecated.
2703
2704 Sun Nov 18 07:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
2705
2706         * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
2707         arg to HOST_WIDE_INT, not long.
2708
2709         * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
2710         (HAS_INIT_SECTION): Define.
2711         (REAL_ARITHMETIC): Don't undefine.
2712
2713 2001-11-18  Egor Duda  <deo@logos-m.ru>
2714
2715         * config/i386/cygwin.h: Strip leading '*' from name, if any.
2716
2717 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2718
2719         * Makefile.in (c-parse.o, c-common.o): Update dependencies.
2720         * c-common.c: Include diagnostic.h.
2721         (c_common_finish): New.
2722         * c-common.h (c_common_finish): New.
2723         * c-lang.c (LANG_HOOKS_FINISH): Override.
2724         * c-parse.in: Don't include diagnostic.h.
2725         (finish_parse): Remove.
2726         * langhooks.h: Update comments.
2727         * toplev.c (lang_dependent_init): New prototype.
2728         (finalize): New.
2729         (compile_file): Split cleanup code out to finalize.
2730         (lang_dependent_init): Stop if lang_hooks.init fails.
2731         (toplev_main): Update.
2732         * tree.h (finish_parse): Remove.
2733 objc:
2734         * objc-act.c (LANG_HOOKS_FINISH): Override.
2735
2736 Sat Nov 17 23:30:44 2001  Douglas B. Rupp  <rupp@gnat.com>
2737
2738         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
2739         * config/alpha/vms_tramp.asm: New file.
2740         * config/alpha/vms-tramp.asm: Removed.
2741
2742 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
2743
2744         * c-common.c (struct disabled_builtin, disabled_builtins,
2745         disable_builtin_function, builtin_function_disabled_p): New.
2746         (builtin_function_2): Check for disabled built-in functions.
2747         * c-common.h (disable_builtin_function): Declare.
2748         * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
2749         * doc/invoke.texi: Document -fno-builtin-FUNCTION.
2750         * doc/extend.texi: Mention -fno-builtin-FUNCTION.
2751
2752 2001-11-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2753
2754         PR target/4606
2755         * config.gcc: Remove reference to va-clipper.h.
2756
2757 2001-11-17  Stan Shebs  <shebs@apple.com>
2758
2759         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
2760         AltiVec-related bitfields.
2761
2762 Sat Nov 17 12:06:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2763
2764         * except.c (enum eh_region_type): Add ERT_UNKNOWN.
2765         (mark_eh_region, case ERT_UKNONW): New case.
2766
2767 2001-11-17  Christopher Faylor  <cgf@redhat.com>
2768             Corinna Vinschen  <vinschen@redhat.com>
2769
2770         * config/i386/cygwin.h: Search target specific include directory for
2771         w32api stuff, if appropriate.
2772
2773 Sat Nov 17 08:20:44 2001  Douglas Rupp  <rupp@gnat.com>
2774
2775         * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
2776
2777 2001-11-16  Aldy Hernandez  <aldyh@redhat.com>
2778
2779         * config/rs6000/rs6000.md: Change all ldvx to lvx.
2780
2781 2001-11-16  Alexandre Oliva  <aoliva@redhat.com>
2782
2783         * gensupport.c (process_rtx): Don't assume filename is the first
2784         argument of any rtl.
2785
2786 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2787
2788         * vax-protos.h (reg_was_0_p): New prototype.
2789         * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
2790         * vax.c (follows_p, reg_was_0_p): New functions.
2791
2792 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2793
2794         * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
2795         (casesi1): Likewise.  Define new pattern which arises by simplification
2796         when operand 1 is a constant int.  Correct pattern which arises by
2797         simplification when operand 1 is zero.
2798
2799 2001-11-16  David O'Brien  <obrien@FreeBSD.org>
2800
2801         * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
2802         arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
2803         arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
2804         arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
2805         arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
2806         arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
2807         xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
2808         * config/arm/aof.h: Don't include arm.h.
2809         * config/arm/aout.h: Likewise.
2810         * config/arm/coff.h: Don't include semi.h and aout.h.
2811         * config/arm/elf.h: Don't include aout.h.
2812         * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
2813         (TARGET_VERSION): Undef before defining.
2814         (ARM_OS_NAME): Likewise
2815         (TARGET_DEFAULT): Likewise
2816         (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
2817         * config/arm/pe.h: Don't include arm/coff.h.
2818         * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
2819         SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
2820         * config/arm/riscix1-1.h: Likewise.
2821         * config/arm/rix-gas.h: Don't include riscix.h.
2822         (DBX_CONTIN_LENGTH): Undef before defining.
2823         * config/arm/semi.h: Don't include aout.h.
2824         * config/arm/semiaof.h: Don't include aof.h.
2825         * config/arm/strongarm-coff.h: Don't include coff.h.
2826         * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
2827         * config/arm/vxarm.h: Don't include arm/coff.h.
2828         * config/arm/xscale-coff.h: Don't include coff.h.
2829
2830 Fri Nov 16 15:22:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2831
2832         * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
2833         emit_cmp_insn.
2834
2835 2001-11-16  Andreas Jaeger  <aj@suse.de>
2836
2837         * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
2838         to ....
2839         (fixup_fallthru_exit_predecessor): ... this.
2840         Change callers and prototype.
2841
2842 2001-11-16  Bernd Schmidt  <bernds@redhat.com>
2843
2844         * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
2845         hand; don't use gen_setcc_2.
2846         (ix86_expand_builtin): Fix pshufw.
2847         * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
2848         case UNORDERED to emit the right assembler instruction.
2849         (mmx_pshufw): Lose operand 2.
2850         (cvtsi2ss): Fix representation.
2851         From Graham Stott:
2852         (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
2853
2854 2001-11-16  Joseph S. Myers  <jsm28@cam.ac.uk>
2855
2856         * doc/include/linux-and-gnu.texi: Remove.
2857         * doc/gnu.texi: New.
2858         * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
2859         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2860
2861 2001-11-16  Kazu Hirata  <kazu@hxi.com>
2862
2863         * config/a29k/a29k.c: Fix comment formatting.
2864         * config/a29k/a29k.h: Likewise.
2865         * config/arc/arc.c: Likewise.
2866         * config/arc/arc.h: Likewise.
2867         * config/vax/vax.c: Likewise.
2868         * config/vax/vax.h: Likewise.
2869         * config/we32k/we32k.c: Likewise.
2870         * config/we32k/we32k.h: Likewise.
2871
2872 2001-11-16  Jeff Law  <law@redhat.com>
2873
2874         * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
2875         creating a new jump insn.
2876
2877 Fri Nov 13 09:06:25 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2878
2879         * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
2880         copy misaligned data.
2881         * varasm.c (assemble_variable): Set alignment into MEM when changed.
2882
2883 2001-11-16  Graham Stott  <grahams@redhat.com>
2884
2885         * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
2886         OPALIGN type.
2887
2888 2001-11-16  Olivier Hainque <hainque@act-europe.fr>
2889
2890         * except.c: Support for catching a list of types with a single handler
2891         (struct eh_region): Change type and filter to lists for catch regions.
2892         (mark_eh_region): Mark the filter list for GC also.
2893         (expand_start_catch): Always build a list if argument not NULL and
2894         register each type of the list through add_type_for_runtime.
2895         (duplicate_eh_region_1): Change type into type_list for catch regions.
2896         (assign_filter_values): Assign a filter to each type associated with a
2897         catch region. Assign filter for NULL types in a unique entry in the
2898         filter list.
2899         (build_post_landing_pads): Emit compare and jump for each filter of
2900         the list associated with a catch region.
2901         (reachable_next_level): When the type thrown is known, stop the search
2902         as soon as one type within a catch list matches. Also, a handler is
2903         potentially reachable only if at least one of the types it catches
2904         has not been previously caught.
2905         (collect_one_action_chain): Retrieve the filter for a NULL type list
2906         from the first filter list entry. For non NULL type lists, add an
2907         action record for every filter assigned.
2908         * except.h: Reflect changes in comment before expand_start_catch.
2909
2910 Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2911
2912         * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
2913         BLKmode.
2914
2915 Fri Nov 16 06:37:05 2001  Andreas Tobler  <a.tobler@schweiz.ch>
2916
2917         * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
2918
2919 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
2920
2921         * c-lang.c (finish_file): Don't emit static inline functions if
2922         they weren't referenced.
2923
2924 2001-11-15  Stan Shebs  <shebs@apple.com>
2925
2926         * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
2927
2928 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2929
2930         * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
2931         call.
2932         * config/i386/i386.md: Likewise.
2933
2934 Thu Nov 15 21:40:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2935
2936         * timevar.c (rtl.h): Include so get fancy abort.
2937
2938 2001-11-15  Dale Johannesen  <dalej@apple.com>
2939
2940         * config/darwin.h (SELECT_RTX_SECTION):  Force address
2941         initializers into 'const' section
2942         * config/rs6000/rs6000.c (rs6000_emit_cmove):  Fix mode of
2943         if_then_else to match result, not operands
2944
2945 Thu Nov 15 17:57:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2946
2947         * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
2948         * emit-rtl.c (change_address): Fix typo in default alignment.
2949         (adjust_address_1): Use mode of NEW, not MODE, when setting size.
2950         * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
2951         * rtl.h (REGNO_PTR_FRAME_P): New macro.
2952
2953         * expr.c (store_field): Pass tree instead of max size; callers changed.
2954         Change handling of alignment.
2955         Only copy to_rtx if is TARGET.
2956         (expand_expr_unaligned): Delete; callers now use expand_expr.
2957         (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
2958         (expand_assignment): Change handling of alignment.
2959         Only copy to_rtx if was original.
2960         (get_inner_reference): No longer return alginment; callers changed.
2961         (expand_expr, case COMPONENT_REF): Change handling of alignment.
2962         (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
2963         (compare_from_rtx): Delete ALIGN parm; all callers changed.
2964         (do_compare_rtx_and_jump): Likewise.
2965         * expr.h: Reflect above changes.
2966         * tree.h: Likewise.
2967         * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
2968         to get_inner_reference.
2969         * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
2970         * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
2971         * optabs.c: Likewise.
2972         (prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
2973         (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
2974         * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
2975         compare_rtx_and_jump, and emit_cmp_jump_insns.
2976         * fold-const.c: Remove PALIGN in calls to get_inner_reference.
2977         * function.c (assign_stack_temp_for_type): No longer static.
2978         * optabs.h (emit_cmp_insn): Remove ALIGN parm.
2979         (prepare_cmp_insn): Delete declaration.
2980         * rtl.h (assign_stack_temp_for_type): Add declaration.
2981         * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
2982         * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
2983         * config/i386/i386.c,config/mips/mips.c: Likewise.
2984         * config/i860/i860.c, config/ia64/ia64.c: Likewise.
2985         * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
2986
2987 2001-11-15  Stan Shebs  <shebs@apple.com>
2988
2989         * config/rs6000/rs6000.h: Fix a comment typo.
2990         (RTX_COSTS): Sort processor versions better.
2991
2992 2001-11-15  Kazu Hirata  <kazu@hxi.com>
2993
2994         * config/h8300/h8300.md: Fix insn length of bit insns.
2995
2996 2001-11-15  Jason Merrill  <jason@redhat.com>
2997
2998         * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
2999         DIEs if there were errors in the source.
3000
3001         * config/alpha/alpha-interix.h, config/alpha/elf.h,
3002         config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
3003         config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
3004         config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
3005         config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
3006         config/elfos.h, config/lynx.h, config/netware.h,
3007         config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
3008         config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
3009         uses to use ASM_LONG.
3010
3011 2001-11-15  Alan Matsuoka  <alanm@redhat.com>
3012
3013         * gensupport.c  process_include : Change call to alloca to
3014         xmalloc.
3015
3016 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
3017
3018         * config/rs6000/rs6000.md: Use spaces instead of tabs in output
3019         templates.
3020
3021 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3022
3023         * final.c (alter_subreg): If simplify_subreg can't do anything,
3024         handle REG ourselves and abort for others.
3025
3026 2001-11-15  Richard Hodson  <hodsonr@dionecorp.com>
3027
3028         * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
3029         routines.
3030
3031 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3032
3033         * fix-header.c (read_scan_file): Update.
3034
3035 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3036
3037         * toplev.c (toplev_main): Don't start timing until after
3038         command-line options are parsed.
3039
3040 2001-11-15  Andreas Schwab  <schwab@suse.de>
3041
3042         * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
3043         makefile frag, not host makefile frag.
3044         (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
3045         (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
3046         used.
3047         (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
3048         * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
3049         * config/m88k/t-dgux (STMP_FIXPROTO): Define.
3050         * config/i386/t-cygwin (STMP_FIXPROTO): Define.
3051         * config/i386/t-dgux (STMP_FIXPROTO): Define.
3052         * config/x-interix: Don't define STMP_FIXPROTO and
3053         FIXPROTO_DEFINES.
3054         * config/t-interix: New file, define STMP_FIXPROTO.
3055         * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
3056         * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
3057         * config/t-svr4 (FIXPROTO_DEFINES): Define.
3058         * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
3059         * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
3060         * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
3061         * config/m68k/t-hp3200: Renamed from x-hp3200.
3062         * config/i370/t-oe: Renamed from x-oe.
3063         * config/mips/t-iris: Renamed from x-iris.
3064         * config/pa/t-bsd: Renamed from x-pa.
3065         * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
3066         * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
3067         config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
3068         config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
3069         config/rs6000/x-cygwin: Remove files.
3070
3071         * configure.in: Check for target objdump and use that in eh_frame
3072         optimization test.
3073         * configure: Regenerated.
3074
3075 2001-11-15  Jakub Jelinek  <jakub@redhat.com>
3076
3077         * jump.c (squeeze_notes): Return true if no real insns were found.
3078         * rtl.h (squeeze_notes): Adjust prototype.
3079         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
3080         squeeze_notes finds no real instructions, abort.
3081         (merge_blocks_move_successor_nojumps): Likewise.
3082         * loop.c (find_and_verify_loops): Likewise.
3083         * stmt.c (expand_end_case): Likewise.
3084         * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
3085         find any real instructions.
3086
3087         * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
3088
3089         * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
3090         conditional jump, request updating life into for the block
3091         containing it.  Fix a typo which prevented life info update.
3092         Clear blocks bitmap before using it.
3093
3094 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3095
3096         * c-common.c: Include c-lex.h.
3097         (c_common_lang_init): Change prototype.  Call init_c_lex and
3098         init_pragma from here.
3099         * c-common.h (c_common_lang_init): Change prototype.
3100         * c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
3101         * c-lang.c (c_init): Change prototype.  Update.
3102         (c_init_options): Update.
3103         * c-lex.c (cpp_filename): Remove.
3104         (init_c_lex): Update.  Read the main file, and get the original
3105         file name.
3106         (yyparse): Finish the command line options.
3107         * c-parse.in (c_parse_init): Call init_reswords here.
3108         (init_parse): Remove.
3109         * c-tree.h (c_init_decl_processing): New.
3110         * cpphash.c (_cpp_init_hashtable): After initializing the hash
3111         table, populate it.
3112         * cppinit.c (read_original_filename, cpp_finish_options): New.
3113         (cpp_create_reader): New prototype. Defer hash table initialization.
3114         (cpp_start_read): Rename cpp_read_main_file.  Initialize the
3115         hash table.  Get the original filename.
3116         * cpplib.h (cpp_create_reader): Update.
3117         (cpp_start_read): Remove.
3118         (cpp_read_main_file, cpp_finish_options): New.
3119         * cppmain.c (main, do_preprocessing): Update.
3120         * langhooks.h (struct langhooks): Update init prototype.
3121         * toplev.c (general_init, parse_options_and_default_flags,
3122         process_options, lang_indpendent_init, lang_dependent_init,
3123         init_asm_output): New; perform the bulk of initialization.
3124         (compile_file): Move most of initialization to above functions.
3125         (debug_hooks): Initialize statically.
3126         (set_Wunused): Relocate.
3127         (toplev_main): Move most of initialization to other init functions.
3128         Have a clear logic flow.
3129         * tree.h (init_parse, init_decl_processing): Remove.
3130 objc:
3131         * objc-act.c (objc_init): Update prototype, combine with old
3132         init_parse.
3133         (objc_init_options): Update.
3134
3135
3136 2001-11-15  Andreas Jaeger  <aj@suse.de>
3137
3138         * cfgrtl.c (purge_all_dead_edges): Use int as argument for
3139         portability.
3140         * basic-block.h: Adjust prototype.
3141
3142 2001-11-15  Kazu Hirata  <kazu@hxi.com>
3143
3144         * config/rs6000/aix31.h: Fix comment formatting.
3145         * config/rs6000/beos.h: Likewise.
3146         * config/rs6000/darwin.h: Likewise.
3147         * config/rs6000/eabi.asm: Likewise.
3148         * config/rs6000/linux.h: Likewise.
3149         * config/rs6000/linux64.h: Likewise.
3150         * config/rs6000/lynx.h: Likewise.
3151         * config/rs6000/netbsd.h: Likewise.
3152         * config/rs6000/rs6000.c: Likewise.
3153         * config/rs6000/rs6000.h: Likewise.
3154         * config/rs6000/rs6000.md: Likewise.
3155         * config/rs6000/sol2.h: Likewise.
3156         * config/rs6000/tramp.asm: Likewise.
3157         * config/rs6000/xcoff.h: Likewise.
3158         * config/rs6000/xm-beos.h: Likewise.
3159
3160 2001-11-14  Alan Matsuoka  <alanm@redhat.com>
3161
3162         * rtl.def (INCLUDE) : Define.
3163         * gensupport.c  (init_include_reader, process_include,
3164         save_string) :  New functions to implement an include facility
3165         in .md files.
3166         * gensupport.h : Add prototype for init_md_reader_args.
3167         * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
3168         genextract.c genflags.c genopinit.c genoutput.c
3169         genpeep.c genrecog.c: Change call to init_md_reader to
3170         init_md_reader_args.
3171         * md.texi: Document (include "path") and -I directives for RTL
3172         generation tools.
3173
3174 2001-11-14  DJ Delorie  <dj@redhat.com>
3175
3176         * integrate.c (get_hard_reg_initial_reg): New.
3177         * integrate.h (get_hard_reg_initial_reg): Prototype.
3178         * local-alloc.c (block_alloc): Don't tie pseudos that
3179         represent call-saved hard regs' initial values.
3180
3181 2001-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3182
3183         * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
3184         recursion.
3185
3186 2001-11-14  Roger Sayle <roger@eyesopen.com>
3187
3188         * fold-const.c (fold): Optimize strlen comparisons against zero.
3189
3190 2001-11-14  David O'Brien  <obrien@FreeBSD.org>
3191
3192         * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
3193         sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
3194         sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
3195         sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
3196         sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
3197         sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
3198         sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
3199         Include various CPU headers via tm_file.  a.out based platforms now
3200         properly include sparc/aout.h.  sol2.h usage now implies including
3201         elfos.h, svr4.h, and sparc/sysv4.h.
3202         * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
3203         Also define to '1'.
3204         * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
3205         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
3206         DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
3207         Remove.  They are a.out specific and belong in sparc/aout.h.
3208         * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
3209         ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
3210         DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
3211         sparc/sparc.h.
3212         * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
3213         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
3214         Moved here from sparc/sparc.h.
3215         * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
3216         defining.
3217         * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
3218         * config/sparc/lynx.h:  Don't include lynx.h.
3219         (SELECT_SECTION): Do not undef.
3220         * config/sparc/openbsd.h: Don't include sparc/sparc.h.
3221         * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
3222         and sparc/sysv4.h.
3223         * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
3224         * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
3225         sparc/aout.h now.
3226         * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
3227         Don't undef, there is no need.
3228         * config/sparc/splet.h (CPP_PREDEFINES): Define.
3229         * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
3230         * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
3231         Don't include sparc/sparc.h.
3232         * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
3233         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
3234         DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
3235         elfos.h and svr4.h.
3236         (TARGET_VERSION): Define.
3237         * config/sparc/vxsim.h (TARGET_VERSION): Define.
3238
3239 Wed Nov 14 19:46:08 CET 2001  Jan Hubicka  <jh@suse.cz>
3240
3241         * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
3242         (cfg_layout_finalize): Use it.
3243         * bb-reorder.c (HAVE_epilogue): Remove.
3244         (make_reorder_chain): Do not care special placement of
3245         last basic block.
3246
3247         * predict.c (expected_value_to_br_prob): Delete the note
3248         once transformed.
3249
3250         * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
3251         measure integration time separately.
3252
3253 Wed Nov 14 12:30:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3254
3255         * function.c (struct temp_slot): ALIGN now unsigned.
3256
3257 2001-11-14  Kazu Hirata  <kazu@hxi.com>
3258
3259         * config/dsp16xx/dsp16xx.c: Fix comment formatting.
3260         * config/dsp16xx/dsp16xx.h: Likewise.
3261         * config/dsp16xx/dsp16xx.md: Likewise.
3262
3263 2001-11-14  Kazu Hirata  <kazu@hxi.com>
3264
3265         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
3266         that deals with 7-bit shifts in HImode.
3267
3268 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
3269
3270         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
3271         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
3272         (final_scan_insn): Update call of alter_subreg.
3273         (cleanup_subreg_operands): Likewise.
3274         (alter_subreg): Rewrite using simplify_subreg.
3275         (output_address, output_operand): Update call of alter_subreg.
3276         * output.h (alter_subreg): Update prototype.
3277         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
3278         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
3279         * Makefile.in (final.o): Add dependency on expr.h
3280
3281 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3282
3283         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
3284
3285 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
3286
3287         * doc/install.texi (sparc-*-linux*): Mention requirements for
3288         binutils and glibc.
3289
3290 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
3291
3292         * Makefile.in (POD2MAN): Don't include --section=1.
3293         (manext): Rename to man1ext.  All users changed.
3294         (man7ext): New.
3295         (man7dir): New.
3296         (generated-manpages): Also depend on $(docdir)/gfdl.7,
3297         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
3298         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
3299         --section=1 in calls to $(POD2MAN).
3300         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
3301         (maintainer-clean, install, uninstall): Handle the new man pages.
3302         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
3303         (installdirs): Create man7dir.
3304         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
3305         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
3306         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
3307         the SEE ALSO man page section.
3308         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
3309         and fsf-funding(7) in the SEE ALSO man page section.
3310         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
3311         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
3312         * doc/include/fdl.texi, doc/include/funding.texi,
3313         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
3314         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
3315
3316 2001-11-13  Richard Henderson  <rth@redhat.com>
3317
3318         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
3319         as appropriate for the artificial decl.
3320
3321 2001-11-13  Richard Henderson  <rth@redhat.com>
3322
3323         * loop.c (combine_movables): Turn off combination until
3324         move_movables validation bugs are fixed.
3325
3326 2001-11-13  DJ Delorie  <dj@redhat.com>
3327
3328         * config.gcc (powerpc|rs6000): Set default cpp options based
3329         on --with-cpu settings.
3330         * config/rs6000/softfloat.h: New.
3331
3332 2001-11-13  Kazu Hirata  <kazu@hxi.com>
3333
3334         * config/h8300/h8300.c (shift_alg_si): Use special code for
3335         25-bit shifts on H8/S.
3336         (get_shift_alg): Generate special code for 25-bit shifts on
3337         H8/S.
3338
3339 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
3340
3341         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
3342         (adjust_automodify_address_1): New.
3343         * expr.h (adjust_address, adjust_address_nv): Adjust.
3344         (adjust_automodify_address, adjust_automodify_address_nv): Define.
3345         (adjust_address_1): Update prototype.
3346         (adjust_automodify_address_1): Add prototype.
3347         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
3348         (store_by_pieces_2): Likewise.
3349
3350 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3351
3352         * Makefile.in (explow.o): Now depends on ggc.h.
3353         * explow.c (ggc.h): Include.
3354         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
3355
3356         * Makefile.in (expr.o): Depends on insn-attr.h.
3357         * expr.c (insn-attr.h): New include.
3358         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
3359         of MEM.
3360         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
3361         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
3362         clean up related usage in ADDR_EXPR.
3363         (expand_expr_unaligned): Likewise.
3364
3365         * emit-rtl.c (change_address): Fix typo in alias setting.
3366
3367 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3368
3369         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
3370
3371 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3372
3373         PR bootstrap/3451
3374         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
3375         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
3376
3377 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
3378
3379         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
3380         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
3381         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
3382         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
3383         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
3384         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
3385         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
3386         sparc64-*-linux*):  Include various CPU headers via tm_file.
3387         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
3388         (SELECT_SECTION): Likewise.
3389         (SELECT_RTX_SECTION): Likewise.
3390         * config/sparc/sparc_bi.h: New file.
3391         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
3392         * config/sparc/linux-aout.h: Likewise.
3393         * config/sparc/linux.h: Don't include sparc/sysv4.h.
3394         * config/sparc/linux64.h: Likewise.
3395         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
3396         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
3397         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
3398         and dbxcoff.h
3399         (ASM_OUTPUT_IDENT): Do not #undef.
3400         (SELECT_SECTION): Likewise.
3401         (SELECT_RTX_SECTION): Likewise.
3402         * config/sparc/liteelf.h: Don't include gofast.h.
3403         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
3404         * config/sparc/lynx.h: Don't include sparc/sparc.h.
3405         * config/sparc/pbd.h: Likewise.
3406         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
3407         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
3408         * config/sparc/rtemself.h: Don't include rtems.h.
3409         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
3410         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
3411         sparc_bi.h instead.
3412         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
3413         * config/sparc/sol2.h: Include sparc/sparc.h directly.
3414         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
3415         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
3416         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
3417         * config/sparc/sp86x-elf.h: Don't include gofast.h.
3418         * config/sparc/splet.h: Don't include sparc/aout.h.
3419         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
3420         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
3421         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
3422         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
3423         * config/sparc/vxsparc64.h: Don't include gofast.h.
3424         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
3425
3426 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
3427
3428         * doc/standards.texi: Mention C99 TC1.
3429
3430 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3431
3432         * mips-protos.h (mips_output_conditional_branch): Const-ify.
3433         * mips.c (mips_output_conditional_branch): Likewise.
3434
3435 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3436
3437         * config/h8300/h8300.c (shift_alg_si): Use special code for
3438         15-bit logical shifts and 31-bit logical shifts.
3439         (get_shift_alg): Generate special code for 15-bit and 31-bit
3440         logical shifts.
3441
3442 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3443
3444         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
3445         doing 6-bit logical shifts on H8/S.
3446         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
3447         (get_shift_alg): Generate special code for 21-bit shifts on
3448         H8/S.
3449
3450 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3451
3452         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
3453         label.
3454
3455 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3456
3457         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
3458         if both size and offset known.
3459
3460 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
3461
3462         * config/ia64/freebsd.h: Fix misspelling.
3463
3464 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
3465
3466         * doc/gcc.texi: Move several chapters out to ...
3467         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
3468         doc/include/linux-and-gnu.texi, doc/interface.texi,
3469         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
3470         ... here.  New files.
3471         * doc/gcc.texi, doc/contrib.texi: Move section headings into
3472         contrib.texi.
3473         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
3474
3475 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3476
3477         * config/alpha/alpha-interix.h: Fix comment formatting.
3478         * config/alpha/alpha.c: Likewise.
3479         * config/alpha/alpha.h: Likewise.
3480         * config/alpha/alpha32.h: Likewise.
3481         * config/alpha/freebsd.h: Likewise.
3482         * config/alpha/unicosmk.h: Likewise.
3483         * config/alpha/vms.h: Likewise.
3484
3485 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3486
3487         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
3488
3489 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
3490
3491         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
3492         numbers.
3493
3494 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3495
3496         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
3497         from type.
3498         (replace_equiv_address): Call update_temp_slot_address.
3499
3500         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
3501
3502         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
3503
3504 2001-11-12  Kazu Hirata  <kazu@hxi.com>
3505
3506         * config/h8300/h8300.c (shift_alg_qi): New.
3507         (shift_alg_hi): Likewise.
3508         (shift_alg_si): Likewise.
3509         (get_shift_alg): Change the type of count to unsigned int.
3510         Use the tables.
3511
3512 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
3513
3514         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
3515         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
3516         to decide whether to defer a function.
3517         (finish_function): Adjust.
3518         (c_expand_deferred_function): New function.
3519         * c-lang.c (deferred_fns): New variable.
3520         (c_init): Initialize it, and mark it as a root.
3521         (defer_fn): New function.
3522         (finish_file): Expand all deferred functions.
3523         * c-tree.h (defer_fn): Declare.
3524         (c_expand_deferred_function): Likewise.
3525         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
3526         * objc-act.c (deferred_fns): New variable.
3527         (objc_init): Initialize it, and mark it as a root.
3528         (defer_fn): New function.
3529         (finish_file): Expand all deferred functions.
3530
3531 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3532
3533         * alpha.c (unicosmk_special_name): Prototype.
3534         (unicosmk_ssib_name): Delete unused variable.
3535         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
3536         * alpha/vms.h (PREFIX): Undef before defining.
3537         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
3538         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
3539         controlling usage.  Const-ify.
3540         (alias_number): Delete unused variable.
3541         * m32r/m32r.c (m32r_sched_init): Add missing argument.
3542         (m32r_expand_block_move): Fix uninitialized warnings.
3543         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
3544         always true' warnings.
3545         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
3546         * sh/sh.c: Include "integrate.h".
3547         (output_far_jump): Fix uninitialized warning.
3548         * final.c (shorten_branches): Avoid automatic aggregate
3549         initialization.
3550         * integrate.c (subst_constants): Likewise.
3551
3552 2001-11-11  Kazu Hirata  <kazu@hxi.com>
3553
3554         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
3555         (get_shift_alg): Remove redundant code.
3556
3557 2001-11-11  Kazu Hirata  <kazu@hxi.com>
3558
3559         * config/pa/milli64.S: Fix comment formatting.
3560         * config/pa/pa-64.h: Likewise.
3561         * config/pa/pa-linux.h: Likewise.
3562         * config/pa/pa-protos.h: Likewise.
3563         * config/pa/pa.c: Likewise.
3564         * config/pa/pa.h: Likewise.
3565         * config/pa/pa32-linux.h: Likewise.
3566         * config/pa/pa32-regs.h: Likewise.
3567         * config/pa/pa64-hpux.h: Likewise.
3568         * config/pa/pa64-regs.h: Likewise.
3569         * config/pa/som.h: Likewise.
3570
3571 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
3572
3573         * doc/gcc.texi: Move several chapters out to ...
3574         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
3575         doc/service.texi, doc/standards.texi, doc/trouble.texi,
3576         doc/vms.texi: ... here.  New files.
3577         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
3578
3579 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
3580
3581         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
3582         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
3583         collect2.c, combine.c, config.in, configure, configure.in,
3584         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
3585         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
3586         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
3587         spelling errors.
3588
3589 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3590
3591         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
3592         Adjust operand number in CONST_DOUBLE.
3593
3594         * expmed.c (extract_bit_field): No longer pass in alignment.
3595         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
3596         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
3597         Likewise.
3598         * expr.c (store_constructor, store_constructor_field): Likewise.
3599         (store_field, emit_group_load, emit_group_store): Likewise.
3600         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
3601         (store_bit_field, extract_bit_field): Likewise.
3602         * calls.c, expr.c, function.c: Change calls to above functions.
3603         * ifcvt.c, stmt.c: Likewise.
3604
3605         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
3606         constant and one is on frame.
3607         If know memref offset, adjust size from decl.
3608
3609 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3610
3611         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
3612         format specifier warning.
3613         * convex.h (ASM_OUTPUT_BYTE): Likewise.
3614         * elfos.h (ALIGN_ASM_OP): Undef before defining.
3615         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
3616         warning.
3617         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3618         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3619         * i386-interix.h (gen_stdcall_suffix): Prototype.
3620         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3621         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
3622         ASM_OUTPUT_LONG_DOUBLE): Likewise.
3623         * i386/interix.c (gen_stdcall_suffix): Const-ify.
3624         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
3625         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
3626         specifier warnings.
3627         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3628         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
3629         ASM_OUTPUT_LONG_DOUBLE): Likewise.
3630         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3631         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3632         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3633         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3634         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
3635         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
3636         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
3637         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
3638         Likewise.
3639         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
3640         Likewise.
3641         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
3642         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
3643         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
3644         Likewise.
3645         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
3646         Likewise.
3647         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
3648         Likewise.
3649         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
3650         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3651         * m68k/news.h (PRINT_OPERAND): Likewise.
3652         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
3653         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
3654         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
3655         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
3656         definition.
3657         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
3658         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
3659         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
3660         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
3661         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
3662         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
3663         PRINT_OPERAND): Likewise.
3664         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
3665         Likewise.
3666         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
3667         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
3668         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
3669         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3670         * mips.c (mips_output_external_libcall): Mark parameter with
3671         ATTRIBUTE_UNUSED.
3672         (mips_asm_file_start): Move variable into the scope where it's
3673         used.
3674         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
3675         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3676         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
3677         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3678         * ns32k.c (print_operand): Likewise.
3679         * pa.c (print_operand, output_div_insn): Likewise.
3680         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
3681         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
3682         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
3683         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
3684         specifier warnings.
3685         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3686         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3687         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
3688         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
3689         specifier warnings.
3690         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3691
3692         * sdbout.c (sdbout_end_epilogue): Mark parameter with
3693         ATTRIBUTE_UNUSED.
3694         * varasm.c (assemble_global): Likewise.
3695
3696 2001-11-11  H.J. Lu <hjl@gnu.org>
3697
3698         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
3699
3700 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3701
3702         * final.c (*_MAX_SKIP): Use *_max_skip variables.
3703         * flags.h (align_loops_max_skip, align_jumps_max_skip,
3704         align_labels_max_skip): New global variables.
3705         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
3706         align_labels_max_skip): New global variables.
3707         (toplev_main): Set new variables.
3708         * i386.c (override_options): Set max_skip values.
3709
3710 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
3711
3712         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
3713         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
3714         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
3715         don't print an @fptr for labels either.
3716         (xstormy16_output_addr_vec): Don't print @fptr here.
3717         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
3718
3719 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
3720
3721         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
3722         an ANSI/ISO definitino.
3723         (ssa_const_prop): Likewise.
3724
3725 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
3726
3727         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
3728         altivec registers.
3729
3730 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3731
3732         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
3733         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
3734         * cppmain.c (general_init): Call hex_init.
3735         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
3736
3737         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
3738
3739         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
3740         of dgux.c:output_file_start().
3741
3742         * i386/dgux.c: Delete file.
3743
3744 2001-11-09  Richard Henderson  <rth@redhat.com>
3745
3746         * config/alpha/alpha.c (decl_in_text_section): New.
3747         (current_file_function_operand): Use it.
3748         (alpha_encode_section_info, alpha_end_function): Likewise.
3749
3750 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
3751
3752         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
3753         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
3754         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
3755         so OS specific files and use CPP_PREDEFINES for their needs.
3756         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
3757         target headers to tm_file.
3758         * config/ia64/aix.h (TARGET_VERSION): Likewise.
3759         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
3760         * config/ia64/linux.h (TARGET_VERSION): Likewise.
3761         (FUNCTION_PROFILER): Remove.
3762         * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
3763         version in config/ia64/linux.h.
3764         * config/ia64/freebsd.h: New file.
3765         * config/freebsd.h: Tidy up.
3766         (_USING_CONFIG_FREEBSD): Define.
3767         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
3768         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
3769         (FBSD_STARTFILE_SPEC): Likewise.
3770         (FBSD_ENDFILE_SPEC): Likewise.
3771         (FBSD_LIB_SPEC): Likewise.
3772         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
3773         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
3774         set an ELF-improper one.
3775
3776 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3777
3778         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
3779         constant can be loaded in a single instruction to a register.  When
3780         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
3781         depdi for insertion of most significant 32-bits on 64-bit hosts.
3782         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
3783         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
3784         * pa.md: New addmove pattern for adding constant_int to HImode
3785         register and moving result to HImode register.  Remove HImode HIGH
3786         and LO_SUM patterns.
3787
3788 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3789
3790         * Makefile.in: Update.
3791         * c-decl.c (print_lang_decl, print_lang_type): Remove.
3792         (print_lang_identifier): Rename c_print_identifier.
3793         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
3794         (print_lang_statistics, lang_print_xnode): Remove.
3795         * c-parse.in (set_yydebug): Rename c_set_yydebug.
3796         * c-tree.h (c_set_yydebug, c_print_identifier): New.
3797         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
3798         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
3799         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
3800         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
3801         (LANG_HOOKS_INITIALIZER): Update.
3802         * langhooks.h (struct lang_hooks): New members.
3803         (lang_print_tree_hook): New.
3804         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
3805         * print-tree.c: Include langhooks.h.
3806         (print_node): Update.
3807         * toplev.c (decode_d_option): Update.
3808         * tree.c: Include langhooks.h.
3809         (dump_tree_statistics): Update.
3810         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
3811         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
3812 objc:
3813         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
3814         LANG_HOOKS_SET_YYDEBUG): Override.
3815         (lang_print_xnode, print_lang_statistics): Remove.
3816
3817 2001-11-09  Richard Henderson  <rth@redhat.com>
3818
3819         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
3820         on the symbol string.
3821
3822 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3823
3824         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
3825         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
3826         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
3827
3828         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
3829
3830         * tlink.c (recompile_files): Copy strings passed to `putenv'.
3831
3832 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
3833
3834         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
3835         (TYPE_READONLY): Likewise.
3836
3837         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
3838
3839         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
3840         don't pass --gdwarf2 to the assembler if the compiler will also
3841         provide debug info.
3842
3843         * config/stormy16/stormy16.c (xstormy16_expand_casesi):
3844         Don't change INDEX.
3845
3846 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3847
3848         * alias.c (nonoverlapping_memrefs_p): New function.
3849         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
3850
3851         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
3852
3853 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
3854
3855         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
3856         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
3857         generating altivec code.
3858         (FIXED_REGISTERS): VRSAVE is fixed.
3859         (CALL_USED_REGISTERS): VRSAVE is call used.
3860
3861 2001-11-09  Jason Eckhardt  <jle@rice.edu>
3862
3863         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
3864         code the branch target as ".+16/.+12", but rather use labels.
3865
3866 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
3867
3868         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
3869         to work around limitations of certain versions of GAS.
3870
3871         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
3872         (muldi3): Update due to SUBREG_BYTE changes.
3873         (casesi): Similarly.
3874
3875 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
3876
3877         * doc/invoke.texi: Remove comment referring to -xf77-version.
3878
3879 2001-11-09  Kazu Hirata  <kazu@hxi.com>
3880
3881         * config/convex/convex.c: Fix comment formatting.
3882         * config/convex/convex.h: Likewise.
3883
3884 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
3885
3886         * Makefile.in (.po.pox): Look both in srcdir and builddir
3887         for $(PACKAGE).pot.
3888         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
3889         to the source directory.
3890
3891 2001-11-09 Ben Elliston  <bje@redhat.com>
3892            Michael Meissner  <meissner@redhat.com>
3893            Andrew MacLeod  <amacleod@redhat.com>
3894            Richard Henderson  <rth@redhat.com>
3895            Nick Clifton  <nickc@redhat.com>
3896            Catherine Moore  <clm@redhat.com>
3897
3898         * m32r.c: Add support for m32rx processor.
3899         * m32r.h: Ditto.
3900         * m32r.md: Ditto.
3901         * t-m32r: Ditto.
3902         * m32r-protos.h: Add prototypes for m32rx functions.
3903         * doc/invoke.texi: Document -m32rx option.
3904
3905 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
3906
3907         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
3908         or after reload.
3909
3910 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3911
3912         * doc/install.texi2html: Use $MAKEINFO --no-split.
3913
3914 2001-11-09  Andreas Schwab  <schwab@suse.de>
3915
3916         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
3917         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
3918         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
3919         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
3920         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
3921
3922 2001-11-09  H.J. Lu <hjl@gnu.org>
3923
3924         * config/mips/mips.c (mips_output_function_prologues): Cast
3925         `tsize' to long for output.
3926
3927 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3928
3929         * c-lang.c (LANG_HOOKS_NAME): New.
3930         (lang_hooks): Constify.
3931         (c_init_options): Update.
3932         (lang_identify): Remove.
3933         * c-parse.in (language_string): Remove.
3934         * dbxout.c: Include langhooks.h.
3935         (dbxout_symbol_location): Update.
3936         * dwarf2out.c: Include langhooks.h.
3937         (gen_compile_unit_die): Update.
3938         * dwarfout.c: Include langhooks.h.
3939         (prototyped_attribute, output_compile_unit_die): Update.
3940         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
3941         (LANG_HOOKS_INITIALIZER): Update.
3942         * langhooks.h (struct lang_hooks): New members.  Constify.
3943         * stringpool.c: Don't include toplev.h.
3944         (set_identifier_size): Remove.
3945         * toplev.c (toplev_main): Initialize identifier size.
3946         (print_version): Update.
3947         * tree.h (language_string, init_lex, lang_identify,
3948         set_identifier_size): Remove.
3949         * Makefile.in: Update dependencies.
3950         * config/darwin.c: Include langhooks.h.
3951         (func_name_maybe_scoped): Update.
3952         * config/darwin.h (ASM_END_FILE): Update.
3953         * config/nextstep.h (ASM_END_FILE): Update.
3954         * config/nextstep21.h (ASM_END_FILE): Update.
3955         * config/i386/sun386.h (ASM_END_FILE): Update.
3956         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
3957         (rs6000_output_function_epilogue): Update.
3958 objc:
3959         * objc-act.c (LANG_HOOKS_NAME): Override.
3960         (struct lang_hooks): Constify.
3961         (objc_init_options): Update.
3962         (lang_identify): Remove.
3963
3964 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
3965
3966         * fold-const.c (lshift_double): Honor PREC.
3967         (rshift_double): Likewise.
3968
3969 2001-11-08  Kazu Hirata  <kazu@hxi.com>
3970
3971         * config/1750a/1750a.c: Fix comment formatting.
3972         * config/1750a/1750a.h: Likewise.
3973
3974 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
3975
3976         * configure.in (--enable-languages): Be more permissive about
3977         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
3978         * configure: Regenerated.
3979
3980 2001-11-08  Richard Henderson  <rth@redhat.com>
3981
3982         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
3983
3984 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
3985
3986         * config.gcc: Rename stormy16 to xstormy16.
3987         * config/stormy16/stormy-abi: Likewise.
3988         * config/stormy16/stormy16-protos.h: Likewise.
3989         * config/stormy16/stormy16.c: Likewise.
3990         * config/stormy16/stormy16.h: Likewise.
3991         * config/stormy16/stormy16.md: Likewise.
3992
3993 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
3994
3995         * tree.h (TYPE_VOLATILE): Add enable-checking code.
3996         (TYPE_READONLY): Likewise.
3997
3998 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3999
4000         * reload1.c (reload): Don't delete equiv insn if can throw.
4001
4002         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
4003         (clear_storage): Likewise, for OBJECT.
4004
4005 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
4006
4007         * pa.c (emit_move_sequence): Fix SUBREG expression to
4008         use proper byte offset when extending a constant from
4009         SImode to DImode.
4010
4011 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
4012
4013         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
4014         which cannot throw.
4015
4016 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4017
4018         * explow.c (convert_memory_address, case SUBREG): Only return
4019         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
4020
4021 2001-11-08  Richard Henderson  <rth@redhat.com>
4022
4023         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
4024         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
4025         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
4026
4027 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
4028
4029         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
4030
4031 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
4032
4033         * dwarf2out.c (debug_str_hash): New.
4034         (struct indirect_string_node): New.
4035         (struct dw_val_struct): Change type of val_str to it.
4036         (DEBUG_STR_SECTION_FLAGS): Define.
4037         (add_AT_string): Push string into hashtable, increment reference
4038         counter.
4039         (AT_string): Return string from ht_identifier.
4040         (AT_string_form): New.
4041         (free_AT): For dw_val_class_str, just decrement reference counter.
4042         (size_of_string): Remove.
4043         (size_of_die): Use AT_string_form to decide what size the string
4044         occupies in DIE.
4045         (size_of_pubnames): Use strlen instead of size_of_string.
4046         (value_format): Use AT_string_form for dw_val_class_str.
4047         (output_die): Output DW_FORM_strp strings using
4048         dw2_asm_output_offset.
4049         (indirect_string_alloc, output_indirect_string): New.
4050         (dwarf2out_finish): Emit .debug_str strings if there are any.
4051
4052 2001-11-08  Andreas Franck  <afranck@gmx.de>
4053
4054         * configure.in: Add AC_ARG_PROGRAM to support program name
4055         transformation with --program-prefix, --program-suffix and
4056         --program-transform-name.
4057         * configure: Regenerated.
4058         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
4059         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
4060         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
4061         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
4062         program_transform_name the way suggested by autoconf.
4063         (GCC_TARGET_INSTALL_NAME): Define.
4064         (install-driver): Use the transformed target alias name.
4065
4066 2001-11-08  Richard Henderson  <rth@redhat.com>
4067
4068         * config/mips/mips.c (save_restore_insns): Remove GP from the
4069         restore registers mask early instead of special casing it inside
4070         the loop.
4071
4072 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4073
4074         * cp/decl.c (shadow_warning): New function.
4075         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
4076         and an error when a block scope decl shadows a parameter.
4077
4078 2001-11-08  Richard Henderson  <rth@redhat.com>
4079
4080         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
4081         case as well.
4082
4083 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4084
4085         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
4086         to implement floating negation on processors prior to PA 2.0.
4087
4088 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
4089
4090         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
4091         (USE_LINKONCE_INDIRECT): Define.
4092         (dw2_output_indirect_constant_1): Try to output indirect constants
4093         into linkonce sections if possible.
4094         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
4095         (dw2_output_indirect_constants): Likewise.
4096
4097 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
4098
4099         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
4100
4101 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4102
4103         * c-decl.c (pushdecl): Remove file and line.
4104         * c-typeck.c (pop_init_level): Remove size.
4105
4106 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
4107
4108         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
4109         for rs6000.
4110
4111         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
4112         (TARGET_ALTIVEC): New.
4113         (TARGET_SWITCHES): Add altivec.
4114         (FIRST_PSEUDO_REGISTER): Change to 109.
4115         (CALL_USED_REGISTERS): Same.
4116         (FIRST_ALTIVEC_REGNO): New.
4117         (LAST_ALTIVEC_REGNO): New.
4118         (ALTIVEC_REGNO_P): New.
4119         (UNITS_PER_ALTIVEC_WORD): New.
4120         (ALTIVEC_VECTOR_MODE): New.
4121         (FIXED_REGISTERS): Add altivec registers.
4122         (REG_ALLOC_ORDER): Same.
4123         (HARD_REGNO_NREGS): Adjust for altivec registers.
4124         (HARD_REGNO_MODE_OK): Same.
4125         (MODES_TIEABLE_P): Same.
4126         (REGISTER_MOVE_COST): Same.
4127         (REGNO_REG_CLASS): Same.
4128         (reg_class): Add ALTIVEC_REGS.
4129         (REG_CLASS_NAMES): Same.
4130         (REG_CLASS_CONTENTS): Same.
4131         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
4132         (ALTIVEC_ARG_RETURN): New.
4133         (FUNCTION_VALUE): Handle VECTOR_TYPE.
4134         (LIBCALL_VALUE): Handle altivec vector modes.
4135         (VECTOR_MODE_SUPPORTED_P): New.
4136         (ALTIVEC_ARG_MIN_REG): New.
4137         (ALTIVEC_ARG_MAX_REG): New.
4138         (ALTIVEC_ARG_NUM_REG): New.
4139         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
4140         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
4141         (REGISTER_NAMES): Add altivec regs.
4142         (DEBUG_REGISTER_NAMES): Same.
4143         (ADDITIONAL_REGISTER_NAMES): Same.
4144         (rs6000_builtins): New.
4145         (MD_EXPAND_BUILTIN): New.
4146         (MD_INIT_BUILTINS): New.
4147         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
4148         for AltiVec instructions.
4149         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
4150         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
4151         registers.
4152         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
4153         (TARGET_SWITCHES): Add no-altivec.
4154         (DATA_ALIGNMENT): Align vectors to 128 bits.
4155         (TARGET_OPTIONS): Add abi= option.
4156         Add rs6000_abi_string extern.
4157         (LOCAL_ALIGNMENT): New.
4158         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
4159         (MASK_ALTIVEC_ABI): New.
4160         (TARGET_ALTIVEC_ABI): New.
4161         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
4162         call-saved.
4163         (STACK_BOUNDARY): Adjust for altivec.
4164         (BIGGEST_ALIGNMENT): Same.
4165         (rs6000_args): Add vregno.
4166         (USE_ALTIVEC_FOR_ARG_P): New.
4167         (FIXED_REGISTERS): Add vrsave register.
4168         (CALL_USED_REGISTERS): Same.
4169         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
4170         (VRSAVE_REGNO): New.
4171         (reg_class): Add VRSAVE_REGS.
4172         (REG_CLASS_NAMES): Same.
4173         (REG_CLASS_CONTENTS): Same.
4174         (REGNO_REG_CLASS): Same.
4175
4176         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
4177         (ABI_STACK_BOUNDARY): Same.
4178         (BIGGEST_ALIGNMENT): Same.
4179         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
4180         (ROUND_TYPE_ALIGN): Same.
4181
4182         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
4183         to 64.
4184
4185         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
4186         to 64.
4187
4188         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
4189         to 64.
4190
4191         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
4192         (altivec_expand_builtin): New.
4193         (altivec_init_builtins): New.
4194         (TARGET_EXPAND_BUILTIN): New.
4195         (TARGET_INIT_BUILTINS): New.
4196         (rs6000_init_builtins): New.
4197         (struct builtin_description): New.
4198         (bdesc_2arg): New.
4199         (rs6000_reg_names): Add altivec registers.
4200         (alt_reg_names): Same.
4201         (secondary_reload_class): Altivec regs can hold altivec regs and
4202         memory.
4203         (rs6000_emit_move): Force constants into memory for AltiVec moves.
4204         (print_operand): Add 'y' case for printing altivec memory
4205         operands.
4206         (rs6000_legitimize_address): Legitimize vector addresses into
4207         [REG+REG] or [REG].
4208         (altivec_expand_binop_builtin): New.
4209         New string rs6000_current_abi.
4210         (rs6000_override_options): Call rs6000_parse_abi_options.
4211         (rs6000_parse_abi_options): New.
4212         (function_arg_boundary): Vector arguments must be 16
4213         byte aligned.
4214         (function_arg_advance): Handle vector arguments.
4215         (function_arg_partial_nregs): Same.
4216         (init_cumulative_args): Same.
4217         (function_arg): Same.
4218
4219         * config/rs6000/rs6000.md (altivec_lvx): New.
4220         (type): Add altivec attribute.
4221         (movv4si): New.
4222         (*movv4si_internal): New.
4223         (movv16qi): New.
4224         (*movv16qi_internal): New.
4225         (movv8hi): New.
4226         (*movv8hi_internal1): New.
4227         (movv4sf): New.
4228         (*movv4sf_internal1): New.
4229         (altivec_stvx): New.
4230         (vaddubm): New.
4231         (vadduhm): New.
4232         (vadduwm): New.
4233         (vaddfp): New.
4234         (vaddcuw): New.
4235         (vaddubs): New.
4236         (vaddsbs): New.
4237         (vadduhs): New.
4238         (vaddshs): New.
4239         (vadduws): New.
4240         (vaddsws): New.
4241         (vand): New.
4242         (vandc): New.
4243         (vavgub): New.
4244         (vavgsb): New.
4245         (vavguh): New.
4246         (vavgsh): New.
4247         (vavguw): New.
4248         (vavgsw): New.
4249         (vcmpbfp): New.
4250         (vcmpequb): New.
4251         (vcmpequh): New.
4252         (vcmpequw): New.
4253         (vcmpeqfp): New.
4254         (vcmpgefp): New.
4255         (vcmpgtub): New.
4256         (vcmpgtsb): New.
4257         (vcmpgtuh): New.
4258         (vcmpgtsh): New.
4259         (vcmpgtuw): New.
4260         (vcmpgtsw): New.
4261         (vcmpgtfp): New.
4262         (vcmpgefp): New.
4263         (vcmpgtub): New.
4264         (vcmpgtsb): New.
4265         (vcmpgtuh): New.
4266         (vcmpgtsh): New.
4267         (vcmpgtuw): New.
4268         (vcmpgtsw): New.
4269         (vcmpgtfp): New.
4270         (vmaxub): New.
4271         (vmaxsb): New.
4272         (vmaxuh): New.
4273         (vmaxsh): New.
4274         (vmaxuw): New.
4275         (vmaxsw): New.
4276         (vmaxfp): New.
4277         (vmrghb): New.
4278         (vmrghh): New.
4279         (vmrghw): New.
4280         (vmrglb): New.
4281         (vmrglh): New.
4282         (vmrglw): New.
4283         (vminub): New.
4284         (vminsb): New.
4285         (vminuh): New.
4286         (vminsh): New.
4287         (vminuw): New.
4288         (vminsw): New.
4289         (vminfp): New.
4290         (vmuleub): New.
4291         (vmulesb): New.
4292         (vmuleuh): New.
4293         (vmulesh): New.
4294         (vmuloub): New.
4295         (vmulosb): New.
4296         (vmulouh): New.
4297         (vmulosh): New.
4298         (vnor): New.
4299         (vor): New.
4300         (vpkuhum): New.
4301         (vpkuwum): New.
4302         (vpkpx): New.
4303         (vpkuhss): New.
4304         (vpkshss): New.
4305         (vpkuwss): New.
4306         (vpkswss): New.
4307         (vpkuhus): New.
4308         (vpkshus): New.
4309         (vpkuwus): New.
4310         (vpkswus): New.
4311         (vrlb): New.
4312         (vrlh): New.
4313         (vrlw): New.
4314         (vslb): New.
4315         (vslh): New.
4316         (vslw): New.
4317         (vsl): New.
4318         (vslo): New.
4319         (vsrb): New.
4320         (vrsh): New.
4321         (vrsw): New.
4322         (vsrab): New.
4323         (vsrah): New.
4324         (vsraw): New.
4325         (vsr): New.
4326         (vsro): New.
4327         (vsububm): New.
4328         (vsubuhm): New.
4329         (vsubuwm): New.
4330         (vsubfp): New.
4331         (vsubcuw): New.
4332         (vsububs): New.
4333         (vsubsbs): New.
4334         (vsubuhs): New.
4335         (vsubshs): New.
4336         (vsubuws): New.
4337         (vsubsws): New.
4338         (vsum4ubs): New.
4339         (vsum4sbs): New.
4340         (vsum4shs): New.
4341         (vsum2sws): New.
4342         (vsumsws): New.
4343         (vxor): New.
4344
4345 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
4346
4347         * Makefile.in (df.o): Add fibheap.h to dependencies.
4348
4349         * df.h: Add prototypes for transfer functions, iterative_dataflow
4350         functions.
4351         (enum df_flow_dir): New enum.
4352         (enum df_confluence_op): New enum.
4353         (struct df): Add inverse_rts_map.
4354
4355         * df.c: Add sbitmap.h to the list of includes.
4356         (df_rd_global_compute): Removed.
4357         (df_ru_global_compute): Removed.
4358         (df_lr_global_compute): Removed.
4359         (df_rd_transfer_function): New function.
4360         (df_ru_transfer_function): New function.
4361         (df_lr_transfer_function): New function.
4362         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
4363         Use iterative_dataflow_bitmap instead of df_*_global_compute.
4364         (iterative_dataflow_sbitmap): New function.
4365         (iterative_dataflow_bitmap): New function.
4366
4367 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
4368
4369         * doc/gcc.texi: Move terminology and spelling conventions to
4370         htdocs/codingconventions.html.
4371
4372 2001-11-07  Graham Stott  <grahams@redhat.com>
4373
4374         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
4375
4376 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
4377
4378         * expmed.c (expand_mult): Force operand to register before computing
4379         cost.
4380         * i386.c (x86_decompose_lea): New global vairable.
4381         * i386.h (x86_decompose_lea): Declare.
4382         (TARGET_DECOMPOSE_LEA): New macro.
4383         (RTX_COST): Handle leas properly.
4384
4385 2001-11-06  Richard Henderson  <rth@redhat.com>
4386
4387         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
4388         defined for a CONSTRUCTOR; don't check it.
4389
4390 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
4391
4392         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
4393         test for absolute pathnames.
4394
4395 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
4396
4397         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
4398         instructions up to the target pc inclusive.
4399
4400 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
4401
4402         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
4403
4404 2001-11-06  Eric Christopher  <echristo@redhat.com>
4405
4406         * config/mips/mips.md(movdf_internal2): Add constraints for float
4407         to general register move.
4408         * config/mips/elf64.h: Add default ABI.
4409
4410 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4411
4412         * alias.c:: Include langhooks.h.
4413         * emit-rtl.c: Similarly.
4414         * toplev.c: Similarly.
4415         * tree-inline.c: Similarly.
4416         * langhooks-def.h: New, the old langhooks.h.  Give the default
4417         hooks a common prefix.
4418         * langhooks.h: Contents extracted from toplev.h.
4419         * toplev.h: Move langhook stuff to langhooks.h.
4420         * langhooks.c: Give default hooks a common prefix.
4421
4422         * c-lang.c: Include langhooks-def.h.
4423         * objc/objc-act.c: Similarly.
4424         * Makefile.in: Update.
4425         * objc/Make-lang.in: Update.
4426
4427 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
4428
4429         * doc/install.texi: Document that configure options not listed in
4430         this file are unsupported.  Document --with-system-zlib.
4431
4432 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4433
4434         * rtl.h (mem_for_const_double): New declaration.
4435         * varasm.c (mem_for_const_double): New function.
4436         * config/convex/convex.md (movdf): Use it.
4437         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
4438         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
4439         * config/m68k/m68kv4.h: Likewise.
4440
4441         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
4442         of new GP reg classes.
4443
4444         * expr.c (store_field): When making temp object for unaligned
4445         component, set it to alias set 0.
4446
4447 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
4448
4449         * c-common.c (c_expand_expr_stmt): Apply default conversions to
4450         non-lvalue arrays if C99.
4451         * c-typeck.c (default_conversion): Split out code handling
4452         array-to-pointer and function-to-pointer conversions into a
4453         separate default_function_array_conversion function.
4454         (default_function_array_conversion): New function.  Keep track of
4455         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
4456         arrays unchanged outside C99 mode instead of giving an error for
4457         them.
4458         (build_component_ref): Use pedantic_non_lvalue when handling
4459         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
4460         (convert_arguments): Use default_function_array_conversion.
4461         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
4462         non-lvalues are OK.
4463         (unary_complex_lvalue): Likewise.
4464         (internal_build_compound_expr): Use
4465         default_function_array_conversion.  Apply default conversions to
4466         function in compound expression.
4467         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
4468         Use default_function_array_conversion.
4469         * doc/extend.texi: Update documentation of subscripting non-lvalue
4470         arrays.
4471         Fixes PR c/461.
4472
4473 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
4474
4475         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
4476         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
4477         corresponding to the complete set of .po and .gmo files in
4478         the source directory's po subdir, modified by LINGUAS.  Don't
4479         look at ALL_LINGUAS.
4480         * configure.in: Don't set ALL_LINGUAS.
4481         * configure: Regenerate.
4482
4483         * Makefile.in (.po.gmo): Don't move into source directory.
4484         (.po.pox): Clarify comments.
4485         (install-po): Look for .gmo files in both srcdir and objdir;
4486         don't fail if a file is totally missing.
4487         (distclean): rmdir ada subdirectory too.
4488
4489 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
4490
4491         * config/rs6000/rs6000.c (rs6000_select_section): Handle
4492         CONSTRUCTORs _correctly_.
4493
4494 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4495
4496         * c-decl.c (delete_block): Remove.
4497         * c-tree.h (delete_block): Remove.
4498
4499 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4500
4501         * cppexp.c (lex, parse_defined): Update warning about defined.
4502
4503 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
4504
4505         * config/rs6000/rs6000.c (rs6000_select_section): Handle
4506         CONSTRUCTORs too.
4507
4508 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
4509
4510         * config/arm/arm.c (arm_return_in_memory): Cope with
4511         int_size_in_bytes returning -1.
4512
4513         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
4514         DECL being NULL.
4515
4516 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
4517
4518         * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
4519         remove unneeded dependencies;
4520         (cfglayout.o): New.
4521         * cfglayout.c, cfglayout.h: New files; break out from ...
4522         * bb-reorder.c: ... here; Remove unneeded includes;
4523
4524 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
4525
4526         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
4527
4528 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
4529
4530         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
4531         mode as well.  Do not explicitly create intermediate regs.
4532
4533 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4534
4535         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
4536         (common_section): Delete unused variable.
4537         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
4538         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
4539         * arm-protos.h (arm_poke_function_name, aof_add_import,
4540         aof_delete_import): Const-ify.
4541         * arm.c (legitimize_pic_address): Wrap variables in the macro
4542         controlling their usage.
4543         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
4544         (arm_poke_function_name, pic_chain, import, aof_add_import,
4545         aof_delete_import): Const-ify.
4546         * i386.c (ix86_osf_output_function_prologue): Const-ify.
4547         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
4548         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
4549         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
4550         * i860/sysv3.h: Add missing comment closure.
4551         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
4552         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
4553         to symbolic_operand.
4554
4555         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
4556         (i960-*-*): Set tmake_file.
4557         (sparc86x-*-elf*): Fix typo in header name.
4558
4559         * sched-rgn.c (schedule_insns): Delete unused variable.
4560
4561 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
4562
4563         PR c/2820
4564         * c-typeck.c (lookup_field): Rework to return a chain down to
4565         the looked-up field.
4566         (build_component_ref): Use the new lookup_field to handle
4567         nested anonymous entities correctly.
4568
4569 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4570
4571         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
4572         Change parameters to gen_rtx_CONST_DOUBLE.
4573         (GEN_INT64, sparc_emit_set_const64): Likewise.
4574         * config/sparc/sparc.md (movdf split): Likewise.
4575
4576 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
4577
4578         * unroll.c (calculate_giv_inc): Use find_last_value rather
4579         than just hoping the last instruction is the right SET.
4580         [Fixes 990604-1.c on stormy16.]
4581
4582         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
4583         library at all if -T is used.
4584
4585         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
4586         some uses of uninitialized variables in error cases.
4587
4588         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
4589         look at 'temp' if we won't be using it.
4590
4591         * config/stormy16/stormy16.h (CONST_COSTS): Define.
4592         (RTX_COSTS): Define.
4593         (ADDRESS_COST): Define.
4594         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
4595
4596         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
4597
4598         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
4599         stormy16_asm_output_mi_thunk.
4600         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
4601         function.
4602         * config/stormy16/stormy16-protos.h
4603         (stormy16_asm_output_mi_thunk): New prototype.
4604
4605 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4606
4607         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
4608         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
4609         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
4610         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
4611         sched-int.h, toplev.c, config/alpha/alpha.c,
4612         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
4613         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
4614         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
4615         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
4616         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
4617         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
4618         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
4619
4620 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4621
4622         * Makefile.in (dbxout.o): Depend on function.h.
4623         * collect2.c (is_in_list): Hide unused function.
4624         * dbxout.c: Include function.h.
4625         (source_label_number, dbxout_source_line, dbxout_source_file,
4626         dbxout_function_end, dbxout_begin_function): Wrap/move inside
4627         macros controlling usage.
4628         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
4629         * output.h (exports_section): Prototype.
4630
4631         * convex.c (convex_output_function_prologue): Fix format specifier
4632         warning.
4633         (asm_declare_function_name): Fix signed/unsigned warning.
4634         (print_operand): Fix format specifier warning.
4635         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
4636         * dsp16xx-protos.h (uns_comparison_operator,
4637         num_1600_core_shifts): Prototype.
4638         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
4639         (frame_size, frame_pointer_offset): Delete.
4640         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
4641         Make static.  Fix format specifier warnings.
4642         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
4643         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
4644         * dsp16xx.md: Add default case in switches.
4645         * fr30.h (IN_RANGE): Delete.
4646         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
4647         * mcore-protos.h (mcore_output_cmov): Const-ify.
4648         * mcore.c (mcore_output_cmov): Likewise.
4649         * mcore.h (switch_to_section): Make static and prototype.
4650         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
4651         unsigned>=0 warnings.
4652         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
4653         * rs6000-protos.h (read_only_data_section,
4654         read_only_private_data_section): Prototype.
4655         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
4656         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
4657         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
4658
4659 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4660
4661         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
4662         ATTRIBUTE_UNUSED.
4663         * final.c (final_scan_insn): Add brackets around body of if-stmt.
4664         * gcc.c (convert_filename): Add static prototype.  Const-ify.
4665         Wrap variable in macros controlling its use.
4666         * output.h (sdata_section): Add prototype.
4667
4668         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
4669         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
4670         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
4671         (ASM_FILE_START): Const-ify.
4672         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
4673         specifier warning.
4674         * c4x.md: Don't use the 'U' integer suffix.
4675         * clipper.md (clipper_movstr): Delete declaration.
4676         * d30v-protos.h (d30v_move_2words): Const-ify.
4677         (debug_stack_info): Add prototype.
4678         * d30v.c: Include "integrate.h".
4679         (d30v_function_arg_boundary, d30v_function_arg,
4680         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
4681         signed/unsigned warnings.
4682         (d30v_print_operand_memory_reference, d30v_move_2words):
4683         Const-ify.
4684         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
4685         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
4686         * fr30.md: Const-ify.
4687         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
4688         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
4689         (mvs_get_label_page): Hide unused static function.
4690         * i860.c (current_function_original_name): Const-ify.
4691         * i860/sysv3.h (current_function_original_name): Likewise.
4692         * i860/sysv4.h (current_function_original_name): Likewise.
4693         * i960.md: Add default case in switches.  Remove unused variable.
4694         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
4695         * m32r.md: Const-ify.
4696         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
4697         * m68hc11.c: Include "reload.h".
4698         (static_chain_reg, print_options, m68hc11_asm_file_start):
4699         Const-ify.
4700         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
4701         around & in comparison.
4702         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
4703         * mn10200.c (shift_mode): Remove trailing comma.
4704         * mn10300-protos.h (output_tst): Const-ify.
4705         * mn10300.c (output_tst): Likewise.
4706         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
4707         warnings.
4708         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
4709         * pa.c (output_ascii): Likewise.
4710         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
4711         * pdp11.md (expand_unop): Delete declarations.
4712         * pj-protos.h (pj_output_addsi3): Const-ify.
4713         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
4714         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
4715         unique_src_operand): Add prototypes.
4716         (pj_output_store_into_lval): Make definition static.
4717         (pj_function_incoming_arg): Don't use unary plus.
4718         (pj_output_addsi3): Const-ify.
4719         * romp.md (get_symref): Delete declarations.
4720         * v850-c.c (mark_current_function_as_interrupt): Don't return
4721         value from void function.
4722         * v850.c: Include "integrate.h".
4723         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
4724         * vax-protos.h (const_section): Add prototype.
4725
4726 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
4727
4728         * machmode.def: Add documentation for the seventh argument in
4729         vector modes.
4730
4731 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
4732
4733         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
4734         consistently.
4735         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
4736         <-melf>: Don't have markup for ELF acronym.
4737
4738 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
4739
4740         * config.gcc (mmix-*-*): New target.
4741         * doc/invoke.texi: Document MMIX options.
4742         * doc/contrib.texi: Add note about MMIX port to my entry.
4743         * config/mmix/t-mmix: New file.
4744         * config/mmix/mmix.h: New file.
4745         * config/mmix/mmix-protos.h: New file.
4746         * config/mmix/mmix.c: New file.
4747         * config/mmix/mmix.md: New file.
4748         * config/mmix/crti.asm: New file.
4749         * config/mmix/crtn.asm: New file.
4750
4751 2001-11-03  Kazu Hirata  <kazu@hxi.com>
4752
4753         * config/sparc/linux-aout.h: Fix comment formatting.
4754         * config/sparc/linux.h: Likewise.
4755         * config/sparc/linux64.h: Likewise.
4756         * config/sparc/lynx.h: Likewise.
4757         * config/sparc/pbd.h: Likewise.
4758         * config/sparc/sol2-sld-64.h: Likewise.
4759         * config/sparc/sol2.h: Likewise.
4760         * config/sparc/sparc.c: Likewise.
4761         * config/sparc/sparc.h: Likewise.
4762         * config/sparc/sparc.md: Likewise.
4763         * config/sparc/sunos4.h: Likewise.
4764         * config/sparc/vxsim.h: Likewise.
4765         * config/sparc/vxsparc.h: Likewise.
4766         * config/sparc/vxsparc64.h: Likewise.
4767
4768 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4769
4770         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
4771         reference to CONST_DOUBLE_MEM in comment.
4772         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
4773         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
4774         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
4775         * function.c (pop_function_context_from): Don't call
4776         restore_varasm_status.
4777         * function.h (restore_varasm_status): Delete declaration.
4778         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
4779         * rtl.c: Likewise.
4780         * rtl.def (CONST_DOUBLE): Update comment.
4781         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
4782         (CONST_DOUBLE_CHAIN): Likewise.
4783         (CONST_DOUBLE_MEM): Delete.
4784         (gen_rtx_CONST_DOUBLE): Update parameters.
4785         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
4786         Remove reference to CONST_DOUBLE_MEM.
4787         (const_alias_set): New variable.
4788         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
4789         (immed_real_const_1): Adjust tests for 0, 1, and 2.
4790         Don't set CONST_DOUBLE_MEM.
4791         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
4792         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
4793         Put constant in const_alias_set.
4794         (struct pool_constant): ALIGN now unsigned.
4795         OFFSET now HOST_WIDE_INT.
4796         Delete LABEL.
4797         (restore_varasm_status): Deleted.
4798         (mark_pool_constant): Mark desc->rtl.
4799         (force_const_mem): Rework to store rtl in hash table,
4800         not CONST_DOUBLE_MEM.
4801         Put constant in const_alias_set.
4802         (find_pool_constant): Check desc->rtl.
4803         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
4804         (init_varasm_once): Initialize const_alias_set.
4805
4806         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
4807         force_const_mem.
4808
4809         * reload.c (combine_reloads): Don't combine an output reload if there
4810         are other reloads around for part of the output.
4811
4812         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
4813         constant expression.
4814         (set_mem_decl): New function.
4815         * expr.h (set_mem_decl): New declaration.
4816         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
4817         (output_asm_operand_names): Add tab.
4818         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
4819
4820         * builtins.c (get_memory_rtx): Properly set MEM alias set and
4821         attributes.
4822
4823 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4824
4825         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
4826         Use "invalid" instead of "illegal".  Use @r in comments in
4827         examples.
4828
4829 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4830
4831         * c-decl.c (pushdecl): Move block inside if conditional to remove
4832         possibility of a segfault.  Lookup block-level extern
4833         variables in enclosing scopes correctly.
4834
4835         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
4836
4837 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
4838
4839         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
4840         SUBREG so we avoid SUBREGing memory.
4841
4842         * expmed.c (store_bit_field): Same.
4843
4844 2001-11-02  DJ Delorie  <dj@redhat.com>
4845
4846         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
4847         using FP registers for DImode mem-mem moves is acceptable.
4848
4849 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
4850
4851         * builtins.c (apply_args_size): Handle vector arguments.
4852         (apply_result_size): Same.
4853
4854         * machmode.def: Set WIDER mode field for all vector entries.
4855
4856 2001-11-02  Graham Stott  <grahams@redhat.com>
4857
4858         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
4859
4860 2001-11-01  Eric Christopher  <echristo@redhat.com>
4861
4862         * config.gcc: Revert part of earlier patch.
4863         * config/mips/linux.h: Ditto.
4864         * df.c: Include tm_p.h to avoid warnings.
4865         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
4866         #if/#endif.
4867         * config/mips/mips.c: Define mips_abi regardless.
4868         (mips_output_function_prologues): Add long casts for .frame
4869         output.
4870         (override_options): Allow use of ABI_32.
4871
4872 2001-11-01  Kazu Hirata  <kazu@hxi.com>
4873
4874         * config/m68hc11/m68hc11.c: Fix comment formatting.
4875         * config/m68hc11/m68hc11.h: Likewise.
4876         * config/m68hc11/m68hc11.md: Likewise.
4877
4878 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
4879
4880         * c-typeck.c (default_conversion): Retain the original expression
4881         codes.
4882         * gcc.dg/Wparentheses.c: New tests.
4883
4884 2001-11-01  David S. Miller  <davem@redhat.com>
4885
4886         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
4887         64-bit Sparc description more in line with reality.
4888
4889 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4890
4891         * Makefile.in (GCOV_OBJS): Add version.o.
4892         * gcov.c: Include "version.h" and <getopt.h>.
4893         (gcov_version_string): Remove.
4894         (print_usage): Take a parameter to determine whether this is a
4895         call from --help or an error message.  Give fuller output that
4896         follows the GNU Coding Standards for --help.
4897         (print_version): New function.
4898         (options): New.
4899         (process_args): Use getopt_long.  Support long options.  Follow
4900         GNU Coding Standards for --help and --version.
4901         * doc/gcov.texi: Document long options.
4902         Addresses part of PR other/704.
4903
4904 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4905
4906         * pa.c (output_move_double): Fix typo in double load.
4907
4908 2001-11-01  Kazu Hirata  <kazu@hxi.com>
4909
4910         * config/h8300/h8300.c (h8300_encode_label): Compute a string
4911         before passing it to ggc_alloc_string.
4912
4913 2001-11-01  Kazu Hirata  <kazu@hxi.com>
4914
4915         * config/m68k/3b1.h: Fix comment formatting.
4916         * config/m68k/3b1g.h: Likewise.
4917         * config/m68k/a-ux.h: Likewise.
4918         * config/m68k/amix.h: Likewise.
4919         * config/m68k/apollo68.h: Likewise.
4920         * config/m68k/atari.h: Likewise.
4921         * config/m68k/aux-exit.c: Likewise.
4922         * config/m68k/ccur-GAS.h: Likewise.
4923         * config/m68k/crds.h: Likewise.
4924         * config/m68k/dpx2.h: Likewise.
4925         * config/m68k/dpx2g.h: Likewise.
4926         * config/m68k/hp310.h: Likewise.
4927         * config/m68k/hp320.h: Likewise.
4928         * config/m68k/isi.h: Likewise.
4929         * config/m68k/linux.h: Likewise.
4930         * config/m68k/lynx.h: Likewise.
4931         * config/m68k/m68k-psos.h: Likewise.
4932         * config/m68k/m68k.c: Likewise.
4933         * config/m68k/m68k.h: Likewise.
4934         * config/m68k/m68k.md: Likewise.
4935         * config/m68k/m68kelf.h: Likewise.
4936         * config/m68k/m68kv4.h: Likewise.
4937         * config/m68k/mot3300.h: Likewise.
4938         * config/m68k/news.h: Likewise.
4939         * config/m68k/next.h: Likewise.
4940         * config/m68k/pbb.h: Likewise.
4941         * config/m68k/plexus.h: Likewise.
4942         * config/m68k/sgs.h: Likewise.
4943         * config/m68k/sun3.h: Likewise.
4944         * config/m68k/tower.h: Likewise.
4945         * config/m68k/vxm68k.h: Likewise.
4946
4947 2001-10-31  DJ Delorie  <dj@redhat.com>
4948
4949         * config/mips/mips.h (mips_cache_flush_func): Prototype.
4950         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
4951         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
4952         * config/mips/mips.c (mips_cache_flush_func): New.
4953         * doc/invoke.texi: Document the new options.
4954
4955 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
4956
4957         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
4958         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
4959
4960         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
4961
4962         * config/cris/cris.c: Include output.h after tree.h but before
4963         target.h.
4964
4965 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
4966
4967         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
4968         (INTL_SUBDIRS): Just intl.
4969         (.SUFFIXES): Add .gmo .po .pox.
4970         (native): Also depend on build-@POSUB@.
4971         (intl.all, intl.install): Depend on config.h and things it includes.
4972         (po-generated): New target; depend on c-parse.c and tradcif.c.
4973         (install-normal): Also depend on install-@POSUB@.
4974         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
4975         (build-, install-, build-po, update-po, install-po,
4976         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
4977
4978         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
4979         * configure.in: Don't munge XGETTEXT.  Don't generate
4980         po/Makefile.in.
4981         * configure: Regenerate.
4982
4983         * exgettext: Delete.
4984         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
4985         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
4986
4987 2001-10-31  Kazu Hirata  <kazu@hxi.com>
4988
4989         * config/h8300/h8300.md (two anonymous patterns): New.
4990
4991 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
4992
4993         * tree.h (tree_index): Add support for V16QI and V8HI.
4994         (V8HI_type_node): New.
4995         (V16QI_type_node): New.
4996
4997         * tree.c (build_common_tree_nodes_2): Same.
4998
4999         * c-common.c (type_for_mode): Same.
5000
5001 2001-10-31  Kazu Hirata  <kazu@hxi.com>
5002
5003         * config/i386/att.h: Fix comment formatting.
5004         * config/i386/beos-elf.h: Likewise.
5005         * config/i386/bsd.h: Likewise.
5006         * config/i386/bsd386.h: Likewise.
5007         * config/i386/crtdll.h: Likewise.
5008         * config/i386/cygwin.asm: Likewise.
5009         * config/i386/cygwin.h: Likewise.
5010         * config/i386/djgpp.h: Likewise.
5011         * config/i386/freebsd-aout.h: Likewise.
5012         * config/i386/freebsd.h: Likewise.
5013         * config/i386/gas.h: Likewise.
5014         * config/i386/i386-interix.h: Likewise.
5015         * config/i386/i386-protos.h: Likewise.
5016         * config/i386/i386.c: Likewise.
5017         * config/i386/i386.h: Likewise.
5018         * config/i386/i386.md: Likewise.
5019         * config/i386/i386elf.h: Likewise.
5020         * config/i386/interix.c: Likewise.
5021         * config/i386/isc.h: Likewise.
5022         * config/i386/isccoff.h: Likewise.
5023         * config/i386/iscdbx.h: Likewise.
5024         * config/i386/linux.h: Likewise.
5025         * config/i386/lynx.h: Likewise.
5026         * config/i386/mingw32.h: Likewise.
5027         * config/i386/netbsd-elf.h: Likewise.
5028         * config/i386/next.h: Likewise.
5029         * config/i386/osf1elf.h: Likewise.
5030         * config/i386/osfrose.h: Likewise.
5031         * config/i386/sco5.h: Likewise.
5032         * config/i386/seq-gas.h: Likewise.
5033         * config/i386/seq-sysv3.h: Likewise.
5034         * config/i386/sequent.h: Likewise.
5035         * config/i386/sol2.h: Likewise.
5036         * config/i386/sun386.h: Likewise.
5037         * config/i386/uwin.asm: Likewise.
5038         * config/i386/uwin.h: Likewise.
5039         * config/i386/vxi386.h: Likewise.
5040         * config/i386/win32.h: Likewise.
5041         * config/i386/winnt.c: Likewise.
5042         * config/i386/xm-cygwin.h: Likewise.
5043         * config/i386/xm-mingw32.h: Likewise.
5044
5045 2001-10-31  Kazu Hirata  <kazu@hxi.com>
5046
5047         * builtins.def: Fix comment typos.
5048         * config/alpha.c: Likewise.
5049         * config/arm/arm.c: Likewise.
5050         * config/avr/avr.h: Likewise.
5051         * config/d30v/d30v.c: Likewise.
5052         * config/d30v/d30v.h: Likewise.
5053         * config/d30v/d30v.md: Likewise.
5054         * config/dsp16xx/dsp16xx.c: Likewise.
5055         * config/fr30/fr30.c: Likewise.
5056         * config/fr30/fr30.md: Likewise.
5057         * config/i386/i386.c: Likewise.
5058         * config/i860/i860.c: Likewise.
5059         * config/i960/i960.c: Likewise.
5060         * config/ia64/ia64.c: Likewise.
5061         * config/mips/mips.c: Likewise.
5062         * config/pa/pa.c: Likewise.
5063         * config/rs6000/rs6000.c: Likewise.
5064         * config/s390/s390.c: Likewise.
5065         * config/sparc/sparc.c: Likewise.
5066
5067 2001-10-30  Kazu Hirata  <kazu@hxi.com>
5068
5069         * config/mips/elf.h: Fix comment formatting.
5070         * config/mips/elf64.h: Likewise.
5071         * config/mips/iris5.h: Likewise.
5072         * config/mips/iris5gas.h: Likewise.
5073         * config/mips/iris6.h: Likewise.
5074         * config/mips/isa3264.h: Likewise.
5075         * config/mips/linux.h: Likewise.
5076         * config/mips/mips.c: Likewise.
5077         * config/mips/mips.h: Likewise.
5078         * config/mips/mips.md: Likewise.
5079         * config/mips/mips16.S: Likewise.
5080         * config/mips/netbsd.h: Likewise.
5081         * config/mips/osfrose.h: Likewise.
5082         * config/mips/r3900.h: Likewise.
5083         * config/mips/sni-svr4.h: Likewise.
5084         * config/mips/svr4-t.h: Likewise.
5085         * config/mips/ultrix.h: Likewise.
5086
5087 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
5088
5089         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
5090         when we update head->current.
5091
5092 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
5093
5094         * tree.c (id_string_size): Remove.
5095         (dump_tree_statistics): Update.
5096         * toplev.c (compile_file): If dumping stats, dump tree stats too.
5097
5098 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
5099
5100         * sched-rgn.c (schedule_insns): Fix comment.
5101
5102 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
5103
5104         * configure.in: Correct previous change: don't assume that
5105         gas's version number _isn't_ the last thing on the line, or
5106         isn't the only number on the line, either.
5107         * configure: Regenerate.
5108
5109 2001-10-30  Kazu Hirata  <kazu@hxi.com>
5110
5111         * cfgcleanup.c: Fix a comment typo.
5112
5113 2001-10-30  Kazu Hirata  <kazu@hxi.com>
5114
5115         * alias.c: Fix comment formatting.
5116         * recog.c: Likewise.
5117         * config/cris/cris.c: Likewise.
5118         * config/cris/cris.h: Likewise.
5119         * config/i960/i960.c: Likewise.
5120         * config/i960/i960.h: Likewise.
5121
5122 2001-10-30  Kazu Hirata  <kazu@hxi.com>
5123
5124         * config/arm/arm.c: Fix a comment typo.
5125         * config/arm/arm.h: Likewise.
5126         * config/ia64/ia64.c: Likewise.
5127
5128 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
5129
5130         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
5131         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
5132         * rtl.h (set_unique_reg_note): Change return value.
5133         * gcse.c (try_replace_reg): Use set_unique_reg_note.
5134         * cse.c (cse_insn): Likewise.
5135         * expr.c (emit_move_insn): Likewise.
5136         * explow.c (force_reg): Likewise.
5137         * local-alloc (update_equiv_regs): Likewise.
5138         * loop.c (move_moveables, load_mems): Likewise.
5139         * reload (find_reloads): Likewise.
5140
5141 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
5142
5143         Localization fixes.
5144         * c-decl.c (parmlist_tags_warning, start_struct,
5145         check_for_loop_decls): Separate messages for struct, union and
5146         enum cases to allow for languages in which they have different
5147         genders.
5148         * c-format.c (scanf_flag_specs): Separate short and long name of
5149         the assignment suppression feature.
5150         (check_format_types): Localize "pointer" and "different types"
5151         strings.
5152         * c-lex.c (lex_number): Localize "an unsigned long int" and
5153         related strings.
5154         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
5155         warning message.
5156         * c-typeck.c (build_unary_up): Separate messages for increment and
5157         decrement cases to allow for languages in which they use different
5158         articles.  Localize the strings "increment" and "decrement" in one
5159         case.
5160
5161 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
5162
5163         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
5164         when no changes has been made.
5165
5166         * gcse.c (reg_set_bitmap): Turn into reg_set.
5167         (modify_mem_list_set, canon_modify_mem_list_set)
5168         (clear_modify_mem_tables, free_modify_mem_tables): New.
5169         (gcse_main); Use free_modify_mem_tables.
5170         (free_gcse_mem): Likewise; free the bitmaps.
5171         (alloc_gcse_main): Initialize the bitmaps.
5172         (canon_list_insert): Set canon_modify_mem_list_set.
5173         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
5174         (compute_hash_table): Use clear_modify_mem_tables.
5175         (reset_opr_set_tables): Likewise.
5176         (oprs_not_set_p): reg_set_bitmap is regset.
5177         (mark_set, mark_clobber): Likewise.
5178
5179         * df.h (DF_EQUIV_NOTES): New constant.
5180         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
5181         when asked for.
5182
5183         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
5184         (init_regions, schedule_insns): Conditionalize the checking
5185         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
5186
5187 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
5188
5189         * i386.md (movti_rex64 splitter): Fix condition.
5190
5191 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
5192
5193         * configure.in: Do not assume that gas's version number is the
5194         last thing on the first line of as --version output.
5195         * configure: Regenerate.
5196
5197         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
5198         MT_WARNING, MT_ERROR, MT_FATAL.
5199         (main): Call gcc_init_libintl.
5200         (v_message): Call gettext on msgid and "warning: "
5201         * tradcif.y: Include intl.h.
5202         (yyerror): Make parameter definition consistent with
5203         prototype.  Call gettext on msgid argument.
5204
5205 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5206
5207         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
5208         warnings.
5209
5210         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
5211
5212 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5213
5214         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
5215         before referencing it.
5216
5217 2001-10-26  DJ Delorie  <dj@redhat.com>
5218
5219         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
5220         override -G, and force -G0.
5221
5222 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
5223
5224         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
5225         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
5226         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
5227         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
5228
5229         * loop.h (struct induction): Rename ext_dependant to
5230         ext_dependent.
5231         * loop.c: Change all uses.
5232         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
5233         All callers changed.
5234         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
5235
5236 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
5237
5238         * c-parse.in (expr_no_commas, primary), c-typeck.c
5239         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
5240
5241 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
5242
5243         Undo assemble_name change in earlier patch.
5244
5245 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
5246
5247         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
5248         determining the type of the receiver, do not check that TREE_CODE
5249         of receiver is CALL_EXPR before calling receiver_is_class_object().
5250         (receiver_is_class_object): For the GNU runtime: recognize
5251         the case that the receiver is self in a class method context.
5252         Check that TREE_CODE of receiver is CALL_EXPR when checking that
5253         the receiver is a call to objc_get_class.
5254
5255 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5256
5257         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
5258
5259 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5260
5261         * Makefile.in (OBJS): Put all files in alphabetical order.
5262
5263         * dwarf2out.c (add_const_value_attribute): Fix error in last
5264         change.
5265
5266 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
5267
5268         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
5269         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
5270         fix warning.
5271         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
5272         (life_analysis): call purge_all_dead_edges after deleting noops.
5273         (delete_noop_move): Do not purge CFG.
5274         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
5275
5276 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
5277
5278         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
5279         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
5280         (ASM_GLOBALIZE_LABEL): Use assemble_name.
5281         (ASM_OUTPUT_COMMON): Likewise.
5282         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
5283         (rs6000_output_function_epilogue): Likewise.
5284         (output_mi_thunk): Fix typo.
5285         (rs6000_output_symbol_ref): Use assemble_name.
5286         (output_toc): Likewise.
5287         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
5288         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
5289         assemble_name calls STRIP_NAME_ENCODING.
5290         (ASM_OUTPUT_LABEL): Use assemble_name.
5291         (ASM_GLOBALIZE_LABEL): Likewise.
5292         (ASM_DECLARE_FUNCTION_NAME): Likewise.
5293         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
5294         (ASM_OUTPUT_LOCAL): Likewise.
5295
5296 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5297
5298         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
5299         (expand_builtin_apply, expand_builtin_return): Likewise.
5300         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
5301
5302 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
5303
5304         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
5305         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
5306         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
5307         configure, configure.in, except.c, except.h, flow.c, function.c,
5308         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
5309         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
5310         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
5311         unroll.c: Fix spelling errors.
5312
5313         * doc/extend.texi, doc/invoke.texi: Fix spelling.
5314
5315         * doc/gcc.texi: Document use of "dependent" and American spelling.
5316
5317 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
5318
5319         * expr.c (emit_group_load): Support CONCATs by storing them to memory
5320         and reloading.
5321
5322 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5323
5324         * expr.c (store_constructor_field): Only call adjust_address on MEM.
5325
5326 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
5327
5328         * genrecog.c (write_switch):  Output if before switch for
5329         DT_elt_zero_wide_safe.
5330
5331 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5332
5333         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
5334         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
5335         (FUNCTION_PROFILER): Const-ify.
5336         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
5337         (eliminate_constant_term, assemble_name, output_addr_const):
5338         Remove declarations.
5339         (ptr_half_pic_address_p, half_pic_hash): Prototype.
5340         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
5341         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
5342         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
5343         (half_pic_declare, half_pic_external): Const-ify.
5344         * toplev.c: Include "halfpic.h".
5345
5346 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
5347
5348         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
5349         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
5350         config/i386/i386.c, config/i386/i386-interix.h,
5351         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
5352         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
5353         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
5354         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
5355         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
5356         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
5357         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
5358         spelling errors.
5359
5360         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
5361         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
5362         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
5363         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
5364         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
5365         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
5366         system.h, toplev.c: Fix spelling errors.
5367
5368 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5369
5370         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
5371
5372         * dwarf2out.c (reg_number): Abort if pseudo.
5373         (reg_loc_descriptor): Return 0 if pseudo.
5374         (is_based_loc): Return 0 if pseudo.
5375         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
5376         recursive calls.
5377         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
5378         (loc_descriptor): Return 0 if can't find location and handle 0
5379         return from recursive calls.
5380         (loc_descriptor_from_tree): Likewise.
5381         Fix handling of indirect.
5382         Also return 0 for PLACEHOLDER_EXPR.
5383         Clean up COMPONENT_REF cases.
5384         (add_AT_location_descriptor): Simplify, but handle 0 return from
5385         loc_descriptor.
5386         (add_const_value_attribute): Avoid shift count warning.
5387         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
5388         Set comp_unit_die as context if not in function.
5389
5390         * config/mips/mips-protos.h: Break up long lines.
5391         Remove needless #ifdef/#endif blocks.
5392         Don't declare functions declared in file made by genpreds or recog.h.
5393         * config/mips/mips.c (mips_output_function_prologue): TSIZE
5394         is now HOST_WIDE_INT; delete unneeded casts.
5395         * config/mips/mips.h: Don't use #elif.
5396
5397         * expr.c (stor_constructor_field): Always call adjust_address.
5398         Copy TARGET before changing its alias set.
5399         (store_field): Likewise, for TO_RTX.
5400         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
5401         replacement.
5402         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
5403         (find_placeholder): Return 0 if can't find object.
5404         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
5405         returns 0.
5406
5407 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
5408
5409         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
5410
5411 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
5412
5413         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
5414         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
5415         (merge_blocks): Properly udpate life after making edge nonfallthru.
5416         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
5417
5418 2001-10-26  Kazu Hirata  <kazu@hxi.com>
5419
5420         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
5421
5422 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5423
5424         * c-typeck.c (convert_arguments): When comparing for enumeral
5425         type equality, use TYPE_MAIN_VARIANT.
5426         * gcc.dg/Wconversion.c: New tests.
5427
5428 2001-10-26  Kazu Hirata  <kazu@hxi.com>
5429
5430         * s390/s390.c: Fix comment typos.
5431         * s390/s390.h: Likewise.
5432         * s390/s390.md: Likewise.
5433
5434 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
5435
5436         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
5437         (walk_tree): Use it for tail calls where appropriate.
5438
5439 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
5440
5441         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
5442         non-local label_refs.
5443
5444 2001-10-26  Kazu Hirata  <kazu@hxi.com>
5445
5446         * config/h8300/h8300.md (4 anonymous patterns): New.
5447
5448 2001-10-26  Kazu Hirata  <kazu@hxi.com>
5449
5450         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
5451         algorithm through the shift_info structure.
5452         (emit_a_shift): Update the use of get_shift_alg.
5453
5454 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
5455
5456         * sched-rgn.c: Remove bitset typedef.
5457         Change bitset to sbitmap in prototypes / variable types.
5458         Remove bbset_size.
5459         Remove edgeset_bits.
5460         Remove edgeset_size.
5461         s/BITSET_ADD/SET_BIT/g
5462         s/BITSET_INVERT/sbitmap_ones/g
5463         s/BITSET_INTER/sbitmap_a_and_b/g
5464         s/BITSET_UNION/sbitmap_a_or_b/g
5465         s/BITSET_DIFFER/sbitmap_difference/g
5466         s/bitset_member/TEST_BIT/g
5467         (BITSET_*): Removed.
5468         (bitset_member): Removed.
5469         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
5470         EXECUTE_IF_SET_IN_SBITMAP.
5471         (split_edges): Rewrite, use sbitmap functions instead of bitset
5472         operations.
5473         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
5474
5475 2001-10-26  Andreas Schwab  <schwab@suse.de>
5476
5477         * reload1.c (emit_input_reload_insns): Fix parens in last
5478         (undocumented) change that was supposed to change only whitespace.
5479
5480 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5481
5482         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
5483
5484         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
5485         ASM_OPERANDS.
5486
5487 2001-10-26  Andreas Jaeger  <aj@suse.de>
5488
5489         * flow.c (clear_log_links): Remove unused variable.
5490         * cfgcleanup.c (cleanup_cfg): Likewise.
5491
5492 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
5493
5494         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
5495         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
5496
5497 2001-10-26  Richard Henderson  <rth@redhat.com>
5498
5499         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
5500         rename PV_REG to R27_REG.
5501         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
5502         (REG_CLASS_FROM_LETTER): Update.
5503         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
5504         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
5505         (udivsi3, modsi3, umodsi3): Likewise.
5506         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
5507
5508 2001-10-26  Richard Henderson  <rth@redhat.com>
5509
5510         * cfg.c (clear_aux_for_blocks): Split out of ...
5511         (free_aux_for_blocks): here.
5512         (clear_aux_for_edges): Split from ...
5513         (free_aux_for_edges): here.
5514         * basic-block.h: Declare them.
5515         * lcm.c (compute_antinout_edge): Use them.
5516         (compute_laterin, compute_available, compute_nearerout): Likewise.
5517         (optimize_mode_switching): Likewise.
5518
5519 2001-10-26  Richard Henderson  <rth@redhat.com>
5520
5521         * Makefile.in (unstage*): Remove as, ld, collect-ld before
5522         moving everything back to the main build directory.
5523
5524 2001-10-26  Christopher Faylor  <cgf@redhat.com>
5525
5526         * config/i386/cygwin.h: Search target specific include directory, if
5527         appropriate.
5528
5529 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5530
5531         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
5532         of macro guards. Fix #endif comment.
5533
5534         * output.h (default_exception_section, default_eh_frame_section):
5535         Move prototypes outside of macro guard.
5536
5537         * crtstuff.c: Fix #endif comment.
5538
5539 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
5540
5541         * doc/md.texi (movMM): Clarify semantics of storing into a
5542         non-paradoxical SUBREG.
5543
5544 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
5545
5546         * langhooks.c (lang_hook_default_clear_binding_stack): New.
5547         (lang_hook_default_get_alias_set): Move next to other alias
5548         hooks.
5549         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
5550         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
5551         (LANG_HOOKS_INITIALIZER): Add it.
5552         * toplev.h (struct lang_hooks): Add clear_binding_stack.
5553         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
5554         instead of a loop calling poplevel.
5555
5556 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
5557
5558         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
5559         occurrences of #elif with #if...#endif.
5560
5561 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5562
5563         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
5564
5565 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5566
5567         * alias.c (can_address_p): No longer static.
5568         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
5569         Return 0 if all parameters are default values.
5570         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
5571         (adjust_address_1): Try harder to compute a size.
5572         * expr.c (expand_assignment, store_constructor): If can't address,
5573         set MEM_KEEP_ALIAS_SET_P.
5574         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
5575         (store_field): Likewise.
5576         (store_constructor): Simplify call to store_constructor_field.
5577         * expr.h (can_address_p): New declaration.
5578         * gensupport.c (gen_rtx_CONST_INT): New function.
5579         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
5580         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
5581         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
5582
5583         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
5584
5585 2001-10-24  Christopher Faylor  <cgf@redhat.com>
5586
5587         * config/i386/cygwin.h: Use proper path for mingw crt files when
5588         -mno-cygwin.
5589
5590 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5591
5592         * dwarf2out.c (file_info_cmp): Always return consistent results.
5593
5594 2001-10-24  Roger Sayle <roger@eyesopen.com>
5595
5596         * stmt.c (expand_end_case): Index jumptables from zero for
5597         suitably small values of minval.
5598
5599 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
5600
5601         * stor-layout.c (place_union_field): If any field was aligned with
5602         attribute aligned, set record type's TYPE_USER_ALIGN.
5603         (place_field): Likewise.
5604         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
5605         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
5606
5607 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
5608
5609         * c-common.h (struct c_common_identifier): Remove rid_code field.
5610         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
5611
5612         * c-typeck.c (constructor_designated): New local flag.
5613         (struct constructor_stack): Add "designated" field to match.
5614         (start_init): Clear it.
5615         (really_start_incremental_init, push_init_level): Push and
5616         clear it.
5617         (pop_init_level): Pop it.
5618         (set_designator): Set it.
5619
5620         (pop_init_level): Suppress "missing initializer" warnings if
5621         constructor_designated is true.
5622         (process_init_element): Suppress warning about union
5623         initialization under traditional C, if constructor_designated
5624         is true.
5625
5626 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5627
5628         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
5629         change.
5630
5631 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
5632
5633         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
5634
5635 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
5636
5637         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
5638         the node was already a set to a constant.
5639
5640 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5641
5642         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
5643         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
5644
5645 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5646
5647         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
5648         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
5649         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
5650         * s390.c (s390_final_chunkify): Don't use string concatenation.
5651         (s390_function_prologue, s390_function_epilogue): Const-ify.
5652         * s390.h (FUNCTION_PROFILER): Remove unused variable.
5653
5654 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
5655
5656         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
5657         prototypes.
5658
5659 2001-10-23  Stan Shebs  <shebs@apple.com>
5660
5661         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
5662         -traditional-cpp in first-stage compilation.
5663
5664 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5665
5666         * gensupport.c (target_flags): Add.
5667
5668 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
5669
5670         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
5671         if needed.
5672         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
5673         * except.c (expand_builtin_frob_return_addr): Likewise.
5674         (expand_builtin_eh_return): Likewise.
5675         * stmt.c (expand_computed_goto): Likewise.
5676         * explow.c (memory_address): Likewise.
5677         (allocate_dynamic_stack_space): Clean up predicate testing.
5678         (probe_stack_range): Convert SIZE to Pmode.
5679         * calls.c (rtx_for_function_call): Only call convert_memory_address
5680         if needed.
5681         Pass function call operand as ptr_mode, not Pmode.
5682         * expr.c (expand_assignment): Clean up calls to convert_memory
5683         address by only doing so when needed and making offsets Pmode.
5684         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
5685         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
5686         is in Pmode, not ptr_mode.
5687
5688 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5689
5690         * darwin-protos.h (constructor_section, destructor_section,
5691         mod_init_section, mod_term_section): Prototype.
5692         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
5693         Const-ify.
5694         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
5695         Likewise.
5696         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
5697         objc_section_init declaration.
5698         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
5699         (objc_section_init, try_section_alias): Make static.
5700         (alias_section): Make static and hide unused function.
5701         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
5702
5703 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5704
5705         * alias.c (can_address_p): Compnonents are not addressable if
5706         the containing type has alias set 0.
5707         (get_alias_set): Rework to use STRIP_NOPS.
5708         Only call front-end routine on object, type, or object with
5709         NOPs stripped, not inner values.
5710         Use language hook to call front-end routine.
5711         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
5712         (expand_builtin_apply): Call set_mem_align on MEMs we make.
5713         Don't pass alignment to emit_block_move.
5714         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
5715         (expand_builtin_memset): Likewise, but for clear_storage.
5716         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
5717         and remove C++ specific parts.
5718         * c-common.h (c_common_get_alias_set): Add declaration.
5719         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
5720         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
5721         (save_fixed_argument_area): Call set_mem_align.
5722         Remove alignment in call to emit_block_move.
5723         (emit_library_call_value_1, store_one_arg): Likewise.
5724         (target_for_arg): Remove; disabled long ago.
5725         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
5726         once and similar cleanups.
5727         (offset_address): Use proper introductory comment.
5728         * expr.c (emit_block_move): Use alignment from that of MEM args, not
5729         from explicit operand; all callers changed.
5730         (clear_storage): Likewise.
5731         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
5732         (store_field): Remove kludge on alias set used for to_rtx.
5733         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
5734         (expand_expr_unaligned): Call set_mem_attributes instead of
5735         set_mem_alias_set.
5736         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
5737         * function.c (assign_stack_temp_for_type): Set MEM alignment.
5738         (expand_function_end): Track MEM attributes of trampolines.
5739         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
5740         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
5741         attributes from original.
5742         * langhooks.c (lang_hook_default_get_alias_set): New function.
5743         (hook_get_alias_set_0): New function.
5744         * langhooks.h (hook_get_alias_set_0): New declaration.
5745         (lang_hook_default_get_alias_set): Likewise.
5746         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
5747         * reload1.c (alter_reg): Use adjust_address_nv.
5748         * rtl.c (get_mode_alignment): Moved to here.
5749         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
5750         change default if unknown from 1 to BITS_PER_UNIT.
5751         * stor-layout.c (get_mode_alignment): Remove from here.
5752         * toplev.h (struct lang_hoks): Add get_alias_set field.
5753         * tree.h (lang_get_alias_set): Delete declaration.
5754         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
5755         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
5756         (ix86_va_arg): Likewise.
5757         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
5758         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
5759         * config/sparc/sparc.c (sparc_va_arg): Likewise.
5760         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
5761         (expand_block_move_mem): Remove dead code.
5762
5763 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5764
5765         * c-common.c (warn_div_by_zero): New.
5766         * c-common.h (warn_div_by_zero): New.
5767         * c-decl.c (c_decode_option): Take it on the command line.
5768         * c-typeck.c (build_binary_op): Warn about division by zero.
5769         * doc/invoke.texi: Document the new command line option, fix
5770         documentation of -Wmultichar.
5771         * testsuite/gcc.dg/divbyzero.c: New tests.
5772         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
5773
5774 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
5775
5776         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
5777
5778         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
5779         to avoid update_life_info call.
5780         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
5781         * cfgcleanup.c (bb_flags): New enum.
5782         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
5783         (notice_new_block, update_forwarder_flag): New functions.
5784         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
5785         (try_forward_edges): Likewise; update flags.
5786         (merge_blocks): Likewise.
5787         (outgoing_edges_match): Likewise.
5788         (try_crossjump_to_edge): Likewise.
5789         (try_optimize_cfg): Likewise; initialize and clear the flags;
5790         recompute life info if needed.
5791         (cleanup_cfg): No need to clear aux pointers.
5792
5793 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
5794
5795         * config/i386/i386.c (override_options): Default to minimum
5796         stack alignment when optimizing for code size.
5797         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
5798         change.
5799
5800         * config/i386/i386.c (override_options): Set upper limit of
5801         -mpreferred-stack-boundary to 12.
5802
5803 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
5804
5805         * recog.c (peephole2_optimize): Add default case to switch.
5806
5807 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5808
5809         * doc/gcc.texi (Sending Patches): Remove.
5810
5811 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
5812
5813         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
5814         fields when comparing.
5815
5816 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5817
5818         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
5819         * arm.c (HOST_INT, HOST_UINT): Likewise.
5820
5821 2001-10-22  Stan Shebs  <shebs@apple.com>
5822
5823         * config/darwin-protos.h (darwin_exception_section): Declare.
5824         (darwin_eh_frame_section): Declare.
5825
5826 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
5827
5828         * i386.md (movti_rex64): Fix mode.
5829
5830 2001-10-22  Stan Shebs  <shebs@apple.com>
5831
5832         * target.h (struct gcc_target): Add asm_out.exception_section,
5833         asm_out.eh_frame_section.
5834         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
5835         (TARGET_ASM_EH_FRAME_SECTION): New.
5836         (TARGET_INITIALIZER): Update.
5837         * output.h (default_exception_section): Declare.
5838         (default_eh_frame_section): Declare.
5839         * dwarf2out.c: Include target.h.
5840         (output_call_frame_info): Call target hook for eh frames.
5841         (default_eh_frame_section): New function.
5842         * except.c: Include target.h.
5843         (output_function_exception_table): Call target hook for exception
5844         section.
5845         * varasm.c (default_exception_section): Rename from
5846         exception_section, remove EXCEPTION_SECTION macro.
5847
5848         * config/darwin.h (darwin_eh_frame_section): New function.
5849         (EXCEPTION_SECTION): Remove.
5850         (TARGET_ASM_EXCEPTION_SECTION): Define.
5851         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
5852         (nextstep_exception_section): New function.
5853         (nextstep_eh_frame_section): New function.
5854         (TARGET_ASM_EXCEPTION_SECTION): Define.
5855         (TARGET_ASM_EH_FRAME_SECTION): Define.
5856
5857         * config/pa/som.h (EXCEPTION_SECTION): Remove.
5858         (TARGET_ASM_EXCEPTION_SECTION): Define.
5859         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
5860         (EXCEPTION_SECTION): Remove.
5861         (TARGET_ASM_EXCEPTION_SECTION): Define.
5862         * config/stormy16/stormy16.h: Remove comments referencing
5863         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
5864
5865         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
5866         TARGET_ASM_EH_FRAME_SECTION.
5867
5868 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
5869
5870         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
5871         terms.
5872
5873         * c-format.c: Fix spelling typo in comment.
5874
5875         * sched-int.h: Fix typo in GCC preamble.
5876
5877 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5878
5879         PR debug/4252
5880         * doc/invoke.texi: Remove references to -fdump-translation-unit.
5881
5882 2001-10-22  Richard Henderson  <rth@redhat.com>
5883
5884         * config/i386/i386.c (ix86_expand_clear): New.
5885         * config/i386/i386-protos.h: Declare it.
5886         * config/i386/i386.md (setcc peep2s): Use it.
5887         (movsi_xor): Unexport.
5888
5889 2001-10-22  Richard Henderson  <rth@redhat.com>
5890
5891         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
5892         free_EXPR_LIST_list for LOG_LINKS.
5893
5894 2001-10-21  Robert Lipe  <robertlipe@usa.net>
5895
5896         * config/i386/i386.c (sco_asm_named_section): Delete.
5897         (sco_asm_out_constructor): Delete.
5898         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
5899         (ASM_OUTPUT_DOUBLE_INT): Likewise.
5900         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
5901         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
5902         (EXCEPTION_SECTION): Delete EH scn renaming hack.
5903
5904 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5905
5906         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
5907         and/or fold extra calls into fewer ones.
5908         * collect2.c (dump_file): Likewise.
5909         * cppexp.c (parse_number): Likewise.
5910         * cpplex.c (_cpp_lex_direct): Likewise.
5911         * final.c (output_asm_insn, asm_fprintf): Likewise.
5912         * fix-header.c (inf_scan_ident, main): Likewise.
5913         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
5914         Likewise.
5915         * fold-const.c (real_hex_to_f): Likewise.
5916         * gen-protos.c (parse_fn_proto): Likewise.
5917         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
5918         * genrecog.c (change_state, write_action): Likewise.
5919         * gensupport.c (shift_output_template): Likewise.
5920         * local-alloc.c (requires_inout): Likewise.
5921         * mips-tfile.c (IS_ASM_IDENT): Likewise.
5922         * protoize.c (is_id_char, main): Likewise.
5923         * real.c (asctoeg): Likewise.
5924         * recog.c (asm_operand_ok): Likewise.
5925         * reload.c (find_reloads): Likewise.
5926         * scan.c (scan_identget_token): Likewise.
5927         * sched-vis.c (print_value): Likewise.
5928         * stringpool.c (ggc_alloc_string): Likewise.
5929         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
5930         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
5931         * tradcpp.c (rescan): Likewise.
5932         * tree.c (clean_symbol_name): Likewise.
5933         * varasm.c (decode_reg_name): Likewise.
5934
5935         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
5936         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
5937         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
5938         * m88k.c (output_ascii): Likewise.
5939         * m88k.h (OVERRIDE_OPTIONS): Likewise.
5940         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
5941         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
5942         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
5943
5944 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5945
5946         * langhooks.c (lang_hook_default_do_nothing,
5947         lang_hook_default_decode_option): New defaults.
5948         * langhooks.h: Make hooks unconditional and non-NULL.
5949         * toplev.c (compile_file, toplev_main): Update.
5950         * toplev.h: Update comments.
5951         * objc/objc-act.c (lang_hooks): Update to new paradigm.
5952
5953 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5954
5955         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
5956
5957         * system.h (IN_RANGE): New macro.
5958
5959 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
5960
5961         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
5962         INTLDEPS variable, which does not include $LIBICONV.
5963         * Makefile.in: Use INTLDEPS in LIBDEPS.
5964         * configure: Regenerate.
5965
5966 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5967
5968         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
5969         * cpplex.c (lex_percent, lex_dot): Remove.
5970         (get_effective_char, skip_block_comment, skip_line_comment,
5971         parse_identifier_slow, parse_number, parse_string, save_comment,
5972         _cpp_lex_direct): Update to do lookback freely.
5973         (IF_NEXT_IS, BACKUP): New macros.
5974         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
5975         * cppmacro.c (paste_tokens): Update.
5976
5977 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
5978
5979         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
5980
5981 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
5982
5983         * reload1.c (reload): Check CONSTANT_P before calling
5984         LEGITIMATE_PIC_OPERAND_P.
5985         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
5986         workaround of 2001-10-13.
5987
5988 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
5989
5990         * i386.c (split_di): Handle splitting of DFmode.
5991
5992 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5993
5994         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
5995         (adjust_address_1, offset_address): Likewise.
5996
5997         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
5998         (output_asm_insn): Call it for each line output.
5999         Don't record an operand more than once.
6000
6001         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
6002         * main.c: Include config.h and system.h, but not ansidecl.h.
6003         * Makefile.in (main.o): Update accordingly.
6004
6005 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
6006
6007         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
6008
6009 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
6010
6011         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
6012         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
6013         Break out from ...
6014         (find_sub_basic_blocks): ... here;
6015         (find_many_sub_basic_blocks): New.
6016         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
6017
6018         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
6019
6020         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
6021
6022         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
6023
6024         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
6025         * flow.c (update_life_info): Measure time.
6026         * c-decl.c: Include timevar.h
6027         (c_expand_body): Measure time.
6028         * toplev.c (rest_of_compilation): Measure time of mode switching
6029         separately.
6030         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
6031
6032         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
6033         (lang_independent_options): Add asynchronous-unwind-tables
6034         (toplev_main): flag_asynchronous_unwind_tables implies
6035         flag_unwind_tables.
6036         * flags.h (flag_asynchronous_unwind_tables): Declare.
6037         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
6038         flag_asynchronous_unwind_tables.
6039         (output_call_frame_info): Likewise.
6040         * invoke.texi (-fasynchronous-unwind-tables): Document.
6041         * i386.c (optimization_options): Enable
6042         flag_asynchronous_unwind_tables.
6043
6044         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
6045         * i386.md (s* expanders): Destination is QImode.
6046
6047         * toplev.c (rest_of_compilation): Do not call clear_log_links.
6048         * rtl.h (clear_log_links): Kill.
6049         * flow.c (clear_log_links): Make static; accept blocks parameter;
6050         do no clear life info.
6051         (update_life_info): Call clear_log_links.
6052
6053         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
6054
6055 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6056
6057         * cpplex.c (handle_newline, skip_escaped_newlines,
6058         get_effective_char, skip_block_comment, skip_line_comment,
6059         parse_identifier_slow, parse_number, parse_string,
6060         _cpp_lex_direct): Update to do more stepping back.
6061         (trigraph_ok): Similarly.  Rename trigraph_p.
6062         (SAVE_STATE, RESTORE_STATE): Remove.
6063         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
6064
6065         * cpplib.c (destringize): Rename destringize_and_run, and
6066         call run_directive directly.
6067         (_cpp_do__Pragma): Simplify.
6068
6069 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6070
6071         * pe.c (arm_pe_unique_section): Const-ify.
6072         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
6073         (switch_to_section): Add static prototype.
6074
6075         * output.h (drectve_section): Prototype.
6076
6077 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6078
6079         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
6080         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
6081         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
6082         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
6083         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
6084         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
6085         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
6086         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
6087         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
6088         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
6089         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
6090         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
6091         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
6092         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
6093         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
6094         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
6095         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
6096         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
6097         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
6098         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
6099         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
6100         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
6101         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
6102         cris-*-none, cris-*-linux*: Update ${tmfile} list.
6103         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
6104         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
6105         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
6106         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
6107         v850-*-*): Delete superflous ${cpu_type} setting.
6108         * config/linux.h: Delete svr4.h include.
6109         (SET_ASM_OP): Delete.
6110         * config/netware.h (INT_ASM_OP): Undef before define.
6111         * config/ptx4.h: Delete elfos.h include.
6112         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
6113         * config/svr4.h: Delete elfos.h include. Update commentary.
6114         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
6115         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
6116         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
6117         config/v850/v850.h: Delete svr4.h include.
6118         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
6119         config/m68k/m68kv4.h, config/m88k/sysv4.h,
6120         config/sparc/sysv4.h: Update includes.
6121         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
6122         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
6123         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
6124         config/m88k/dguxbcs.h: Delete includes.
6125         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
6126         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
6127         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
6128         it.
6129         * config/m88k/dgux.h: Delete include.
6130         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
6131         defining it.
6132         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
6133         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
6134         * config/sh/elf.h: Update include.
6135         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
6136         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
6137
6138 2001-10-19  Catherine Moore  <clm@redhat.com>
6139
6140         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
6141         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
6142         base and count fields.
6143         (stormy16_expand_builtin_va_start):  last_reg_count changed to
6144         size_of_reg_args.  Use count + size in first comparison.
6145
6146 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6147
6148         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
6149         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
6150         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
6151         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
6152         Set alignment from type if INDIRECT_REF.
6153         (adjust_address_1, offset_address): Simplify alignment compuitation.
6154         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
6155         here; done by set_mem_attributes.
6156
6157 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6158
6159         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
6160         * arm-protos.h (rdata_section, zero_init_section, common_section):
6161         Prototype.
6162         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
6163         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
6164         traditional mode stringification.
6165         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
6166         in macros controling its use.
6167         * rtlanal.c: Include tm_p.h.
6168         * varasm.c (asm_output_aligned_bss): Mark parameter with
6169         ATTRIBUTE_UNUSED.
6170         (assemble_constant_align, assemble_start_function, assemble_align,
6171         assemble_variable, assemble_trampoline_template,
6172         output_constant_def_contents): Wrap potentially empty if-stmt body
6173         in brackets.
6174
6175 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6176
6177         * a29k-protos.h (literal_section): Prototype.
6178         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
6179         * a29k.md: Ensure function pointers are prototyped.
6180         * genattrtab.c (write_eligible_delay): Mark parameter with
6181         ATTRIBUTE_UNUSED.
6182
6183 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6184
6185         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
6186         * 1750a.c (print_operand): Fix format specifier warning.
6187         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
6188         * 1750a.md: Likewise.
6189         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
6190         * genemit.c (output_add_clobbers): Mark parameter with
6191         ATTRIBUTE_UNUSED.
6192         * genrecog.c (write_subroutine): Likewise.
6193         * integrate.c (expand_inline_function): Delete unused variable.
6194         * varasm.c (remove_from_pending_weak_list): Wrap with
6195         ASM_WEAKEN_LABEL.
6196
6197 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
6198
6199         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
6200         field is different to previous argument's neg field.
6201
6202         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
6203
6204 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6205
6206         * final.c (get_decl_from_op): New function.
6207         (output_asm_insn): Call it; write "*" when item with decl is address.
6208
6209 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
6210
6211         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
6212         about 64-bit support from the 3.0_branch version.
6213
6214 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
6215
6216         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
6217         USE_INCLUDED_LIBINTL when appropriate.
6218         * configure, config.in: Regenerate.
6219         * Makefile.in (datadir): Set to @datadir@.
6220         (intl.o): Also depend on $(CONFIG_H) and system.h.
6221
6222         * intl.c: Factor out common gettext initialization sequence.
6223         (gcc_init_libintl):  New function.
6224         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
6225         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
6226         off NLS.  Add multiple include guard.  No need to #ifdef-guard
6227         an #undef.  Prototype gcc_init_libintl here.
6228
6229         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
6230         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
6231         Use gcc_init_libintl.
6232
6233 2001-10-19  Catherine Moore  <clm@redhat.com>
6234
6235         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
6236
6237         * config/stormy16/stormy16.c (stormy16_split_move):  Make
6238         sure that REG_INC notes are present for auto_inc operands.
6239
6240 2001-10-19  Andreas Jaeger  <aj@suse.de>
6241
6242         * configure: Regenerated.
6243         * configure.in: Add x86_64 to switch statements.
6244
6245 2001-10-18  Richard Henderson  <rth@redhat.com>
6246
6247         * config/alpha/alpha.md (sibcall_osf_1): Load destination
6248         address into $27 explicitly.
6249         (sibcall_value_osf_1): Likewise.
6250
6251 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6252
6253         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
6254         (offset_address): New function.
6255         (free_emit_status): Free regno_decl.
6256         (init_emit): Pass proper number of elements to xcalloc.
6257         Allocate regno_decl.
6258         (mark_emit_status): Mark regno_decl values.
6259         * expr.c (highest_pow2_factor): New function.
6260         (expand_assigment): Use it and offset_address.
6261         Properly handle ptr_mode vs. Pmode in offset calculation.
6262         (store_constructor, expand_expr_unaligned): Likewise.
6263         (expand_expr, case COMPONENT_EXPR): Likewise.
6264         * expr.h (offset_address): New decl.
6265         * function.h (struct emit_status): Add regno_decl.
6266         (REGNO_DECL): New macro.
6267         * final.c (output_asm_name): Move in file and don't conditionalize
6268         on flag_print_asm_name.
6269         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
6270         Output names of operands, if known.
6271         * function.c (assign_parms): Set REGNO_DECL.
6272         * integrate.c (integrate_decl_tree): Likewise.
6273         * stmt.c (expand_decl): Likewise.
6274         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
6275
6276 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
6277
6278         * attribs.c (handle_noinline_attribute): New function.
6279         (handle_used_attribute): Likewise.
6280         (c_common_attribute_table): Added noinline and used.
6281         * doc/extend.texi (Function Attributes): Document them.
6282         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
6283         Warn when merging inline with attribute noinline.
6284         (start_decl, start_function): Warn if inline and attribute
6285         noinline appear in the same declaration.
6286
6287 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6288
6289         * config.gcc: Update c4x and i370 for C front end-specific
6290         dependencies.
6291         * config/c4x/c4x-c.c: New.
6292         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
6293         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
6294         New declarations.
6295         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
6296         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
6297         Make extern.
6298         (c4x_init_pragma): Remove.
6299         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
6300         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
6301         c4x_pr_ignored): Move to c4x-c.c.
6302         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
6303         * config/c4x/t-c4x: Update.
6304         * config/i370/i370-c.c: New.
6305         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
6306         (i370_pr_map): Move to i370-c.c.
6307         * config/i370/t-i370: New.
6308
6309         * doc/tm.texi: Update.
6310
6311 2001-10-17  Stan Shebs  <shebs@apple.com>
6312
6313         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
6314         typo fixes throughout.
6315         (machopic_output_stub): Remove some dead code.
6316
6317 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
6318
6319         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
6320         leak.
6321
6322 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6323
6324         * Makefile.in (print-rtl.o): Depend on TREE_H.
6325         * alias.c (get_alias_set): Make two passes over objects to first
6326         see if inner object is access via restricted pointer.
6327         Defer allocating alias set for restricted pointer until here.
6328         Call find_placeholder with second arg nonzero.
6329         Minor cleanups.
6330         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
6331         set for restricted pointer types.
6332         * emit-rtl.c (set_mem_attributes): Set more attributes.
6333         (set_mem_align, change_address, adjust_address_1): New functions.
6334         (change_address_1): Now static.
6335         (adjust_address, adjust_address_nv): Deleted.
6336         (replace_equiv_address): Call change_address_1.
6337         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
6338         (find_placeholder): Get starting point from PLIST arg.
6339         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
6340         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
6341         (adjust_address, adjust_address_nv): New macros.
6342         * print-rtl.c (tree.h): New include.
6343         (print_rtx, case MEM): Print all memory attributes.
6344
6345 2001-10-17  Richard Henderson  <rth@redhat.com>
6346
6347         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
6348
6349 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6350
6351         * c-tree.texi: Eliminate duplicated word.
6352         * cpp.texi: Likewise.
6353         * install.texi: Likewise.
6354         * invoke.texi: Likewise.
6355         * tm.texi: Likewise.
6356
6357 2001-10-17  Michael Collison  <collison@isisinc.net>
6358
6359         * dsp16xx.c: Fix comment formatting to match GNU standards.
6360         (dsp16xx_output_function_prologue): Change type of 'size'
6361         parameter from 'int' to HOST_WIDE_INT.
6362         (dsp16xx_output_function_epilogue): Change type of 'size'
6363         parameter from 'int' to HOST_WIDE_INT.
6364
6365 2001-10-16  Richard Henderson  <rth@redhat.com>
6366
6367         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
6368         * configure, config.in: Rebuild.
6369
6370         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
6371         (ix86_output_addr_diff_elt): New.
6372         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
6373         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6374         (JUMP_TABLES_IN_TEXT_SECTION): New.
6375         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
6376         * config/i386/i386-protos.h: Update.
6377
6378         * config/i386/386bsd.h, config/i386/beos-elf.h,
6379         config/i386/freebsd-aout.h, config/i386/freebsd.h,
6380         config/i386/i386-interix.h, config/i386/i386elf.h,
6381         config/i386/linux.h, config/i386/netbsd-elf.h,
6382         config/i386/netbsd.h, config/i386/openbsd.h,
6383         config/i386/ptx4-i.h, config/i386/rtemself.h,
6384         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
6385         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
6386
6387 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
6388
6389         * stmt.c (expand_asm_operands): Update commentary.
6390
6391 2001-10-16  Stan Shebs  <shebs@apple.com>
6392
6393         * config/darwin.h (GCC_NAME): Remove, no longer used.
6394         (NO_MATH_LIBRARY): Ditto.
6395         (MATH_LIBRARY): Define to emptiness.
6396         (DWARF2_DEBUGGING_INFO): Define.
6397         (PREFERRED_DEBUGGING_TYPE): Define.
6398         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
6399         (EXCEPTION_SECTION): Define.
6400         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6401         * config/darwin.c (darwin_encode_section_info): Handle case of
6402         DECL_INITIAL being error_mark_node.
6403
6404 2001-10-16  Richard Henderson  <rth@redhat.com>
6405
6406         * alpha.c (current_file_function_operand): Don't fail for profiling.
6407         (direct_call_operand): New.
6408         * alpha-protos.h: Declare it.
6409         * alpha.h (EXTRA_CONSTRAINT): Use it.
6410         (PREDICATE_CODES): Add it.
6411         (ASM_OUTPUT_MI_THUNK): Remove.
6412         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
6413         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
6414
6415 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
6416
6417         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
6418         (JUMP_TABLES_IN_TEXT_SECTION): Define.
6419
6420 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
6421
6422         * cfg.c (free_edge): Break out from ....
6423         (remove_edge): ... here.
6424         (clear_edges): Use free_edge.
6425
6426         * att.h (ASM_QUAD): Add comment.
6427         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
6428
6429 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
6430
6431         * i386.c (split_ti): New function.
6432         (ix86_split_to_parts): Support TImodes.
6433         * i386.h (VALID_INT_MODE_P): Add TImode.
6434         * i386.md (movdi splitter): Fix.
6435         (movti): Support 64bit integer registers.
6436         (movti_rex64): New function and splitter.
6437
6438         * i386.c (*_cost): Add movsx/movzx cost.
6439         * i386.h (struct processor_costs): Add movsx/movzx fields.
6440         (RTX_COSTS): Handle zero/sign extend + avoid believing that
6441         64bit operations require split on 64bit machine.
6442         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
6443
6444         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
6445         (ix86_expand_move): Avoid pushes of memory if size does not match;
6446         move long constants to register.
6447         (x86_initialize_trampoline): Fix mode.
6448         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
6449         Use ASM_QUAD on 64bit.
6450         * i386.md (test pattern): Disallow impossible constants.
6451         (tablejump PIC expander): Fix emitting of sum.
6452         (movdicc_rex64): Rename to movdicc.
6453         * linux64.h (LINK_SPEC): Add missing '%'.
6454
6455 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
6456
6457         * tree-inline.c (inlinable_function_p): Leave it up to the
6458         front-end to turn -finline-functions into DECL_INLINE set for all
6459         functions.
6460
6461 2001-10-16  Stan Shebs  <shebs@apple.com>
6462
6463         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
6464
6465 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
6466
6467         * recog.c: Formatting and comment typo fixes.
6468
6469         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
6470         version in single tree build.
6471         * configure: Regenerate.
6472
6473 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
6474
6475         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
6476         MODE arguments to gen_rtx and compare operand with const0_rtx.
6477
6478 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6479
6480         * system.h: Poison old unused target macros.
6481         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
6482         * config/stormy16/stormy16.c: Update references to obsolete macros.
6483         * config/stormy16/stormy16.h: Similarly.
6484         * config/stormy16/stormy16.md: Similarly.
6485         * config/cris/cris.h: Similarly.
6486
6487 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6488
6489         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
6490         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
6491         cpp_register_pragma): Update accordingly.
6492
6493 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6494
6495         * c-pragma.h (cpp_register_pragma_space): Remove.
6496         * cpplib.h (cpp_register_pragma_space): Remove.
6497         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
6498         (cpp_register_pragma_space): Remove.
6499         (cpp_register_pragma): Simplify using lookup_pragma_entry,
6500         add sanity checks.
6501         (do_pragma): Similarly.
6502         (_cpp_init_internal_pragmas): Don't register namespaces.
6503
6504         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
6505         Don't register namespaces.
6506         * cp/lex.c (init_cp_pragma): Similarly.
6507         * doc/tm.texi: Update.
6508
6509 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6510
6511         PR c/4157
6512         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
6513
6514 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
6515
6516         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
6517         add scheduling support.
6518         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
6519         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
6520         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
6521
6522
6523 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
6524
6525         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
6526         missing CONSTANT_P test in core GCC.
6527
6528 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
6529
6530         * cppmain.c (struct printer): New member source.
6531         (scan_translation_unit): Fix spacing at start of lines.
6532         (cb_line_change): Update.
6533
6534         * gcc.dg/cpp/spacing2.c: New test.
6535
6536 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
6537
6538         * config/cris/arit.c: Use __builtin_labs, not abs.
6539
6540         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
6541
6542         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
6543         misplaced sprintf and fprintf argument.
6544
6545 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
6546
6547         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
6548         * configure.in, Makefile.in: Take out obsolete check-po logic.
6549         * configure, config.in: Regenerate.
6550
6551 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
6552
6553         * objc/objc-act.c (finish_objc): Correct precondition for emitting
6554         symtab declarations.
6555
6556 2001-10-12  Stan Shebs  <shebs@apple.com>
6557
6558         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
6559         declarations of arguments and local variables.
6560
6561 2001-10-12  Christopher Faylor  <cgf@redhat.com>
6562
6563         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
6564         ENDFILE_SPEC definition.
6565
6566 2001-10-12  Kazu Hirata  <kazu@hxi.com>
6567
6568         * gthr-dce.h: Fix comment formatting.
6569         * gthr-posix.h: Likewise.
6570         * gthr-single.h: Likewise.
6571         * gthr-solaris.h: Likewise.
6572         * gthr-vxworks.h: Likewise.
6573         * gthr-win32.h: Likewise.
6574
6575 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
6576
6577         * final.c (output_asm_insn): Make sure assembly dialects are
6578         terminated, not nested.  Output `|' and `}' characters if they
6579         don't appear inside assembly dialect selection.
6580         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
6581         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
6582         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
6583         strsetsi_rex_1): Add {} braces.
6584
6585 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
6586
6587         * toplev.c (compile_file): Ignore return value from yyparse.
6588         Always pop any nested binding levels after yyparse returns.
6589
6590 2001-10-11  Richard Henderson  <rth@redhat.com>
6591
6592         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
6593
6594 2001-10-11  Richard Henderson  <rth@redhat.com>
6595
6596         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
6597         fall back to add_AT_long_long for large CONST_INT.
6598
6599 2001-10-11  Richard Henderson  <rth@redhat.com>
6600
6601         * config/i386/i386.md (setcc splitters): Add four splitters to
6602         simplify compound compares that simplify_comparison can't handle.
6603
6604 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
6605
6606         * cpplex.c (digraph_spellings, token_spellings): Make static.
6607
6608 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6609
6610         * unroll.c (loop_iterations): Fixup last patch.
6611
6612 2001-10-11  Richard Henderson  <rth@redhat.com>
6613
6614         * rtl.h (REG_VTABLE_REF): New.
6615         * rtl.c (reg_note_name): Add it.
6616         * combine.c (distribute_notes): Handle it.
6617         * final.c (final_scan_insn): Handle it.
6618         * tree.def (VTABLE_REF): New.
6619         * expr.c (expand_expr): Handle it.
6620         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
6621         * output.h: Declare them.
6622
6623 2001-10-11  Richard Henderson  <rth@redhat.com>
6624
6625         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
6626         for a DECL_INITIAL.
6627
6628 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
6629
6630         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
6631         available in 64-bit mode.
6632
6633 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
6634
6635         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
6636         cris-*-linux* cases.
6637         * config/cris/cris-protos.h: New file.
6638         * config/cris/cris.c: New file.
6639         * config/cris/cris.h: New file.
6640         * config/cris/cris.md: New file.
6641         * config/cris/linux.h: New file.
6642         * config/cris/aout.h: New file.
6643         * config/cris/arit.c: New file.
6644         * config/cris/cris_abi_symbol.c: New file.
6645         * config/cris/mulsi3.asm: New file.
6646         * config/cris/t-aout: New file.
6647         * config/cris/t-cris: New file.
6648         * config/cris/t-elfmulti: New file.
6649         * config/cris/t-linux: New file.
6650         * doc/invoke.texi: Add CRIS options.
6651         * doc/install.texi (Specific): Add blurb for CRIS.
6652
6653 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
6654
6655         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
6656         before using it.
6657         * config/float/i32.h: Likewise.
6658         * config/float-i386.h: Likewise.
6659         * config/float-i64.h: Likewise.
6660         * config/float-m68k.h: Likewise.
6661         * config/float-sh.h: Likewise.
6662         * config/float-sparc.h: Likewise.
6663
6664 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
6665
6666         * doc/contrib.texi: Add note about CRIS port to my entry.
6667
6668 2001-10-11  Kazu Hirata  <kazu@hxi.com>
6669
6670         * basic-block.h: Fix formatting.
6671         * bitmap.h: Likewise.
6672         * cpplib.h: Likewise.
6673         * c-tree.h: Likewise.
6674         * diagnostic.h: Likewise.
6675         * flags.h: Likewise.
6676         * ggc.h: Likewise.
6677         * longlong.h: Likewise.
6678         * real.h: Likewise.
6679         * reload.h: Likewise.
6680         * rtl.h: Likewise.
6681         * tree.h: Likewise.
6682
6683 2001-10-10  Richard Henderson  <rth@redhat.com>
6684
6685         * c-parse.in (asm_operand): Allow named operands.
6686         * genconfig.c (max_recog_operands): Set to 29.
6687         * local-alloc.c (requires_inout): Skip multiple digits.
6688         * recog.c (asm_operand_ok): Likewise.
6689         (preprocess_constraints): Use strtoul for matching constraints.
6690         (constrain_operands): Likewise.
6691         * regmove.c (find_matches): Likewise.
6692         * reload.c (find_reloads): Likewise.
6693         * stmt.c (parse_output_constraint): Don't reject in-out
6694         constraint on operands > 9.  Reject '[' in constraint.
6695         (expand_asm_operands): Handle named operands.  Use strtoul
6696         for matching constraints.
6697         (check_operand_nalternatives): Split out from expand_asm_operands.
6698         (check_unique_operand_names): New.
6699         (resolve_operand_names, resolve_operand_name_1): New.
6700
6701         * doc/extend.texi (Extended Asm): Document named operands.
6702         * doc/md.texi (Simple Constraints): Document matching constraints
6703         on operands > 9.
6704
6705 2001-10-10  Richard Henderson  <rth@redhat.com>
6706
6707         * combine.c (try_combine): Handle a SEQUENCE of one insn.
6708
6709         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
6710         (jcc splitters): Add two splitters to simplify compound compares
6711         that simplify_comparison can't handle.
6712
6713 2001-10-10  Richard Henderson  <rth@redhat.com>
6714
6715         * langhooks.c: Include langhooks.h.
6716         * Makefile.in (langhooks.o): Depend on it.
6717
6718 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
6719
6720         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
6721         should not be considered as a no-op.
6722         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
6723
6724 2001-10-10  Stan Shebs  <shebs@apple.com>
6725
6726         * alias.c: Remove uses of "register" specifier in declarations
6727         of arguments and local variables.
6728         * c-common.c: Ditto.
6729         * c-convert.c: Ditto.
6730         * c-decl.c: Ditto.
6731         * c-format.c: Ditto.
6732         * c-semantics.c: Ditto.
6733         * c-typeck.c: Ditto.
6734         * caller-save.c: Ditto.
6735         * calls.c: Ditto.
6736         * cfg.c: Ditto.
6737         * cfgbuild.c: Ditto.
6738         * cfgrtl.c: Ditto.
6739         * collect2.c: Ditto.
6740         * combine.c: Ditto.
6741         * convert.c: Ditto.
6742         * cppexp.c: Ditto.
6743         * cppfiles.c: Ditto.
6744         * cse.c: Ditto.
6745         * dbxout.c: Ditto.
6746         * defaults.h: Ditto.
6747         * df.c: Ditto.
6748         * dwarf2out.c: Ditto.
6749         * dwarfout.c: Ditto.
6750         * emit-rtl.c: Ditto.
6751         * explow.c: Ditto.
6752         * expmed.c: Ditto.
6753         * expr.c: Ditto.
6754         * final.c: Ditto.
6755         * fix-header.c: Ditto.
6756         * floatlib.c: Ditto.
6757         * flow.c: Ditto.
6758         * fold-const.c: Ditto.
6759         * function.c: Ditto.
6760         * gcc.c: Ditto.
6761         * gcse.c: Ditto.
6762         * gen-protos.c: Ditto.
6763         * genattrtab.c: Ditto.
6764         * gencheck.c: Ditto.
6765         * genconfig.c: Ditto.
6766         * genemit.c: Ditto.
6767         * genextract.c: Ditto.
6768         * genflags.c: Ditto.
6769         * gengenrtl.c: Ditto.
6770         * genoutput.c: Ditto.
6771         * genpeep.c: Ditto.
6772         * genrecog.c: Ditto.
6773         * gensupport.c: Ditto.
6774         * global.c: Ditto.
6775         * gmon.c: Ditto.
6776         * graph.c: Ditto.
6777         * haifa-sched.c: Ditto.
6778         * hard-reg-set.h: Ditto.
6779         * hash.c: Ditto.
6780         * integrate.c: Ditto.
6781         * jump.c: Ditto.
6782         * lists.c: Ditto.
6783         * local-alloc.c: Ditto.
6784         * loop.c: Ditto.
6785         * mips-tdump.c: Ditto.
6786         * mips-tfile.c: Ditto.
6787         * optabs.c: Ditto.
6788         * prefix.c: Ditto.
6789         * print-rtl.c: Ditto.
6790         * read-rtl.c: Ditto.
6791         * real.c: Ditto.
6792         * recog.c: Ditto.
6793         * reg-stack.c: Ditto.
6794         * regclass.c: Ditto.
6795         * regmove.c: Ditto.
6796         * reload.c: Ditto.
6797         * reload1.c: Ditto.
6798         * reorg.c: Ditto.
6799         * resource.c: Ditto.
6800         * rtl.c: Ditto.
6801         * rtlanal.c: Ditto.
6802         * scan.c: Ditto.
6803         * sched-deps.c: Ditto.
6804         * sched-rgn.c: Ditto.
6805         * sdbout.c: Ditto.
6806         * simplify-rtx.c: Ditto.
6807         * stmt.c: Ditto.
6808         * stor-layout.c: Ditto.
6809         * toplev.c: Ditto.
6810         * tradcif.y: Ditto.
6811         * tradcpp.c: Ditto.
6812         * tree.c: Ditto.
6813         * unroll.c: Ditto.
6814         * varasm.c: Ditto.
6815         * xcoffout.c: Ditto.
6816
6817 2001-10-10  Richard Henderson  <rth@redhat.com>
6818
6819         * rtl.h (can_reverse_comparison_p): Remove.
6820
6821 2001-10-10  Christopher Faylor <cgf@redhat.com>
6822
6823         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
6824         used.
6825
6826 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
6827
6828         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
6829         (Thanks to Chris Faylor for suggesting macro name).
6830         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
6831         WIN32 defines.
6832         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
6833         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
6834         (MATH_LIBRARY): Undef before definition.
6835         (OUTPUT_QUOTED_STRING): Likewise.
6836         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
6837
6838 2001-10-10  Richard Henderson  <rth@redhat.com>
6839
6840         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
6841         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
6842         a tristate comparison value.
6843         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
6844
6845 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6846
6847         PR c++/4512
6848         * unroll.c (loop_iterations): Ignore insns generated by loop
6849         unrolling.
6850
6851         * config.gcc (mips*-*-gnu*): Delete support.
6852         * config/mips/gnu.h: Remove.
6853
6854 2001-10-10  Kazu Hirata  <kazu@hxi.com>
6855
6856         * calls.c: Fix formatting.
6857         * c-decl.c: Likewise.
6858         * cfgcleanup.c: Likewise.
6859         * combine.c: Likewise.
6860         * cppfiles.c: Likewise.
6861         * cpplib.c: Likewise.
6862         * cppmacro.c: Likewise.
6863         * crtstuff.c: Likewise.
6864         * cse.c: Likewise.
6865         * dwarf2out.c: Likewise.
6866         * expmed.c: Likewise.
6867         * expr.c: Likewise.
6868         * fold-const.c: Likewise.
6869         * function.c: Likewise.
6870         * gcse.c: Likewise.
6871         * genattrtab.c: Likewise.
6872         * ggc-page.c: Likewise.
6873         * integrate.c: Likewise.
6874         * libgcc2.c: Likewise.
6875         * loop.c: Likewise.
6876         * optabs.c: Likewise.
6877         * profile.c: Likewise.
6878         * protoize.c: Likewise.
6879         * real.c: Likewise.
6880         * recog.c: Likewise.
6881         * reload1.c: Likewise.
6882         * reload.c: Likewise.
6883         * reorg.c: Likewise.
6884         * resource.c: Likewise.
6885         * sched-rgn.c: Likewise.
6886         * sdbout.c: Likewise.
6887         * stmt.c: Likewise.
6888         * toplev.c: Likewise.
6889         * varasm.c: Likewise.
6890
6891 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
6892
6893         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
6894         * Makefile.in (langhooks.o): Add dependencies.
6895
6896 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
6897
6898         * rs6000.c (rs6000_emit_load_toc_table): Don't
6899         strdup the toc label.
6900         (create_TOC_reference): Likewise.
6901
6902 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
6903
6904         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
6905         version default.
6906
6907 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
6908
6909         * config/i386/i386.c (ix86_attribute_table): Correct
6910         min_len, max_len fields for dllimport, dllexport and shared.
6911
6912 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
6913
6914         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
6915         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
6916         Consistently use "nonzero" instead of "non-zero".
6917
6918 2001-10-09  Kazu Hirata  <kazu@hxi.com>
6919
6920         * acconfig.h: Fix comment formatting.
6921         * c-dump.h: Likewise.
6922         * c-tree.h: Likewise.
6923         * conditions.h: Likewise.
6924         * expr.h: Likewise.
6925         * function.h: Likewise.
6926         * gthr.h: Likewise.
6927         * hwint.h: Likewise.
6928         * integrate.h: Likewise.
6929         * intl.h: Likewise.
6930         * loop.h: Likewise.
6931         * optabs.h: Likewise.
6932
6933 2001-10-09  Kazu Hirata  <kazu@hxi.com>
6934
6935         * c-common.h: Fix comment formatting.
6936         * c-dump.c: Likewise.
6937         * cfg.c: Likewise.
6938         * diagnostic.h: Likewise.
6939         * except.c: Likewise.
6940         * gcc.h: Likewise.
6941         * gcov-io.h: Likewise.
6942         * genattrtab.c: Likewise.
6943         * output.h: Likewise.
6944         * predict.h: Likewise.
6945         * reload1.c: Likewise.
6946         * reload.h: Likewise.
6947         * resource.h: Likewise.
6948         * scan.h: Likewise.
6949         * system.h: Likewise.
6950         * tree.h: Likewise.
6951         * tree-inline.c: Likewise.
6952         * tsystem.h: Likewise.
6953         * varasm.c: Likewise.
6954         * xcoffout.h: Likewise.
6955
6956 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
6957
6958         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
6959
6960 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
6961
6962         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
6963         config/i386/i386elf.h, config/i386/netbsd-elf.h,
6964         config/i386/netware.h, config/mcore/gfloat.h,
6965         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
6966         config/netware.h, gccbug.in: Update FSF address.
6967
6968 2001-10-09  Kazu Hirata  <kazu@hxi.com>
6969
6970         * c-common.c: Fix comment typos.
6971         * cfgrtl.c: Likewise.
6972         * collect2.c: Likewise.
6973         * cpplex.c: Likewise.
6974         * doloop.c: Likewise.
6975         * dwarf2out.c: Likewise.
6976         * dwarfout.c: Likewise.
6977         * expr.c: Likewise.
6978         * fold-const.c: Likewise.
6979         * gcc.c: Likewise.
6980         * gcov.c: Likewise.
6981         * gcse.c: Likewise.
6982         * global.c: Likewise.
6983         * ifcvt.c: Likewise.
6984         * loop.c: Likewise.
6985         * optabs.c: Likewise.
6986         * protoize.c: Likewise.
6987         * regclass.c: Likewise.
6988         * reorg.c: Likewise.
6989         * rtl.h: Likewise.
6990         * stmt.c: Likewise.
6991         * tree.h: Likewise.
6992         * doc/cpp.texi: Likewise.
6993         * doc/c-tree.texi: Likewise.
6994         * doc/extend.texi: Likewise.
6995         * doc/invoke.texi: Likewise.
6996         * doc/objc.texi: Likewise.
6997         * doc/tm.texi: Likewise.
6998
6999 2001-10-08  Richard Henderson  <rth@redhat.com>
7000
7001         * varasm.c (set_named_section_flags): Initialize "declared".
7002
7003 2001-10-08  Robert Lipe  <robertlipe@usa.net>
7004
7005         * varasm.c (struct in_named_entry): Add declared.
7006         (named_section_first_declaration): New function.
7007         (default_elf_asm_named_section): Use it.
7008         * output.h (named_section_first_declaration): New.
7009
7010 2001-10-08  Richard Henderson  <rth@redhat.com>
7011
7012         * i386.md (movsi_xor): Export.
7013         (setcc peep2): Use it when available; add an alternative to
7014         match zero_extendhisi2_and.
7015
7016 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7017
7018         * romp-protos.h (romp_initialize_trampoline): New function.
7019         * romp.c (romp_initialize_trampoline): Likewise.
7020         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
7021         romp_initialize_trampoline.
7022
7023 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7024
7025         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
7026         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
7027         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
7028         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
7029
7030 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7031
7032         * unroll.c (loop_iterations): Extend check for multiple back edges.
7033
7034 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
7035
7036         * langhooks.h: New file.
7037         * Makefile.in (OBJS): Added langhooks.o.
7038         (c-lang.o): Depend on langhooks.h.
7039         (c-common.o): Don't depend on tree-inline.h.
7040         (tree-inline.o): Depend on toplev.h.
7041         (langhooks.o): New rule.
7042         * c-common.c: Don't include tree-inline.h.
7043         (c_mark_lang_decl): Mark argument c as unused.
7044         (c_common_lang_init): Don't initialize hooks here.
7045         * c-lang.c: Include langhooks.h, then override some macros.
7046         (lang_hooks): Initialize with macros in langhooks.h.
7047         (c_init): Don't initialize hooks here.
7048         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
7049         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
7050         * tree-inline.c: Include toplev.h.  Don't define hook variables.
7051         * tree-inline.h: Don't define hook types nor declare hook
7052         variables.  Move macros to...
7053         * langhooks.c: ... new file, as functions.  Adjust all callers.
7054
7055 2001-10-08  Jeffrey A Law  <law@cygnus.com>
7056
7057         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
7058         purge_mem_unchanging_flag on all instructions, not just on those
7059         before NOTE_INSN_FUNCTION_BEG.
7060
7061 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
7062
7063         * cppmacro.c (_cpp_create_definition): Leave comments off.
7064
7065         * doc/cpp.texi: Update.
7066
7067 2001-10-08  DJ Delorie  <dj@redhat.com>
7068
7069         * c-decl.c (grokfield): Make sure the only unnamed fields
7070         we're allowing are either structs or unions.
7071         * doc/extend.texi: Add documentation for the unnamed field
7072         extension.
7073
7074 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
7075
7076         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
7077         * configure.in: Use it.
7078         * configure: Regenerated.
7079         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
7080         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
7081
7082 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
7083
7084         * cppfiles.c (open_file): Don't mark zero-length files
7085         never-reread here.  Don't output diagnostics here either.
7086         (stack_include_file): Mark them never-reread here.
7087         (_cpp_read_file): Update.
7088
7089 2001-10-08  Richard Henderson  <rth@redhat.com>
7090
7091         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7092
7093 2001-10-08  Richard Henderson  <rth@redhat.com>
7094
7095         * expr.c (store_expr): When converting a CONST_INT for storage
7096         in a SUBREG, convert it to both SUBREG modes before stripping
7097         the SUBREG.
7098
7099 2001-10-08  Richard Henderson  <rth@redhat.com>
7100
7101         * varasm.c (restore_varasm_status): New.
7102         * function.h: Declare it.
7103         * function.c (pop_function_context_from): Call it.
7104
7105 2001-10-08  Richard Henderson  <rth@redhat.com>
7106
7107         * c-common.h (struct c_lang_decl): Add declared_inline.
7108         * c-tree.h (DECL_DECLARED_INLINE_P): New.
7109         * c-lang.c (c_disregard_inline_limits): Use it.
7110         * c-decl.c (duplicate_decls): Likewise.
7111         (pushdecl, redeclaration_error_message): Likewise.
7112         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
7113         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
7114         Set DECL_INLINE if -finline-functions.
7115         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
7116
7117 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
7118
7119         * cppmacro.c (funlike_invocation_p): Move some logic to caller
7120         in enter_macro_context.  Create a padding token in its own context
7121         if necessary when the search for '(' fails.
7122         (enter_macro_context): Update.
7123
7124 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
7125
7126         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
7127         genmultilib, toplev.c: Fix spelling errors of "separate" as
7128         "seperate", and corresponding spelling errors of related words.
7129
7130 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7131
7132         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
7133         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
7134         Likewise.
7135         * c-dump.c (dump_option_value_info): Likewise.
7136         * c-format.c (format_length_info, format_char_info,
7137         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
7138         * collect2.c (names): Likewise.
7139         * cppdefault.h (default_include): Likewise.
7140         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
7141         * flow.c (life_analysis): Likewise.
7142         * gcc.c (dir_separator_str, modify_target, option_map,
7143         target_option_translations, spec_list_1, extra_specs_1,
7144         init_spec): Likewise.
7145         * gcov.c (gcov_version_string): Likewise.
7146         * genattr.c (write_units): Likewise.
7147         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
7148         * gengenrtl.c (rtx_definition, defs): Likewise.
7149         * genrecog.c (pred_table): Likewise.
7150         * global.c (global_alloc): Likewise.
7151         * lcm.c (optimize_mode_switching): Likewise.
7152         * local-alloc.c (find_free_reg): Likewise.
7153         * params.h (param_info): Likewise.
7154         * predict.c (predictor_info): Likewise.
7155         * protoize.c (unexpansion_struct): Likewise.
7156         * real.c (bmask): Likewise.
7157         * recog.h (insn_operand_data, insn_data): Likewise.
7158         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
7159         * stmt.c (expand_nl_goto_receiver): Likewise.
7160         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
7161         target_switches, target_options): Likewise.
7162         * tradcif.y (token, tokentab2, yylex): Likewise.
7163         * tree.h (attribute_spec): Likewise.
7164
7165         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
7166         Likewise.
7167         * arc.c (arc_output_function_epilogue): Likewise.
7168         * arm.c (processors, all_cores, all_architectures,
7169         arm_override_options, isr_attribute_arg, isr_attribute_args,
7170         arm_isr_value): Likewise.
7171         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
7172         Likewise.
7173         * c4x.c (c4x_int_reglist): Likewise.
7174         * d30v.c (override_options): Likewise.
7175         * h8300.c (shift_insn): Likewise.
7176         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
7177         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
7178         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
7179         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
7180         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
7181         * i386.h (processor_costs, ix86_cost): Likewise.
7182         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
7183         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
7184         * m68k.c (codes_68881, codes_FPA): Likewise.
7185         * m88k.c (mode_from_align, max_from_align, all_from_align,
7186         best_from_align, m_options): Likewise.
7187         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
7188         * mcore.c (mode_from_align): Likewise.
7189         * mips/elf64.h (UNIQUE_SECTION): Likewise.
7190         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
7191         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
7192         * mips.h (mips_regno_to_class): Likewise.
7193         * ns32k.c (scales): Likewise.
7194         * pa.c (import_string, magic_milli): Likewise.
7195         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
7196         * sparc.c (leaf_reg_remap, sparc_override_options,
7197         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
7198         Likewise.
7199         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
7200
7201 2001-10-07  Dale Johannesen  <dalej@apple.com>
7202
7203         * reload1.c (reload_reg_free_p): Teach register interference
7204         checking that multiple output reloads are emitted in
7205         reverse order.
7206         reload1.c (reload_reg_reaches_end_p):  Ditto.
7207         reload1.c (reloads_conflict):  Ditto.
7208
7209 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
7210
7211         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
7212         NULL_TREE inside @code.
7213
7214 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
7215
7216         * doc/gcc.texi: Document consistent style of "32-bit",
7217         "Objective-C", and "@code{NULL}".
7218
7219 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
7220
7221         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
7222         (cpp_token_len, cpp_spell_token, cpp_output_token,
7223         _cpp_equiv_tokens): Handle it.
7224         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
7225         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
7226         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
7227         error messages.
7228
7229 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7230
7231         * gcc.c (default_compilers): Remove .ada.
7232
7233 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7234
7235         * doc/cppinternals.texi: Update.
7236
7237 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
7238
7239         * gcc.c (main): Set this_file_error if the appropriate
7240         compiler for a language has not been installed.
7241
7242 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
7243
7244         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
7245
7246 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
7247
7248         * gccbug.in (CATEGORIES): Add ada.
7249
7250 2001-10-05  Catherine Moore  <clm@redhat.com>
7251
7252         * config/stormy16/stormy-abi:  Document abi changes.
7253         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
7254         (ICALL_REGS): New register class.
7255         (NUM_ARGUMENT_REGISTERS): Now 6.
7256         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
7257         in registers.
7258         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
7259         * config/stormy16.md (call_internal, call_value_internal,
7260         indirect_jump): Use new 'z' constraint.
7261
7262 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7263
7264         * doc/cppinternals.texi: Update.
7265
7266 2001-10-05  Richard Henderson  <rth@redhat.com>
7267
7268         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
7269         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
7270         the gas section-name-as-label feature.
7271
7272 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7273
7274         * doc/cppinternals.texi: Update.
7275
7276 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7277
7278         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
7279         to ensure valid SImode constants.
7280
7281 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
7282
7283         * Makefile.in (c-decl.o): Depend on tree-inline.h.
7284         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
7285         * c-decl.c: Include tree-inline.h.
7286         (c_expand_body): Call optimize_inline_calls. Determine whether
7287         a function is inlinable upfront, and only clear
7288         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
7289         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
7290         (c_disregard_inline_limits): New function.
7291         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
7292         (c_post_options): Enable tree inlining if inlining is enabled.
7293         Don't inline trees when instrumenting functions.
7294         (c_init): Initialize lang_disregard_inline_limits and
7295         lang_cannot_inline_tree_fn.
7296         * tree-inline.c (initialize_inlined_parameters): Handle calls
7297         with fewer arguments than declared parameters, and fewer
7298         parameters than passed arguments.  Don't assume value is a
7299         DECL.
7300         (declare_return_variable): Convert return value back to the
7301         original type, if it was promoted.
7302         (tree_inlinable_function_p): New function.
7303         (inlinable_function_p): Don't look at DECL_INLINE if we're
7304         inlining all functions.  Make it work with a NULL id.
7305         Re-check DECL_UNINLINABLE after language-specific checks.
7306         * tree-inline.h (tree_inlinable_function_p): Declare it.
7307         * integrate.c (save_for_inline): Don't bother to prepare argvec
7308         when not inlining.
7309         * cse.c (check_for_label_ref): Don't check deleted labels.
7310
7311         * Makefile.in (tree-inline.o): Depend on newly-included headers.
7312         * tree-inline.c: Include headers needed for the functions moved in.
7313         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
7314         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
7315         (copy_body, initialize_inlined_parameters): Likewise.
7316         (declare_return_variable, inlinable_function_p): Likewise.
7317         (expand_call_inline, expand_calls_inline): Likewise.
7318         (optimize_inline_calls, clone_body): Likewise.
7319         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
7320         (copy_tree_r, remap_save_expr): Likewise.
7321
7322 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
7323
7324         * Makefile.in (OBJS): Added tree-inline.o.
7325         (c-common.o): Depend on tree-inline.h.
7326         (tree-inline.o): New target.
7327         * c-common.c: Include tree-inline.h.
7328         (c_mark_lang_decl): Don't mark saved_tree.
7329         (c_common_lang_init): Set lang_anon_aggr_type_p.
7330         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
7331         (struct c_lang_decl): Moved saved_tree to tree_decl.
7332         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
7333         * integrate.h (function_attribute_inlinable_p): Declare it.
7334         * integrate.c (function_attribute_inlinable_p): Export it.
7335         * tree-inline.c: New file.  Define variables declared in...
7336         * tree-inline.h: New file.  Declare functions to be moved to
7337         tree-inline.c.  Define macros and declare types and hooks for
7338         language-specific tree inlining.
7339         (flag_inline_trees): Moved definition from cp/decl2.c.
7340         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
7341         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
7342         (struct tree_decl): Moved saved_tree from c_lang_decl and
7343         inlined_fns from C++'s lang_decl.
7344
7345 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
7346
7347         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
7348         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
7349
7350 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7351
7352         * doc/cppinternals.texi: Update.
7353
7354 2001-10-04  Eric Christopher  <echristo@redhat.com>
7355
7356         * config/mips/mips.c (init_cumulative_args): Remember to set
7357         cum->prototype.
7358         * config.gcc: Redo linux configuration. Add target_cpu_default
7359         of soft-float to all mipsisa32 combinations and tx39.
7360         * config/mips/linux.h: Remove include of mips.h.
7361
7362 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
7363
7364         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
7365         HOST_LDFLAGS and HOST_CPPFLAGS.
7366
7367 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
7368
7369         * c-parse.in (objc_inherit_code, objc_pq_context,
7370         objc_public_flag): Make static.
7371         (objc_interface_context, objc_implementation_context,
7372         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
7373         global tree array in objc/objc-act.[ch].
7374         (methoddef): Remove unnecessary code.
7375
7376         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
7377         Hoist struct definitions to objc-act.h.
7378         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
7379         cat_count): Place declaration in objc-act.h.
7380         (objc_tree_index): Move enumeration to objc-act.h.
7381         (objc_global_trees): Place declaration and macro accessors in
7382         objc-act.h.
7383         (implementation_context): Remove duplicate; use
7384         objc_implementation_context instead:
7385         (method_context): Remove duplicate; use objc_method_context
7386         instead.
7387         (objc_ellipsis_node, objc_method_prototype_template,
7388         implemented_classes, function_type): Move global vars to
7389         objc_global_trees.
7390         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
7391         (build_message_expr): Move actual construction of ObjC message
7392         send nodes to finish_message_expr.
7393         (finish_message_expr): New routine, contains code formerly in
7394         build_message_expr.
7395         * objc/objc-act.h (finish_message_expr): New prototype.
7396         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
7397         declarations; these vars are now part of objc_global_trees.
7398         (objc_tree_index, objc_global_trees): Move definitions from
7399         objc-act.c.
7400         * objc/objc-tree.def: Update copyright info.
7401
7402 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
7403
7404         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
7405         op is NULL.
7406         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
7407         only if TARGET_ARCH64.
7408
7409 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
7410
7411         * doc/extend.texi: Fix some problems with previous checkin.
7412         * doc/invoke.texi: Likewise.
7413
7414 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7415
7416         * cpphash.h: Update comments.
7417         (cpp_context): Update.
7418         (spec_nodes): Remove n__Pragma.
7419         * cppinit.c (cpp_create_reader): Update.
7420         (builtin_array): Add _Pragma.
7421         * cpplib.h: Update comments.
7422         (NODE_DISABLED, BT_PRAGMA): New.
7423         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
7424         * cppmacro.c (struct cpp_macro): Remove disabled.
7425         (builtin_macro): Return int, handle _Pragma, push the new token
7426         on the context stack.
7427         (funlike_invocation_p): Unconstify, update.
7428         (enter_macro_context): Handle builtins here.
7429         (replace_args, push_token_context, push_ptoken_context):
7430         Update for prototype changes.
7431         (_cpp_pop_context): Update.
7432         (cpp_get_token): Don't handle buitins, nor _Pragma here.
7433         (cpp_sys_macro_p): Update.
7434         (_cpp_free_definition): Clear disabled flag.
7435         (_cpp_create_definition): Upate.
7436         * cppmain.c: Update comments.
7437
7438 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
7439                                 Andreas Jaeger <aj@suse.de>,
7440                                 Jan Hubicka    <jh@suse.cz>
7441
7442         * doc/invoke.texi (i386 Options): Document x86-64 options.
7443         (i386 and x86-64 Options): Rename i386 options section.
7444
7445         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
7446         (TARGET_SWITCHES): Add -munwind-info.
7447         (MASK_NO_UNWIND_INFO): New.
7448         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
7449         biarch compilation.
7450         (ASM_OUTPUT_DOUBLE_INT): New.
7451
7452         * config/i386/linux64.h: New spec file for Linux x86-64 support.
7453         * config.gcc: Fix tm_file settings for x86-64.
7454         * config/i386/x86-64.h: New file with OS independent x86-64
7455         definitions.
7456         * config/i386/biarch64.h: New file used to configure compiler
7457         to biarch/64bit compilation.
7458
7459         * config/i386/i386.c: (override_options): Set flags default
7460         for 64bit compilation.
7461
7462 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
7463
7464         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
7465         (ix86_expand_int_movcc): Optimize DImode conditional moves with
7466         constants on x86_64.
7467         (ix86_attr_length_immediate_default): Support MODE_DI.
7468         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
7469         condition.
7470         (indirect_jump, tablejump): Turn into expander.
7471
7472 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7473
7474         * c-common.c (c_format_attribute_table): Make format and
7475         format_arg attributes apply to function types rather than to
7476         decls.
7477         (is_valid_printf_arglist): Construct an attribute list and pass
7478         that to check_function_format rather than a name.
7479         * c-common.h (check_function_format): Adjust prototype.
7480         * c-decl.c (duplicate_decls): Preserve attributes from type of
7481         built-in decl when allowing for harmless conflict in types.
7482         * c-format.c (record_function_format,
7483         record_international_format, function_format_list,
7484         international_format_info, international_format_list): Remove.
7485         (function_format_info): Remove next, name and assembler_name.
7486         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
7487         (decode_format_attr): New.
7488         (handle_format_attribute): Handle receiving a type rather than a
7489         decl.  Call decode_format_attr.  Store format information in a
7490         function_format_info.
7491         (handle_format_arg_attribute): Correct comment.  Handle receiving
7492         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
7493         arg_num.
7494         (check_format_info_recurse, check_format_info_main): Take argument
7495         numbers as unsigned HOST_WIDE_INT.
7496         (check_function_format): Take a list of attributes from the
7497         function type rather than a name or assembler name.  Check for
7498         format attributes in that list and the attributes on the type of
7499         the current function rather than looking through
7500         function_format_list.
7501         (check_format_info): Use unsigned HOST_WIDE_INT for argument
7502         numbers.
7503         (check_format_info_recurse): Take format_arg attributes from the
7504         type of the function calls rather than using
7505         international_format_list.  Allow for multiple format_arg
7506         attributes.
7507         * c-typeck.c (build_function_call): Pass type attributes to
7508         check_function_format rather than name or assembler name.  Don't
7509         require there to be a name or assembler name to check formats.
7510
7511 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7512
7513         * attribs.c (decl_attributes): Possibly call
7514         insert_default_attributes to insert default attributes on
7515         functions in a lazy manner.
7516         * builtin-attrs.def: New file; define the default format and
7517         format_arg attributes.
7518         * c-common.c (c_format_attribute_table): Move to earlier in the
7519         file.
7520         (c_common_nodes_and_builtins): Initialize format_attribute_table.
7521         (enum built_in_attribute, built_in_attributes,
7522         c_attrs_initialized, c_init_attributes,
7523         c_common_insert_default_attributes): New.
7524         (c_common_lang_init): Don't initialize format_attribute_table.  Do
7525         call c_init_attributes.
7526         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
7527         * c-common.h (init_function_format_info): Don't declare.
7528         (c_common_insert_default_attributes): Declare.
7529         * c-decl.c (implicitly_declare, builtin_function): Call
7530         decl_attributes.
7531         (init_decl_processing): Don't call init_function_format_info.
7532         (insert_default_attributes): New.
7533         * c-format.c (handle_format_attribute,
7534         handle_format_arg_attribute): Be quiet about inappropriate
7535         declaration when applying default attributes.
7536         (init_function_format_info): Remove.
7537         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
7538         (insert_default_attributes): Declare.
7539
7540 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7541
7542         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
7543
7544 2001-10-01  Jim Wilson  <wilson@redhat.com>
7545
7546         * sched-deps.c (add_dependence): When elide conditional dependence,
7547         check that insn doesn't modify cond2.
7548
7549 2001-10-01  Dale Johannesen  <dalej@apple.com>
7550
7551         * config/rs6000/rs6000.h (enum processor_type): Add support
7552         for 7400 (G4) and 7450.
7553         (RTX_COSTS): Ditto.
7554         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
7555         (rs6000_issue_rate): Ditto.
7556         (rs6000_adjust_cost): Fix cycle counts for compares.
7557         (debug_stack_info):  Fix an obvious typo.
7558         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
7559         * doc/invoke.texi: Document.
7560         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
7561         for Darwin.
7562         (PROCESSOR_DEFAULT): Ditto.
7563
7564 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
7565
7566         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
7567         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
7568         later recursive make invocation.
7569
7570 2001-10-01  Hans Boehm  <boehm@acm.org>
7571
7572         * optabs.c (emit_libcall_block): When using non-call exceptions,
7573         don't add REG_LIBCALL reg notes to trapping calls.
7574
7575 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
7576
7577         * flow.c (propagate_block_delete_libcall): Remove unused first arg
7578         (propagate_one_insn):  Update for above change
7579
7580 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
7581
7582         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
7583         _Unwind_GetTextRelBase): Argument is unused.
7584
7585 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7586
7587         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
7588         Loop through NOPs, placeholders, and components.
7589         Don't go through NOPs if change mode.
7590         (record_alias_subset): Do nothing if SUBSET and SET are the same.
7591         * emit-rtl.c (set_mem_alias_set): Enable check.
7592         * expr.c (find_placeholder): New function.
7593         (expand_expr, case PLACEHOLDER_EXPR): Use it.
7594         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
7595         to modify it and avoid unneeded copies.
7596         * expr.h (expand_expr): Always define.
7597         (find_placeholder): New declaration.
7598
7599 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7600
7601         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
7602         operand 2 is the stack pointer.
7603         ("addr-peephole"): Fix address computation peephole when operand 2
7604         is the stack pointer.
7605
7606 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7607
7608         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
7609         (ix86_setup_incoming_varargs): Likewise.
7610
7611 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
7612
7613         * stor-layout.c (layout_type): Don't complain about too-large
7614         array here.
7615
7616 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7617
7618         * function.c (keep_stack_depressed): Don't use delete_insn.
7619
7620         * expr.h (set_mem_alias_set): Move decl to here.
7621         * rtl.h (mem_attrs): New typedef and struct.
7622         (union rtunion_def): Add field for mem_attrs.
7623         (X0MEMATTR, MEM_ATTRS): New macros.
7624         (MEM_ALIAS_SET): Use MEM_ATTRS.
7625         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
7626         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
7627         (set_mem_alias_set): Delete decl from here.
7628
7629         * alias.c (set_mem_alias_set): Delete from here.
7630         * emit-rtl.c (mem_attrs_htab): New variable.
7631         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
7632         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
7633         (mem_attrs_mark, get_mem_attrs): Likewise.
7634         (gen_rtx_MEM): Clear MEM_ATTRS.
7635         (set_mem_attributes): Move to here.
7636         (set_mem_alias_set): Likewise, and call get_mem_attrs.
7637         (init_emit_once): const_int_htab now deletable htab.
7638         Initialize mem_attrs_htab.
7639         * explow.c (set_mem_attributes): Delete from here.
7640         * function.c (put_var_into_stack): Clear MEM_ATTRS.
7641         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
7642         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
7643         * reload1.c (reload): Rework changing REG to MEM.
7644
7645 2001-09-30  H.J. Lu <hjl@gnu.org>
7646
7647         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
7648         * config.in: Rebuild.
7649
7650 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7651
7652         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
7653         ("tsthi_1"): Avoid allocation in register y.
7654         ("*movqi_68hc12"): Reorganize and fix constraints.
7655         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
7656         ("addqi3"): Likewise.
7657         ("addhi3"): Fix constraints.
7658         ("*logicalhi3_zexthi"): Disparage soft registers.
7659
7660 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7661
7662         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
7663         to tmp reg.
7664
7665 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7666
7667         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
7668         that we use setjmp/longjmp exceptions.
7669
7670 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
7671
7672         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
7673         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
7674         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
7675         _cpp_pool_alloc, _cpp_next_chunk): Remove.
7676         (_cpp_extend_buff, BUFF_ROOM): Update.
7677         (_cpp_append_extend_buff): New.
7678         (struct cpp_reader): Remove macro_pool, add a_buff.
7679         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
7680         macro_pool.
7681         (cpp_destroy): Free a_buff instead of macro_pool.
7682         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
7683         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
7684         _cpp_pool_alloc, ): Remove.
7685         (parse_number, parse_string): Update use of _cpp_extend_buff.
7686         (_cpp_extend_buff): Update.
7687         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
7688         * cpplib.c (glue_header_name, parse_answer):
7689         Update use of _cpp_extend_buff.
7690         (cpp_register_pragma, cpp_register_pragma_space): Use
7691         _cpp_aligned_alloc.
7692         (do_assert, do_unassert): Check for EOL, update.
7693         * cppmacro.c (stringify_arg, collect_args): Update to use
7694         _cpp_extend_buff and _cpp_append_extend_buff.
7695         (save_parameter, parse_params, alloc_expansion_token,
7696         _cpp_create_definition): Rework memory management.
7697
7698 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
7699
7700         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
7701         update md_exec_prefix.
7702         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
7703         to string constant.
7704
7705 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
7706
7707         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
7708         (SELECT_CC_MODE): Use s390_select_ccmode.
7709         * config/s390/s390-protos.h (s390_select_ccmode): Add.
7710         * config/s390/s390.c (s390_select_ccmode): New.
7711         (s390_match_ccmode): Add CCLmode.
7712         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
7713         (output_branch_condition, output_inverse_branch_condition): Removed.
7714         (print_operand): Use s390_branch_condition_mnemonic.
7715         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
7716         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
7717         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
7718
7719         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
7720         when converting conditional branches to far branches.
7721         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
7722         cmpint_di): Use CCSmode instead of CCUmode.
7723
7724         * config/s390/s390.c (legitimate_la_operand_p): New.
7725         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
7726         * config/s390/s390.md (movsi): Convert load address patterns to
7727         arithmetic operations when necessary.
7728         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
7729         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
7730         (*do_la_reg_0): Don't use before reload.
7731
7732         * config/s390/s390.c (legitimize_address): Make more efficient
7733         use of two-register addressing mode.
7734
7735         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
7736         with -mno-backchain in some corner cases.
7737
7738         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
7739
7740 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
7741
7742         * reload.c (find_reloads): Mark new USE insns with QImode.
7743         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
7744         find_reloads_subreg_address): Likewise.
7745         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
7746         encountered.
7747         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
7748         CLOBBERs.
7749         (reload): Make sure there are no USEs with mode other than
7750         VOIDmode.  At the end, remove those marked with QImode.
7751
7752 2001-09-29  Per Bothner  <per@bothner.com>
7753
7754         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
7755         * Makefile.in (includedir):  Rename to local_includedir.
7756         (includedir):  Define as $(prefix)/include.
7757         * config.in (PREFIX_INCLUDE_DIR):  New variable.
7758         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
7759
7760 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
7761
7762         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
7763         storehps builtins.
7764         * doc/extend.texi (Vector Extensions): New node.
7765         * doc/invoke.texi (Machine Dependent Options): Add documentation for
7766         i386 -mmmx, -msse, -m3dnow.
7767
7768 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
7769
7770         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
7771
7772 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
7773
7774         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
7775
7776         * doc/invoke.texi (Optimize Options): Delete spurious @table.
7777
7778 2001-09-28  Richard Henderson  <rth@redhat.com>
7779
7780         * varasm.c (assemble_integer): Bound alignment check by
7781         BIGGEST_ALIGNMENT.
7782
7783         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
7784
7785 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7786
7787         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
7788
7789 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
7790
7791         Mostly from Graham Stott  <grahams@redhat.com>
7792         * c-common.c (type_for_mode): Add support for V2SFmode.
7793         * tree.c (build_common_tree_nodes_2): Likewise.
7794         * tree.h (enum tree_index, global_trees): Likewise.
7795         * config/i386/i386.c (x86_3dnow_a): New variable.
7796         (override_options): Support 3Dnow extensions.
7797         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
7798         Athlon's version of 3Dnow.
7799         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
7800         (ix86_expand_builtin): Handle them.
7801         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
7802         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
7803         TARGET_3DNOW_A): New macros.
7804         (TARGET_SWITCHES): Add 3Dnow switches.
7805         (VALID_MMX_REG_MODE_3DNOW): New macro.
7806         (VECTOR_MODE_SUPPORTED_P): Use it.
7807         (enum ix86_builtins): Add entries for 3Dnow builtins.
7808         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
7809         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
7810         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
7811         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
7812         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
7813         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
7814         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
7815         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
7816         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
7817         sfence_insn, prefetch): Make these available if TARGET_SSE or
7818         TARGET_3DNOW_A.
7819
7820 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
7821
7822         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
7823         ix86_va_start, ix86_build_va_list): Declare.
7824         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
7825         ix86_va_start, ix86_build_va_list): New global functions.
7826         * i386.md (sse_prologue_save_insn): New insn.
7827         (sse_prologue_save): New expander.
7828         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
7829         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
7830
7831 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7832
7833         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
7834         Use size_t everywhere, make definitions consistent with
7835         prototypes.
7836
7837 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
7838
7839         * gcse.c (replace_store_insn): Use delete_insn.
7840         * loop.c (move_movables): Likewise; avoid delete_insn
7841         from clobbering notes moved elsewhere.
7842         (check_dbra_loop): Use delete_insn.
7843         * ssa.c (convert_from_ssa): Likewise.
7844         * cse.c (cse_insn): Use delete_insn.
7845
7846 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7847
7848         * cpphash.h (struct cpp_buff): Make unsigned.
7849         (_cpp_get_buff): Take length of size_t.
7850         (_cpp_unaligned_alloc): New.
7851         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
7852         (struct cpp_reader): Remove ident_pool.  Add u_buff.
7853         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
7854         (cpp_destroy): Destroy u_buff, not ident_pool.
7855         * cpplex.c (parse_number, parse_string, save_comment,
7856         cpp_token_as_text): Update to use the unaligned buffer.
7857         (new_buff): Make unsigned.
7858         (_cpp_unaligned_alloc): New.
7859         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
7860         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
7861         Similarly.
7862         (collect_args): Make unsigned.
7863
7864 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
7865
7866         * cpplex.c (cpp_output_token): Use a putc loop for
7867         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
7868
7869         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
7870         * configure, config.in: Regenerate.
7871         * system.h: Replace fwrite and fprintf with their unlocked
7872         variants if available.
7873
7874 2001-09-27  Richard Henderson  <rth@redhat.com>
7875
7876         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
7877         in favour of .eh_frame.
7878
7879 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
7880
7881         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
7882         to macros.
7883         (LIBCALL_VALUE): Likewise.
7884
7885 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7886
7887         * cpphash.h: Update comment.
7888         * cpplex.c: Update comments.
7889         (_cpp_can_paste): Remove.
7890         * cpplib.h (_cpp_can_paste): Remove.
7891         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
7892         lexer rather than _cpp_can_paste.
7893
7894 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7895
7896         * doc/cppinternals.texi: Update.
7897
7898 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7899
7900         * cpphash.h (struct cpp_pool): Remove locks and locked.
7901         (struct cpp_context): Add member buff.
7902         (struct cpp_reader): Remove member argument_pool.
7903         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
7904         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
7905         * cpplex.c (chunk_suitable): Remove pool argument.
7906         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
7907         (new_buff, _cpp_extend_buff): Update.
7908         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
7909         which buffer is returned.
7910         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
7911         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
7912         * cppmacro.c (lock_pools, unlock_pools): Remove.
7913         (push_ptoken_context): Take a _cpp_buff.
7914         (enter_macro_context): Pool locking removed.
7915         (replace_args): Use a _cpp_buff for the replacement list with
7916         arguments replaced.
7917         (push_token_context): Clear buff.
7918         (expand_arg): Use _cpp_pop_context.
7919         (_cpp_pop_context): Free a context's buffer, if any.
7920
7921 2001-09-26  DJ Delorie  <dj@redhat.com>
7922
7923         * c-typeck.c (digest_init): Check for sizeless arrays.
7924
7925 2001-09-26  Richard Henderson  <rth@redhat.com>
7926
7927         * optabs.c (init_one_libfunc): Create a dummy function type
7928         instead of using error_mark_node.
7929
7930 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7931
7932         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
7933         _cpp_extend_buff, _cpp_free_buff): New.
7934         (struct cpp_reader): New member free_buffs.
7935         * cppinit.c (cpp_destroy): Free buffers.
7936         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
7937         _cpp_extend_buff, _cpp_free_buff): New.
7938         * cpplib.h (struct cpp_options): Remove unused member.
7939         * cppmacro.c (collect_args): New.  Combines the old parse_arg
7940         and parse_args.  Use _cpp_buff for memory allocation.
7941         (funlike_invocation_p, replace_args): Update.
7942
7943 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
7944
7945         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
7946
7947 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
7948
7949         * except.c (sjlj_mark_call_sites): Change address inside sequence.
7950
7951 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
7952
7953         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
7954         glibc.
7955
7956 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
7957             Jim Wilson  <wilson@redhat.com>
7958
7959         * doc/install.texi (Specific, ia64-*-linux): Document.
7960
7961 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
7962
7963         * Makefile.in (cfgrtl.o): Add.
7964         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
7965         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
7966         free_aux_for_edge): Declare.
7967         * cfg.c
7968         (HAVE_return): Undefine.
7969         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
7970         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
7971         free_aux_for_edge): New global functions.
7972         (first_delete_block): New static variable.
7973         (init_flow): Clear first_delete_block.
7974         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
7975          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
7976          try_redirect_by_replacing_jump, last_loop_beg_note,
7977          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
7978          delete_insn, delete_insn_chain, create_basic_block_structure,
7979          create_basic_block, flow_delete_block, compute_bb_for_insn,
7980          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
7981          set_block_for_new_insns, split_block, merge_blocks_nomove,
7982          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
7983          redirect_edge_and_branch, force_nonfallthru_and_redirect,
7984          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
7985          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
7986          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
7987          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
7988          purge_all_dead_edges): Move to ....
7989         * cfgrtl.c: New file; .... Here.
7990
7991         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
7992         (reroder_basic_block): Use alloc_aux_for_blocks.
7993         * predict.c (estimate_bb_frequencies): Likewise; use
7994         alloc_aux_for_edges.
7995         * profile.c (compute_branch_probabilities): Likewise.
7996         (branch_prob): Likewise.
7997         * reg-stack.c (reg_to_stack): Likewise.
7998
7999         * emit-rtl.c (emit_insns_after): Never return NULL.
8000
8001         * basic-block.h (set_block_for_new_insns): Delete.
8002         * cfgrtl.c (set_block_for_new_insns): Delete.
8003
8004         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
8005         calls when crossjumping.
8006
8007         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
8008         * unroll.c (copy_loop_body): Use delete_insn.
8009
8010         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
8011         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
8012         keep_stack_depressed): Likewise.
8013         * gcse.c (cprop_cc0_jump): Likewise.
8014         * local-alloc.c (update_equiv_regs): Likewise.
8015         * loop.c (scan_loop, loop_delete_insns): Likewise.
8016         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
8017         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
8018         delete_output_reload, delete_address_reloads_1,
8019         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
8020         Likewise.
8021         * sibcall.c (replace_call_placeholder): Likewise.
8022         * cse.c (cse_insn): Likewise.
8023
8024 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
8025
8026         From Graham Stott  <grahams@redhat.com>
8027         (def_builtin): Only define builtins appropriate for target_flags.  All
8028         callers changed.
8029         (builtin_decsription): Add new field mask which is used to determine
8030         when to define the builtin via the macro def_builtin.
8031
8032         (bdesc_comi): Initialise new mask fields.
8033         (bdesc_2srg): Likewise.
8034         (bdesc_1arg): Likewise.
8035
8036         * config/i386/i386.c (ix86_init_builtins): Correct return type
8037         building v4hi_ftype_v4hi_int_int tree node.
8038         (ix86_expand_sse_comi): Fix typo swapping operands.
8039         Don't swap comparision condition, it is already swapped.
8040         (ix86_expand_sse_compare): Before swapping operands
8041         move operand 1 into new rtx and not the target rtx.
8042         Don't swap comparison condition, it is already swapped.
8043         Always check whether we need to create a new TARGET.
8044
8045         * config/i386/i386.md: (sse_comi) Fix typos.
8046         (sse_ucomi): Likewise.
8047         (cvtss2si): Fix operand 0 contraint.
8048         (cvttss2si): Likewise.
8049         (sse_unpckhps): Fix mode for operand 2.
8050         (sse_unpcklps): Likewise.
8051
8052 2001-09-25  Graham Stott  <grahams@redhat.com>
8053
8054         * sibcall.c (skip_copy_to_return_value): Tighten return value
8055         copy check.
8056
8057 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
8058
8059         * rs6000.c (lwa_operand): Address must be word aligned.
8060
8061 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8062
8063         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
8064         number has been set.
8065         (type_hash_mark): Mark type itself.
8066
8067 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8068
8069         * c-lex.c (cb_def_pragma): Update.
8070         (c_lex): Update, and skip padding.
8071         * cppexp.c (lex, parse_defined): Update, remove unused variable.
8072         * cpphash.h (struct toklist): Delete.
8073         (union utoken): New.
8074         (struct cpp_context): Update.
8075         (struct cpp_reader): New members eof, avoid_paste.
8076         (_cpp_temp_token): New.
8077         * cppinit.c (cpp_create_reader): Update.
8078         * cpplex.c (_cpp_temp_token): New.
8079         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
8080         (cpp_output_token): Don't print leading whitespace.
8081         (cpp_output_line): Update.
8082         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
8083         do_include_common, do_line, do_ident, do_pragma,
8084         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
8085         parse_assertion): Update.
8086         (get_token_no_padding): New.
8087         * cpplib.h (CPP_PADDING): New.
8088         (AVOID_LPASTE): Delete.
8089         (struct cpp_token): New union member source.
8090         (cpp_get_token): Update.
8091         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
8092         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
8093         replace_args, quote_string, stringify_arg, parse_arg, next_context,
8094         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
8095         _cpp_backup_tokens, _cpp_create_definition): Update.
8096         (push_arg_context): Delete.
8097         (padding_token, push_token_context, push_ptoken_context): New.
8098         (make_string_token, make_number_token): Update, rename.
8099         (cpp_get_token): Update to handle tokens as pointers to const,
8100         and insert padding appropriately.
8101         * cppmain.c (struct printer): New member prev.
8102         (check_multiline_token): Constify.
8103         (do_preprocessing, cb_line_change): Update.
8104         (scan_translation_unit): Update to handle spacing.
8105         * scan-decls.c (get_a_token): New.
8106         (skip_to_closing_brace, scan_decls): Update.
8107         * fix-header.c (read_scan_file): Update.
8108
8109         * doc/cpp.texi: Update.
8110
8111 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8112
8113         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
8114         leak by passing malloc'ed pointer to reconcat, not concat.
8115
8116 2001-09-24  DJ Delorie  <dj@redhat.com>
8117
8118         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
8119
8120 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
8121
8122         * flow.c (delete_dead_jumptables): Delete jumptable if the only
8123         reference is from the literal pool.
8124
8125 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
8126
8127         * doc/install.texi (Final install): Request additional information
8128         in mail about successful builds.
8129
8130 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8131
8132         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
8133         initial value of return pointer register instead of value in frame-20.
8134         Revise comments.
8135
8136 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8137
8138         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
8139         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
8140         the libcall if there isn't a referenced identifier for the symbol.
8141
8142 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8143
8144         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
8145         non 64-bit machines.  Use these as a plabel for the trampoline.
8146         (TRAMPOLINE_SIZE): Adjust size for new words.
8147         (INITIALIZE_TRAMPOLINE): Initialize new words.
8148         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
8149         pointer to the plabel in the trampoline.
8150
8151 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8152
8153         * pa.c (function_arg): Pass floating arguments in both general and
8154         floating registers in indirect (dynamic) calls when generating code
8155         for the 32 bit ABI and the HP assembler.
8156
8157 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8158
8159         * doc/install.texi: Markup fixes.
8160         Use Solaris 2, SunOS 4 as appropriate.
8161         (Specific, *-*-solaris2*): Explain this.
8162         Unconditionally warn against /usr/ucb tools.
8163         Remove Sun as warning, obsolete.
8164         Move X11 header bug workaround here, update patches.
8165         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
8166         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
8167
8168 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
8169
8170         * errors.h (warning, error, fatal, internal_error): Don't mark
8171         with ATTRIBUTE_PRINTF_n.
8172         * toplev.h (internal_error, fatal_io_error, warning, error,
8173         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
8174         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
8175         Likewise.
8176
8177 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8178
8179         * function.c (pop_function_context_from): var_refs_queue
8180         and temp slots now in GC memory.
8181         (mark_function_status, free_after_compilation): Likewise;
8182         also struct function now in GC memory.
8183         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
8184         (combine_temp_slots): Likewise.
8185         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
8186         (prepare_function_start): Use GC memory for struct function.
8187         (mark_temp_slot): Deleted.
8188         (gcc_mark_struct_function): struct function now in GC memory.
8189
8190         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
8191         code for division, not modulus.
8192
8193         * rtl.def (MEM): Remove obsolete part of comment.
8194
8195 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
8196
8197         * c-format.c (init_function_format_info): Check __builtin_printf
8198         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
8199         in gnu89 mode.
8200
8201 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8202
8203         * c-common.c (format_attribute_table): Remove decl.
8204         * tree.h (format_attribute_table, lang_attribute_table): New decls.
8205         (lang_attribute_common): Likewise.
8206
8207         * function.c (fix_lexical_address): Use set_mem_alias_set.
8208         (expand_function_start): Likewise.
8209         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
8210
8211         * varasm.c (output_constant): Fix unused variable warning.
8212
8213         * attribs.c: New file, from c-common.c.
8214         (attribute_tables): Now four elements.
8215         (format_attribute_table, lang_attribute_common): New variables.
8216         (init_attributes): Reflect above changes.
8217         (handle_mode_attribute): Delete check for wider than uintmax.
8218         * c-common.c: Delete parts moved to attribs.c.
8219         (enum attrs): Deleted; unused.
8220         (c_format_attribute_table): New variable.
8221         (c_common_lang_init): Initialize format_attribute_table with it.
8222         * c-common.h (decl_attributes): Remove decl.
8223         * tree.h (decl_attribute): Move it to here.
8224         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
8225         (attribs.o): New rule.
8226
8227 2001-09-22  Andreas Jaeger  <aj@suse.de>
8228
8229         * builtins.c (c_getstr): Remove unused variable.
8230
8231 2001-09-21  Richard Henderson  <rth@redhat.com>
8232
8233         * reload1.c (reload): Use delete_insn instead of splatting
8234         NOTE_INSN_DELETED.
8235
8236 2001-09-21  Richard Henderson  <rth@redhat.com>
8237
8238         * reload.c (push_secondary_reload): Don't check for "=" in output
8239         constraint after ""->ALL_REGS check.
8240
8241 2001-09-21  Richard Henderson  <rth@redhat.com>
8242
8243         * predict.c (expected_value_to_br_prob): Use pc_set.
8244
8245         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
8246         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
8247
8248 2001-09-21  Richard Henderson  <rth@redhat.com>
8249
8250         * rtl.h (LCT_RETURNS_TWICE): New.
8251         * calls.c (emit_call_1): Set current_function_calls_setjmp for
8252         ECF_RETURNS_TWICE.
8253         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
8254         to ECF_RETURNS_TWICE.
8255         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
8256         call to setjmp.
8257
8258         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
8259
8260         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
8261         (JMP_BUF_SIZE): New.
8262
8263 2001-09-21  Richard Henderson  <rth@redhat.com>
8264
8265         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
8266         to R8_REGS.
8267
8268 2001-09-21  Richard Henderson  <rth@redhat.com>
8269
8270         * tree.def (FDESC_EXPR): New.
8271         * expr.c (expand_expr): Handle it.
8272         * varasm.c (initializer_constant_valid_p): Likewise.
8273         (output_constant): Likewise.
8274         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
8275         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
8276         (ASM_OUTPUT_FDESC): New.
8277         * doc/tm.texi: Document the new macros.
8278
8279 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
8280
8281         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
8282         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
8283         once merging is complete.
8284
8285 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8286
8287         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
8288
8289 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
8290
8291         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
8292         that would be invalid after a merge.
8293
8294 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
8295
8296         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
8297         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
8298         remove some labels.
8299         (flow_delete_insn): This one.
8300         (delete_insn_chain): Rename from ...; do not care labels.
8301         (flow_delete_insn_chain): ... this one.
8302         (flow_delete_block): Remove the insns one BB has been expunged.
8303         (merge_blocks_nomove): Likewise.
8304         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
8305         updating BB boundaries.
8306         (tidy_fallthru_edge): Likewise.
8307         (commit_one_edge_insertion): Likewise.
8308         * cfgbuild.c (find_basic_block): Likewise.
8309         (find_basic_blocks_1): Likewise.
8310         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
8311         (try_crossjump_to_edge): Likewise.
8312         (try_optimize_cfg): Likewise.
8313         * cse.c (delete_trivially_dead_insns): Likewise.
8314         * df.c (df_insn_delete): Likewise.
8315         * doloop.c (doloop_modify): Use delete_related_insns.
8316         * emit-rtl.c (try_split): Likewise.
8317         (remove_insn): Update BB boundaries.
8318         * expect.c (connect_post_landing_pads): Use delete_related_insns.
8319         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
8320         updating BB boundaries.
8321         (propagate_block_delete_insn): Likewise.
8322         (propagate_block_delete_libcall): Likewise.
8323         * function.c (delete_handlers): Use delete_related_insns.
8324         (thread_prologue_and_epilogue_insns): Likewise.
8325         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
8326         * genpeep.c (gen_peephole): Use delete_related_insns.
8327         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
8328         BB boundaries.
8329         (find_cond_trap): Likewise.
8330         * integrate.c (save_for_inline): Use delete_related_insns.
8331         (copy_insn_list): Likewise.
8332         * jump.c (pruge_linie_number_notes): Likewise.
8333         (duplicate_loop_exit_test): Likewise.
8334         (delete_computation): Likewise.
8335         (delete_related_insn): Rename from ...; use delete_insn
8336         (delete_insn): ... this one.
8337         (redirect_jump): Use delete_related_insns.
8338         * loop.c (scan_loop): Likewise.
8339         (move_movables): Likewise.
8340         (find_and_verify_loops): Likewise.
8341         (check_dbra_loop): Likewise.
8342         * recog.c (peephole2_optimize): Likewise.
8343         * reg-stack.c (delete_insn_for_stacker): Remove.
8344         (move_for_stack_reg): Use delete_insn.
8345         * regmove.c (combine_stack_adjustments_for_block): Likewise.
8346         * reload1.c (delete_address_reloads): Use delete_related_insns.
8347         (fixup_abnormal_edges): Use delete_insn.
8348         * recog.c (emit_delay_sequence): Use delete_related_insns.
8349         (delete_from-delay_slot): Likewise.
8350         (delete_scheduled_jump): likewise.
8351         (optimize_skip): Likewise.
8352         (try_merge_delay_insns): Likewise.
8353         (full_simple_delay_slots): Likewise.
8354         (fill_slots_from_thread): Likewise.
8355         (relax_delay_slots): Likewise.
8356         (make_return_insns): Likewise.
8357         (dbr_schedule): Likewise.
8358         * rtl.h (delete_insn): Rename to delete_related_insns.
8359         (delete_insn, delete_insn_chain): New prototypes.
8360         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
8361         by df_insn_delete already.
8362         * ssa-dce.c (delete_insn_bb): Use delete_insn.
8363         * ssa.c (convert_from_ssa): Use delete_related_insns.
8364         * unroll.c (unroll_loop): Likewise.
8365         (calculate_giv_inc): Likewise.
8366         (copy_loop_body): Likewise.
8367
8368         * i386-protos.h (ix86_libcall_value, ix86_function_value,
8369         ix86_function_arg_regno_p, ix86_function_arg_boundary,
8370         ix86_return_in_memory, ix86_function_value): Declare.
8371         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
8372         new static valurables.
8373         (x86_64_reg_class): New enum
8374         (x86_64_reg_class_name): New array.
8375         (classify_argument, examine_argument, construct_container,
8376          merge_classes): New static functions.
8377         (optimization_options): Enable flag_omit_frame_pointer and disable
8378         flag_pcc_struct_return on 64bit.
8379         (ix86_libcall_value, ix86_function_value,
8380         ix86_function_arg_regno_p, ix86_function_arg_boundary,
8381         ix86_return_in_memory, ix86_function_value): New global functions.
8382         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
8383         (function_arg_advance): Handle x86_64 passing conventions.
8384         (function_arg): Likewise.
8385         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
8386         (RETURN_IN_MEMORY): Move offline.
8387         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
8388         (FUNCTION_VALUE_REGNO_P): New macro.
8389         (FUNCTION_ARG_REGNO_P): Move offline.
8390         (struct ix86_args): Add maybe_vaarg.
8391         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
8392         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
8393
8394 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
8395
8396         * s390.md: Changed attributes for scheduling.
8397         * s390.c: (s390_adjust_cost, s390_adjust_priority)
8398         Changed scheduling
8399
8400 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8401
8402         Table-driven attributes.
8403         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
8404         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
8405         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
8406         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
8407         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
8408         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
8409         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
8410         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
8411         * tree.h (struct tree_decl): Change machine_attributes to
8412         attributes.
8413         * doc/c-tree.texi: Document that all attributes are now attached
8414         to decls and types.
8415         * c-common.c (add_attribute, attrtab, attrtab_idx,
8416         default_valid_lang_attribute, valid_lang_attribute): Remove.
8417         (attribute_tables, attributes_initialized,
8418         c_common_attribute_table, default_lang_attribute_table): New
8419         variables.
8420         (handle_packed_attribute, handle_nocommon_attribute,
8421         handle_common_attribute, handle_noreturn_attribute,
8422         handle_unused_attribute, handle_const_attribute,
8423         handle_transparent_union_attribute, handle_constructor_attribute,
8424         handle_destructor_attribute, handle_mode_attribute,
8425         handle_section_attribute, handle_aligned_attribute,
8426         handle_weak_attribute, handle_alias_attribute,
8427         handle_no_instrument_function_attribute,
8428         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
8429         handle_no_limit_stack_attribute, handle_pure_attribute): New
8430         functions.
8431         (init_attributes, decl_attributes): Rewrite to implement
8432         table-driven attributes.
8433         * c-common.h (enum attribute_flags): Move to tree.h.
8434         * c-format.c (decl_handle_format_attribute,
8435         decl_handle_format_arg_attribute): Rename to
8436         handle_format_attribute and handle_format_arg_attribute.  Update
8437         for table-driven attributes.
8438         * c-common.h (decl_handle_format_attribute,
8439         decl_handle_format_arg_attribute): Remove prototypes.
8440         (handle_format_attribute, handle_format_arg_attribute): Add
8441         prototypes.
8442         * c-decl.c (grokdeclarator): Handle attributes nested inside
8443         declarators.
8444         * c-parse.in (setattrs, maybe_setattrs): Remove.
8445         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
8446         Update to handle nested attributes properly.
8447         (maybe_resetattrs, after_type_declarator,
8448         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
8449         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
8450         properly.
8451         (make_pointer_declarator): Update to handle nested attributes
8452         properly.
8453         * doc/extend.texi: Update documentation of limits of attributes
8454         syntax.  Warn about problems with attribute semantics in C++.
8455         * target.h (struct target): Remove valid_decl_attribute and
8456         valid_type_attribute.  Add attribute_table and
8457         function_attribute_inlinable_p.
8458         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
8459         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
8460         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
8461         Add.
8462         (TARGET_INITIALIZER): Update.
8463         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
8464         definition.
8465         (function_attribute_inlinable_p): New function.  Check for the
8466         presence of any machine attributes before using
8467         targetm.function_attribute_inlinable_p.
8468         (function_cannot_inline_p): Update.
8469         * Makefile.in (integrate.o): Update dependencies.
8470         * doc/tm.texi: Update documentation of target attributes and
8471         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
8472         * tree.c (default_valid_attribute_p, valid_machine_attribute):
8473         Remove.
8474         (default_target_attribute_table,
8475         default_function_attribute_inlinable_p): New.
8476         (lookup_attribute): Update comment to clarify handling of multiple
8477         attributes with the same name.
8478         (merge_attributes, attribute_list_contained): Allow multiple
8479         attributes with the same name but different arguments to appear in
8480         the same attribute list.
8481         * tree.h (default_valid_attribute_p): Remove prototype.
8482         (struct attribute_spec): New.
8483         (default_target_attribute_table): Declare.
8484         (enum attribute_flags): Move from c-common.h.  Add
8485         ATTR_FLAG_TYPE_IN_PLACE.
8486         (default_function_attribute_inlinable_p): Declare.
8487         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
8488         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8489         (TARGET_ATTRIBUTE_TABLE): Define.
8490         (vms_attribute_table): New.
8491         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
8492         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8493         (TARGET_ATTRIBUTE_TABLE): Define.
8494         (arc_attribute_table, arc_handle_interrupt_attribute): New.
8495         * config/arm/arm.c (arm_valid_type_attribute_p,
8496         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
8497         Remove.
8498         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
8499         define.
8500         (TARGET_ATTRIBUTE_TABLE): Define.
8501         (arm_attribute_table, arm_handle_fndecl_attribute,
8502         arm_handle_isr_attribute): New.
8503         * config/avr/avr.c (avr_valid_type_attribute,
8504         avr_valid_decl_attribute): Remove.
8505         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
8506         define.
8507         (TARGET_ATTRIBUTE_TABLE): Define.
8508         (avr_attribute_table, avr_handle_progmem_attribute,
8509         avr_handle_fndecl_attribute): New.
8510         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
8511         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8512         (TARGET_ATTRIBUTE_TABLE): Define.
8513         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
8514         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
8515         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8516         (TARGET_ATTRIBUTE_TABLE): Define.
8517         (h8300_attribute_table, h8300_handle_fndecl_attribute,
8518         h8300_handle_eightbit_data_attribute,
8519         h8300_handle_tiny_data_attribute): New.
8520         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
8521         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
8522         Remove prototypes.
8523         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
8524         declarations.
8525         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
8526         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
8527         define.
8528         (TARGET_ATTRIBUTE_TABLE): Define.
8529         (ix86_attribute_table, ix86_handle_cdecl_attribute,
8530         ix86_handle_regparm_attribute): New.
8531         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
8532         i386_pe_valid_type_attribute_p): Remove.
8533         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
8534         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
8535         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8536         (TARGET_ATTRIBUTE_TABLE): Define.
8537         (ia64_attribute_table): New.
8538         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
8539         interrupt_ident2, model_ident1, model_ident2): Remove.
8540         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8541         (TARGET_ATTRIBUTE_TABLE): Define.
8542         (init_idents): Update.
8543         (m32r_attribute_table, m32r_handle_model_attribute): New.
8544         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
8545         Remove.
8546         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8547         (TARGET_ATTRIBUTE_TABLE): Define.
8548         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
8549         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
8550         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8551         (TARGET_ATTRIBUTE_TABLE): Define.
8552         (mcore_attribute_table, mcore_handle_naked_attribute): New.
8553         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
8554         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8555         (TARGET_ATTRIBUTE_TABLE): Define.
8556         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
8557         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
8558         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
8559         (TARGET_ATTRIBUTE_TABLE): Define.
8560         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
8561         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
8562         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8563         (TARGET_ATTRIBUTE_TABLE): Define.
8564         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
8565         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
8566         New.
8567         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
8568         Remove.
8569         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
8570         (TARGET_ATTRIBUTE_TABLE): Define.
8571         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
8572         New.
8573         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
8574         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
8575         (TARGET_ATTRIBUTE_TABLE): Define.
8576         (v850_attribute_table, v850_handle_interrupt_attribute,
8577         v850_handle_data_area_attribute): New.
8578         * config/v850/v850-c.c (mark_current_function_as_interrupt):
8579         Return void.  Call decl_attributes instead of
8580         valid_machine_attribute.
8581
8582 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
8583
8584         * sh-protos.h (sh_pr_n_sets): Declare.
8585         * sh.c (calc_live_regs): If the initial value for PR has been copied,
8586         look at the copy to determine if PR needs to be saved.
8587         sh_pr_n_sets: New function.
8588         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
8589         (ALLOCATE_INITIAL_VALUE): Define.
8590
8591         * sh.c (initial_elimination_offset):
8592         Fix RETURN_ADDRESS_POINTER_REGNUM case.
8593
8594 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
8595
8596         * integrate.c (allocate_initial_values): New function.
8597         * integrate.h (allocate_initial_values): Declare.
8598         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
8599         here...
8600         * reload1.c (reload): And initialization of reg_equiv_memory_loc
8601         from here...
8602         * toplev.c (rest_of_compilation): To here.
8603         Call allocate_initial_values.
8604         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
8605
8606 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8607
8608         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
8609
8610 2001-09-20  DJ Delorie  <dj@redhat.com>
8611
8612         * c-typeck.c (really_start_incremental_init): Discriminate
8613         between zero-length arrays and flexible arrays.
8614         (push_init_level): Detect zero-length arrays and handle them
8615         like fixed-sized arrays.
8616         * expr.c (store_constructor): Handle zero-length arrays and
8617         flexible arrays correctly.
8618         * doc/extend.texi: Update zero-length array notes.
8619
8620 2001-09-20  Jim Wilson  <wilson@redhat.com>
8621
8622         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
8623         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
8624         for issue port conflicts.
8625         (cycle_end_fill_slots): TYPE_L instructions take two slots.
8626
8627 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
8628
8629         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
8630         on ia64.
8631
8632 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8633
8634         * fold-const.c (hashtab.h): Include.
8635         (int_const_binop): Remove FORSIZE arg and compute from type; all
8636         callers changed.
8637         Call size_int_type_wide for all single-word constants.
8638         (size_htab_hash, size_htab_eq): New functions.
8639         (size_int_type_wide): Rework to use hash table.
8640         * ggc-common.c (hashtab.h): Include.
8641         (struct d_htab_root): New struct.
8642         (d_htab_roots): New variable.
8643         (ggc_add_deletable_htab, ggc_htab_delete): New functions
8644         (ggc_mark_roots): Handle deletable htabs.
8645         * ggc-page.c (ggc_marked_p): New function.
8646         * ggc-simple.c (ggc_marked_p): Likewise.
8647         * ggc.h: Reformatting throughout.
8648         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
8649         * tree.c (init_obstacks): Make type_hash_table a deletable root.
8650         (type_hash_add): Allocate struct type_hash from GC memory.
8651         (mark_hash_entry, mark_type_hash): Deleted.
8652         (type_hash_marked_p, type_hash_mark): New functions.
8653         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
8654
8655 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
8656
8657         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
8658         than SImode.
8659
8660 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8661
8662         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
8663         array-too-large test for signed sizetype.
8664
8665 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
8666
8667         * i386.md (indirect_jump): Allow Pmode operand.
8668         (tablejump): LIkewise; perform expansion to 64bit mode.
8669         * i386.c (symbolic_operand): Allow 64bit PIC references.
8670         (pic_symbolic_operand): Likewise.
8671         (ix86_find_base_term): Strip the 64bit PIC references.
8672         (legitimate_pic_address_disp_p): Handle 64bit PIC.
8673         (legitimize_pic_address): Likewise.
8674         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
8675         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
8676
8677 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
8678
8679         * stringpool.c (get_identifier_with_length): New function.
8680         * tree.h (get_identifier_with_length): New prototype.
8681
8682 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
8683             David Edelsohn  <edelsohn@gnu.org>
8684
8685         Revert:
8686         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
8687         already sign-extended.
8688
8689         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
8690         * config/rs6000/rs6000.c (logical_operand): Always compare op as
8691         HOST_WIDE_INT.
8692         (rs6000_emit_set_long_const): Avoid unnecessary shift.
8693         (output_profile_hook): Declare label_name const.
8694         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
8695         to match constraints.
8696
8697 2001-09-19  Stan Shebs  <shebs@apple.com>
8698
8699         * alias.c: Fix typos in comments.
8700         * sched-rgn.c (init_ready_list): Ditto.
8701         * unwind-dw2.c (uw_frame_state_for): Ditto.
8702         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
8703         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
8704         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
8705
8706 2001-09-19  Richard Henderson  <rth@redhat.com>
8707
8708         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
8709         to the exit block.
8710         * Makefile.in (cfg.o): Depend on TM_P_H.
8711
8712 2001-09-19  Richard Henderson  <rth@redhat.com>
8713
8714         * config/alpha/alpha.c (local_symbol_p): Split out from ...
8715         (local_symbolic_operand): ... here.
8716         (small_symbolic_operand): Check mode.
8717         (global_symbolic_operand): New.
8718         (input_operand): Reject symbolics if explicit relocs.
8719         (call_operand): Tidy.
8720         (alpha_legitimize_address): Use movdi_er_high_g.
8721         (alpha_expand_mov): Likewise.
8722         * config/alpha/alpha-protos.h: Update.
8723         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8724         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
8725         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
8726         (UNSPECV_LDGP2): Remove.
8727         (all call patterns): Use 's' not 'i' for symbolic constraint.
8728         (call_osf call_value_osf): Use call_operand.
8729         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
8730         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
8731         (prologue_ldgp_1_er): Remove.
8732         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
8733         (builtin_setjmp_receiver_er patterns): Use them.
8734         (exception_receiver_er): Likewise.
8735
8736 2001-09-19  Richard Henderson  <rth@redhat.com>
8737
8738         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
8739
8740         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
8741         and NON_LOCAL_GOTO notes.
8742         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
8743         copy over CALL_INSN_FUNCTION_USAGE.
8744
8745 2001-09-18  Catherine Moore  <clm@redhat.com>
8746
8747         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
8748         Define as 0.
8749
8750 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
8751
8752         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
8753         new-style tm_file specification.  Specify correct tm_p_file,
8754         md_file, and out_file for s390x.
8755
8756         * config/s390/linux.h, linux64.h:  Don't include other target
8757         macro header files.  Now handled via tm_file.
8758
8759         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
8760         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
8761         are defined before use.
8762
8763 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
8764
8765         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
8766         code generation only for Gnu assembler.
8767
8768 2001-09-18  Catherine Moore  <clm@redhat.com>
8769
8770         * config/stormy16 (LIB_SPEC): Remove -lnosys.
8771
8772 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
8773
8774         * config/mips/mips.c (mips_frame_set): New.
8775         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
8776         a parallel frame-related expression with a set for each register.
8777
8778 2001-09-18  Philip Blundell  <philb@gnu.org>
8779
8780         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
8781         header files.
8782
8783 2001-09-17  Dale Johannesen  <dalej@apple.com>
8784
8785         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
8786         * config/rs6000/aix.h (FIXED_R2): Define.
8787         * config/rs6000/darwin.h (FIXED_R2): Define.
8788         * config/rs6000/sysv4.h (FIXED_R2): Define.
8789
8790 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
8791
8792         * except.c (dw2_build_landing_pads): New local
8793         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
8794         barrier after clobbers.  Fixes c++/4012.
8795
8796 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8797
8798         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
8799
8800 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
8801
8802         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
8803         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
8804
8805 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8806
8807         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
8808         alloca/strcpy.
8809
8810 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8811
8812         * cpphash.h (_cpp_lex_direct): New.
8813         * cpplex.c (_cpp_lex_token): Update.
8814         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
8815         and increment that pointer.
8816         * cppmacro.c (alloc_expansion_token): New.
8817         (lex_expansion_token): Lex macro expansion directly into
8818         macro storage.
8819
8820 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
8821
8822         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
8823
8824 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
8825
8826         * basic-block.h (free_bb_for_insn): Declare.
8827         * bb-reorder.c (label_for_bb): Use block_label.
8828         (emit_jump_to_block_after): Remove.
8829         (insert_intra_1): Do not update block_for_insn.
8830         (insert_inter_bb_scope_notes): Likewise; update bb->end
8831         * cfg.c (free_bb_for_insn): New.
8832         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
8833         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
8834         (commit_one_edge_insertion): Likewise.
8835         (commit_one_edge_insertion): Do not update BB boundary.
8836         (commit_edge_insertions): Do not call compute_bb_for_insn.
8837         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
8838         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
8839         (merge_blocks_move_successor_nojumps): Likewise.
8840         (try_crossjump_to_edge): Do not update block_for_insn.
8841         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
8842         * df.c (df_pattern_emit_later): Do not update BB boundary.
8843         (df_jump_pattern_emit_after): Likewise.
8844         (df_insn_move_before): Use emit_insn_before.
8845         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
8846          properly.
8847         (add_insn_after, add_insn_before, emit_insns_after): Update BB
8848         boundaries and basic_block_for_insn.
8849         (reorder_insns_nobb): Rename from reorder_insns.
8850         (reorder_insns): New.
8851         (emit_block_insn_before, emit_block_insn_after): Kill.
8852         * flow.c (check_function_return_warnings): Do not call
8853         compute_bb_for_insn; Do not free basic_block_for_insn.
8854         (attempt_auto_inc): Do not update basic_block_for_insn.
8855         * function.c (emit_return_into_block): Likewise;
8856         do not update BB boundaries.
8857         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
8858         (insert_insn_end_bb): Use emit_insn_before; Likewise.
8859         (pre_insert_copy_insn): Likewise.
8860         (update_ld_motion_notes): Likewise.
8861         (insert_insn_start_bb): Likewise.
8862         (replace_store_insn): Likewise.
8863         * ifcvt.c (noce_process_if_block): Likewise.
8864         (if_convert): Do not call compute_bb_for_insn.
8865         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
8866         Use emit_insn_before and emit_insn_after.
8867         * recog.c (split_all_insns): Do not update BB boundaries;
8868         Do not call compute_bb_for_insn.
8869         (peephole2_optimize): Do not update BB boundaries.
8870         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
8871         emit_insn_before.
8872         (emit_swap_insn): Likewise.
8873         (convert_regs_1): Likewise.
8874         * reload1.c (reload): Call compute_bb_for_insn.
8875         * rtl.h (reorder_insns_nobb): Declare.
8876         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
8877         * toplev.c (rest_of_compilation): Call free_bb_for_insn
8878         at places CFG is invalidated; do not call compute_bb_for_insn.
8879
8880         * cfg.c (expunge_block): Invalidate BB structure.
8881
8882         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
8883         array.
8884
8885         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
8886
8887 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8888
8889         * cpphash.h (_cpp_lex_token): Update prototype.
8890         * cpplex.c (_cpp_lex_token): New prototype.
8891         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
8892         lex_macro_node, read_flag, do_pragma_poison): Update.
8893         * cppmacro.c (cpp_get_token, parse_params,
8894         lex_expansion_token): Update.
8895
8896 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8897
8898         * cppmain.c (scan_translation_unit): Don't worry about
8899         putting a space after hashes.
8900         * cpplib.c (directive_diagnostics): New.
8901         (_cpp_handle_directive): Update to use directive_diagnostics.
8902         (run_directive): Don't toggle prevent_expansion.
8903         (do_line): Backup in case of the line extension.
8904         * cpplib.h (cpp_lexer_pos): Remove.
8905         * cppmacro.c (_cpp_create_definition): Precede a leading #
8906         with whitespace.
8907
8908 2001-09-15  Richard Henderson  <rth@redhat.com>
8909
8910         * c-typeck.c (comptypes): Handle zero-length arrays properly.
8911
8912 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8913
8914         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
8915
8916 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8917
8918         PR preprocessor/3571
8919         * tradcpp.c (handle_directive): Skip non-vertical space.
8920
8921 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8922
8923         * cppmain.c (setup_callbacks): Set line callback only
8924         if outputting preprocessed source.
8925
8926 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8927
8928         * collect2.c (main): Const-ification.
8929         * gcc.c (translate_options, process_command): Use xstrdup in
8930         lieu of xmalloc/strcpy.
8931         (main): Use concat in lieu of xmalloc/strcpy/strcat.
8932
8933 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8934
8935         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
8936         example.
8937
8938 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8939
8940         * scan-decls.c (scan_decls): Fix typo.
8941
8942 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
8943
8944         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
8945         Split mlstring_pos into mls_line and mls_col.
8946         * cppinit.c (cpp_create_reader): Initialize line to 1.
8947         (cpp_destroy): Free tokenruns.
8948         (push_include): Don't update lexer_pos.
8949         * cpplex.c (unterminated, parse_string): Update.
8950         (lex_token): Don't update lexer_pos, update.
8951         * cpplib.c (if_stack): Save line instead of line + col.
8952         (start_directive, _cpp_do__Pragma, do_else, do_elif,
8953         push_conditional, _cpp_pop_buffer): Update.
8954         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
8955         (_cpp_create_definition): Update.
8956
8957 2001-09-15  Eric Christopher  <echristo@redhat.com>
8958
8959         * config/mips/abi64.h: Add support for MEABI.
8960
8961 2001-09-15  Eric Christopher  <echristo@redhat.com>
8962
8963         * config/mips/mips.md: Add unspec #2.
8964         (reload_indi): Use.
8965         (reload_outdi): Ditto.
8966         (reload_outsi): Ditto.
8967         (HILO_delay): New.
8968
8969 2001-09-15  Eric Christopher  <echristo@redhat.com>
8970             Jason Eckhardt  <jle@redhat.com>
8971
8972         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
8973         * config/mips/isa32-linux.h: New file.
8974         * config/mips/isa3264.h: Ditto.
8975         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
8976         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
8977         (output_block_mode): Support MEABI.
8978         (function_arg): Ditto. Fix floating point arg passing.
8979         (mips_va_start): Ditto.
8980         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
8981         processors.
8982         (mips_asm_file_start): Add new section to pass abi to gdb.
8983         (function_arg_pass_by_reference): Support MEABI.
8984         (mips_parse_cpu): Support mips32 and mips64 processors.
8985         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
8986         TARGET_MIPS5KC.  Support isa32 and isa64.
8987         (processor_type): Add r4kc, r5kc, r20kc.
8988         (GENERATE_MULT3_SI): New.
8989         (GENERATE_MULT3_DI): Ditto.
8990         (GENERATE_MULT3): Remove.
8991         (ISA_HAS_64BIT_REGS): Add isa == 64.
8992         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
8993         (ISA_HAS_MADD_MSUB): New.
8994         (ISA_HAS_CLZ_CLO): Ditto.
8995         (ISA_HAS_DCLZ_DCLO): Ditto.
8996         (ABI_GAS_ASM_SPEC): New.
8997         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
8998         (ASM_SPEC): Ditto.
8999         (LINK_SPEC): Ditto.
9000         (SUBTARGET_CC1_SPEC): Ditto.
9001         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9002         (PAD_VARARGS_DOWN): Support MEABI.
9003         (HARD_REGNO_NREGS): Move to mips.c.
9004         (ASM_OUTPUT_IDENT): Add #undef.
9005         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
9006         (mulsi3): Use GENERATE_MULT3_SI.
9007         (mulsi3_mult3): Ditto.  Support mips32, mips64.
9008         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
9009         (mul_sub_si): New pattern.
9010         (unnamed splitters): New.
9011         (muldi3): Use GENERATE_MULT3_DI.
9012         (muldi3_internal2): Ditto.
9013         (movdicc): Support mips32.
9014         * config/mips/t-isa3264: New file.
9015
9016 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
9017
9018         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
9019         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
9020         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
9021
9022         * reorg.c (fill_slots_from_thread): After call to
9023         steal_delay_list_from_target, update own_thread as new_thread may
9024         have branched.
9025
9026 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
9027
9028         * cpperror.c (print_location): Take line and column, for
9029         default positioning use the previously lexed token.
9030         (_cpp_begin_message): Take line and column.
9031         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
9032         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
9033         * cpphash.h (_cpp_begin_message): Update prototype.
9034         * cppinit.c (push_include): Don't set output line.
9035         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
9036         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
9037         (do_pragma): Kludge for front ends.  Don't expand macros at all.
9038         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
9039         (struct cpp_token): Remove output_line.
9040         (struct cpp_callbacks): New member line_change.
9041         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
9042         cpp_get_token): Preserve BOL flag.
9043         (cpp_get_line): Remove.
9044         (_cpp_backup_tokens): Remove useless abort().
9045         * cppmain.c (cb_line_change): New.
9046         (scan_translation_unit): Don't worry about starting new lines here.
9047         * scan-decls.c (scan_decls): Update.
9048         * c-lex.c (c_lex, init_c_lex): Update.
9049         (cb_line_change, src_lineno): New.
9050
9051 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
9052
9053         * tree.c (append_random_chars): Generate the random
9054         characters in a reproducable fashion.
9055
9056 2001-09-14  Richard Henderson  <rth@redhat.com>
9057
9058         * config/i386/i386.c (internal_label_prefix): New.
9059         (internal_label_prefix_len): New.
9060         (override_options): Set them.
9061         (local_symbolic_operand): New.
9062         (legitimate_pic_address_disp_p): Use it.
9063         (legitimize_pic_address): Likewise.
9064
9065 2001-09-14  Marc Espie <espie@openbsd.org>
9066
9067         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
9068         correctly.
9069
9070 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9071
9072         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
9073         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
9074
9075 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
9076
9077         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
9078         invocation of SUBREG_REGNO_OFFSET.
9079
9080         * haifa-sched.c: Fix typo in FSF copyright statement.
9081         * sched-deps.c: Fix typo in FSF copyright statement.
9082         * sched-ebb.c: Fix typo in FSF copyright statement.
9083         * sched-rgn.c: Fix typo in FSF copyright statement.
9084         * sched-vis.c: Fix typo in FSF copyright statement.
9085
9086         * config.gcc: Move inclusion of arm elf specific header files
9087         from the files themselves into the tm_file variable.  Make
9088         sure that elfos.h is included before target specific elf
9089         headers.
9090         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
9091         already defined.
9092         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
9093         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
9094         ASM_OUTPUT_CASE_LABEL): Protect definition.
9095         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
9096         not already defined.
9097         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
9098         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
9099         Remove duplicate definition.
9100         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
9101         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
9102         (RDATA_SECTION_FUNCTION): Remove redundant definition.
9103         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
9104         Remove inclusion of arm/elf.h.
9105         * config/arm/unknown-elf.h: as for conix-elf.h.
9106         (STARTFILE_SPEC): Include crti.o and crtn.o.
9107         * config/arm/linux-elf.h: as for conix-elf.h.
9108         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
9109         * config/arm/strongarm-elf.h: Remove inclusion of
9110         unknown-elf.h.
9111         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
9112         * config/arm/unknown-elf-oabi.h: Remove inclusion of
9113         unknown-elf.h and elf.h.
9114         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
9115         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
9116         ASM_WEAKEN_LABEL): Remove redundant definition.
9117         * config/arm/elf.h: Test for inclusion of elfos.h
9118         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
9119         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
9120         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
9121         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
9122         redundant definition.
9123         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
9124         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
9125         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
9126         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
9127         Add rules to build crti.o and crtn.o
9128         * crti.asm: New file.
9129         * crtn.asm: New file.
9130
9131 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
9132
9133         * c-parse.in (_yylex): Use _cpp_backup_tokens.
9134         * cpphash.h (struct tokenrun): Add prev.
9135         (struct lexer_state): Remove bol.
9136         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
9137         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
9138         : Remove.
9139         * cppinit.c (cpp_create_reader): Don't set bol.
9140         (cpp_destroy): Don't free lookaheads.
9141         * cpplex.c (lex_directive): Remove.
9142         (next_tokenrun): Update.
9143         (_cpp_lex_token): Clean up logic.
9144         (lex_token): Update to return a pointer to lexed token, since it
9145         can move to the start of the buffer.  Simpify newline handling.
9146         * cpplib.c (SEEN_EOL): Update.
9147         (skip_rest_of_line): Remove lookahead stuff.
9148         (end_directive): Line numbers are already incremented.  Revert
9149         to start of lexed token buffer if we can.
9150         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
9151         parse_answer): Use _cpp_backup_tokens.
9152         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
9153         instead.  Don't check for EOL.
9154         (do_include_common, do_line, do_pragma_system_header): Use
9155         skip_rest_of_line.
9156         * cpplib.h (BOL, _cpp_backup_tokens): New.
9157         * cppmacro.c (save_lookahead_token, take_lookahead_token,
9158         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
9159         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
9160         (builtin_macro): Don't use cpp_get_line.
9161         (cpp_get_line): Short term kludge.
9162         (parse_arg): Handle directives in arguments here.  Back up when
9163         appropriate.  Store EOF at end of argument list.
9164         (funlike_invocation_p): Use _cpp_backup_tokens.
9165         (push_arg_context): Account for EOF at end of list.
9166         (cpp_get_token): Remove lookahead stuff.  Update.
9167
9168 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9169
9170         * c-parse.in (yyerror): Const-ification and/or static-ization.
9171         * c-typeck.c (push_member_name): Likewise.
9172         * collect2.c (main): Likewise.
9173         * dbxout.c (dbxout_parms): Likewise.
9174         * diagnostic.c (format_with_decl): Likewise.
9175         * dwarf2out.c (output_ranges): Likewise.
9176         * dwarfout.c (fundamental_type_code): Likewise.
9177         * except.c (dw2_output_call_site_table): Likewise.
9178         * gcc.c (do_spec_1): Likewise.
9179         * genopinit.c (optabs): Likewise.
9180         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
9181         gen_declaration_1, handle_impent): Likewise.
9182         * protoize.c (default_include, in_system_include_dir, abspath):
9183         Likewise.
9184         * sched-vis.c (visualize_stall_cycles): Likewise.
9185         * sdbout.c (plain_type_1, sdbout_end_function,
9186         sdbout_end_epilogue): Likewise.
9187         * varasm.c (decode_reg_name): Likewise.
9188
9189         * 1750a.c (mod_regno_adjust): Likewise.
9190         * alpha.c (alpha_write_one_linkage,
9191         unicosmk_output_default_externs): Likewise.
9192         * arm.c (arm_condition_codes): Likewise.
9193         * arm.h (arm_condition_codes): Likewise.
9194         * avr.c (output_movsisf, encode_section_info): Likewise.
9195         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
9196         Likewise.
9197         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
9198         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
9199         * m88k.c (output_function_profiler): Likewise.
9200         * mips.c (mips_output_conditional_branch): Likewise.
9201         * ns32k.c (ns32k_out_reg_names): Likewise.
9202         * ns32k.h (ns32k_out_reg_names): Likewise.
9203         * pj.c (pj_output_rval): Likewise.
9204         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
9205         * sparc.c (sparc_flat_function_prologue,
9206         sparc_flat_function_epilogue): Likewise.
9207
9208 2001-09-13  Markus Werle <numerical.simulation@web.de>
9209             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9210
9211         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
9212         Aachen University of Technology".
9213
9214 2001-09-13  Andreas Schwab  <schwab@suse.de>
9215
9216         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
9217         C99.
9218
9219 2001-09-13  Richard Henderson  <rth@redhat.com>
9220
9221         * config/alpha/alpha.c (small_symbolic_operand): New.
9222         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
9223         (some_operand, input_operand): Don't handle HIGH.
9224         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
9225         (alpha_expand_mov): Likewise.
9226         (print_operand) [H]: Just print HIGH symbol.
9227         (print_operand_address): Handle small data.
9228         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
9229         (TARGET_SWITCHES): Add -msmall-data/large-data.
9230         (PIC_OFFSET_TABLE_REGNUM): New.
9231         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
9232         (PREDICATE_COES): Update.
9233         * config/alpha/alpha.md (adddi_er_high): New.
9234         (adddi_er_low): Handle small data.
9235         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
9236         prefer .sdata to .rodata.
9237         (SELECT_RTX_SECTION): Likewise.
9238
9239 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
9240
9241         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
9242         defining __size_t and leaving size_t undefined.
9243
9244 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
9245
9246         * basic-block.h (expunge_block): Declare.
9247         * cfg.c (expunge_block): Remove static declaration.
9248
9249 2001-09-12  Richard Henderson  <rth@redhat.com>
9250
9251         * integrate.c (copy_insn_list): Copy label name from
9252         NOTE_INSN_DELETED_LABEL.
9253
9254 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9255
9256         * c-common.c (c_tree_code_name): Const-ification.
9257         * c-decl.c (c_decode_option): Likewise.
9258         * c-typeck.c (warn_for_assignment): Likewise.
9259         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
9260         Likewise.
9261         * cppinit.c (output_deps): Likewise.
9262         * dependence.c (dependence_string, direction_string): Likewise.
9263         * dwarf2out.c (output_ranges): Likewise.
9264         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
9265         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
9266         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
9267         standard_startfile_prefix, standard_startfile_prefix_1,
9268         standard_startfile_prefix_2, tooldir_base_prefix,
9269         standard_bindir_prefix, find_a_file): Likewise.
9270         * genattrtab.c (make_length_attrs): Likewise.
9271         * gencheck.c (tree_codes): Likewise.
9272         * genemit.c (gen_split): Likewise.
9273         * genrecog.c (special_mode_pred_table): Likewise.
9274         * graph.c (graph_ext): Likewise.
9275         * protoize (default_include): Likewise.
9276         * reload.c (reload_when_needed_name): Likewise.
9277         * sched-vis.c (visualize_stall_cycles): Likewise.
9278         * tlink.c (recompile_files): Likewise.
9279         * toplev.c (decode_g_option): Likewise.
9280         * tradcpp.c (output_deps): Likewise.
9281         * varasm.c (decode_reg_name): Likewise.
9282
9283         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
9284         Const-ification.
9285         * arm.md: Likewise.
9286         * avr.c (avr_regnames, encode_section_info): Likewise.
9287         * c4x.c (float_reg_names): Likewise.
9288         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
9289         * elfos.h (const_section): Likewise.
9290         * i386.c (ix86_comp_type_attributes): Likewise.
9291         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
9292         * ia64/aix.h (UNIQUE_SECTION): Likewise.
9293         * ia64.c (type_names): Likewise.
9294         * m68hc11.c (reg_class_names): Likewise.
9295         * m88k.c (m_options): Likewise.
9296         * mips.c (mips_output_conditional_branch, mips_unique_section):
9297         Likewise.
9298         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9299         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
9300         ultra_code_names): Likewise.
9301         * sparc.h (OVERRIDE_OPTIONS): Likewise.
9302
9303 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
9304
9305         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
9306         Use --fatal-warnings option for gas.
9307         * configure: Rebuilt.
9308
9309 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9310
9311         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
9312
9313 2001-09-11  Jim Wilson  <wilson@redhat.com>
9314
9315         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
9316
9317 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9318
9319         * builtins.c (c_strlen): Treat an offset too large for a
9320         HOST_WIDE_INT as out of range.
9321
9322 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
9323
9324         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
9325         (EDGE_CRITICAL_P): New predicate.
9326         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
9327         handling.
9328         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
9329         (dump_edge_info): Remove "crit".
9330         * cfganal.c (mark_critical_edges): Kill.
9331         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
9332         * cfgcleanup.c (cleanup_cfg): Likewise.
9333         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
9334         (find_spanning_tree): Likewise.
9335         * reg-stack.c (convert_regs_1): Likewise.
9336         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
9337
9338         * basic-block.h (create_basic_block_structure): New.
9339         (create_basic_block): Update prototype.
9340         (force_nonfallthru): New.
9341         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
9342         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
9343         handle updating of block_for_insn, creating of empty BBs and BBs at
9344         the end of INSN chain.
9345         (create_basic_block): New function.
9346         (split_block): Use create_basic_block.
9347         (force_nonfallthru_and_redirect): Break out from ...; cleanup
9348         (redirect_edge_and_branch_force): ... here.
9349         (force_nonfallthru): New.
9350         (split_edge): Rewrite to use force_nonfallthru and create_block.
9351         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
9352         (find_basic_blocks): Free basic_block_for_insn.
9353         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
9354
9355         * cfg.c: Fix formating.
9356         * cfgcleanup.c: Fix formating.
9357         (merge_blocks, tail_recursion_label_p): Return bool.
9358         (merge_blocks_move_predecessor_nojumps,
9359          merge_blocks_move_successor_nojumps): Return void.
9360
9361 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
9362
9363         * configure.in: Check whether assembler supports section merging.
9364         * config.in: Rebuilt.
9365         * configure: Rebuilt.
9366         * varasm.c (variable_section, output_constant_pool): Pass alignment
9367         to SELECT_SECTION and SELECT_RTX_SECTION.
9368         (mergeable_string_section): New.
9369         (mergeable_constant_section): New.
9370         (default_elf_asm_named_section): Output SECTION_MERGE and
9371         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
9372         * output.h (mergeable_string_section): New.
9373         (mergeable_constant_section): New.
9374         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
9375         * toplev.c (flag_merge_constants): New.
9376         (f_options): Add -fmerge-constants and -fmerge-all-constants
9377         options.
9378         (toplev_main): Default to -fno-merge-constants if not optimizing.
9379         * flags.h (flag_merge_constants): Add extern.
9380         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
9381         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
9382         argument.
9383         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
9384         Define if assembler has working .subsection -1 support.
9385         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
9386         Put constant into special SHF_MERGE sections if the linker should
9387         attempt to merge duplicates.
9388         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
9389         macro argument.
9390         Put constant into special SHF_MERGE sections if the linker should
9391         attempt to merge duplicates.
9392         * config/alpha/elf.h: Likewise.
9393         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
9394         has working .subsection -1 support.
9395         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
9396         SELECT_SECTION.
9397         * config/svr3.h: Likewise.
9398         * config/darwin.h: Likewise.
9399         * config/arm/aof.h: Likewise.
9400         * config/arm/linux-elf.h: Likewise.
9401         * config/avr/avr.h: Likewise.
9402         * config/c4x/c4x.h: Likewise.
9403         * config/d30v/d30v.h: Likewise.
9404         * config/i386/dgux.h: Likewise.
9405         * config/i386/osfrose.h: Likewise.
9406         * config/i386/sco5.h: Likewise.
9407         * config/i386/svr3gas.h: Likewise.
9408         * config/ia64/aix.h: Likewise.
9409         * config/m32r/m32r.h: Likewise.
9410         * config/m68k/m68k.h: Likewise.
9411         * config/m88k/dgux.h: Likewise.
9412         * config/m88k/m88k.h: Likewise.
9413         * config/mcore/mcore-pe.h: Likewise.
9414         * config/mips/mips.h: Likewise.
9415         * config/pa/pa.h: Likewise.
9416         * config/pa/pa-linux.h: Likewise.
9417         * config/romp/romp.h: Likewise.
9418         * config/rs6000/sysv4.h: Likewise.
9419         * config/rs6000/xcoff.h: Likewise.
9420         * config/s390/linux.h: Likewise.
9421         * config/sparc/sparc.h: Likewise.
9422         * config/sparc/sysv4.h: Likewise.
9423         * config/stormy16/stormy16.h: Likewise.
9424         * config/v850/v850.h: Likewise.
9425         * config/vax/vms.h: Likewise.
9426         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
9427         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
9428         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
9429         default_elf_asm_named_section for SHF_MERGE sections.
9430
9431 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
9432
9433         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
9434         is OK.
9435
9436 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9437
9438         * c-common.c (split_specs_attrs): Allow for empty attributes with
9439         empty TREE_PURPOSE.  Fixes PR c/4294.
9440
9441 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
9442
9443         * basic-block.h (cached_make_edge, make_single_succ): New.
9444         (make_edge): Remove first parameter.
9445         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
9446         * cfg.c (cached_make_edge): Rename from make_edge; return newly
9447         created edge; use obstack allocation.
9448         (make_edge, make_single_succ_edge): New.
9449         (first_removed_edge): New static variable.
9450         (init_flow): Initialize first_removed_edge and n_edges.
9451         (clear_edges): Use remove_edge.
9452         (flow_delete_block): Likewise.
9453         (remove_edge): Add removed edges to the removed edges list.
9454         (split_block, redirect_edge_and_branch_force, split_edge):
9455         Use make_edge.
9456         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
9457         (add_noreturn_fake_exit_edges): Likewise.
9458         (connect_infinite_loops_to_exit): Liekwise.
9459         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
9460         Use cached_make_edge.
9461         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
9462         * profile.c (branch_prob): Update make_edge call.
9463         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
9464
9465 2001-09-11  Richard Henderson  <rth@redhat.com>
9466
9467         * config/alpha/alpha.c: Tidy formatting.
9468         (local_symbolic_operand): Verify mode.
9469         (alpha_sa_mask): Ignore unicos for eh_return.
9470         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
9471         * config/alpha/alpha.md (umk divsi patterns): Remove.
9472         (extendsfdf2): Remove unicos check.
9473         (tablejump): Merge vms and unicos code; always use direct set
9474         plus label_ref use.
9475
9476 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9477
9478         * config.gcc (alpha*-*-unicosmk*): New target.
9479
9480         * config/alpha/alpha-protos.h (symbolic_operand,
9481         unicosmk_add_call_info_word, unicosmk_add_extern,
9482         unicosmk_defer_case_vector, unicosmk_unique_section,
9483         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
9484         unicosmk_asm_file_start, unicosmk_asm_file_end,
9485         unicosmk_output_common): Declare.
9486
9487         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
9488         direct_return, function_arg, alpha_va_start, alpha_va_arg,
9489         alpha_does_function_need_gp, alpha_end_function): Support Cray
9490         Unicos/Mk.
9491         (alpha_init_machine_status, alpha_mark_machine_status,
9492         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
9493         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
9494         unicosmk_asm_named_section, unicosmk_insert_attributes,
9495         unicosmk_section_type_flags, symbolic_operand,
9496         unicosmk_output_module_name, unicosmk_output_default_externs,
9497         unicosmk_output_dex, unicosmk_output_externs,
9498         unicosmk_output_addr_vec, unicosmk_ssib_name,
9499         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
9500         unicosmk_asm_file_end, unicosmk_output_common,
9501         unicosmk_section_type_flags, unicosmk_unique_section,
9502         unicosmk_add_call_info_word, unicosmk_text_section,
9503         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
9504         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
9505         unicosmk_dex_count, unicosmk_special_name): New.
9506         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
9507         TARGET_ABI_UNICOSMK.
9508         (get_aligned_mem, alpha_expand_unaligned_load,
9509         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
9510         alpha_expand_unaligned_store_words): Support big-endian mode.
9511         (print_operand): Likewise. New format specifier 't'. Use
9512         TARGET_AS_SLASH_BEFORE_SUFFIX.
9513         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
9514         (alpha_pv_save_size): Update with above change.
9515         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
9516         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
9517         Unicos/Mk.
9518
9519         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
9520         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
9521         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
9522         (EXTRA_CONSTRAINT): New constraint 'U'.
9523         (PREDICATE_CODES): Add symbolic_operand.
9524
9525         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
9526         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
9527         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
9528         (integer division and modulus patterns): Split in default and
9529         Unicos/Mk versions.
9530         (*divmodsi_internal, *divmoddi_internal): Disable for
9531         TARGET_ABI_UNICOSMK.
9532         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
9533         little-endian and big-endian versions.
9534         (ext, ins, msk): Likewise.
9535         (extv, extzv, insv): Support big-endian mode.
9536         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
9537         (call_umk, call_value_umk, *call_umk, tablejump_umk,
9538         *tablejump_umk_internal, *call_value_umk): New.
9539         (*movdi_nofix): Add pattern for loading an address into a register on
9540         TARGET_ABI_UNICOSMK.
9541         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
9542         (umk_mismatch_args, arg_home_umk): New.
9543         (various insns): Don't use mov, fmov, nop, fnop and unop.
9544         (realign): Support TARGET_ABI_UNICOSMK.
9545
9546         * config/alpha/unicosmk.h: New file.
9547         * config/alpha/t-unicosmk: New file.
9548
9549         * fixinc/inclhack.def (unicosmk_restrict): New.
9550         * fixinc/fixincl.x: Regenerate.
9551
9552         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
9553         (wchar_t): Check for and define __WCHAR_T__.
9554
9555 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
9556
9557         * combine.c (simplify_shift_const): Treat shifts by the mode
9558         size as undefined.
9559
9560 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9561
9562         * cpphash.h (struct tokenrun): New.
9563         (struct cpp_context): New member bol.
9564         (struct cpp_reader): New members.
9565         (_cpp_init_tokenrun): New.
9566         * cppinit.c (cpp_create_reader): Set up the token runs.
9567         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
9568         (lex_token): New internalised version of _cpp_lex_token.  Don't
9569         handle directives or the multiple include optimization here any
9570         more.  Simply lex a token.
9571         * cpplib.c (run_directive): Clear bol.
9572         (_cpp_pop_buffer): Set bol.
9573         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
9574         arguments.
9575
9576 2001-09-11  Michael Meissner  <meissner@redhat.com>
9577
9578         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
9579         give an error if the user uses -mfp32.
9580         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
9581         default options.
9582         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
9583         floating point register size.
9584         (EXTRA_SPECS): Add CPP_FPR_SPEC.
9585
9586         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
9587         HOST_WIDE_INT_PRINT_DEC to properly print the result of
9588         int_size_in_bytes.
9589         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
9590         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
9591
9592 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
9593
9594         * dbxout.c (dbxout_parms): Fix typo in comment.
9595         * unroll.c (loop_find_equiv_value): Ditto.
9596         * toplev.c (rest_of_compilation): Ditto.
9597         * loop.c (scan_loop): Ditto.
9598         * dwarf2out.c (struct dw_fde_struct): Ditto.
9599
9600 2001-09-10  Zack Weinberg  <zackw@panix.com>
9601
9602         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
9603         copying identifier when we're just going to throw it away.
9604         (parse_identifier_slow): New routine to handle abnormal cases.
9605         (_cpp_lex_token): Update call site.
9606
9607         * hashtable.c (ht_lookup): Don't assume that the string we've
9608         been given is NUL-terminated.
9609         * system.h: #define __builtin_expect(a, b) to (a) if not
9610         GCC >=3.0.
9611
9612 2001-09-10  Michael Meissner  <meissner@redhat.com>
9613
9614         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
9615         binutils, gdb.
9616
9617 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
9618
9619         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
9620
9621 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9622
9623         * builtins.c (c_getstr): Correct thinko in last change and further
9624         cleanup.
9625
9626 2001-09-10  Tim Freeman <tim@fungibole.com>
9627
9628         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
9629         into varray's and register them as roots with the garbage
9630         collector so they are not collected too soon.
9631
9632 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
9633
9634         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
9635         New.
9636         * basic-block.h (flow_obstack, label_value_list,
9637         tail_recursion_label_list): Declare
9638         (tidy_fallthru_edges): Declare.
9639         (expunge_block, last_loop_beg_note): Delete.
9640         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
9641         * cfg.c: New file
9642         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
9643         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
9644         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
9645         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
9646         expunge_block, flow_delete_block, compute_bb_for_insn,
9647         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
9648         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
9649         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
9650         try_redirect_by_replacing_jump, last_loop_beg_note,
9651         redirect_edge_and_branch, redirect_edge_and_branch_force,
9652         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
9653         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
9654         commit_edge_insertions, dump_flow_info, debug_flow_info,
9655         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
9656         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
9657         Move here from flow.c
9658         * cfganal.c: New file.
9659         (forwarder_block_p, can_fallthru, mark_critical_edges,
9660          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
9661          find_unreachable_blocks, create_edge_list, free_edge_list,
9662          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
9663          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
9664          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
9665          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
9666          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
9667          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
9668         Move here from flow.c
9669         * cfgbuild.c: New file
9670         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
9671          make_edges, find_basic_blocks_1, find_basic_blocks,
9672          find_sub_basic_blocks): Move here from flow.c
9673         * cfgcleanup.c: New file.
9674         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
9675          merge_blocks_move_predecessor_nojumps,
9676          merge_blocks_move_successor_nojumps, merge_blocks,
9677          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
9678          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
9679         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
9680         if succeeded.
9681         * cfgloop.c: New file
9682         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
9683          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
9684          flow_loop_exit_edges_find, flow_loop_nodes_find,
9685          flow_loop_pre_header_scan, flow_loop_pre_header_find,
9686          flow_loop_tree_node_add, flow_loops_tree_build,
9687          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
9688          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
9689         Move here from flow.c
9690         * flow.c: Remove everything moved elsewhere
9691         * output.h (cleanup_cfg): Return bool.
9692
9693         * bb-reorder.c (reorder_block_def): Remove 'index'.
9694         (insert_intra_1): Add argument BB, set block for new note.
9695         (make_reorder_chain): Do not depdent on BB indexes.
9696         (make_reorder_chain_1): Do not use BB indexes.
9697         (label_for_bb): Likewise; set BB for new insn.
9698         (emit_jump_to_block_after): Likewise.
9699         (fixup_reorder_chain): Sanity check that all basic blocks
9700         are chained; verify newly created insn chain; remove
9701         undocnitional jump simplifying; Do not use BB indexes;
9702         properly initialize count and frequency information;
9703         dump reordered sequence.
9704         (insert_intra_bb_scope_notes): update call of insert_intra_1.
9705         (insert_inter_bb_scope_notes): Set block for new insn.
9706         (reorder_basic_blocks): Dump flow info before reoredering.
9707
9708 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9709
9710         * alias.c (clear_reg_alias_info): Use K&R format definition.
9711         Avoid unsigned warning.
9712         * builtins.c: Use "unsigned int", not "unsigned".
9713         (target_char_cast): Use host_integerp and tree_low_cst.
9714         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
9715         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
9716         (c_getstr): Likewise.
9717         (std_expand_builtin_va_arg): Use int_size_in_bytes.
9718         (builtin_memcpy_read_str): Avoid unsigned warning.
9719         (expand_builtin_memcpy): Alignments are unsigned.
9720         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
9721         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
9722         * predict.c (expensive_function_p): LIMIT now unsigned.
9723         * resource.c (mark_target_live_regs): Make some vars unsigned.
9724         * sdbout.c: Use "unsigned int", not "unsigned".
9725         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
9726         (sdbout_source_line): Likewise.
9727         (sdbout_record_type_name): Remove "const" for NAME declaration.
9728         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
9729
9730 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
9731
9732         * calls.c (store_one_arg): Expand comment.
9733
9734 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9735
9736         * calls.c (store_one_arg): Make sure that the entire argument is
9737         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
9738
9739 2001-09-09  Richard Henderson  <rth@redhat.com>
9740
9741         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
9742
9743 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
9744
9745         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
9746
9747 2001-09-09  Richard Henderson  <rth@redhat.com>
9748
9749         * config/alpha/alpha.c (alpha_next_sequence_number): New.
9750         (alpha_this_literal_sequence_number): New.
9751         (alpha_this_gpdisp_sequence_number): New.
9752         (some_operand, input_operand): Add HIGH.
9753         (local_symbolic_operand): New.
9754         (alpha_encode_section_info): New.
9755         (alpha_legitimate_address_p): Allow LO_SUM.
9756         (alpha_legitimize_address): Generate HIGH+LO_SUM.
9757         (alpha_expand_mov): Likewise.
9758         (secondary_reload_class): Check memory_operand not general_operand
9759         for FP_REGS test.
9760         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
9761         (alpha_expand_unaligned_store): Likewise.
9762         (alpha_expand_unaligned_load_words): Likewise.
9763         (alpha_expand_unaligned_store_words): Likewise.
9764         (alpha_expand_block_clear): Likewise.
9765         (print_operand): Handle %#, %*, %H.
9766         (print_operand_address): Handle LO_SUM.
9767         (find_lo_sum): New.
9768         (alpha_does_function_need_gp): Use it.
9769         (alpha_expand_block_move): Fix signed compare warnings.
9770         (alpha_sa_mask, alpha_align_insns): Likewise.
9771         * config/alpha/alpha-protos.h: Update.
9772         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
9773         (MASK_EXPLICIT_RELOCS): New.
9774         (TARGET_SWITCHES): Add -mexplicit-relocs.
9775         (EXTRA_CONSTRAINT): Add 'T'.
9776         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
9777         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
9778         (ENCODE_SECTION_INFO): Out line.
9779         (REDO_SECTION_INFO_P): New.
9780         (STRIP_NAME_ENCODING): New.
9781         (ASM_OUTPUT_LABELREF): New.
9782         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
9783         (PREDICATE_CODES): Update.
9784         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
9785         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
9786         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
9787         builtin_setjmp_receiver_er, exception_receiver_1_er,
9788         call_value_osf_1_er): New patterns.
9789         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
9790         (movqi, movhi, movsi): Add explicit $31 base register to lda.
9791         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
9792         (FINAL_PRESCAN_INSN): New.
9793
9794 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
9795
9796         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
9797
9798 2001-09-08  Andreas Jaeger  <aj@suse.de>
9799
9800         * i386.h (TARGET_SWITCHES): Fix description.
9801
9802 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
9803
9804         * rs6000.c (num_insns_constant): Compute number of instructions
9805         more accurately.
9806
9807         * doc/install.texi: Explain AIX exception handling work-around.
9808         Update URL for AIX fixes.
9809
9810 2001-09-07  Jim Wilson  <wilson@redhat.com>
9811
9812         * alias.c (clear_reg_alias_info): New.
9813         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
9814         * rtl.h (clear_reg_alias_info): Declare.
9815
9816 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9817
9818         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
9819         available.
9820         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
9821         (m16m,edivm,emulm): Change declaration to match definition.
9822
9823 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
9824
9825         * reload.c (push_reload): Check for subreg_lowpart_p instead of
9826         SUBREG_BYTE being 0 when determining if the inner part of a subreg
9827         can be reloaded.
9828
9829 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9830
9831         * c-common.c (signed_or_unsigned_type): Handle machine mode types
9832         which have no corresponding C type.
9833         * fold_const.c (target_isinf,target_isnan,target_negative): Update
9834         the representation of 64-bit doubles to work with 64-bit ints.
9835
9836 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
9837
9838         * config/mips/mips.c (override_options): Do not override ISA when ABI
9839         specified if MIPS_CPU_STRING_DEFAULT was specified.
9840
9841 2001-09-07  Richard Henderson  <rth@redhat.com>
9842
9843         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
9844         (express_from_1): Wrap lines.
9845         * rtlanal.c (commutative_operand_precedence): Rename from
9846         operand_preference; export.
9847         * rtl.h: Declare it.
9848         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
9849         (simplify_binary_operation): Invoke simplify_plus_minus on
9850         (CONST (PLUS ...)) as well.
9851         (struct simplify_plus_minus_op_data): New.
9852         (simplify_plus_minus_op_data_cmp): New.
9853         (simplify_plus_minus): Use them.  Avoid infinite recursion with
9854         simplify_binary_operation wrt CONST.
9855
9856 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
9857
9858         * h8300-protos.h (general_operand_dst_push): Remove.
9859         * h8300.c (general_operand_dst_push): Likewise.
9860         * h8300.h (OK_FOR_T): Likewise.
9861         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
9862         * h8300.md (pushqi_h8300): New.
9863         (pushqi_h8300hs): Likewise.
9864         (pushqi): Likewise.
9865         (pushhi_h8300): Likewise.
9866         (pushhi_h8300hs): Likewise.
9867         (pushhi): Likewise.
9868
9869 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9870
9871         * genattrtab.c (attr_printf): First arg is unsigned.
9872         Clean up formatting of callers.
9873
9874 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
9875
9876         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
9877         registers.
9878
9879 2001-09-07  Andreas Jaeger  <aj@suse.de>
9880
9881         * i386.h (TARGET_SWITCHES): Fix descriptions.
9882
9883 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9884
9885         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
9886
9887 2001-09-06  Ira Ruben  <ira@apple.com>
9888
9889         Remove OP_IDENTIFIER.
9890         * tree.def (OP_IDENTIFIER): Remove.
9891         * tree.c (tree_node_kind enum): Remove op_id_kind.
9892         (tree_node_kind_names): Remove "op_identifiers".
9893         (make_node): Remove OP_IDENTIFIER test.
9894         (build_op_identifier): Removed because it isn't being used.
9895         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
9896         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
9897
9898 2001-09-06  Richard Henderson  <rth@redhat.com>
9899
9900         * simplify-rtx.c (simplify_binary_operation): Revert last change.
9901
9902 2001-09-06  Richard Henderson  <rth@redhat.com>
9903
9904         * simplify-rtx.c (simplify_binary_operation): Simplify contents
9905         of CONST.
9906
9907 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9908
9909         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
9910         number used for CR register.
9911
9912 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
9913                           Joern Rennecke (amylaar@cygnus.com)
9914
9915         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
9916         * h8300.c (initial_offset): Handle offset between RP and FP.
9917         (h8300_return_addr_rtx): New function.
9918         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
9919         return register.
9920         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
9921         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9922         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
9923         (CAN_ELIMINATE, REGISTER_NAMES):
9924         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
9925
9926 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
9927
9928         Remove TYPE_NONCOPIED_PARTS.
9929         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
9930         (struct tree_type): Remove noncopied_parts.
9931         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
9932         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
9933         (fixed_type_p): Remove.
9934         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
9935         (expand_expr, MODIFY_EXPR): Likewise.
9936         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
9937         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
9938
9939 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
9940
9941         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
9942         compiler warnings.
9943         (mask64_operand): Likewise.
9944         (includes_rldic_lshift_p): Likewise.
9945         (includes_rldicr_lshift_p): Likewise.
9946
9947 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
9948
9949         * objc/objc-act.c (build_message_expr): If a class method cannot
9950         be found, do not issue a warning if a corresponding instance
9951         method exists in the root class.
9952
9953 2001-09-05  Richard Henderson  <rth@redhat.com>
9954
9955         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
9956
9957 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
9958
9959         * function.c (ggc_mark_struct_function): Mark f->outer.
9960         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
9961         * integrate.c (output_inline_function): ... not here.
9962
9963 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
9964
9965         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
9966
9967         * i386.c (size_cost): New static variable.
9968         (override_function): Use size_cost when -Os is specified.
9969
9970         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
9971         properly;  Use current_function_calls_eh_return.
9972         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
9973         use leave to avoid dependency chain.
9974
9975         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
9976         get BB loop_depth instead of computing it from LOOP notes.
9977
9978         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
9979
9980 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9981
9982         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9983         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9984         UNALIGNED_DOUBLE_INT_ASM_OP): Define
9985
9986 2001-09-05  Jeffrey A Law  (law@cygnus.com)
9987             Jason Merrill (jason@redhat.com)
9988
9989         * stor-layout.c (layout_type): Complain if an array's size can
9990         not be represented in a size_t.
9991
9992         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
9993
9994 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
9995
9996         * gcc.c: (process_command) Add parentheses around assignment
9997         used as truth value.
9998
9999 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
10000
10001         * config/mips/mips.c (save_restore_insns): Don't mark any register
10002         save slots as unchanging if current_function_calls_eh_return.
10003
10004 2001-09-05  Richard Henderson  <rth@redhat.com>
10005
10006         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
10007         * config/alpha/alpha-protos.h: Declare it.
10008         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
10009         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
10010         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
10011         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
10012         (REG_OK_FOR_BASE_P): Select one of the above.
10013
10014 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
10015
10016         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
10017         (crti.o): Prefix name of object file with $(T).
10018         (crtn.o): Likewise.
10019
10020 2001-09-05  David S. Miller  <davem@redhat.com>
10021
10022         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
10023         * config/sparc/linux64.h: Likewise.
10024
10025 2001-09-05  Andreas Jaeger  <aj@suse.de>
10026
10027         * doc/invoke.texi (i386 Options): -mwide-multiply is not
10028         available anymore, remove the documentation.
10029         (i386 Options): Fix typo, cleanup index entries.
10030
10031         * prefix.c (concat): Remove, we can use the version from liberty.
10032
10033 2001-09-05  Richard Henderson  <rth@redhat.com>
10034
10035         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
10036         New functions split out of md file expanders.
10037         * config/alpha/alpha-protos.h: Declare them.
10038         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
10039
10040 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10041
10042         * cppmacro.c (funlike_invocation_p): No need to restore context.
10043
10044 2001-09-04  Richard Henderson  <rth@redhat.com>
10045
10046         * reload.c (push_reload): Export.
10047         * reload.h (push_reload): Declare it.
10048
10049         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
10050         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
10051         * config/alpha/alpha.c (alpha_legitimize_address): New.
10052         (alpha_legitimize_reload_address): Likewise.
10053         * config/alpha/alpha-protos.h: Declare them.
10054
10055 2001-09-04  Stan Shebs  <shebs@apple.com>
10056
10057         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
10058         * config/darwin.c (machopic_stub_name): Account for internally
10059         generated lib calls such as memcpy.
10060
10061 2001-09-04  Richard Henderson  <rth@redhat.com>
10062
10063         * unwind.h (_UA_END_OF_STACK): New flag.
10064         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
10065
10066 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
10067
10068         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
10069
10070 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
10071
10072         * config/mips/mips.c (save_restore_insns): Change base_offset to
10073         fp_offset in second call to mips_emit_frame_related_store.
10074
10075 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
10076
10077         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
10078         sometimes be represented as a NOTE of type
10079         NOTE_INSN_DELETED_LABEL.
10080         (Insns): Document NOTE_INSN_DELETED_LABEL.
10081
10082 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
10083
10084         * c-common.h (tree_dump_index): Add more comments.
10085         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
10086         (dump_option_value_info): New struct.
10087         (dump_options): New array.
10088         (dump_switch_p): Parse switch options symbolically.
10089         * doc/invoke.texi (-fdump-ast): Rename to ...
10090         (-fdump-tree): ... here. Document that options are symbolic, and
10091         not all are applicable.
10092
10093 2001-09-04  David S. Miller  <davem@redhat.com>
10094
10095         * config/sparc/sparc.md (define_splits): Kill constraints.
10096
10097         Cleanup redundant and unused insn attributes.
10098         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
10099         binary, and move.  Mark ialu as default.
10100         (commented out define_function_unit "alu"): Kill.
10101         (define_attr "use_clobbered"): Kill.
10102         (whole file): Kill address insn type references.  Replace
10103         all unary/binary/move references with ialu.
10104         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
10105         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
10106         TYPE_IALU.
10107
10108         Simplify length insn attribute and make more judicious use
10109         of insn attribute defaulting.
10110         * config/sparc/sparc.md (all insns with length > one): Mark as
10111         insn type multi if real instructions, else use default if
10112         it is a forced splitter.
10113         (all insns with length == one): Use default insn length.
10114         (all insns of type ialu): Use default insn type.
10115
10116         Fix erroneous insn attribute settings.
10117         (addx): Set insn type to misc.
10118         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
10119         const_umulsidi3_sp64): Set insn type to imul.
10120
10121         Track SFmode vs DFmode insns according to UltraSPARC
10122         scheduling rules.
10123         * config/sparc/sparc.md ("fptype"): New attribute, default
10124         to "single".
10125         (all DFmode single insns): Mark as fptype "double".
10126
10127 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
10128
10129         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
10130
10131 2001-09-03  Richard Henderson  <rth@redhat.com>
10132
10133         * function.h (struct function): Add arg_pointer_save_area_init.
10134         * function.c (expand_function_end): Init arg_pointer_save_area.
10135         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
10136         when called from a nested function.
10137
10138 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
10139
10140         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
10141         is enabled.
10142
10143 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
10144
10145         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
10146
10147 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
10148
10149         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
10150         (emit_push_insn): Use specified padding direction when
10151         STACK_PUSH_CODE is POST_INC.
10152
10153         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
10154
10155 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10156
10157         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
10158
10159 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
10160
10161         * cppinit.c (cpp_start_read): Free the imacros list as we
10162         traverse it.  Don't free the chains before returning.
10163         (_cpp_push_next_buffer): Only try pushing buffers if we've
10164         completed -imacros handling.
10165
10166 2001-08-31  Eric Christopher  <echristo@redhat.com>
10167
10168         * gcc.c (handle_braces): Add explaination for abort.
10169
10170 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
10171
10172         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
10173         move adjustment of bitpos instead.
10174
10175 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
10176
10177         * function.c: Remove all_functions.  Make outer_function_chain
10178         static.
10179         (init_function_start): Don't add new function structure to
10180         all_functions.
10181         (find_function_data, push_function_context_to,
10182         pop_function_context_from, put_var_into_stack,
10183         trampoline_address): Update for changed structure element names.
10184         (push_function_context_to): Disentangle.
10185         (free_after_compilation): Also free F.
10186         (expand_dummy_function_end): Don't free cfun here.
10187         (put_var_into_stack): Comment why we can't use find_function_data here.
10188         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
10189         (mark_function_chain): Split into maybe_mark_struct_function and
10190         ggc_mark_struct_function.  Export the latter.
10191         (init_function_once): Mark from cfun and outer_function_chain;
10192         not all_functions.
10193
10194         * function.h (struct function): Kill next_global.  Rename next
10195         to outer.  All users updated to match.
10196         (all_functions, outer_function_chain): Don't declare.
10197
10198         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
10199         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
10200         don't touch f->inlinable, after calling rest_of_compilation.
10201
10202         * tree.h: Forward-declare struct function.  Prototype
10203         ggc_mark_struct_function.
10204
10205 2001-08-31  Kazu Hirata  <kazu@hxi.com>
10206
10207         * config/h8300/h8300.md (*andorhi3): Fix typos.
10208
10209 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10210
10211         * calls.c (emit_library_call_value): Don't use a fixed
10212         argument after VA_CLOSE, i.e. out of scope in traditional C.
10213
10214         * emit-rtl.c (gen_rtvec): Likewise.
10215
10216 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10217
10218         * Makefile.in (c-pragma.o): Depend on output.h.
10219         (reorg.o): Depend on except.h.
10220
10221         * c-pragma.c: Include output.h.
10222
10223         * reorg.c: Include except.h.
10224
10225         * unwind-dw2.c: Call __builtin_alloca, not alloca.
10226
10227 2001-08-31  Richard Henderson  <rth@redhat.com>
10228
10229         * sched-deps.c (add_dependence): Don't elide dependency if the
10230         conditional used by insn is modified in elem.
10231
10232 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
10233
10234         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
10235
10236 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
10237
10238         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
10239         dump_switch_p.
10240
10241 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
10242
10243         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
10244         function.
10245         (stormy16_asm_out_constructor): New function.
10246         (TARGET_ASM_CONSTRUCTOR): Define.
10247         (TARGET_ASM_DESTRUCTOR): Define.
10248
10249 2001-08-31  Andreas Jaeger  <aj@suse.de>
10250
10251         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
10252         * loop.c (add_label_notes): Likewise.
10253         * reload.c (find_reloads): Likewise.
10254         * config/sh/sh.c (machine_dependent_reorg): Likewise.
10255
10256 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
10257
10258         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
10259         code here.  Take _Unwind_{W,Sw}ord*.
10260         (read_encoded_value_with_base): Use them.
10261         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
10262         words.
10263         (extract_cie_info): Simplify read_?leb128 handling.
10264         (execute_stack_op, execute_cfa_program): Likewise.
10265         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
10266
10267 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
10268
10269         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
10270         the frame pointer to pop the stack if convenient.
10271
10272         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
10273         Don't use post-increment before combine.
10274         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
10275         a call-saved register.
10276
10277 2001-08-31  Andreas Jaeger  <aj@suse.de>
10278
10279         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
10280         code was correct.
10281
10282 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
10283
10284         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
10285         not DIV/MOD, of course.
10286
10287 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
10288
10289         * rtl.def: Undo my patch commited 2001-08-27.
10290
10291         * genattrtab.c: Ditto.
10292
10293         * rtl.h: Ditto.
10294
10295         * sched-int.h: Ditto.
10296
10297         * target-def.h: Ditto.
10298
10299         * target.h: Ditto.
10300
10301         * haifa-sched.c: Ditto.
10302
10303         * sched-rgn.c: Ditto.
10304
10305         * sched-vis.c: Ditto.
10306
10307         * Makefile.in: Ditto.
10308
10309         * doc/md.texi: Ditto.
10310
10311         * doc/tm.texi: Ditto.
10312
10313         * doc/contrib.texi: Ditto.
10314
10315         * doc/gcc.texi: Ditto.
10316
10317         * genattrtab.h: Remove it.
10318
10319         * genautomata.c: Remove it.
10320
10321         * genattr.c: Undo my patch and Richard Henderson's patch commited
10322         2001-08-27.
10323
10324 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
10325
10326         * config.gcc (h8300-*-elf*): New case.
10327         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
10328         (SUBTARGET_CPP_SPEC): Define.
10329         (EXTRA_SPECS): Define.
10330         (SUBTARGET_EXTRA_SPECS): Define.
10331         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
10332         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
10333
10334 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
10335
10336         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
10337         (LIB2FUNCS_EXTRA): Define.
10338         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
10339         config/h8300/fixunssfsi.c: New file.
10340
10341 2001-08-30  Kazu Hirata  <kazu@hxi.com>
10342
10343         * config/h8300/h8300.md (zero_extendqihi2): Changes to
10344         define_expand to accommodate target-specific attributes.
10345         (anonymous zero_extendqihi2 patterns): New.
10346
10347 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
10348
10349         * h8300.md (*andorhi3): New pattern.
10350
10351 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
10352
10353         * h8300.c (dosize): Fix test for "sub".
10354
10355 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
10356
10357         * c-typeck.c (pointer_diff): Try to eliminate common term before
10358         doing conversions.
10359
10360 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
10361
10362         * config/arm/arm.c (arm_compute_initial_elimination_offset):
10363         Account for the saves of the FP registers.
10364
10365         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
10366         (TEXT_SECTION_ASM_OP): Define.
10367         (INIT_SECTION_ASM_OP): Define.
10368         (FINI_SECTION_ASM_OP): Define.
10369         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
10370         (RDATA_SECTION_FUNCITON): Provide prototype.
10371
10372 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
10373
10374         * reload1.c (move2add_note_store): Correct typo checking for
10375         argument pushes.
10376
10377 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
10378
10379         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
10380         note should not be considered outside the libcall block.
10381
10382 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10383
10384         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
10385
10386 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10387
10388         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
10389
10390 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10391
10392         * config/h8300/h8300-protos.h: Add a prototype for
10393         emit_logical_op.
10394         * config/h8300/h8300.c (emit_logical_op): New.
10395         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
10396         (andsi3): Likewise.
10397         (iorhi3): Likewise.
10398         (iorsi3): Likewise.
10399         (xorhi3): Likewise.
10400         (xorsi3): Likewise.
10401
10402 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10403
10404         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
10405         comparison with rtx INTVAL.
10406         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
10407         expression.
10408         * pa.h (FUNCTION_ARG_SIZE): Likewise.
10409
10410 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10411
10412         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
10413         comment typos.
10414
10415 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10416
10417         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
10418         (reg n) to (mem (pre_dec (reg n))
10419         (anonymous movsi pattern): Likewise.
10420
10421 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10422
10423         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
10424
10425 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10426
10427         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
10428         several special constants.
10429
10430 2001-08-29  Kazu Hirata  <kazu@hxi.com>
10431
10432         * config/h8300/lib1funcs.asm: Fix comment typos.
10433
10434 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10435
10436         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
10437         Fix format specifier warnings.
10438
10439         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
10440         inet_makeaddr, semctl): Prototype.
10441
10442         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
10443         (save_restore_insns): Use base_offset, not gp_offset.
10444
10445         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
10446         (ASM_OUTPUT_BYTE): Fix format specifier warning.
10447
10448 2001-08-29  Richard Henderson  <rth@redhat.com>
10449
10450         * bb-reorder.c (function_tail_eff_head): New.
10451         (record_effective_endpoints): Set it.
10452         (fixup_reorder_chain): Use it.
10453
10454 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10455
10456         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
10457
10458 2001-08-28  Dale Johannesen  <dalej@apple.com>
10459
10460         * config/darwin.c (machopic_function_base_name): Add const
10461         qualifier to a string.
10462         (darwin_encode_section_info): Ditto.
10463
10464 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10465
10466         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
10467         function definition.
10468
10469 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
10470
10471         * df.h (struct df): Add rts_order variable.
10472
10473         * df.c (df_visit_next_rts): New function.
10474         (df_visit_next): Renamed to df_visit_next_rc
10475         (df_analyse_1): Allocate/compute/free rts_order as well.
10476         (df_rd_global_compute): Use df_visit_next_rc instead of
10477         df_visit_next.
10478         (df_ru_global_compute): Use df_visit_next_rts instead of
10479         df_visit_next.
10480
10481         * flow.c (flow_reverse_top_sort_order_compute): New function.
10482
10483         * basic-block.h: Add prototype.
10484
10485 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
10486
10487         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
10488         blocks, the BB_REACHABLE is now set, rather than aux being
10489         non-NULL. Update the test to reflect this.
10490
10491 2001-08-28  Eric Christopher  <echristo@redhat.com>
10492
10493         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
10494         config/mips/crti.asm: Ditto.
10495
10496 2001-08-28  Eric Christopher <echristo@redhat.com>
10497             Richard Henderson <rth@redhat.com>
10498
10499         * c-pragma.h (add_weak): Move prototype from here...
10500         * output.h (add_weak): ... to here.
10501         * varasm.c (add_weak): Fix typo.
10502         * config/mips/crti.asm: New file.
10503         * config/mips/crtn.asm: Ditto.
10504         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
10505         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
10506         (INVOKE__main): Ditto.
10507         (INIT_SECTION_ASM_OP): New.
10508         (FINI_SECTION_ASM_OP): Ditto.
10509         (STARTFILE_SPEC): Add crti.
10510         (ENDFILE_SPEC): Add crtn.
10511         * config/mips/elf64.h: Same.
10512         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
10513         Remove.
10514         * config/mips/vxworks.h: Ditto.
10515         * config/mips/t-elf: Support crti and crtn.
10516
10517 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10518
10519         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
10520         INSN_LIST.
10521
10522 2001-08-28  Richard Henderson  <rth@redhat.com>
10523
10524         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
10525         (one_cmplbi2 splitter): Remove redundant test.
10526
10527 2001-08-28  Dale Johannesen  <dalej@apple.com>
10528
10529         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
10530
10531 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
10532
10533         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
10534
10535 2001-08-28  Stan Shebs  <shebs@apple.com>
10536
10537         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
10538         (UNALIGNED_SHORT_ASM_OP): Define.
10539         (UNALIGNED_INT_ASM_OP): Define.
10540
10541 2001-08-28  Will Cohen  <wcohen@redhat.com>
10542
10543         * config/rs6000/rs6000.md (store_multiple): Correct RTL
10544         generation for first set.
10545
10546 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
10547
10548         * flow.c (redirect_edge_succ_nodup): Return new edge.
10549         (try_simplify_condjump): Use new edge.
10550         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
10551
10552         * cse.c (cse_basic_block): Skip note instructions.
10553
10554 2001-08-27  Richard Henderson  <rth@redhat.com>
10555
10556         * combine.c (combine_simplify_rtx): Don't reverse condition
10557         if there is no reverse for the condition.
10558         (simplify_comparison): Don't simplify subregs from INT to FP.
10559
10560         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
10561         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
10562         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
10563         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
10564         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
10565         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
10566
10567 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
10568
10569         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
10570         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
10571         (pushqi1): New.
10572         (adddi_dilshr32, adddi_dishl32): Only data register can be
10573         source for mem destination.
10574
10575         * expmed.c (store_bit_field): Ignore adjustment to bitpos
10576         and use bitnum to decide about register move.
10577
10578 2001-08-27  Richard Henderson  <rth@redhat.com>
10579
10580         * genattr.c (main): Emit state_t even when not doing scheduling.
10581
10582 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
10583             Richard Henderson  <rth@redhat.com>
10584
10585         * gcse.c (reg_first_set, reg_last_set): Replace with ...
10586         (reg_avail_info, current_bb): ... these.
10587         (oprs_unchanged_p, record_last_reg_set_info): Use them.
10588         (compute_hash_table): Likewise.
10589
10590 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
10591
10592         * flow.c (verify_flow_info): Use checksums to verify edges.
10593
10594 2001-08-27  Richard Henderson  <rth@redhat.com>
10595
10596         * genautomata.c (expand_automata): Always create a description.
10597
10598 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
10599
10600         * optabs.c (expand_binop): Correctly handle the carry in multiword
10601         add/subtract operations.
10602
10603 2001-08-27  Fred Fish  <fnf@be.com>
10604
10605         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
10606         __SIZE_TYPE__.
10607
10608 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
10609
10610         * reload.c (find_reloads_toplev): Back out this change:
10611
10612         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
10613
10614         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
10615         mem if the address is a mode_dependent_address_p.
10616
10617 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
10618
10619         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
10620         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
10621         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
10622         RTL constructions.
10623
10624         * genattr.c (main): New variable num_insn_reservations.  Increase
10625         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
10626         pipeline hazard recognizer interface.
10627
10628         * genattrtab.h: New file.
10629
10630         * genattrtab.c: Include genattrtab.h.
10631         (attr_printf, check_attr_test, make_internal_attr,
10632         make_numeric_value): Move protypes into genattrtab.h.  Define them
10633         as external.
10634         (num_dfa_decls): New global variable.
10635         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
10636         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
10637         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
10638         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
10639
10640         * genautomata.c: New file.
10641
10642         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
10643
10644         * sched-int.h: (curr_state): Add the external definition for
10645         automaton pipeline interface.
10646         (haifa_insn_data): Add comments for members blockage and units.
10647
10648         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10649         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10650         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10651         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10652         TARGET_SCHED_DFA_POST_CYCLE_INSN,
10653         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10654         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
10655         macros.
10656         (TARGET_SCHED): Use the new macros.
10657
10658         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
10659         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
10660         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
10661         dfa_bubble): New members in gcc_target.sched.
10662
10663         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
10664         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
10665         (insn_queue): Redefine it as pointer to array.
10666         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
10667         INSN_QUEUE_SIZE.
10668         (max_insn_queue_index_macro_value): New variable.
10669         (curr_state, dfa_state_size, ready_try): New varaibles for
10670         automaton interface.
10671         (ready_element, ready_remove, max_issue): New function prototypes
10672         for automaton interface.
10673         (choose_ready): New function prototype.
10674         (insn_unit, blockage_range): Add comments.
10675         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
10676         FUNCTION_UNITS_SIZE == 0.
10677         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
10678         actual_hazard, potential_hazard): Add comments.
10679         (insn_cost): Use cost -1 as undefined value.  Remove
10680         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
10681         pipeline interface.
10682         (ready_element, ready_remove): New functions for automaton
10683         interface.
10684         (schedule_insn): Add new code for automaton pipeline interface.
10685         (queue_to_ready): Add new code for automaton pipeline interface.
10686         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
10687         (debug_ready_list): Print newline when the queue is empty.
10688         (max_issue): New function for automaton pipeline interface.
10689         (choose_ready): New function.
10690         (schedule_block): Add new code for automaton pipeline interface.
10691         Print ready list before scheduling each insn.
10692         (sched_init): Add new code for automaton pipeline interface.
10693         Initiate insn cost by -1.
10694         (sched_finish): Free the current automaton state and finalize
10695         automaton pipeline interface.
10696
10697         * sched-rgn.c: Include target.h.
10698         (init_ready_list, new_ready, debug_dependencies): Add new code for
10699         automaton pipeline interface.
10700
10701         * sched-vis.c: Include target.h.
10702         (get_visual_tbl_length): Add code for automaton interface.
10703         (target_units, print_block_visualization):  Add comments.
10704
10705         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
10706         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
10707         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
10708         (getruntime.o, genautomata.o): New entries.
10709         (genattrtab.o): Add new dependency file genattrtab.h.
10710         (genattrtab): Add new dependencies.  Link it with `libm.a'.
10711         (getruntime.o, hashtab.o): New entries for canadian cross.
10712
10713         * doc/md.texi: Description of automaton based model.
10714
10715         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
10716         Add comments.
10717         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
10718         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
10719         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
10720         TARGET_SCHED_DFA_POST_CYCLE_INSN,
10721         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
10722         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
10723         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
10724         hook descriptions.
10725         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
10726         MAX_DFA_ISSUE_RATE): New macro descriptions.
10727
10728         * doc/contrib.texi: Add dfa based scheduler contribution.
10729
10730         * doc/gcc.texi: Add more information about genattrtab.
10731
10732 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
10733
10734         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
10735         an RTL basic block.
10736
10737 2001-08-27  Richard Henderson  <rth@redhat.com>
10738
10739         * function.c (expand_function_end): Don't init arg_pointer_save_area.
10740         (get_arg_pointer_save_area): New.  Create an init it here.
10741         (fix_lexical_addr): Use it.
10742         * function.h: Declare it.
10743         * builtins.c (expand_builtin_setjmp_receiver): Use it.
10744         * stmt.c (expand_nl_goto_receiver): Use it.
10745
10746 2001-08-27  Richard Henderson  <rth@redhat.com>
10747
10748         * final.c (final_scan_insn): Don't enter APP_ON mode for
10749         empty asm strings.
10750
10751         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
10752         alignment for assemble_integer for DW_EH_PE_aligned.
10753         * except.c (output_function_exception_table): Likewise.
10754
10755 2001-08-26  Andreas Jaeger  <aj@suse.de>
10756
10757         * c-tree.h: Add prototyp for c_sizeof_nowarn.
10758
10759 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
10760
10761         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
10762
10763 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
10764
10765         * config/rs6000/rs6000.c (mask_operand): Rewrite without
10766         bit-shifting loop.
10767         (mask64_operand): Likewise.
10768         (rldic_operand): Delete.
10769         (includes_lshift64_p): Delete.
10770         (includes_rldic_lshift_p): New function.
10771         (includes_rldicr_lshift_p): New function.
10772         (print_operand): Don't call rldic_operand in case 'W'.
10773         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
10774         (includes_lshift64_p): Remove.
10775         (includes_rldic_lshift_p): Declare.
10776         (includes_rldicr_lshift_p): Declare.
10777         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
10778         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
10779         Replace match_operand rldic_operand predicate with
10780         const_int_operand.  Replace includes_lshift64_p condition with
10781         includes_rldic_lshift_p.
10782         <ashldi3_internal 64 bit rldicr patterns>: New.
10783
10784 2001-08-27  Andreas Jaeger  <aj@suse.de>
10785
10786         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
10787         * errors.c: Likewise.
10788         * final.c: Likewise.
10789         * dwarf2asm.c: Likewise.
10790         * doprint.c (checkit): Likewise.
10791         * diagnostic.c: Likewise.
10792         * collect2.c: Likewise.
10793         * calls.c: Likewise.
10794         * c-semantics.c (build_stmt): Likewise.
10795         * c-format.c (status_warning): Likewise.
10796         * c-errors.c (pedwarn_c99): Likewise.
10797         * builtins.c (validate_arglist): Likewise.
10798         * config/pj/pj.c (pj_printf): Likewise.
10799         * fix-header.c: Likewise.
10800         * gcc.c: Likewise.
10801         * gcov.c (fnotice): Likewise.
10802         * gensupport.c (message_with_line): Likewise.
10803         * mips-tfile.c: Likewise.
10804         * protoize.c (notice): Likewise.
10805         * read-rtl.c (fatal_with_file_and_line): Likewise.
10806         * rtl-error.c: Likewise.
10807         * tradcpp.c: Likewise.
10808         * tree.c: Likewise.
10809         * cp/tree.c (build_min_nt): Likewise.
10810         (build_min): Likewise.
10811         * cp/lex.c: Likewise.
10812         * cp/errfn.c: Likewise.
10813         * cp/rtti.c (create_pseudo_type_info): Likewise.
10814
10815 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
10816
10817         * df.c (df_uses_record): Return after recording all uses
10818         in ASM_OPERANDS.
10819
10820 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
10821
10822         * df.c (df_insn_modify): Realloc the INSN table here, if
10823         necessary, here, too.
10824
10825 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
10826
10827         * config/mips/mips.c (mips_function_value): Handle complex return
10828         values.
10829
10830 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
10831
10832         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
10833         unshared.
10834         * reload.c (make_memloc): Copy result if it is still
10835         reg_equiv_memory_loc[regno] on return.
10836         (subst_reloads) [ENABLE_CHECKING]: Check that none of
10837         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
10838         reg_equiv_mem are modified by the substitutions.
10839
10840 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
10841
10842         * predict.c (expensive_function_p): New.
10843         * rtl.h (expensive_function_p): Declare.
10844         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
10845         (use_fast_prologue_epilogue): New static variable.
10846         (expand_prologue): Set it; emit short prologues if unset.
10847         (expand_epilogue): Likewise.
10848
10849 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
10850
10851         * config.gcc: Add stormy16-*-elf case.
10852         * config/stormy16/stormy-abi: New file.
10853         * config/stormy16/stormy16-lib2.c: New file.
10854         * config/stormy16/stormy16-protos.h: New file.
10855         * config/stormy16/stormy16.c: New file.
10856         * config/stormy16/stormy16.h: New file.
10857         * config/stormy16/stormy16.md: New file.
10858         * config/stormy16/t-stormy16: New file.
10859
10860 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
10861
10862         * i386.h (no-accumulate-outgoing-args): Use proper mask.
10863
10864 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
10865
10866         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
10867         descriptor members are pointer size, not constant 4.
10868         * config/rs6000/rs6000.md (define_splits): Remove more unused
10869         constraints.
10870
10871 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10872
10873         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
10874
10875 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
10876
10877         * cp/rtti.c (VPARAMS): Fix parameter.
10878
10879 2001-08-24  Zack Weinberg  <zackw@panix.com>
10880
10881         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
10882         to zero.
10883         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
10884         to switch.
10885         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
10886         in if controlling use of insv.
10887         (extract_bit_field): Likewise, for extv and extzv.
10888
10889 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
10890
10891         * i386.md (movcc peep2): Fix load of 0.
10892
10893 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10894
10895         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
10896         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
10897
10898 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
10899
10900         * c-pragma.h: Move weak_syms and weak_decls...
10901         * varasm.c: ...here.  Now static.
10902         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
10903         depend on HANDLE_PRAGMA_WEAK.
10904
10905         * c-common.c (c_alignof, c_alignof_expr): Move here...
10906         * c-typeck.c: ...from here.
10907         * c-tree.h, c-common.h: Adjust.
10908
10909 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
10910
10911         * config/ia64/ia64.c (rws_update): If !pred, set write_count
10912         instead of incrementing it.
10913
10914         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
10915         asm ready, don't try to move them all into the same array element.
10916
10917 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
10918
10919         * function.c (thread_prologue_and_epilogue_insns): Avoid
10920         fallthru flag on edge to exit.
10921
10922         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
10923
10924         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
10925         dead edges.
10926
10927 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
10928
10929         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
10930         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
10931         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
10932         Remove prototype.
10933
10934 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
10935
10936         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
10937         replace "GNU CC" with "GCC".
10938
10939 2001-08-23  Richard Henderson  <rth@redhat.com>
10940
10941         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
10942         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
10943         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
10944         Need GR between FR and not GR_AND_FR.
10945         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
10946         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
10947         AR regs before GR regs.
10948         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
10949         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
10950         (REGISTER_MOVE_COST): Update.
10951         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
10952
10953 2001-08-23  Richard Henderson  <rth@redhat.com>
10954
10955         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
10956         a register class.
10957
10958 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
10959
10960         * reload1.c (emit_reload_insns): Don't look for notes
10961         on a NULL store_insn.
10962
10963 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10964
10965         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
10966         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
10967         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
10968         format specifier warnings.
10969         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
10970
10971 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
10972
10973         * config/i386/i386-protos.h: Correct declaration of
10974         i386_pe_asm_named_section.
10975
10976 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10977
10978         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
10979         variable i.
10980         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
10981
10982 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10983
10984         * cpperror.c (print_location): Don't show _Pragma.
10985         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
10986         and file change callback generation here.
10987         (stack_include_file): Update use of cpp_push_buffer.
10988         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
10989         (struct cpp_buffer): Remove type, pfile members.
10990         * cppinit.c (cpp_handle_option): Use free_chain.
10991         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
10992         (skip_escaped_newlines, get_effective_char, lex_percent): Take
10993         a cpp_reader rather than a cpp_buffer.
10994         (skip_escaped_newlines, get_effective_char, skip_block_comment,
10995         skip_line_comment, parse_string, lex_percent, lex_dot,
10996         _cpp_lex_token): Update accordingly.
10997         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
10998         generation here.
10999         (cpp_push_buffer): Update prototype.
11000         (run_directive): Update use of cpp_push_buffer.
11001         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
11002         handle_assertion): Update use of run_directive.
11003         * cpplib.h (enum cpp_buffer_type): Remove.
11004         (cpp_push_buffer): Update prototype.
11005         * fix-header.c (read_scan_file): Update.
11006
11007 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11008
11009         * gcc.c (struct prefix_list): Change prefix to const char *.
11010
11011 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11012
11013         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
11014
11015 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
11016
11017         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
11018         from a new MEM.
11019
11020         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
11021         a squeezable note.
11022         * rtl.h: Adjust.
11023         * ifcvt.c (dead_or_predicable): Adjust.
11024         * loop.c (find_and_verify_loops): Adjust.
11025         * stmt.c (expand_end_case): Adjust.
11026         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
11027         head and end insn pointers in the basic block, not just local copies.
11028         (merge_blocks_move_predecessor_nojumps): Likewise.
11029
11030 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
11031
11032         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
11033         bitmap.h, builtin-types.def, builtins.c, builtins.def,
11034         c-aux-info.c, c-common.c, c-common.def, c-common.h,
11035         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
11036         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
11037         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
11038         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
11039         conditions.h, config.gcc, configure.frag, configure.in,
11040         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
11041         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
11042         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
11043         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
11044         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
11045         emit-rtl.c, errors.c, errors.h, except.c, except.h,
11046         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
11047         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
11048         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
11049         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
11050         gencheck.c, gencodes.c, genconfig.c, genemit.c,
11051         genextract.c, genflags.c, gengenrtl.c, genmultilib,
11052         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
11053         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
11054         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
11055         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
11056         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
11057         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
11058         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
11059         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
11060         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
11061         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
11062         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
11063         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
11064         params.h, predict.c, predict.def, predict.h, prefix.c,
11065         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
11066         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
11067         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
11068         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
11069         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
11070         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
11071         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
11072         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
11073         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
11074         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
11075         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
11076         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
11077         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
11078         xcoffout.h: replace "GNU CC" with "GCC".
11079
11080 2001-08-21  Richard Henderson  <rth@redhat.com>
11081
11082         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
11083         (final_scan_insn): Consider jump tables data even if we have no
11084         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
11085         ADDR_VEC_ALIGN.
11086         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
11087         (ASM_OUTPUT_CASE_END): Remove.
11088         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
11089         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
11090         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
11091
11092 2001-08-21  Richard Henderson  <rth@redhat.com>
11093
11094         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
11095         at barrier insns.  Emit stop bits before barriers.
11096
11097         * flow.c (flow_find_cross_jump): Don't consider unconditional
11098         return insns for commoning.
11099
11100         * final.c (compute_alignments): Fix typo.
11101
11102         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
11103         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
11104         (store_bit_field): Use mode_for_extraction more places.
11105         (extract_bit_field): Likewise.
11106
11107 2001-08-21  Zack Weinberg  <zackw@panix.com>
11108
11109         * caller-save.c: Don't include insn-codes.h.
11110         (reg_save_code, reg_restore_code): Make arrays of int.
11111         All uses updated to match.
11112         (insert_save, insert_restore): No need to initialize "code"
11113         variable upon declaration.
11114         * Makefile.in: update dependencies; fix typo in clean rule.
11115
11116 2001-08-21  Richard Henderson  <rth@redhat.com>
11117
11118         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
11119         (merge_if_block): Handle fallout from same.
11120
11121 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11122
11123         * builtins.c (type_to_class): Fix typo in last change.
11124
11125 2001-08-21  Richard Henderson  <rth@redhat.com>
11126
11127         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
11128         ia64_asm_output_label.
11129
11130         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
11131         copy of gp while the real gp register contains garbage.
11132
11133 2001-08-21  Zack Weinberg  <zackw@panix.com>
11134
11135         * expmed.c (mode_for_extraction): New function.
11136         (store_bit_field, extract_bit_field): Use it.
11137         * expr.h: Prototype it and provide an enum for its first argument.
11138
11139         * combine.c, function.c, recog.c: Don't include insn-codes.h.
11140         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
11141         and digging through the insn_data tables.
11142         * Makefile.in: Update dependencies.
11143
11144 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11145
11146         * cppfiles.c (stack_include_file): line-map.c now handles include
11147         depth.
11148         (handle_missing_handler): Similarly.
11149         (_cpp_execute_include): Similarly.
11150         (_cpp_pop_file_buffer): Similarly.
11151         * cpphash.h (struct cpp_reader): Remove system_include_depth,
11152         buffer_stack_depth and include_depth.
11153         * cpplib.c (do_include_common): line-map.c now handles include depth.
11154         (cpp_push_buffer): Similarly.
11155         (_cpp_pop_buffer): Similarly.
11156         * cppmacro.c (builtin_macro): Update.
11157         * line-map.c (init_line_maps): Set depth.
11158         (add_line_map): Increment "used" earlier.  Update and use the
11159         include depth.
11160         (trace_include): Use the include depth.
11161         * line-map.h (struct line_maps): New member depth.
11162
11163 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11164
11165         * cppfiles.c (stack_include_file): Don't handle -H here.
11166         * cppinit.c (cpp_start_read): Set include tracing after
11167         cpp_post_options and after stacking the main file.
11168         * line-map.c (trace_include): New.
11169         (init_line_maps, add_line_map): Update.
11170         * line-map.h (struct line_maps): New member trace_includes.
11171
11172 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11173
11174         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
11175         * cppfiles.c (stack_include_file): Only stack a file if there
11176         is something to do.  Return a boolean indicating whether a
11177         buffer was stacked or not.
11178         (_cpp_execute_include): Similarly.
11179         (_cpp_read_file): Similarly.
11180         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
11181
11182 2001-08-21  Sam Steingold  <sds@gnu.org>
11183
11184         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
11185         (RECACHE): keep obufp_before_macroname up to date
11186
11187 2001-08-21  Zack Weinberg  <zackw@panix.com>
11188
11189         * stmt.c: Don't include insn-codes.h.
11190         (expand_end_case): Machine specific logic moved to expr.c.
11191         No need to worry about __builtin_classify_type.
11192         (check_for_full_enumeration_handling, emit_case_nodes):
11193         Kill #if 0 blocks.
11194
11195         * builtins.o (expand_builtin_classify_type): Split up so code
11196         can be shared with fold_builtin_classify_type.
11197         (type_to_class, fold_builtin_classify_type): New functions.
11198         (fold_builtins): Handle __builtin_classify_type.
11199
11200         * expr.c (do_tablejump): Now static.
11201         (case_values_threshold, try_casesi, try_tablejump): New;
11202         code mostly from stmt.c (expand_end_case).
11203         (expr.h): Update prototypes.
11204
11205         * Makefile.in (stmt.o): Update dependencies.
11206
11207 2001-08-21  Will Cohen  <wcohen@redhat.com>
11208
11209         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
11210         declaration of variable i.
11211         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
11212         declaration of variable i.
11213
11214 2001-08-21  Richard Henderson  <rth@redhat.com>
11215
11216         * crtstuff.c: Fix thinko last change.  Move list tails to start
11217         of CRT_END section.  Tidy ifdefs.
11218         (__EH_FRAME_BEGIN__): Always static for ELF.
11219         (__do_global_ctors_1): Rename from __frame_dummy.
11220         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
11221         name change; don't hide __EH_FRAME_BEGIN__.
11222
11223 2001-08-21  Richard Henderson  <rth@redhat.com>
11224
11225         * gdbinit.in: Move break on exit after break on fancy_abort.
11226
11227         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
11228         sized types.
11229
11230 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11231
11232         * cpphash.h (_cpp_push_next_buffer): New.
11233         * cppinit.c (do_includes): Remove.
11234         (push_include, free_chain, _cpp_push_next_buffer): New.
11235         (cpp_start_read): Use them to rework command line option handling.
11236         (cpp_handle_option): Combine handling of -include and -imacros.
11237         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
11238         appropriate.  Always insert missing \n at EOF.
11239         * cpplib.c (start_directive): Get the directive position right.
11240         * cppmain.c (cb_file_change): Always print the first line, unless
11241         preprocessed.
11242
11243 2001-08-20  Andreas Jaeger  <aj@suse.de>
11244
11245         * profile.c (compute_branch_probabilities): Remove extra new-line
11246         in error message.
11247         * flow.c (verify_flow_info): Likewise.
11248
11249 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
11250
11251         * basic-block.h (basic_block): Add new field 'flags'.
11252         (BB_REACHABLE): Define.
11253         (expunge_block): Declare.
11254         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
11255         (EXIT_BLOCK_PTR): Ditto.
11256         (expunge_block): Remove static declaration.
11257         (cleanup_cfg): Clear bb->aux on every basic block.
11258         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
11259         computing reachability.
11260         (delete_unreachable_blocks): Delete block b if b->flags has
11261         BB_REACHABLE unset.
11262
11263 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
11264
11265         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
11266
11267 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11268
11269         * sparc.c (sparc_variable_issue): Fix typo in last change.
11270
11271 2001-08-20  Richard Henderson  <rth@redhat.com>
11272
11273         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
11274
11275 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11276
11277         * pa.h (RETURN_IN_MEMORY): Improve comment.
11278
11279 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
11280
11281         * doc/invoke.texi (Profiling options): Clarify the interactions
11282         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
11283
11284 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
11285
11286         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
11287         command.
11288
11289 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11290
11291         * gcc.c (make_relative_prefix): Allocate a sufficiently large
11292         buffer.
11293
11294 2001-08-20  Richard Henderson  <rth@redhat.com>
11295
11296         * final.c (end_final): Fix typo last change.
11297
11298 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11299
11300         * cppinit.c (init_standard_includes): The returned buffer
11301         is already malloc-ed.
11302         * gcc.c (add_prefix): Similarly.
11303         * prefix.c (translate_name): Update to support clear buffer
11304         ownership rules.
11305         (update_path): Similarly.  Be sure to free any newly allocated
11306         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
11307         (tr): New function.
11308         * prefix.h (update_path): Update prototype and document.
11309         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
11310         up and update to new buffer ownership rules.
11311         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
11312
11313 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
11314
11315         * final.c (compute_alignments): New function.
11316         (init_insn_lengths): Do not care label_align.
11317         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
11318         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
11319         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
11320         (shorted_branches): Realloc label_align array; do
11321         not call init_insn_lengths; Do not care about loop alignments.
11322         * output.h (compute_alignments): Declare.
11323         * toplev.c (rest_of_compilation): Call compute_alignments.
11324         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
11325
11326         * predict.c (block_info_def): Add npredecesors, remove nvisited;
11327         change visited to tovisit.
11328         (propagate_freq): Use faster traversing algorithm.
11329         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
11330         to tovisit; reverse meaning.
11331
11332         * predict.c (struct block_info_def): Remove nvisited.
11333         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
11334         (estimate_bb_frequencies): Call mark_dfs_back_edges.
11335
11336 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
11337
11338         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
11339         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
11340         (TARGET_FUSED_MADD): New.
11341         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
11342         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
11343         the multiply-add instructions.
11344
11345 2001-08-19  Richard Henderson  <rth@redhat.com>
11346
11347         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
11348         is aligned to pointer size.
11349
11350 2001-08-19  Richard Henderson  <rth@redhat.com>
11351
11352         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
11353         display markers during final schedule.
11354
11355 2001-08-19  Richard Henderson  <rth@redhat.com>
11356
11357         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
11358
11359 2001-08-19  Richard Henderson  <rth@redhat.com>
11360
11361         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
11362         in the same string.
11363         (ASM_NAME_TO_STRING): Remove.
11364         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
11365         in the same string.  Remove support for expressions.
11366
11367 2001-08-19  Richard Henderson  <rth@redhat.com>
11368
11369         * config/i386/i386.md (tablejump): Make an expander; handle
11370         pic relative addressing here.
11371         (tablejump_1): Rename from tablejump_pic.
11372         (casesi): Remove.
11373
11374 2001-08-19  Richard Henderson  <rth@redhat.com>
11375
11376         * regclass.c (fix_register): Fix typo.
11377
11378 2001-08-18  Richard Henderson  <rth@redhat.com>
11379
11380         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
11381         (struct _Unwind_Context): Expand br_loc to hold it.
11382         (uw_frame_state_for): Handle leaf functions better.
11383         (uw_update_reg_address): Update for br_loc change.
11384
11385 2001-08-18  Richard Henderson  <rth@redhat.com>
11386
11387         * crtstuff.c: Move list heads before code that uses them.
11388         (__JCR_LIST__): Remove initial null.
11389         (frame_dummy, __frame_dummy): Do java registration here ...
11390         (__do_global_ctors_aux): ... not here.
11391
11392         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
11393         (__do_global_dtors_aux): Update to match.
11394         (__JCR_LIST__, __do_jv_register_classes): New.
11395         (.init): Call it.
11396         * config/ia64/crtend.asm (__JCR_END__): New.
11397         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
11398         instead of an indirect LTOFF22 reloc.
11399
11400 2001-08-18  Richard Henderson  <rth@redhat.com>
11401
11402         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
11403         * regclass.c (init_reg_sets_1): Fix typo.
11404         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
11405         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
11406         (ia64_compute_frame_size): Make ar.unat live when in use.
11407         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
11408         for ar.pfs; remove ar.unat handling.
11409         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
11410         call-saved.
11411         (PREDICATE_CODES): Add ar_pfs_reg_operand.
11412         * config/ia64/ia64-protos.h: Update decls.
11413         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
11414         (sibcall_pic): Likewise.
11415
11416 2001-08-18  Richard Henderson  <rth@redhat.com>
11417
11418         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
11419         pred_rel_mutex when searching for insn_group_barrier.
11420         * config/ia64/ia64.md (cycle_display): Combine the expander
11421         and insn patterns.
11422
11423         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
11424         bit before asm as needed.
11425
11426 2001-08-18  Richard Henderson  <rth@redhat.com>
11427
11428         * timevar.def (TV_MACH_DEP): New.
11429         * toplev.c (rest_of_compilation): Use it.
11430         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
11431
11432 2001-08-18  Zack Weinberg  <zackw@panix.com>
11433
11434         * unwind-dw2.c (execute_stack_op): Add default aborts to
11435         the inner switches to prevent warnings.
11436
11437 2001-08-18  Richard Henderson  <rth@redhat.com>
11438
11439         * timevar.h (struct timevar_time_def): Change element type to float.
11440         (ticks_to_msec, clocks_to_msec): Likewise.
11441         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
11442         (get_time): Likewise.
11443         (timevar_print): Adjust zero check and printing to match.
11444
11445 2001-08-18  Zack Weinberg  <zackw@panix.com>
11446
11447         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
11448         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
11449         Eliminate overfull or underfull hboxes.
11450
11451 2001-08-18  Zack Weinberg  <zackw@panix.com>
11452
11453         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
11454
11455 2001-08-18  Zack Weinberg  <zackw@panix.com>
11456
11457         * haifa-sched.c: Convert to target hooks.  Macros replaced
11458         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
11459         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
11460         MD_SCHED_FINISH, and HAVE_cycle_display.
11461         * target-def.h (TARGET_SCHED_ADJUST_COST,
11462         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
11463         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
11464         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
11465         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
11466         New hook #defines to be overridden.
11467         (TARGET_SCHED): Bring them all together.
11468         (TARGET_INITIALIZER): Update.
11469         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
11470         instead of 'struct rtx_def *' throughout.
11471         (struct sched): New set of hooks for the scheduler.
11472         * Makefile.in (haifa-sched.o): Depend on target.h.
11473         * doc/tm.texi: Document the new scheduler hooks, together in
11474         their own section, instead of scattered around.
11475         Fix a bunch of underfull/overfull hboxes.
11476
11477         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
11478         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
11479         sparc.h: Don't define any of the old scheduler macros.
11480
11481         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
11482         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
11483         sparc.c: Create hook functions from code extracted from
11484         corresponding target header, or make existing hooks static, as
11485         appropriate.  Set the appropriate entries in targetm.
11486
11487         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
11488         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
11489         rs6000-protos.h, s390-protos.h, sparc-protos.h:
11490         Remove prototypes for functions which are now static.
11491
11492         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
11493         related gunk; the Haifa scheduler is now the only choice.
11494
11495 2001-08-18  Zack Weinberg  <zackw@panix.com>
11496
11497         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
11498         * genopinit.c: Put floating point divide insns in sdiv_optab.
11499         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
11500         * config/gofast.h, config/c4x/c4x.h,
11501         config/ia64/hpux_longdouble.h, config/mips/mips.h,
11502         config/pa/long_double.h, config/rs6000/sysv4.h,
11503         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
11504         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
11505         (init_optabs): Use init_optabv for overflow-trapping optabs.
11506         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
11507         cmp_optab RTX codes so have_insn_for can find them.
11508
11509         * optabs.c (expand_simple_binop, expand_simple_unop,
11510         have_insn_for, gen_sub3_insn): New interfaces.
11511         * expr.h: Prototype new functions.
11512         (enum optab_methods): Move here from optabs.h.
11513
11514         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
11515         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
11516         Use new functions instead of working directly with optabs.
11517         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
11518         unroll.c: Don't include optabs.h.
11519         * caller-save.c, combine.c, function.c, stmt.c: Just include
11520         insn-codes.h, not optabs.h.
11521         * Makefile.in: Update dependencies.
11522
11523         * combine.c (make_compound_operation, simplify_comparison):
11524         Fix typos testing for this or that instruction.
11525
11526 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
11527
11528         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
11529         generating libgcc.a.
11530
11531 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11532
11533         * except.c (TYPE_HASH): Delete.
11534
11535         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
11536         HOST_WIDE_INT.
11537
11538         * tree.c (TYPE_HASH): Delete.
11539
11540         * tree.h (TYPE_HASH): Define.
11541
11542 2001-08-18  Graham Stott  <grahams@redhat.com>
11543
11544         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
11545         define_split.
11546         (adddi3_internal_2+2): Likewise.
11547         (eh_set_lr_di+1): Likewise.
11548
11549 2001-08-17  Richard Henderson  <rth@redhat.com>
11550
11551         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
11552         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
11553         * dwarf2asm.c: ... here.
11554         * dwarfout.c: Remove them.
11555
11556         * varasm.c (assemble_integer): Add align parameter.
11557         (assemble_real, output_constant, output_constructor): Likewise.
11558         * output.h: Update decls.
11559         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
11560         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
11561         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
11562         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
11563         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
11564         Update all callers.
11565
11566         * final.c (end_final): Abort profile block generation if we
11567         haven't layed it out properly.
11568         * output.h (assemble_eh_integer): Remove stale decl.
11569         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
11570         (min_align): New.
11571         (assemble_integer): Handle unaligned data.
11572         (assemble_real): Abort on unaligned data.
11573         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
11574         anything useful.
11575         (default_dtor_section_asm_out_destructor): Use assemble_align.
11576         (default_named_section_asm_out_constructor): Likewise.
11577         (default_ctor_section_asm_out_constructor): Likewise.
11578         * config/darwin.c (machopic_asm_out_constructor): Likewise.
11579         (machopic_asm_out_destructor): Likewise.
11580         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
11581         (nextstep_asm_out_destructor): Likewise.
11582         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
11583         (vms_asm_out_destructor): Likewise.
11584
11585 2001-08-17  Richard Henderson  <rth@redhat.com>
11586
11587         * config/mips/iris6.h (TARGET_IRIX6): New.
11588         (current_section_name, current_section_flags): New.
11589         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
11590         (MAX_OFILE_ALIGNMENT): New.
11591         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
11592         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
11593         (copy_file_data): Split out from
11594         (mips_asm_file_end): ... here.
11595         (mips_asm_file_start): Remove extra .section directive.  Use
11596         tmpfile instead of mips_make_temp_file.
11597         (mips_unique_section): Use const char * as needed for warnings.
11598         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
11599         re-add align parameter.
11600         (iris6_asm_named_section): New.
11601         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
11602         (iris6_asm_output_align, iris6_section_align_1): New.
11603         (iris6_asm_file_start, iris6_asm_file_end): New.
11604         * config/mips/mips-protos.h: Update decls.
11605
11606 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
11607
11608         * doc/install.texi (Install GCC): Add links to build status pages.
11609         (Specific): Ditto.
11610         (Final install): Ditto; request updates for specific info
11611
11612 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11613
11614         * cpperror.c (print_location):  Don't take a file name; use the
11615         line map instead.
11616         (_cpp_begin_message): Similarly.
11617         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
11618         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
11619         (cpp_pedwarn_with_file_and_line): Remove.
11620         * cppfiles.c (stack_include_file): Update; set filename to stdin
11621         here when appropriate.
11622         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
11623         (_cpp_begin_message): Don't take a file name.
11624         * cppinit.c: Add comment.
11625         * cpplex.c: Fix end-of-directive indicator.
11626         * cpplib.c: Don't include intl.h.
11627         (run_directive, do_diagnostic): Update.
11628         (do_line): Update to not use nominal_fname.
11629         (cpp_push_buffer): Don't take a filename.
11630         * cpplib.h (struct ht): Remove.
11631         (cpp_push_buffer): Don't take a filename.
11632         (cpp_pedwarn_with_file_and_line): Remove.
11633         * cppmacro.c (struct cpp_macro): Remove file.
11634         (builtin_macro): Update.
11635         (_cpp_create_definition): Update.
11636         * cppmain.c: Correct comment.
11637         * fix-header.c (read_scan_file): Update.
11638
11639 2001-08-17  Kazu Hirata  <kazu@hxi.com>
11640
11641         * sbitmap.c: Fix comment formatting.
11642         * sched-deps.c: Likewise.
11643         * sibcall.c: Likewise.
11644         * simplify-rtx.c: Likewise.
11645         * ssa.c: Likewise.
11646         * ssa-ccp.c: Likewise.
11647         * stor-layout.c: Likewise.
11648         * timevar.c: Likewise.
11649         * toplev.c: Likewise.
11650         * unwind-dw2.c: Likewise.
11651         * unwind-dw2-fde.c: Likewise.
11652         * varasm.c: Likewise.
11653
11654 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11655
11656         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
11657         or larger than an integer in memory.
11658
11659 2001-08-17  Zack Weinberg  <zackw@panix.com>
11660
11661         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
11662         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
11663         * rtl.h: Don't forward-declare union tree_node here.  Don't
11664         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
11665         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
11666         and tree respectively.
11667         * tree.h: Don't forward-declare struct rtx_def here.  Don't
11668         typedef tree here.  Change all uses of struct rtx_def *,
11669         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
11670         and tree respectively.
11671
11672 2001-08-17  Richard Henderson  <rth@redhat.com>
11673
11674         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
11675         config/mips/openbsd.h: Fix typos last change.
11676
11677 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11678
11679         * doc/invoke.texi (Optimize Options): The default for
11680         -finline-limit is 600.
11681
11682 2001-08-17  Richard Henderson  <rth@redhat.com>
11683
11684         * varasm.c (text_section): Allow TEXT_SECTION to override the
11685         printing of TEXT_SECTION_ASM_OP.
11686         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
11687         (DATA_SECTION, BSS_SECTION): Remove.
11688         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
11689         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
11690         Rename from s/_NAME//.
11691         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
11692         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
11693         (TEXT_SECTION): ... here.  New.
11694         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
11695         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
11696         * config/mips/openbsd.h: Likewise.
11697         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
11698         (mips_asm_file_end): Likewise test.
11699         (mips_output_function_epilogue): Likewise.  Switch back to data
11700         section after emitting the function.
11701
11702         * doc/tm.texi (Sections): Document TEXT_SECTION.
11703
11704 2001-08-17  Richard Henderson  <rth@redhat.com>
11705
11706         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
11707         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
11708
11709 2001-08-17  Richard Henderson  <rth@redhat.com>
11710
11711         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
11712         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
11713         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
11714         Add aligned attribute.
11715
11716 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
11717
11718         * config/sh/sh.md: Add modes to unspecs in first insn to match
11719         those in the second.
11720
11721         * Makefile.in: Fix collect2 copy for Cygwin.
11722
11723 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
11724
11725         Install the proper patch.
11726         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
11727         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
11728         (expand_function_start): Likewise.
11729         * stmt.c (expand_decl): Likewise.
11730         * varasm.c (make_decl_rtx): Likewise.
11731
11732 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
11733
11734         * final.c: Undo my previous accidental checkin.
11735         * output.h: Likewise.
11736         * tm.texi: Likewise.
11737
11738 2001-08-16  Richard Henderson  <rth@redhat.com>
11739
11740         * varasm.c (named_section_flags): Remove align parameter.
11741         * varasm.c, dwarf2out.c: Update all callers.
11742         * output.h: Update prototypes.
11743
11744         * target.h (target.asm_out.named_section): Remove align parameter.
11745         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
11746         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
11747         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
11748         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
11749         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
11750
11751         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
11752         (get_named_section_flags, set_named_section_flags): New.
11753         (named_section_flags): Use them.
11754         (named_section): Do decl vs section flags check here...
11755         (default_section_type_flags): ... not here.
11756         (init_varasm_once): Create in_named_htab.
11757         (resolve_unique_section): Mark reloc unused.
11758
11759 2001-08-16  Richard Henderson  <rth@redhat.com>
11760
11761         * varasm.c (force_const_mem): Keep pool alignment in bits.
11762         (output_constant_pool): Use assemble_align.
11763
11764 2001-08-16  Zack Weinberg  <zackw@panix.com>
11765
11766         * doc/tm.texi: Remove extra @table command.
11767
11768 2001-08-16  Zack Weinberg  <zackw@panix.com>
11769
11770         * final.c (shorten_branches): Clear the end of the label_align
11771         array only if we made it larger.  Break up messy expressions
11772         for clarity.
11773
11774         * diagnostic.c (internal_error): Check for error recursion
11775         before doing ICE suppression.
11776
11777         * timevar.c: Timing variables now count in milliseconds.
11778         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
11779         (get_time): Not here.
11780         (timevar_print): Don't print any timer whose user, cpu, and
11781         wall times are all zero as displayed.
11782         * timevar.h: Update comment aboout units.  Make timevar
11783         counters unsigned.
11784
11785 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
11786
11787         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
11788         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
11789         (expand_function_start): Likewise.
11790         * stmt.c (expand_decl): Likewise.
11791         * varasm.c (make_decl_rtx): Likewise.
11792
11793 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
11794
11795         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
11796         (finalize_record_size): Don't set TYPE_USER_ALIGN.
11797
11798 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11799
11800         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
11801         variables.
11802
11803 2001-08-16  Andreas Jaeger  <aj@suse.de>
11804
11805         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
11806         prototype.
11807
11808 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
11809
11810         * rtl.h (only_sets_cc0_p): New prototype.
11811         * jump.c (sets_cc0_p): Handle INSN.
11812         (only_sets_cc0_p): New function.
11813         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
11814         (tidy_fallthru_edge): Likewise.
11815         * integrate.c (copy_insn_list): Likewise.
11816         * unroll.c (unroll_loop): Likewise.
11817         (copy_loop_body): Likewise.
11818
11819 2001-08-15  Jason Eckhardt  <jle@redhat.com>
11820
11821         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
11822
11823 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
11824
11825         * predict.c (struct block_info_def): Remove nvisited.
11826         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
11827         (estimate_bb_frequencies): Call mark_dfs_back_edges.
11828
11829         * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
11830         (ix86_adjust_cost): Teach scheduler that latency to load operand can
11831         be masked.
11832
11833 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
11834
11835         * predict.def: Update hitrates.
11836
11837 2001-08-15  Richard Henderson  <rth@redhat.com>
11838
11839         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
11840
11841 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
11842
11843         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
11844         note from its associated jump.
11845
11846 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
11847
11848         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
11849         also on 64-bit s390x targets.
11850
11851 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
11852
11853         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
11854         function.
11855         (arm_expand_prologue): Handled nested functions which take a
11856         variable argument list.
11857         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
11858         macro with an invocation of
11859         arm_compute_initial_elimination_offset.
11860         * config/arm/arm-protos.h: Prototype
11861         arm_compute_initial_elimination_offset.
11862
11863 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11864
11865         * doc/install.texi (Specific, avr): Fix markup.
11866         (Specific, c4x): Ditto.
11867
11868 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
11869
11870         * predict.c (dump_prediction): Change `bool' parameter to `int'.
11871
11872 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
11873
11874         * Makefile.in (OBJS): Add rtl-error.o
11875         (rtl-error.o): New rule.
11876         (diagnostic.o): Adjust dependency.
11877         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
11878         error_for_asm, _fatal_insn, _fatal_insn_not_found,
11879         warning_for_asm): Move to...
11880         rtl-error.c: ...here.  New file.
11881
11882 2001-08-14  Richard Henderson  <rth@redhat.com>
11883
11884         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
11885         if USING_SJLJ_EXCEPTIONS.
11886
11887 2001-08-14  Steve Ellcey <sje@cup.hp.com>
11888
11889         * tlink.c (scan_linker_output): Check string for unsatisfied in
11890         addition to undefined and unresolved.
11891
11892 2001-08-14  Graham Stott  <grahams@redhat.com>
11893
11894         * libgcc2.c (*): Replace EH_FRAME_SECTION with
11895         EH_FRAME_SECTION_NAME.
11896
11897 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
11898
11899         * genattrtab.c (simplify_test_exp_in_temp): New function.
11900         (simplify_test_exp): Avoid explicit use of temporary obstack.
11901         (simplify_cond, insert_right_side, evaluate_eq_attr,
11902         simplify_and_tree, simplify_or_tree, eliminate_known_true):
11903         Use simplify_test_exp_in_temp.
11904         (optimize_attrs): Iterate until expression stabilizes.
11905
11906 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
11907
11908         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
11909         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
11910
11911 2001-08-13  Richard Henderson  <rth@redhat.com>
11912
11913         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
11914         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
11915         * config/arm/conix-elf.h: Likewise.
11916
11917 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
11918
11919         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
11920         in gcc.c.
11921         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11922
11923         * gcse.c (hash_scan_set): Expressions that are set as part of
11924         jump instructions are not available.
11925
11926 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
11927
11928         * config/s390/s390.c (print_operand, s390_function_prologue,
11929         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
11930
11931 2001-08-13  Richard Henderson  <rth@redhat.com>
11932
11933         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
11934         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
11935         * doc/tm.texi (Exception Region Output): Document it.
11936
11937 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
11938
11939         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
11940         DWARF2 instead of stabs by default.
11941
11942 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
11943
11944         * config/rs6000/rs6000.c: Include optabs.h.
11945
11946 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
11947
11948         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
11949         save/restore routines.
11950         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
11951
11952 2001-08-13  Andreas Jaeger  <aj@suse.de>
11953
11954         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
11955         the english is correct.
11956
11957 2001-08-13  Zack Weinberg  <zackw@panix.com>
11958
11959         * expr.h: Split out optab- and libfunc-related code to...
11960         * optabs.h, libfuncs.h: ... these new headers.
11961
11962         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
11963         (OPTABS_H): New.
11964         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
11965         dependencies.
11966         * mkconfig.sh: Don't include insn-codes.h from config.h.
11967
11968         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
11969         enum insn_code is available.  Move reload_in_optab and
11970         reload_out_optab array declarations to optabs.h.
11971         * regmove.c (gen_add3_insn): Move to optabs.c, export from
11972         there, prototype in expr.h.
11973         * gencodes.c: Cleanup: zap global variables, don't use
11974         printf where puts will do, don't bother defining MAX_INSN_CODE
11975         which nothing uses, let CODE_FOR_nothing get its value implicitly.
11976
11977         * genemit.c, genopinit.c: Include optabs.h in generated file.
11978         * genoutput.c: Include insn-codes.h in generated file.
11979         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
11980         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
11981         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
11982         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
11983         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
11984         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
11985         Include optabs.h.
11986         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
11987         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
11988         config/m88k/m88k.c, config/sparc/sparc.c:
11989         Include libfuncs.h.
11990         * reload.c: Include expr.h and optabs.h before reload.h.
11991         * config/alpha/alpha.c: Include tree.h before reload.h.
11992         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
11993         and reload.h in that order.
11994         * config/sparc/sparc.c: Include debug.h.
11995         * recog.c: Include insn-codes.h.
11996
11997 2001-08-13  Andreas Jaeger  <aj@suse.de>
11998
11999         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
12000         s390*linux.
12001
12002 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
12003
12004         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
12005         * gcc.c (init_spec): Fix typo in comment.
12006         * varasm.c (data_section): Fix typo in comment.
12007
12008 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
12009
12010         * predict.c (dump_prediction): New argument "USED".
12011         (combine_predictions_for_insn): Determine the used heuristics,
12012         output the case no heuristic applied.
12013         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
12014
12015 2001-08-13  Andreas Jaeger  <aj@suse.de>
12016
12017         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
12018         register %rip.
12019
12020 2001-08-13  Kazu Hirata  <kazu@hxi.com>
12021
12022         * jump.c: Fix formatting.
12023
12024 2001-08-13  Kazu Hirata  <kazu@hxi.com>
12025
12026         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
12027         length.
12028
12029 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
12030
12031         * loop.c (check_dbra_loop): Use condjump_label to compute
12032         jump_label.
12033
12034         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
12035         to better document the files they're in.
12036
12037 2001-08-12  Zack Weinberg  <zackw@panix.com>
12038
12039         * recog.h (struct insn_operand_data): Shrink 'mode' field
12040         to 16 bits.
12041
12042 2001-08-12  Kazu Hirata  <kazu@hxi.com>
12043
12044         * gcc.c: Fix comment formatting.
12045         * gccspec.c: Likewise.
12046         * gcov.c: Likewise.
12047         * gcse.c: Likewise.
12048         * genemit.c: Likewise.
12049         * gengenrtl.c: Likewise.
12050         * genrecog.c: Likewise.
12051         * gensupport.c: Likewise.
12052         * ggc-page.c: Likewise.
12053         * global.c: Likewise.
12054         * graph.c: Likewise.
12055         * ifcvt.c: Likewise.
12056         * integrate.c: Likewise.
12057         * lcm.c: Likewise.
12058         * libgcc2.c: Likewise.
12059         * loop.c: Likewise.
12060         * mbchar.c: Likewise.
12061         * optabs.c: Likewise.
12062         * predict.c: Likewise.
12063         * prefix.c: Likewise.
12064         * profile.c: Likewise.
12065         * protoize.c: Likewise.
12066         * real.c: Likewise.
12067         * recog.c: Likewise.
12068         * regclass.c: Likewise.
12069         * regmove.c: Likewise.
12070         * reg-stack.c: Likewise.
12071         * reload1.c: Likewise.
12072         * resource.c: Likewise.
12073         * rtlanal.c: Likewise.
12074         * rtl.c: Likewise.
12075
12076 2001-08-12  Kazu Hirata  <kazu@hxi.com>
12077
12078         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
12079         a tree representing a constant is passed to the macro.
12080
12081 2001-08-12  Richard Henderson  <rth@redhat.com>
12082
12083         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
12084         (rs6000_elf_asm_out_destructor): New.
12085         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
12086         (DTORS_SECTION_ASM_OP): Remove.
12087         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12088         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
12089
12090 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
12091
12092         Revert:
12093         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12094         * gcc.c (set_collect_gcc_options): New function, split out from
12095         main.
12096         Ignore elided switches.
12097         (do_spec_1): Invoke before executing command.
12098         (set_input): Export.
12099         Move declaration ...
12100         * gcc.h (set_input): ... here.
12101         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
12102         file.
12103
12104 2001-08-12  Richard Henderson  <rth@redhat.com>
12105
12106         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
12107         thinko wrt TARGET_RELOCATABLE.
12108
12109 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
12110
12111         * fix-header.c (cb_file_change): Update prototype.
12112
12113 2001-08-11  Zack Weinberg  <zackw@panix.com>
12114
12115         * toplev.c (set_float_handler): Make static.
12116         * toplev.h: Don't prototype set_float_handler.
12117
12118         * simplify-rtx.c: Don't include setjmp.h.
12119         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
12120         New functions.
12121         (simplify_unary_operation, simplify_binary_operation): Use them,
12122         via do_float_handler.
12123
12124         * fold-const.c: Don't include setjmp.h.
12125         (exact_real_inverse_1): New function.
12126         (exact_real_inverse): Use it, via do_float_handler.
12127
12128         * varasm.c: Don't include setjmp.h.
12129         (assemble_real_1): New function.
12130         (assemble_real): Use it, via do_float_handler.
12131         Call internal_error if we get a trap here.
12132
12133         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
12134         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
12135
12136 2001-08-11  Zack Weinberg  <zackw@panix.com>
12137
12138         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
12139         STACK_BOUNDARY if not already defined.
12140
12141         * calls.c, function.c, reload1.c, explow.c: Don't default
12142         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
12143         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
12144
12145         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
12146         to run-time test.
12147
12148         * doc/tm.texi: Document that STACK_BOUNDARY is required;
12149         clarify difference between it and PREFERRED_STACK_BOUNDARY.
12150
12151 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
12152
12153         * cppmacro.c (enter_macro_context): Push macro expansions even
12154         if empty.
12155
12156 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12157
12158         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
12159         (rs6000_elf_section_type_flags): Actually return a value.
12160
12161 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
12162
12163         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
12164         Clean up code: add missing comments and prototypes, fix warnings,
12165         remove obsolete code, fix spacing to conform to coding style.
12166
12167 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
12168
12169         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
12170         and TARGET_ASM_CLOSE_PAREN.
12171         (regclass_map): CC register belongs to class NO_REGS.
12172         (legitimize_pic_address): Don't generate unnecessary moves
12173         (to avoid confusing loop optimization).
12174         (check_and_change_labels): Replace jump_long by indirect_jump.
12175         (s390_final_chunkify): Don't start a new literal pool on section
12176         switch in 64-bit code.
12177         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
12178
12179         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
12180         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
12181         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
12182         modes correctly.
12183         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
12184         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
12185         (CONST_COSTS): Fixed incorrect costs.
12186
12187         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
12188         Use emit_jump instead of emit_jump_insn (gen_jump).
12189         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
12190         (to avoid confusing flow analysis).
12191         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
12192         (casesi, casesi_jump): New.
12193         (jump_long): Removed.  Functionality merged into indirect_jump.
12194         (indirect_jump): Accept address_operand, not just register_operand.
12195         (cjump_long, icjump_long): Use same logic as indirect_jump.
12196         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
12197         Fixed broken setjmp/longjmp handling.
12198         (do_builtin_setjmp_setup): Removed.
12199
12200         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
12201         broken GNU as versions that don't accept .quad with large
12202         negative values.  Use hexadecimal output instead.
12203         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
12204         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
12205         FUNCTION_EPILOGUE): Removed.  Now in targetm.
12206
12207         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
12208
12209         * config/s390/fixdfdi.h: Add missing copyright statement.
12210         Fix type conflicts on 64-bit.  Add missing SFmode routines.
12211
12212         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
12213         email address.
12214
12215 2001-08-11  Richard Henderson  <rth@redhat.com>
12216
12217         * rtl.h (REG_EH_RETHROW): Remove.
12218         * rtl.c (reg_note_name): Update.
12219         * combine.c (distribute_notes): Don't check for it.
12220
12221 2001-08-11  Richard Henderson  <rth@redhat.com>
12222
12223         * combine.c (distribute_notes): Place REG_SETJMP.
12224
12225 2001-08-11  Richard Henderson  <rth@redhat.com>
12226
12227         * doc/extend.texi (Arrays and pointers implementation): Discourage
12228         relying on sign-extension of pointers.
12229
12230 2001-08-11  H.J. Lu <hjl@gnu.org>
12231
12232         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
12233         in_dtors.
12234         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
12235         RDATA_SECTION_ASM_OP.
12236
12237 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12238
12239         * doc/install.texi (Specific, c4x): Fix cross-reference to the
12240         main manual to work both for info and HTML versions.
12241
12242 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
12243             Matt Kraai <kraai@alumni.carnegiemellon.edu>
12244
12245         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
12246         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
12247         (struct cpp_pool): New member first.
12248         * cppinit.c (append_include_chain): Plug memory leaks.
12249         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
12250         Allocate pragma structures from the (aligned) macro pool to
12251         avoid leaking memory.
12252         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
12253         so we don't leak memory.
12254         * hashtable.c (ht_destroy): New.
12255         * hashtable.h (ht_destroy): New.
12256
12257 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
12258             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12259
12260         * c-lex.c (map): Make const.
12261         (cb_file_change): Update for callback passing a line map.
12262         Don't assume we have a previous map.  Remove sanity check
12263         about popping too many files.
12264         * cpperror.c (print_location): Make map const.
12265         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
12266         (cpp_make_system_header): Similarly.
12267         (search_from): Similarly.
12268         (_cpp_execute_include): Don't remember where we came from.
12269         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
12270         (struct cpp_reader): Make map const.
12271         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
12272         * cpplib.c (do_line): Update; line maps now hold sysp.
12273         (cpp_push_buffer): Similarly.
12274         (_cpp_do_file_change): Similarly; callback with map instead.
12275         (cpp_get_line_maps): Constify return value.
12276         (_cpp_pop_buffer): Update.
12277         * cpplib.h (struct cpp_file_change): Remove.
12278         (struct cpp_callbacks): Update.
12279         (cpp_get_line_maps): Constify return value.
12280         * cppmacro.c (_cpp_create_definition): Update.
12281         * cppmain.c (struct printer): Constify map.
12282         (maybe_print_line): Similarly.
12283         (print_line): Similarly.  Deduce flags 1 and 2 here.
12284         (cb_file_change): Update.
12285         * line-map.c (free_line_maps): Warn regardless.
12286         (add_line_map): Return pointer to const.  When passed NULL to_file
12287         with LC_LEAVE, use the obvious values for the return point so the
12288         caller doesn't have to figure them out.
12289         (lookup_line): Return pointer to const.
12290         (print_containing_files): Take pointer to const.
12291         * line-map.h (struct line_map): New members reason, sysp.
12292         (add_line_map): Return pointer to const.
12293         (lookup_line): Similarly.
12294         (print_containing_files): Take pointer to const.
12295
12296 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
12297             Richard Henderson  <rth@redhat.com>
12298
12299         * regmove.c (regmove_optimize): Avoid setting a register twice in
12300         a parallel set.
12301
12302 2001-08-10  Richard Henderson  <rth@redhat.com>
12303
12304         * doc/extend.texi (Arrays and pointers implementation): Document
12305         behavior of pointer/integer conversion.
12306
12307 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
12308
12309         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
12310
12311 2001-08-10  Richard Henderson  <rth@redhat.com>
12312
12313         * doc/extend.texi (C Implementation): New chapter.
12314         * doc/gcc.texi (Top): Link it in.
12315
12316 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
12317
12318         * doc/install.texi (Specific): Fix CVS merge botch.
12319
12320 2001-08-10  Richard Henderson  <rth@redhat.com>
12321
12322         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
12323         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
12324
12325 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
12326
12327         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
12328         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
12329         this macro is now required.
12330
12331         * cselib.c (cselib_process_insn), flow.c (propagate_block),
12332         loop.c (find_and_verify_loops), reload.c (reload): Check
12333         for rtx code of CALL_INSN, not CALL, when deciding if we
12334         need to check for REG_SETJMP note.
12335
12336         * gcse.c (compute_hash_table, compute_store_table): Update
12337         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
12338         logic.
12339
12340         * config/avr/avr.c: Fix typo.
12341         * config/convex/convex.c (expand_movstr): Use adjust_address.
12342         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
12343         variable.
12344         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
12345         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
12346         Fix typo.
12347         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
12348         Do define STACK_BOUNDARY.
12349         * config/i370/i370.c: Include expr.h.
12350         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
12351         config/pa/som.h, config/v850/v850.h: Take in_ctors and
12352         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
12353         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
12354         * config/m88k/m88k.c: Include c-tree.h after expr.h.
12355         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
12356         * config/romp/romp.c: Include expr.h after tree.h.
12357         Include toplev.h.
12358         (output_fpop): Use xmalloc, not oballoc.
12359         * config/we32k/we32k.c: Include expr.h.
12360
12361 2001-08-10  Kazu Hirata  <kazu@hxi.com>
12362
12363         * config/h8300/h8300.h: Fix formatting.
12364
12365 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
12366
12367         * c-common.h (RETURN_NULLIFIED_P): Lose.
12368         * c-semantics.c (genrtl_return_stmt): Don't check it.
12369
12370 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
12371
12372         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
12373         (mips_annotate_frame_insn): New function.
12374         (mips_emit_frame_related_store): New function.
12375         (save_restore_insns): Don't mark instructions that set up the base
12376         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
12377         the store instructions instead.
12378         (mips_expand_prologue): If the stack size is moved into a temporary
12379         register, do not mark that move as frame-related.  Add a
12380         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
12381
12382 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
12383
12384         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
12385         stack slot as unchanging if current_function_calls_eh_return.
12386
12387 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
12388
12389         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
12390         access the second half of the TFmode scratch operand.
12391
12392 2001-08-10  Anthony Green  <green@redhat.com>
12393
12394         * java/class.c (emit_register_classes): Conditionalize code on
12395         JCR_SECTION_NAME.
12396
12397 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12398
12399         * doc/install.texi (Specific, avr): Fix cross-reference to the
12400         main manual to work both for info and HTML versions.
12401
12402 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12403
12404         * stmt.c (expand_null_return_1): Remove code to generate simple returns
12405         and "use_goto" argument.
12406         (expand_null_return, expand_value_return): Update all callers.
12407         * function.c (expand_function_end): Remove code to generate simple
12408         return.
12409         * config/vax/vax.md (epilogue): New expander for function return.
12410         * doc/md.texi (epilogue): Remove "if defined".
12411
12412 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
12413
12414         * Makefile.in: Partially revert my previous change:
12415         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
12416         of the hashtab.o and safe-ctype.o rules.
12417
12418 2001-08-09  Richard Henderson  <rth@redhat.com>
12419
12420         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
12421         (USE_COLLECT2): Remove duplicate definition.
12422         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
12423         (use_collect2): Remove dead code.
12424         * configure.in (use_collect2): Remove will_use_collect2 and
12425         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
12426         * configure: Rebuild.
12427
12428         * target.h (targetm.asm_out.constructor): New.
12429         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
12430         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
12431         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
12432         * varasm.c (in_ctors, in_dtors): New.
12433         (assemble_constructor, assemble_destructor): Remove.
12434         (default_stabs_asm_out_destructor): New.
12435         (default_named_section_asm_out_destructor): New.
12436         (dtors_section, default_dtor_section_asm_out_destructor): New.
12437         (default_stabs_asm_out_constructor): New.
12438         (default_named_section_asm_out_constructor): New.
12439         (ctors_section, default_ctor_section_asm_out_constructor): New.
12440         * output.h: Update declarations.
12441         * c-decl.c (c_expand_body): Use target hooks instead of
12442         assemble_constructor and assemble_destructor.
12443         * profile.c (output_func_start_profiler): Likewise.
12444         * objc/objc-act.c (finish_objc): Likewise.
12445         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
12446         for the constructor.
12447         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
12448
12449         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
12450         (DTORS_SECTION_ASM_OP): Likewise.
12451         (__CTOR_LIST__): Use attribute section when possible.
12452         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
12453
12454         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
12455         ASM_OUTPUT_CONSTRUCTOR.
12456
12457         * config/darwin.c (machopic_asm_out_constructor): New.
12458         (machopic_asm_out_destructor): New.
12459         * config/darwin-protos.h: Update declarations.
12460         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12461         (ASM_OUTPUT_DESTRUCTOR): Remove.
12462         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12463         * config/nextstep.c (nextstep_asm_out_constructor): New.
12464         (nextstep_asm_out_destructor): New.
12465         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12466         (ASM_OUTPUT_DESTRUCTOR): Remove.
12467         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12468         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
12469         ASM_OUTPUT_*STRUCTOR.
12470         * config/i386/aix386ng.h: Likewise.
12471
12472         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
12473         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
12474         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
12475         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12476         * config/lynx.h: Likewise.
12477         * config/netware.h: Likewise.
12478         * config/psos.h: Likewise.
12479         * config/alpha/alpha-interix.h: Likewise.
12480         * config/alpha/elf.h: Likewise.
12481         * config/arc/arc.h: Likewise.
12482         * config/arm/aof.h: Likewise.
12483         * config/arm/coff.h: Likewise.
12484         * config/arm/elf.h: Likewise.
12485         * config/c4x/c4x.h: Likewise.
12486         * config/h8300/h8300.h: Likewise.
12487         * config/i386/cygwin.h: Likewise.
12488         * config/i386/djgpp.h: Likewise.
12489         * config/i386/i386-coff.h: Likewise.
12490         * config/i386/i386-interix.h: Likewise.
12491         * config/i386/sco5.h: Likewise.
12492         * config/i386/vsta.h: Likewise.
12493         * config/i386/win32.h: Likewise.
12494         * config/i960/i960-coff.h: Likewise.
12495         * config/ia64/sysv4.h: Likewise.
12496         * config/m68hc11/m68hc11.h: Likewise.
12497         * config/m68k/coff.h: Likewise.
12498         * config/m68k/mot3300.h: Likewise.
12499         * config/m88k/m88k.h: Likewise.
12500         * config/mcore/mcore-pe.h: Likewise.
12501         * config/mcore/mcore.h: Likewise.
12502         * config/mips/elf.h: Likewise.
12503         * config/mips/elf64.h: Likewise.
12504         * config/mips/iris6.h: Likewise.
12505         * config/pa/pa64-hpux.h: Likewise.
12506         * config/rs6000/sysv4.h: Likewise.
12507         * config/sh/sh.h: Likewise.
12508         * config/sparc/litecoff.h: Likewise.
12509
12510         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
12511         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
12512         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12513         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12514         (ASM_OUTPUT_DESTRUCTOR): Remove.
12515         * config/a29k/a29k.c: Move include of tree.h.
12516         * config/a29k/udi.h: Delete file.
12517         * config/alpha/alpha.c (vms_asm_out_constructor): New.
12518         (vms_asm_out_destructor): New.
12519         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
12520         (EXTRA_SECTION_FUNCTIONS): Likewise.
12521         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12522         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12523         * config/c4x/c4x.c: Move include of tree.h.
12524         * config/clipper/clipper.c (clix_asm_out_constructor): New.
12525         (clix_asm_out_destructor): New.
12526         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12527         (ASM_OUTPUT_DESTRUCTOR): Remove.
12528         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12529         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12530         (TARGET_ASM_CONSTRUCTOR): New.
12531         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
12532         (sco_asm_out_constructor): New.
12533         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
12534         * config/i386/svr3gas.h: Remove stack grows up code.
12535         Remove code duplicated from i386/sysv3.h.
12536         (TARGET_ASM_CONSTRUCTOR): New.
12537         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
12538         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
12539         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12540         (TARGET_ASM_CONSTRUCTOR): New.
12541         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
12542         (m68hc11_asm_out_destructor): New.
12543         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
12544         (TARGET_ASM_DESTRUCTOR): New.
12545         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
12546         * config/m68k/dpx2.h: Properly undef all the bits inherited from
12547         config/svr3.h pertaining to section manipulation.
12548         * config/m68k/dpx2g.h: Remove #if 0 code.
12549         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
12550         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
12551         (ASM_OUTPUT_CONSTRUCTOR): Remove.
12552         (TARGET_ASM_CONSTRUCTOR): New.
12553         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
12554         (m88k_svr3_asm_out_constructor): New.
12555         (m88k_svr3_asm_out_destructor): New.
12556         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12557         (ASM_OUTPUT_DESTRUCTOR): Remove.
12558         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12559         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
12560         * config/rs6000/aix.h: Likewise.
12561         * config/mips/rtems64.h: Don't undef removed constructor related bits.
12562         * config/mips/vxworks.h: Likewise.
12563         * config/rs6000/lynx.h: Likewise.
12564         * config/sh/elf.h: Likewise.
12565         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
12566         (DTORS_SECTION_ASM_OP): New.
12567         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12568         (ASM_OUTPUT_DESTRUCTOR): Remove.
12569         * config/sparc/sol2-sld-64.h: Likewise.
12570         * config/vax/vax.c (vms_asm_out_constructor): New.
12571         (vms_asm_out_destructor): New.
12572         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
12573         (ASM_OUTPUT_DESTRUCTOR): Remove.
12574         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
12575
12576         * doc/tm.texi (@node Initialization): Update.
12577
12578 2001-08-09  Richard Henderson  <rth@redhat.com>
12579
12580         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
12581         (__do_global_dtors_aux): Use gp-relative static data to avoid
12582         one dynamic relocation.
12583         (__do_frame_setup): Register Java classes.
12584         * config/alpha/crtend.asm (__JCR_END__): New.
12585
12586 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
12587
12588         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
12589         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
12590         (GEN, STAGESTUFF): Add new files.
12591         (insn-constants.h, s-constants, tm-preds.h, s-preds,
12592         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
12593         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
12594         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
12595         as well as insn-codes.h and insn-flags.h in config.h; and no
12596         extra headers in tconfig.h and hconfig.h.
12597
12598         * gencodes.c: Eliminate code to generate predicate declarations
12599         or #defines for md-file constants.
12600         * genconstants.c, genpreds.c: New files.
12601
12602         * i386.md: Re-order guard expressions such that TARGET_64BIT
12603         comes first, when this permits better optimization.  Add
12604         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
12605         why this is desirable.
12606
12607 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
12608
12609         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
12610         (find_fde_for_dso): Remove.
12611         (_Unwind_IteratePhdrCallback): New.
12612         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
12613         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
12614
12615 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12616
12617         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
12618         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
12619
12620 2001-08-09  Graham Stott  <grahams@redhat.com>
12621
12622         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
12623         (vis_no_unit): Use it.
12624         (visualize_no_unit): Add the insn only if room exists.
12625
12626 2001-08-09  Graham Stott  <grahams@redhat.com>
12627
12628         * predict.c (estimate_probability): Replace magic numbers with
12629         appropriate enumeration.
12630
12631 2001-08-09  Graham Stott  <grahams@redhat.com>
12632
12633         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
12634         parameter.
12635         (EXTRACT_FLAGS): Likewise.
12636
12637 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
12638
12639         * config/mips/mips.c    (mips_legitimate_address_p): Check for
12640         CONST_INT in last patch.
12641
12642 2001-08-08  Anthony Green  <green@redhat.com>
12643
12644         * java/class.c (emit_register_classes): Use assemble_jcr if
12645         possible.  Keep the original mechanism as a fallback.
12646         * defaults.h (JCR_SECTION_NAME): Define if we have named section
12647         and weak symbol support.
12648         * crtstuff.c (__JCR_LIST__): Define.
12649         (__JCR_END__): Define.
12650         (_Jv_RegiserClasses): Define weak symbol if possible.
12651         (__do_global_ctors_aux): Register classes for ELF targets with
12652         weak symbol support.
12653
12654 2001-08-08  Kazu Hirata  <kazu@hxi.com>
12655
12656         * dbxout.c: Fix comment formatting.
12657         * dependence.c: Likewise.
12658         * df.c: Likewise.
12659         * diagnostic.c: Likewise.
12660         * dominance.c: Likewise.
12661         * doprint.c: Likewise.
12662         * dwarf2out.c: Likewise.
12663         * dwarfout.c: Likewise.
12664         * emit-rtl.c: Likewise.
12665         * except.c: Likewise.
12666         * explow.c: Likewise.
12667         * expmed.c: Likewise.
12668         * expr.c: Likewise.
12669         * flow.c: Likewise.
12670         * fold-const.c: Likewise.
12671         * function.c: Likewise.
12672
12673 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12674
12675         * global.c (retry_global_alloc): Avoid shadowing allocno.
12676
12677 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
12678
12679         * except.c (remove_fixup_regions): Fix typo.
12680
12681 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
12682
12683         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
12684         unsigned HOST_WIDE_INT to avoid warning.
12685         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
12686         * flow.c (set_block_for_new_insns): Likewise.
12687
12688 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
12689
12690         * sibcall.c (return_value_pseudo): New static variable.
12691         (skip_copy_to_return_value): Handle return_value_pseudo.
12692         (call_ends_block_p): Ensure that return_value_pseudo is set.
12693         (optimize_sibling_and_tail_recursive_call): Discover the
12694         load of pseudo return value in alternate exit block.
12695
12696 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
12697
12698         * calls.c (ECF_ALWAYS_RETURN): New constant.
12699         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
12700         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
12701         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
12702         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
12703         * rtl.c (reg_note_name): New name.
12704         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
12705
12706 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
12707
12708         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
12709
12710 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
12711
12712         * alias.c (get_alias_set): Return a previously calculated
12713         alias set for a VAR_DECL.
12714         * function.c (gen_mem_addressof): Calculate the alias set before
12715         touching the RTL.
12716
12717 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
12718
12719         * predict.def: Set hitrates according our experimental run.
12720
12721 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
12722
12723         * i386.h (HARD_REGNO_RENAME_OK): New macro.
12724
12725 2001-08-08  H.J. Lu <hjl@gnu.org>
12726
12727         * config/mips/mips.c (mips_unique_section): New. Copied from
12728         config/mips/elf.h.
12729
12730         * config/mips/mips-protos.h (mips_unique_section): New
12731         prototype.
12732
12733         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
12734
12735         * config/mips/little.h: New. Generic little endian mips
12736         targets. Only mips*-*-linux* is converted to use it so far.
12737
12738         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
12739         (WCHAR_TYPE): Defined
12740         (WCHAR_TYPE_SIZE): Likewise.
12741         (INIT_SUBTARGET_OPTABS): Likewise.
12742         (BSS_SECTION_ASM_OP): Likewise.
12743         (SBSS_SECTION_ASM_OP): Likewise.
12744         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12745         (ASM_DECLARE_OBJECT_NAME): Likewise.
12746         (UNIQUE_SECTION): Likewise.
12747         (EXTRA_SECTIONS): Likewise.
12748         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
12749         (ASM_OUTPUT_DESTRUCTOR): Likewise.
12750         (ASM_OUTPUT_DEF): Likewise.
12751         (HANDLE_SYSV_PRAGMA): Removed.
12752         (NO_IMPLICIT_EXTERN_C): Likewise.
12753         (TARGET_MEM_FUNCTIONS): Likewise.
12754         (STARTFILE_SPEC): Likewise.
12755         (ENDFILE_SPEC): Likewise.
12756         (LIB_SPEC): Likewise.
12757         (INVOKE__main): Likewise.
12758         (CTOR_LIST_BEGIN): Likewise.
12759         (CTOR_LIST_END): Likewise.
12760         (DTOR_LIST_BEGIN): Likewise.
12761         (DTOR_LIST_END): Likewise.
12762         (SET_ASM_OP): Likewise.
12763         (ASM_OUTPUT_SOURCE_LINE): Likewise.
12764         (ASM_OUTPUT_DEF): Likewise.
12765         (ASM_OUTPUT_IDENT): Likewise.
12766
12767         * config/mips/mips.h (ASM_SPEC): Undefine before define.
12768         (CPLUSPLUS_CPP_SPEC): Likewise.
12769         (ASM_APP_ON) Redefine only if not defined.
12770         (ASM_APP_OFF): Likewise.
12771         (ASM_OUTPUT_SOURCE_LINE): Likewise.
12772         (ASM_OUTPUT_IDENT): Likewise.
12773
12774         * config.gcc: Update tm_file for Linux/mips.
12775
12776 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
12777
12778         * cselib.c (cselib_record_sets): If insn is predicated, turn
12779         sources into IF_THEN_ELSEs.
12780
12781         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
12782         Turn into define_insn_and_split.
12783
12784         * sched-deps.c: Include "cselib.h".
12785         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
12786         Use cselib to turn memory addresses into VALUEs.
12787         (sched_analyze): Call cselib_init/cselib_finish if necessary.
12788         * sched-int.h (struct sched_info): New member USE_CSELIB.
12789         * sched-ebb.c (ebb_sched_info): Initialize it.
12790         * sched-rgn.c (rgn_sched_info): Likewise.
12791         * Makefile.in (sched-deps.o): Update dependencies.
12792
12793         * cselib.h (cselib_subst_to_values): Declare.
12794         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
12795         that have no value and autoincs to be handled by generating a new
12796         dummy value.
12797
12798 2001-08-08  Graham Stott  <grahams@redhat.com>
12799
12800         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
12801         within fixed length SEQUENCE.
12802
12803 2001-08-08  Graham Stott  <grahams@redhat.com>
12804
12805         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
12806         (diagnostic_prefixing_rule): Likewise.
12807         (diagnostic_line_cutoff): Likewise.
12808         (diagnostic_kind_count): Likewise.
12809
12810 2001-08-08  Graham Stott  <grahams@redhat.com>
12811
12812         * alias.c (find_base_decl): Delete redundent assignment.
12813
12814 2001-08-08  Graham Stott  <grahams@redhat.com>
12815
12816         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
12817         (abs): Uppercase and paranthesize macro parameter.
12818         (MEM_DEPENDENCY): Add whitespace.
12819
12820 2001-08-08  Graham Stott  <grahams@redhat.com>
12821
12822         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
12823         failure check for CONST_INT
12824
12825 2001-08-08  Graham Stott  <grahams@redhat.com>
12826
12827         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
12828         (libcall_dead_p): Likewise.
12829
12830         (mark_used_regs): Constify fmt.
12831         (find_use_as_address): Likewise.
12832
12833 2001-08-08  Graham Stott  <grahams@redhat.com>
12834
12835         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
12836          parameter.
12837
12838 2001-08-08  Graham Stott  <grahams@redhat.com>
12839
12840         * combine.c (combine_simplify_rtx): Update comment and
12841         remove erroneous test.
12842
12843 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
12844
12845         * cppinit.c (cpp_finish): Pop the final buffer without comment.
12846         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
12847         take care to avoid multiple no-newline at EOF warnings in that
12848         case.
12849
12850 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
12851
12852         * calls.c (expand_call): Do not emit INSN_SETJMP note.
12853         (emit_library_call_value_1): Likewise.
12854         (emit_call_1): Emit REG_SETJMP note.
12855         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
12856         of INSN_SETJMP
12857         * cselib.c (cselib_process_insn): Likewise.
12858         * flow.c (propagate_block): Likewise.
12859         * loop.c (find_and_verify_loops): Likewise.
12860         * reload.c (find_equiv_regs): Likewise.
12861         * reload1.c (reload): Likewise.
12862         * resource.c (mark_referenced_resources,
12863         mark_set_resources): Likewise.
12864         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
12865         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
12866         * haifa-sched.c (unlink_other_notes): Likewise.
12867         (reemit_notes): Likewise.
12868         * sched-ebb.c (sched_ebb): Likewise.
12869         * sched-rgc.c (sched_region): Likewise.
12870         * rtl.c (note_insn_name): Likewise.
12871         (reg_note_name): Add REG_SETJMP
12872         * rtl.h (reg_note): Add REG_SETJMP.
12873         (insn_note): Remove NOTE_INSN_SETJMP.
12874
12875         * profile.c (branch_prob): Add fake edges for setjmp.
12876
12877 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
12878
12879         * config.gcc: Quote target_cpu_default2 correctly for
12880         powerpc*-*-* targets.
12881
12882 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
12883
12884         * cpplib.h, line-map.h: Update comments.
12885         * cppmain.c (printer_init): Move inline.
12886         (maybe_print_line, print_line): Take a map pointer.
12887         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
12888         (cb_file_change): Don't use prior value of print.map.
12889
12890 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
12891
12892         * doc/install.texi: Document fine-grained multilib configuration.
12893
12894 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
12895
12896         * rtlanal.c (find_first_parameter_load): Call note_stores
12897         only on the instructions.
12898
12899 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
12900
12901         * alias.c (nonlocal_mentioned_p):
12902         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
12903         * calls.c (emit_call_1): Likewise.
12904         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
12905         * cselib.c (cselib_process_insn): Likewise.
12906         * df.c (df_insns_modify): Likewise.
12907         * flow.c (need_fake_edge_p): Likewise.
12908         (propagate_one_insn): Likewise.
12909         * haifa-sched.c (reemit_notes): Likewise.
12910         * integrate.c (copy_insn_list): Likewise.
12911         * jump.c (delete_prior_computation): Likewise.
12912         * local-alloc.c (validate_equiv_mem): Likewise.
12913         * loop.c (scan_loop): Likewise.
12914         * predict.c (estimate_probability): Likewise.
12915         * reload.c (reload): Likewise.
12916         * sched-deps (sched_analyze): Likewise.
12917         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
12918         * gcse.c (compute_hash_table): Likewise.
12919         (mark_call): Likewise.
12920         (store_killed_in_insn): Likewise.
12921
12922 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
12923
12924         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
12925
12926 2001-08-06  Richard Henderson  <rth@redhat.com>
12927
12928         * varasm.c (assemble_gc_entry): Remove.
12929         * output.h: Likewise.
12930
12931 2001-08-06  Richard Henderson  <rth@redhat.com>
12932
12933         * varasm.c (assemble_constructor): Take a symbol_ref and a
12934         priority instead of a bare string.  Move priority handling
12935         here from cp/decl2.c.
12936         * output.h: Update decls.
12937
12938         * c-decl.c (c_expand_body): Update calls to assemble_constructor
12939         and assemble_destructor.
12940         * profile.c (output_func_start_profiler): Likewise.
12941         * objc/objc-act.c (finish_objc): Likewise.
12942         (build_module_descriptor): Return the symbol not the symbol name.
12943
12944 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
12945
12946         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
12947         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
12948         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
12949         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
12950         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
12951         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
12952
12953 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
12954
12955         * cpperror.c (print_containing_files): Moved to line-map.c.
12956         (print_location): line-map.c handles re-listing or otherwise.
12957         * cpphash.h (struct lexer_state): Remove next_bol.
12958         (struct cpp_buffer): Remove include_stack_listed.
12959         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
12960         Remove faked buffer handling.
12961         (_cpp_do_file_change): Tweak.
12962         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
12963         * cppmain.c (struct printer): Remove filename.
12964         (print_line, cb_file_change): Update accordingly.
12965         * line-map.c: Include intl.h.
12966         (init_line_maps): Initialize last_listed.
12967         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
12968         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
12969         (print_containing_files): New.
12970         * line-map.h (struct line_maps): New member last_listed.
12971         (print_containing_files, INCLUDED_FROM): New.
12972         * Makefile.in: Update.
12973         * po/POTFILES.in: Add line-map.c.
12974
12975 2001-08-06  Richard Henderson  <rth@redhat.com>
12976
12977         * except.c (convert_from_eh_region_ranges_1): Never mark
12978         USE or CLOBBER insns as throwing.
12979
12980         * expr.c (store_constructor): Don't clobber memory targets.
12981
12982 2001-08-06  Andreas Jaeger  <aj@suse.de>
12983
12984         * profile.c (branch_prob): Remove unused variable insn.
12985
12986         * Makefile.in (local-alloc.o): Add dependency on except.h.
12987
12988         * local-alloc.c: Include except.h for can_throw_internal prototype.
12989
12990 2001-08-06  Richard Henderson  <rth@redhat.com>
12991
12992         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
12993         * function.c (expand_main_function): Implement it.
12994         * doc/tm.texi: Document it.
12995
12996 2001-08-06  Stan Shebs  <shebs@apple.com>
12997
12998         * doc/install.texi: Document powerpc-*-darwin* details.
12999
13000 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
13001
13002         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
13003         (ASM_CPU_SPEC): Move back to rs6000.h
13004         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
13005
13006         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
13007
13008         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
13009         readded.
13010
13011         * config/rs6000/linux64.h: Ditto.
13012
13013         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
13014         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
13015         nothing.
13016
13017         Remove accidently readded definitions of FUNCTION_PROLOGUE,
13018         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
13019
13020         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
13021         to rs6000.h
13022
13023 2001-08-05  Richard Henderson  <rth@redhat.com>
13024
13025         * local-alloc.c (update_equiv_regs): Do not move insns that
13026         can throw.
13027
13028 2001-08-05  Jan Hubicka  <jh@suse.cz>
13029
13030         * Makefile.in (reload1.o): Add dedendancy on except.h
13031         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
13032         prototypes.
13033         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
13034         indicating wehther edges has been cleaned up.
13035         * reload1.c: Inlucde except.h
13036         (fixup_abnormal_edges): Accept deleted insns.
13037         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
13038         after combine.
13039
13040 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
13041
13042         * cpplib.c (do_line): Correct line number after pop_buffer.
13043
13044 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
13045
13046         PR preprocessor/3824
13047         * line-map.c: Update comments.
13048         * line-map.h: Update comments.
13049         * tradcif.y: Don't consider large numbers unsigned.
13050
13051 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
13052
13053         PR preprocessor/3081
13054         * c-lex.c (map): New.
13055         (cb_file_change): Update map and use it.
13056         (cb_def_pragma, cb_define, cb_undef): Use map and line.
13057         (c_lex): Update to use map.
13058         * cpperror.c (print_location): Move to using logical line numbers.
13059         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
13060         (cpp_make_system_header): Similarly.
13061         (_cpp_execute_include): Stop line numbering hacks.  Store the
13062         line we will return to.
13063         * cpphash.h (CPP_BUF_LINE): Remove.
13064         (struct cpp_buffer): Remove lineno and pseudo_newlines.
13065         Add map and return_to_line.
13066         (_cpp_do_file_change): Update.
13067         * cppinit.c (cpp_start_read): Update line kludge.
13068         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
13069         (trigraph_ok): Use logical line numbers for diagnostics.
13070         (skip_block_comment): Likewise.
13071         (skip_whitespace): Likewise.
13072         (skip_line_comment): Use pfile->line instead.
13073         (_cpp_lex_token): Update to use logical line numbering exclusively.
13074         Handle BOL locally.  Accept new lines in directives, but keep
13075         pfile->line decremented.  Diagnostics use logical lines.  Update
13076         directive handling.
13077         * cpplib.c (SEEN_EOL): New.
13078         (skip_rest_of_line, check_eol): Use it.
13079         (end_directive): Increase line number when accepting the newline
13080         at the end of a directive.
13081         (run_directive): Simplify.
13082         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
13083         (_cpp_do_file_change): Update to take buffer line number as an
13084         argument, and store the current map in the cpp_reader.  Remove
13085         line number kludges.
13086         (_cpp_do__Pragma): Restore output position after a _Pragma.
13087         (cpp_push_buffer): Don't set output line or lineno.
13088         (_cpp_pop_buffer): Transfer more info from a faked buffer.
13089         Remove line kludge.  Set output_line.
13090         * cppmacro.c (builtin_macro): Update handling of __LINE__.
13091         (parse_arg): Use logical lines.
13092         (save_lookahead_token): Save EOFs too now.
13093         * cppmain.c (struct printer): Fix comments.
13094         (printer_init): Simplify, let caller do errors.
13095         (scan_translation_unit, check_multiline_token, dump_macro): Update.
13096         (maybe_print_line): Simplify.
13097         (print_line): Don't print a linemarker if -P.
13098         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
13099         (cb_file_change): Simplify.
13100         * line-map.h (LAST_SOURCE_LINE): Fix.
13101         (CURRENT_LINE_MAP): New.
13102
13103 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
13104
13105         * doloop.c (doloop_modify_runtime): Properly compute number of
13106         iterations if loop was unrolled.
13107
13108         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
13109         if their CSELIB_VAL_PTRs are.
13110
13111         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
13112         (setup_spill_pointers): Initialize it.
13113         (spill_restore_mem): Set it.
13114         (do_spill, do_restore): Use it to add REG_INC note.
13115         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
13116
13117         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
13118         asms if other insns are available.
13119
13120         * config/ia64/ia64.c (condop_operator): New predicate.
13121         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
13122         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
13123         patterns.
13124
13125         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
13126         temporary register than directly using a MEM.
13127
13128 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
13129
13130         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
13131         parameter in last change.
13132
13133 2001-08-04  Zack Weinberg  <zackw@panix.com>
13134
13135         * sparc.md: Don't use #if inside C test expression.
13136
13137 2001-08-04  Richard Henderson  <rth@redhat.com>
13138
13139         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
13140
13141 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
13142
13143         * cpphash.h (struct cpp_reader): New member directive_line.
13144         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
13145         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
13146         do_pragma): Pass line to callbacks.
13147         (start_directive): Record line of directive.
13148         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
13149         cb_include): Similarly.
13150         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
13151         Similarly.
13152
13153 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
13154
13155         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
13156         comment.
13157
13158 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
13159
13160         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
13161
13162         * reload1.c (fixup_abnormal_edges): New static function.
13163         (reload): Use it.
13164
13165         * flow.c (need_fake_edge_p): New function.
13166         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
13167         avoid call insn to be very last insn in the insn stream.
13168
13169         * profile.c (branch_prob): Call flow_call_edges_add instead of
13170         doing that by hand; cleanup cfg to re-merge basic blocks once
13171         we are done.
13172
13173 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13174
13175         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
13176         are also on line-map.h.
13177         * cppfiles.c (stack_include_file): Update.
13178         * cpphash.h (struct cpp_buffer): New member return_at_eof.
13179         (_cpp_pop_buffer): New.
13180         * cppinit.c (cpp_destroy, cpp_finish): Update.
13181         (do_includes): Mark each buffer to return at EOF.
13182         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
13183         return as requested.
13184         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
13185         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
13186         * cpplib.h (cpp_pop_buffer): Remove.
13187         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
13188         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
13189         buffers.
13190         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
13191         to pop buffers.
13192         (do_preprocessing): Update.
13193         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
13194         * c-parse.in (_yylex): Similarly.
13195         * scan-decls.c (scan_decls): Similarly.
13196         * line-map.h: Update comments.
13197
13198         * objc/Make-lang.in (objc-act.o): Update dependencies.
13199
13200 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13201
13202         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
13203         and soft register for operand 0.
13204         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
13205
13206 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13207
13208         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
13209         register for operand 0.
13210         ("bitcmpqi_z_used"): Allow memory for operand 0.
13211         (split "bitcmpqi"): New split to handle address reg as operand 1.
13212
13213 2001-08-04  Andreas Jaeger  <aj@suse.de>
13214
13215         * gcse.c: Revert Daniel's last patch.
13216
13217 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
13218
13219         * sparc-protos.h: Add prototypes for fp_zero_operand and
13220         reg_or_0_operand.
13221         * sh-protos.h: Add prototype for fpul_operand.
13222
13223 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
13224
13225         * doc/extend.texi (Other Builtins): Fix typo in last change.
13226
13227 2001-08-03  Richard Henderson  <rth@redhat.com>
13228
13229         * target.h (gcc_target): Add asm_out.named_section,
13230         section_type_flags, have_named_sections.
13231         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
13232         (TARGET_HAVE_NAMED_SECTIONS): New.
13233         (TARGET_SECTION_TYPE_FLAGS): New.
13234
13235         * Makefile.in (toplev.o): Depend on TARGET_H.
13236         (varasm.o, dbxout.o): Likewise.
13237         * c-common.c (decl_attributes): Check targetm.have_named_sections
13238         instead of ifdef ASM_OUTPUT_SECTION_NAME.
13239         * dbxout.c (dbxout_function_decl): Likewise.
13240         (dbxout_function_end): Likewise.
13241         * toplev.c (compile_file): Likewise.
13242         * varasm.c (exception_section): Likewise.
13243         * cp/decl2.c (finish_objects): Likewise.
13244
13245         * defaults.h (EH_FRAME_SECTION): Remove.
13246         (EH_FRAME_SECTION_ASM_OP): Remove.
13247         (EH_FRAME_SECTION_NAME): New.
13248         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
13249         (UNIQUE_SECTION_P): Remove.
13250         * dwarf2out.c (SECTION_FORMAT): Remove.
13251         (ASM_OUTPUT_SECTION): Remove.
13252         (output_call_frame_info): Use named_section_flags.
13253         (output_comp_unit, dwarf2out_start_source_file): Likewise.
13254         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
13255         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
13256         * varasm.c (in_eh_frame, eh_frame_section): Remove.
13257         (named_section_flags): New.
13258         (named_section): Use it and targetm.section_type_flags.
13259         (resolve_unique_section): New.
13260         (assemble_start_function): Use it.
13261         (asm_emit_uninitialised, assemble_variable): Likewise.
13262         (default_section_type_flags): New.
13263         (default_no_named_section, default_elf_asm_named_section): New.
13264         (default_coff_asm_named_section, default_pe_asm_named_section): New.
13265         * output.h: Update varasm.c decls.
13266         (SECTION_*): New flags.
13267
13268         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
13269         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
13270
13271         * config/elfos.h (UNIQUE_SECTION_P): Remove.
13272         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
13273         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
13274         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
13275         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
13276         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
13277         * config/mips/elf.h, config/mips/elf64.h: Likewise.
13278         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
13279         * config/pa/pa64-hpux.h,
13280
13281         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
13282         (TARGET_ASM_NAMED_SECTION): New.
13283         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
13284         * config/alpha/vms.h, config/arm/coff.h: Likewise.
13285         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
13286         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
13287         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
13288         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
13289         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
13290         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
13291         * config/i386/sco5.h, config/i386/win32.h: Likewise.
13292         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
13293         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
13294         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
13295         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
13296         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
13297         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
13298         * config/sparc/sysv4.h: Likewise.
13299
13300         * config/nextstep.h: Error until named sections implemented.
13301
13302         * config/a29k/a29k.c (a29k_asm_named_section): New.
13303         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
13304         (vms_section_type_flags, vms_asm_named_section): New.
13305         * config/arm/arm.c (arm_elf_asm_named_section): New.
13306         * config/avr/avr.c (asm_output_section_name): Remove.
13307         * config/avr/avr-protos.h: Update.
13308         * config/c4x/c4x.c (c4x_asm_named_section): New.
13309         * config/h8300/h8300.c (h8300_asm_named_section): New.
13310         * config/i386/i386.c (sco_asm_named_section): New.
13311         * config/i386/winnt.c (SECTION_PE_SHARED): New.
13312         (i386_pe_section_type_flags): New.
13313         (i386_pe_asm_named_section): New.
13314         * config/i386/i386-protos.h: Update.
13315         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
13316         * config/mcore/mcore.c (mcore_asm_named_section): New.
13317         * config/mips/mips.c (iris6_asm_named_section): New.
13318         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
13319         instead of UNIQUE_SECTION_P.
13320         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
13321         (xcoff_asm_named_section): New.
13322         * config/sh/sh.c (sh_asm_named_section): New.
13323         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
13324
13325         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
13326         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
13327         (EH_FRAME_SECTION_NAME): New.
13328         (EXCEPTION_SECTION): New.
13329         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
13330         (DEBUG_*_SECTION): Remove.
13331         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
13332         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
13333         (EH_FRAME_SECTION_ASM_OP): Remove.
13334
13335         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
13336         (ASM_OUTPUT_SECTION_NAME): Remove.
13337         (TARGET_ASM_NAMED_SECTION): New.
13338         (TARGET_HAVE_NAMED_SECTIONS): New.
13339         (TARGET_SECTION_TYPE_FLAGS): New.
13340         (EH_FRAME_SECTION_ASM_OP): Remove.
13341         (EH_FRAME_SECTION_NAME): New.
13342
13343 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
13344
13345         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
13346         for complex expressions when cfun == 0.
13347         * doc/extend.texi: Document that __builtin_constant_p can be
13348         used in data initializers as well as functions.
13349
13350 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
13351
13352         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
13353         variable I locally, instead of expecting a declaration in the
13354         calling context.
13355
13356 2001-08-03  Richard Henderson  <rth@redhat.com>
13357
13358         * except.c (collect_one_action_chain): Add an explicit cleanup
13359         action if regions surrounding a catch were encoded entirely
13360         within the call-site entry.
13361
13362 2001-08-03  Richard Henderson  <rth@redhat.com>
13363
13364         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
13365         don't take REGNO of a non-register.
13366
13367 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13368
13369         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
13370         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
13371         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
13372         (__gthread_mutex_init_function): New function for mutex initialization.
13373
13374 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
13375
13376         * Makefile.in: Revert screwed up commit.
13377
13378 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13379
13380         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
13381         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
13382         merged by linker script to get a final _exit().
13383         (__do_global_dtors): New for destructor handling in specific exit
13384         section.
13385         (__do_global_ctors): New for constructors in specific install section.
13386         (__map_data_section): Map data sections before running constructors.
13387         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
13388         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
13389         (DTORS_SECTION_ASM_OP): Likewise.
13390         (CTORS_SECTION_FUNCTION): Define to force a reference to
13391         __do_global_ctors.
13392         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
13393
13394 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
13395
13396         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
13397
13398         * Makefile.in: Add df.h to gcse.c dependencies.
13399
13400 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13401
13402         * varasm.c (output_constant_def_contents): Use for the length of a
13403         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
13404         depending on which is larger.
13405
13406 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
13407
13408         * gcse.c: Include df.h for use as a dataflow analyzer.
13409         Remove regvec.
13410         Declaration of reg_set_info: gone.
13411         New df_analyzer variable used by store motion.
13412         (reg_set_info): Deleted.
13413         (mark_mem_regs): New function, analyze regs used by a mem.
13414         (store_ops_ok): Use dataflow analyzer results to determine if
13415         necessary regs are changed in the block.
13416         (find_moveable_store): Remove check for symbol ref, we can handle
13417         much more complex expressions now.
13418         (compute_store_table): Remove most of the code, it's unnecessary
13419         now that the dataflow analyzer records the info for us.
13420         (store_killed_after): Add parameter to say whether to do the
13421         store_ops_okay test, used to speed up testing when we already know
13422         the answer, and just want to know if the store itself was killed.
13423         (build_store_vector): Largely rewritten to calculate the various
13424         vectors properly, and somewhat optimized.
13425         (store_motion): Init the df_analyzer, get REG_DEF chains.
13426         Also handle trapping expressions (since mems almost always trap)
13427         (simple_mem): Redefine what a simple mem is.
13428
13429 2001-08-03  DJ Delorie  <dj@redhat.com>
13430
13431         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
13432         set from a constant part of the condition.
13433
13434 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
13435
13436         * mkdeps.c (deps_add_default_target): Make local variable
13437         ``start'' a const char pointer.
13438         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
13439
13440 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13441
13442         * doc/install.texi (Configuration): Fix markup.
13443         (Specific, i?86-*-udk): Likewise.
13444         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
13445         --with-gnu-ld.
13446         Document --enable-threads and --enable-libgcj status.
13447         (Specific, mips-sgi-irix*): Canonicalize triples.
13448         (Specific, mips-sgi-irix5): Warn about problems with this config.
13449         Mention required GNU as patch.
13450         Native assembler problems are fixed.
13451         (Specific, mips-sgi-irix6): Update O32 ABI support status.
13452         Document --enable-threads and --enable-libgcj status.
13453
13454 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
13455
13456         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
13457         of mkinstalldirs.
13458
13459 2001-08-03  Richard Henderson  <rth@redhat.com>
13460
13461         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
13462         constant data.
13463
13464 2001-08-03  Richard Henderson  <rth@redhat.com>
13465
13466         * rtlanal.c (find_first_parameter_load): Stop if we
13467         reach a CODE_LABEL at BOUNDARY.
13468
13469 2001-08-03  Richard Henderson  <rth@redhat.com>
13470
13471         * config/alpha/alpha.md (force_movdi): New insn.
13472         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
13473         Tweek FRP marking of VMS prologue insns.
13474         * config/alpha/vms.h (EPILOGUE_USES): New.
13475
13476 2001-08-02  Richard Henderson  <rth@redhat.com>
13477
13478         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
13479
13480 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
13481
13482         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
13483         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
13484         config/convex/convex.h, config/d30v/d30v.c,
13485         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
13486         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
13487         config/mips/mips.h, config/mn10200/mn10200.h,
13488         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
13489         config/v850/v850.h, config/vax/openbsd.h,
13490         config/vax/openbsd1.h, config/vax/ultrix.h,
13491         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
13492         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
13493         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
13494         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
13495         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
13496         in comments and documentation.
13497
13498 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13499
13500         * line-map.c: New.
13501         * line-map.h: New.
13502         * Makefile.in (line-map.o): New.
13503         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
13504         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
13505         * cpperror.c (print_containing_files): Similarly.
13506         (print_location): Update.  Don't output a space before _Pragma.
13507         * cppfiles.c (stack_include_file): Set to line 1 immediately.
13508         (stack_include_filee, cpp_make_system_header): Update.
13509         (_cpp_execute_include): Get logical line number right for calling
13510         as-yet-unterminated #include.
13511         * cpphash.h (struct cpp_reader): Add line_maps.
13512         (_cpp_do_file_change): Update.
13513         * cppinit.c (cpp_create_reader): Initialize line maps.
13514         (cpp_destroy): Destroy line maps.
13515         (cpp_start_read): Get logical line number right.
13516         * cpplex.c (parse_string): Only warn once for multi-line strings.
13517         Use boolean variable for null warning.
13518         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
13519         already.
13520         (do_include_common): End the directive early.
13521         (do_line): Don't warn about out-of-range lines in preprocessed
13522         source.  Update.  Remove unused variables.
13523         (_cpp_do_file_change): Update for new line mapping.
13524         (pragma_cb): New typedef.
13525         (cpp_register_pragma): Stop looking ahead before calling the
13526         handler.  Clean up.
13527         (do_pragma_system_header): End directive early.
13528         (cpp_get_line_maps): New.
13529         (cpp_pop_buffer): Fudge logical line.  Update.
13530         * cpplib.h: Include line-map.h
13531         (enum cpp_fc_reason): Remove.
13532         (struct cpp_file_change): Update.
13533         (cpp_get_line_maps): New.
13534         * cppmain.c (struct_printer): New member map.
13535         (cb_file_change): Update for new mappings.
13536         * fix-header.c (cb_file_change): Similarly.
13537
13538 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
13539
13540         * Makefile.in (libgcc.mk): Define mkinstalldirs.
13541         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
13542
13543 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
13544
13545         * config/vax/vax.c: include expr.h.
13546
13547 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
13548
13549         * Makefile.in ($(srcdir)/configure): Only rebuild in
13550         maintainer mode.
13551         ($(srcdir)/config.in): Only define in maintainer mode.
13552         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
13553
13554 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
13555
13556         * doc/install.texi (Install GCC: Binaries): Update Bull info.
13557
13558 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13559
13560         * gcc.c (set_collect_gcc_options): New function, split out from
13561         main.
13562         Ignore elided switches.
13563         (do_spec_1): Invoke before executing command.
13564         (set_input): Export.
13565         Move declaration ...
13566         * gcc.h (set_input): ... here.
13567         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
13568         file.
13569
13570 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
13571
13572         Kill -fhonor-std.
13573         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
13574         interaction.
13575         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
13576
13577 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
13578
13579         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
13580         for the unnamed instructions it expands to.
13581
13582 2001-08-02  Richard Henderson  <rth@redhat.com>
13583
13584         * regclass.c (call_really_used_regs): Conditionally define.
13585         (init_reg_sets_1): Don't use it if not defined.
13586         (fix_register): Similarly, don't set it.
13587
13588 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13589
13590         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
13591         Correct comment that had been missed in the previous change.
13592
13593 2001-08-01  Stan Shebs  <shebs@apple.com>
13594
13595         * config/darwin.c (machopic_stub_name): Try matching by name.
13596         (update_stubs): New function.
13597         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
13598         unconditionally.
13599
13600 2001-08-01  Richard Henderson  <rth@redhat.com>
13601
13602         * except.c (output_function_exception_table): Use assemble_align.
13603         * varasm.c (assemble_eh_label): Remove.
13604         (assemble_eh_align, assemble_eh_integer): Remove.
13605
13606 2001-08-01  Robert Lipe  <robertl@caldera.com>
13607
13608         * dwarfout.c: Remove reference to README.DWARF.
13609
13610 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
13611
13612         * regclass.c (call_really_used_regs): New array for registers which
13613         are actually used by a call.
13614         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
13615         new array.
13616         (fix_register): Set call_really_used too.
13617         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
13618         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
13619
13620 2001-08-01  Richard Henderson  <rth@redhat.com>
13621
13622         * read-rtl.c (read_name): Consider \r whitespace.
13623
13624 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
13625
13626         * config.gcc: Recognize powerpc-*-netbsd*.
13627
13628         * doc/install.texi (Host/target specific installation notes for
13629         GCC): Mention powerpc-*-netbsd*.
13630
13631         * config/rs6000/netbsd.h: New file.
13632         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
13633         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
13634         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
13635         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
13636         (TARGET_VERSION): Redefine.
13637
13638         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
13639         mcall-netbsd as a match for mcall-sysv.
13640         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
13641         (ncrti.S, ncrtn.S): New targets.
13642         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
13643
13644         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
13645         "netbsd' as a V4 ABI.
13646         (ASM_SPEC): Check for -mcall-netbsd.
13647         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
13648         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
13649         (LIB_SPEC, ENDFILE_SPEC): Ditto.
13650         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
13651         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
13652         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
13653         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
13654
13655         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
13656         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
13657
13658 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
13659
13660         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
13661         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
13662         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
13663         including "unwind-pe.h".
13664
13665 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
13666
13667         * rs6000.md (define_splits): Kill unused constraints.
13668
13669 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
13670                               Jan Hubicka  <jh@suse.cz>
13671
13672         * function.c (thread_prologue_and_epilogue_insns): Kill code
13673         dealing with non-existent CFG.
13674
13675 2001-08-01  Kazu Hirata  <kazu@hxi.com>
13676
13677         * alias.c: Fix comment formatting.
13678         * bitmap.c: Likewise.
13679         * builtins.c: Likewise.
13680         * calls.c: Likewise.
13681         * c-common.c: Likewise.
13682         * c-decl.c: Likewise.
13683         * c-dump.c: Likewise.
13684         * c-lex.c: Likewise.
13685         * collect2.c: Likewise.
13686         * combine.c: Likewise.
13687         * conflict.c: Likewise.
13688         * cppfiles.c: Likewise.
13689         * cppinit.c: Likewise.
13690         * cpplex.c: Likewise.
13691         * cpplib.c: Likewise.
13692         * cppmacro.c: Likewise.
13693         * cppspec.c: Likewise.
13694         * c-pragma.c: Likewise.
13695         * crtstuff.c: Likewise.
13696         * cse.c: Likewise.
13697         * cselib.c: Likewise.
13698         * c-semantics.c: Likewise.
13699         * c-typeck.c: Likewise.
13700
13701 2001-08-01  H.J. Lu <hjl@gnu.org>
13702
13703         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
13704
13705 2001-08-01  H.J. Lu <hjl@gnu.org>
13706
13707         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
13708
13709 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
13710
13711         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
13712         contextualizing Objective-C class name lookup by the lexer.
13713         (typespec_reserved_nonattr): Disable ObjC class name lookup after
13714         seeing a TYPESPEC.
13715         (protocoldef): Add support for forward @protocol declarations.
13716         (yylexname): Suppress ObjC class name lookup in certain contexts;
13717         re-enable after lookup is complete.
13718         (_yylex): Re-enable ObjC class name lookup when certain
13719         punctuation marks are seen.
13720
13721         * objc/objc-act.c (check_protocol_recursively): New function used
13722         for finding circular dependencies in protocols.
13723         (objc_declare_protocols): New function for handling forward
13724         @protocol declarations.
13725         (receiver_is_class_object): Detect the case when 'self' is used
13726         inside of a class method.
13727         (build_message_expr): Issue a warning if class method is desired
13728         but instance method is found instead.
13729         (conforms_to_protocol): Streamline.
13730         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
13731         protocol Foo, even if 'Bar foo' does not.
13732         (check_protocols): Streamline.
13733         (start_protocol): Add checks for circular and duplicate protocol
13734         definitions.
13735         (encode_aggregate_within): For typedefs of structs, encode the
13736         underlying struct.
13737         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
13738         (objc_declare_protocols): New prototype.
13739
13740 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13741
13742         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
13743         * cpplex.c (handle_newline): Update prototype.  Maintain logical
13744         line number.
13745         (skip_escaped_newlines, skip_block_comment, parse_string):
13746         Update accordingly.
13747         (_cpp_lex_token): Update, and store token position within the token.
13748         * cpplib.h (struct cpp_token): Add line and column entries.
13749         * cppmacro.c (replace_args): Position stringified tokens correctly.
13750
13751 2001-08-01  Andreas Jaeger  <aj@suse.de>
13752
13753         * basic-block.h: Add prototype for last_loop_beg_note.
13754
13755 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
13756
13757         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
13758         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
13759         comment.
13760         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
13761         while handling WITH_CLEANUP_EXPR node. Use second operand calling
13762         expand_decl_cleanup.
13763         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
13764         the first RTX.
13765         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
13766         operand while calling simple_cst_equal.
13767         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
13768         operand is the cleanup expression, the third is the RTL_EXPR.
13769         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
13770
13771 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
13772
13773         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
13774
13775 2001-07-31  matthew green  <mrg@eterna.com.au>
13776
13777         * config.gcc (i386-*-netbsdelf): New description.
13778         * config/i386/netbsd-elf.h: New file.
13779
13780 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
13781
13782         * loop.c (check_dbra_loop): Use single_set to compute
13783         jump_label.
13784
13785 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
13786
13787         PowerPC reorg and support for powerpc64-*-linux*.
13788
13789         Also fixes emitting of constants on 32 bit and 64 bit
13790         platforms.
13791
13792         * config.gcc: powerpc64-*-linux* is a new target.
13793         Things that needed aix.h now also include xcoff.h
13794
13795         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
13796         xcoff.h.
13797         Move AIX specific stuff into aix.h.
13798         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
13799         with more than just XCOFF now.
13800         (SET_ASM_OP): Remove, now defined where needed.
13801         (FUNCTION_PROLOGUE): New macro definition.
13802         (FUNCTION_EPILOGUE): New macro definition.
13803         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
13804
13805         * config/rs6000/xcoff.h: New file.
13806
13807         * config/rs6000/linux64.h: New file.
13808
13809         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
13810
13811 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
13812
13813         * rs6000.c (print_operand_address): Handle ELF syntax.
13814         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
13815         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
13816         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
13817
13818 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
13819
13820         * rs6000.c (rs6000_override_options): Only disable
13821         flag_function_sections for XCOFF.
13822         (exact_log2_cint_operand): New predicate.
13823         (reg_or_{add,sub}_cint64_operand): New predicates.
13824         (add_operand): Compare CONST_INT with fewer function calls.
13825         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
13826         (print_operand, case 'p'): Ensure positive operand.
13827         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
13828         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
13829         (PREDICATE_CODES): Add new predicates.
13830         * rs6000.md (addsi3): Split 32-bit constants more correctly.
13831         (divsi3, modsi3): Ensure positive power-of-2.
13832         (adddi3): Use new predicate.  Split 32-bit constants more
13833         correctly.  Re-arrange splitter to handle any constant.
13834         (subdi3): Use new predicate.
13835         (divdi3, moddi3): Ensure positive power-of-2.
13836         (movdi): Use rs6000_emit_set_const.
13837         (load_toc_v4_pic_di): Delete.
13838
13839 2001-07-31  Graham Stott <grahams@redhat.com>
13840
13841         * function.c (pad_below): Revert 2001-07-26 patch.
13842
13843 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
13844
13845         * reg-stack (convert_regs_1): Fix best edge condition.
13846
13847 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
13848
13849         * jump.c (duplicate_loop_exit_test): Better test for jumps
13850         entering the loop; create loop pre_header.
13851
13852 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
13853
13854         * doc/install.texi: Add s390 and s390x as new targets.
13855         * doc/invoke.texi: Add documentation of S/390 and zSeries
13856         target options.
13857         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
13858
13859 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
13860
13861         * config/m68k/m68k.md: Replace all general_operand with
13862         nonimmediate_operand for all destinations.
13863         * config/m68k/m68k.c (not_sp_operand): Likewise.
13864
13865 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
13866
13867         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
13868
13869 2001-07-30  Richard Henderson  <rth@redhat.com>
13870
13871         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
13872         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
13873
13874 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
13875
13876         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
13877         Add missing doc strings
13878         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
13879         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
13880
13881 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
13882
13883         * i386.c (ix86_output_main_function_alignment_hack): New function.
13884         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
13885
13886         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
13887         edges by EDGE_DFS_BACK flag.
13888         (dump_edge_info): Add dfs_back flag.
13889         * basic-block.h (EDGE_DFS_BACK): New constant.
13890         (mark_dfs_back_edges): Declare.
13891         * alias.c (loop_p): Remove.
13892         (mark_constant_function): Use mark_dfs_back_edges.
13893
13894         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
13895         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
13896         (compensate_edge): Break out from ...
13897         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
13898         (convert_regs_2): Set block_done once block is really done;
13899         Do updating of the predecessors counts.
13900
13901         * toplev.c (rest_of_compilation): Recompute block_for_insn
13902         before post-reload cfg_cleanup.
13903         * function.c (thread_prologue_epilogue_insns):
13904         Call set_block_for_new_insns when emitting prologue directly.
13905
13906 2001-07-30  Andreas Jaeger  <aj@suse.de>
13907
13908         * jump.c: Add prototype for mark_modified_reg.
13909
13910         * cse.c (set_live_p): Add unused attribute.
13911
13912         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
13913         overflow.
13914         (scan_for_source_files): Use long for count to avoid overflow.
13915         (output_data): Likewise.
13916         (output_data): Don't use string concatatenation to silence gcc
13917         -traditional.
13918
13919         * predict.c: Fix typos and grammar.
13920
13921         * gcse.c (insert_insn_end_bb): Remove unused variables.
13922
13923 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
13924
13925         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
13926         (attempt_auto_inc): LIkewise.
13927         (mark_used_reg): Likewise.
13928         (try_pre_increment_1): Likewise.
13929         * regclass.c (regclass): Likewise.
13930         * global.c (allocno_compare): Update comment; change scaling factor.
13931         * local-alloc.c (QTY_CMP_PRI): Likewise.
13932         * regs.h (REG_FREQ_FROM_BB): New.
13933         (REG_FREQ_MAX): Likewise.
13934
13935 2001-07-30  H.J. Lu <hjl@gnu.org>
13936
13937         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
13938         -D_GNU_SOURCE.
13939
13940 2001-07-30  H.J. Lu  (hjl@gnu.org)
13941
13942         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
13943         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
13944         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
13945
13946 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
13947
13948         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
13949         as -mthumb-interwork when -mcpu=arm7 is specified.
13950
13951 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
13952
13953         * predict.def (noreturn, loop branch, loop exit): Mark as first
13954         match heuristics.
13955
13956 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
13957
13958         * combine.c (try_combine): Avoid barrier after noop jumps.
13959
13960 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13961
13962         * cpphash.h (struct cpp_reader): Remove import_warning.
13963         * cpplib.c (skip_rest_of_line): Don't bother turning off
13964         macro expansion.
13965         (parse_include): Move include handling to...
13966         (do_include_common): ... here.  Move import warning from...
13967         (do_import): ... here.
13968         (do_pragma_poison): Don't do a callback for poison identifiers.
13969         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
13970         * cppmain.c (setup_callbacks): Similarly.
13971
13972 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
13973
13974         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
13975         handle multiple sets.
13976         * except.c (sjlj_mark_call_sites): .... here.
13977         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
13978
13979 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
13980
13981         Suggested by Richard Henderson and Richard Kenner:
13982         * combine.c (recog_for_combine): Use the fake recog
13983         only if instruction does not match.
13984         * rtl.h (NOOP_MOVE_INSN_CODE): New.
13985         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
13986
13987         * combine.c (try_combine): Discover noop jump as direct jump.
13988
13989 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
13990
13991         * df.c (df_rd_global_compute): Add successors to worklist, not
13992         current item.
13993         (df_ru_global_compute): Ditto.
13994
13995 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
13996
13997         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
13998         increment REG_N_SETS.
13999
14000 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
14001
14002         * sbitmap.h: New prototype for sbitmap_a_xor_b.
14003
14004         * sbitmap.c (sbitmap_a_xor_b): New function.
14005         ifdef the basic block stuff on IN_GCC.
14006
14007 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14008
14009         * cppexp.c (parse_defined): Always record the macro name.
14010         (lex): Don't worry about identifiers, or special-case
14011         CPP_NOT here.
14012         (_cpp_parse_expr): Figure out at the end of the routine
14013         whether we saw a valid !defined() expression.
14014         * cppfiles.c (stack_include_file): Update for mi_valid.
14015         (_cpp_pop_file_buffer): Similarly.
14016         * cpplex.c (_cpp_lex_token): Similarly.
14017         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
14018         mi_if_not_defined, mi_lexed): Remove.
14019         (mi_valid): New.
14020         * cpplib.c (do_if): Simplify.
14021         (do_endif, push_conditional, _cpp_handle_directive): Update
14022         for renaming of mi_state to mi_valid.
14023 doc:
14024         * cpp.texi: Add index entries for digraphs, and add comment
14025         that C++ refers to them as alternative tokens.
14026
14027 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
14028
14029         * basic-block.h (CLEANUP_PRE_LOOP): New.
14030         * except.c (finish_eh_generation): Update call of cleanup_cfg.
14031         * sibcall.c (optimize_sibling_calls): Likewise.
14032         * toplev.c (rest_of_compilation): Likewise.
14033         * flow.c (try_forward_edges): Take argument MODE;
14034         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
14035         (try_optimize_cfg): Update call of try_forward_edges.
14036
14037 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
14038                                 Jan Hubicka  <jh@suse.cz>
14039
14040         * (validate_replace_rtx_1): Fix simplification of MINUS.
14041
14042 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14043
14044         PR preprocessor/3669
14045         * cppinit.c (init_dependency_output): Turn off dump requests
14046         if sending dependencies to stdout.
14047
14048 2001-07-28  Richard Henderson  <rth@redhat.com>
14049
14050         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
14051         not optimizing.
14052
14053 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
14054
14055         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
14056
14057 2001-07-28  Kazu Hirata  <kazu@hxi.com>
14058
14059         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
14060         is VAR_DECL first to prevent an ICE.
14061
14062 2001-07-28  Richard Henderson  <rth@redhat.com>
14063
14064         * varasm.c (immed_real_const_1): Don't elide special cases for
14065         nested functions.
14066         (clear_const_double_mem): Clear const_tiny_rtx too.
14067
14068 2001-07-28  Richard Henderson  <rth@redhat.com>
14069
14070         * dwarf2out.c (dw_val_class_offset): New.
14071         (struct dw_ranges_struct, dw_ranges_ref): New.
14072         (ranges_table, ranges_table_allocated): New.
14073         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
14074         (add_AT_offset, add_ranges, output_ranges): New.
14075         (print_die, output_die): Handle dw_val_class_offset.
14076         (attr_checksum, size_of_die, value_format): Likewise.
14077         (gen_lexical_block_die): Handle non-contiguous blocks.
14078         (gen_block_die): Likewise.
14079         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
14080         if needed.  Dump the ranges table.
14081         * final.c (final_start_function): Remove unnecessary notes and
14082         rebuild the block tree before numbering the blocks.
14083         * function.c (reorder_blocks_0): Walk the existing block tree
14084         to unmark all blocks.
14085         (reorder_blocks_1): Create block fragments when duplicate block
14086         notes are seen.
14087         (reorder_fix_fragments): New.
14088         (reorder_blocks): Call it.
14089         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
14090
14091 2001-07-28  Richard Henderson  <rth@redhat.com>
14092
14093         * emit-rtl.c (adjust_address): Make a copy of the memory address.
14094
14095 2001-07-28  Richard Henderson  <rth@redhat.com>
14096
14097         * flow.c (add_to_mem_set_list): New function.
14098         (init_propagate_block_info): Use it.
14099         (mark_set_1): Likewise.
14100         (insn_dead_p): Canonicalize memory address for dead store
14101         comparison.  Allow wider mode stores to kill narrower mode stores.
14102         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
14103         (invalidate_mems_from_set): Don't handle MEMs.
14104
14105 2001-07-28  Kazu Hirata  <kazu@hxi.com>
14106
14107         * config/h8300/h8300.h: Fix formatting.
14108
14109 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
14110
14111         * basic-block.h (EDGE_FREQUENCY): New macro.
14112         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
14113         for new BB/edges.
14114         * flow.c (find_sub_basic_blocks): Likewise.
14115         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
14116         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
14117
14118         * predict.c (DEF_PREDICTOR): New argument FLAGS.
14119         (HITRATE): New macro.
14120         (PRED_FLAG_FIRST_MATCH): New constant.
14121         (predictor_info): New field flgags.
14122         (combine_predictions_for_insn): Use DS theory to combine
14123         probabilities; set the edge probabilities when finished.
14124         (estimate_probability): Avoid duplicated matches
14125         of LOOP_BRANCH heuristics for nested loops; update comment.
14126         * predict.def: Add flags for each prediction, set probabilities
14127         according to B&L paper.
14128         * predict.h (DEF_PREDICTOR): New argument FLAGS.
14129
14130         * profile.c (compute_branch_probabilities):  Cleanup way the edge
14131         probabilities are computed and REG_BR_PROB notes are dropped; if
14132         values does not match, emit error.
14133         (init_branch_prob): Do error instead of warning when profile driven
14134         feedback is missing or corrupt.
14135
14136 2001-07-27  DJ Delorie  <dj@redhat.com>
14137
14138         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
14139         against a constant, try to adjust the compare to have the desired
14140         constant in it so that min/max optimizations happen more often.
14141
14142 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
14143
14144         * flow.c (last_loop_beg_note): New function.
14145         (redirect_edge_and_branch): Use it.
14146         (split_edge): Likewise.
14147
14148         * alias.c (loop_p): Avoid uninitialized memory access.
14149
14150         * flow.c (try_forward_edges): Avoid accessing freed memory.
14151
14152         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
14153         variable access.
14154
14155 2001-07-26  Andrew Haley  <aph@redhat.com>
14156         Joern Rennecke <amylaar@redhat.com>
14157
14158         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
14159         (SUBTARGET_CPP_ENDIAN_SPEC): New.
14160         (SUBTARGET_CPP_SPEC): New.
14161         (CPP_SPEC): Remove.
14162         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
14163         (SUBTARGET_CPP_PTR_SPEC): New.
14164         (CPP_DEFAULT_CPU_SPEC): New.
14165         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
14166         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
14167         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
14168         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
14169         (SUBTARGET_CPP_SPEC): Define as an empty string.
14170
14171 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14172
14173         * doc/install.texi (Configuration): Properly link the host
14174         specific instructions also when generating HTML.
14175
14176 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
14177
14178         * flow.c (redirect_edge_and_branch_force): Test
14179         target->global_live_at_start.
14180
14181 2001-07-26  Richard Henderson  <rth@redhat.com>
14182
14183         * simplify-rtx.c (avoid_constant_pool_reference): Export.
14184         * rtl.h (avoid_constant_pool_reference): Declare it.
14185         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
14186         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
14187
14188 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
14189
14190         * rtl.h (cleanup_barriers): Declare.
14191         * jump.c (cleanup_barriers): New function.
14192         * toplev.c (rest_of_compilation): Call cleanup_barriers
14193         before loop optimizer and after bb_reorder.
14194
14195         * flow.c (back_edge_of_syntactic_loop_p): New.
14196         (split_edge): Use it.
14197
14198 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14199
14200         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
14201
14202 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
14203
14204         * cse.c (cse_process_notes): Replace any registers if the address
14205         remains valid.
14206
14207 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
14208
14209         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
14210         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
14211         (propagate_block): Update prototype.
14212         * flow.c (update_life_info): Simplify the CFG and
14213         recalculate the global regs which are alive when
14214         removing dead code during a global update.
14215         (propagate_block): Return non-zero if an INSN is
14216         deleted.
14217
14218 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14219
14220         * Makefile.in (LIBICONV): Define.
14221
14222 2001-07-26  Catherine Moore  <clm@redhat.com>
14223
14224         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
14225         of conditional to avoid tree checking errors.
14226
14227 2001-07-26  Kazu Hirata  <kazu@hxi.com>
14228
14229         * regmove.c (regmove_optimize): Don't replace a reg with
14230         another reg of a different mode.
14231
14232 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
14233
14234         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
14235         limit length of dependency flush list.
14236         * params.h (MAX_PENDING_LIST_LENGTH): Define.
14237         * sched-int.h  (struct deps): Add pending_flush_length field.
14238         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
14239         has 1 element in it.
14240         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
14241         (sched_analyze): After a jump, if the pending memory flush list is too
14242         large, flush the pending lists.
14243         (init_deps): Initialize pending_flush_length to 0.
14244         * doc/invoke.texi (max_pending_list_length): Document parameter.
14245
14246 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
14247
14248         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
14249         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
14250         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
14251
14252 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14253
14254         * cpphash.h (struct_lexer_state): Delete was_skipping.
14255         Move skipping here from struct cpp_reader.
14256         * cpplex.c (parse_identifier): Update.
14257         (_cpp_lex_token): Don't skip tokens in a directive.
14258         * cpplib.c (struct if_stack): Update.
14259         (start_directive, end_directive): Don't change skipping state.
14260         (_cpp_handle_directive): Update.
14261         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
14262         (do_else, do_endif): Update; only check for excess tokens if not
14263         in a skipped conditional block.
14264         (push_conditional): Update for new struct if_stack.
14265
14266 2001-07-26  Graham Stott  <grahams@redhat.com>
14267
14268         * function.c (locate_and_pad_parm): Also pad initial offset
14269         so that the total argument size also includes the padding.
14270
14271 2001-07-26  Graham Stott <grahams@redhat.com>
14272
14273         * gensupport.c (alter_output_for_insn): Correct enable checking failure
14274         change XSTR to XTMPL.
14275
14276         (process_one_cond_exec): Likewise
14277
14278 2001-07-25  Richard Henderson  <rth@redhat.com>
14279
14280         * varasm.c (assemble_variable): Create DECL_RTL before setting
14281         TREE_ASM_WRITTEN.
14282
14283 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
14284
14285         * predict.c (estimate_probability): Avoid duplicated predictions.
14286
14287         * loop.c (find_and_verify_loops): Grok multiple barriers.
14288
14289 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14290
14291         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
14292
14293         * dbxout.c: Consistently use putc instead of fputc.
14294         (print_wide_int): New function; call instead of direct fprintf.
14295         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
14296         (dbxout_type_fields, dbxout_type_method_1): Likewise.
14297         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
14298         (print_int_cst_octal): Likewise.
14299         (print_octal): Show we wrote characters.
14300         (dbxout_type): Set have_used_extensions in more places.
14301
14302 2001-07-25  Catherine Moore  <clm@redhat.com>
14303
14304         * config/v850/v850.c (v850_va_arg):  Use addr
14305         instead of valist to build incr.
14306
14307 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
14308
14309         * flow.c (delete_dead_jumptables): New function.
14310         (life_analyzis): Call it.
14311         * bb-reorder.c (skip_insns_after_block): Handle contradictory
14312         sequences.
14313
14314 2001-07-25  Richard Henderson  <rth@redhat.com>
14315
14316         * except.c (reachable_handlers): Handle a region being removed
14317         out from under a RESX.
14318
14319 2001-07-25  Richard Henderson  <rth@redhat.com>
14320
14321         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
14322         swap GE/GT if it is an fp comparison.
14323
14324 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
14325
14326         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
14327         operands.
14328
14329 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
14330
14331         * ssa.c (rename_insn_1): Do not wrap an assignment to a
14332         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
14333         glitch.
14334
14335         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
14336         throw an exception.
14337         (visit_expression): When attempting to simplify an expression,
14338         retrieve any modes for arguments before they are simplified
14339         to constants.
14340
14341 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
14342             Janis Johnson  <janis@us.ibm.com>
14343
14344         * stmt.c (expand_goto): A nonlocal goto can be a call too.
14345         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
14346         pointer parameters to match documented usage of nonlocal_goto.
14347         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
14348         parameters to their correct order.
14349         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
14350         parameters to their correct order.
14351
14352 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
14353
14354         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
14355
14356 2001-07-25  Jan Hubicka  <jh@suse.cz>
14357             Richard Henderson  <rth@redhat.com>
14358
14359         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
14360         the sequence.
14361         (make_edges): New argument update_p; populate the edge cache if set.
14362         (find_basic_blocks): Update make_edges invocation.
14363
14364 2001-07-24  Joel Sherrill <joel@OARcorp.com>
14365
14366         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
14367
14368 2001-07-24  Joel Sherrill <joel@OARcorp.com>
14369
14370         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
14371         -Acpu and -Amachine.h.
14372         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
14373         Corrected header to say ELF not a.out.
14374         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
14375         when given -msoft-float.
14376
14377 2001-07-24  Joel Sherrill <joel@OARcorp.com>
14378
14379         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
14380         extra multilib parts like arm-elf.
14381         (i960-*-coff*, i960-*-rtems): Should not use collect2.
14382         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
14383         crtfini.o as extra multilib parts.
14384
14385 2001-07-24  Joel Sherrill <joel@OARcorp.com>
14386
14387         * configure.in: Add rtems as a supported thread model.
14388         * gthr-rtems.h: Add missing entry point __gthread_active_p.
14389         * configure: Rebuilt.
14390
14391 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
14392
14393         * stor-layout.c (get_mode_alignment): make it work when
14394         BITS_PER_UNIT is not a power of two.
14395         * builtins.c (get_pointer_alignment): Likewise.
14396
14397 2001-07-24  Richard Henderson  <rth@redhat.com>
14398
14399         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
14400         the retrieved constant into the expected mode.
14401
14402 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
14403
14404         * flow.c (try_simplify_condjump): Avoid duplicated edges.
14405         (verify_flow_info): Check for duplicated edges; clarify
14406         error reporting.
14407
14408         * flow.c (block_label): Update basic_block_for_insn.
14409         (commit_edge_insertions): Call compute_bb_for_insn.
14410
14411         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
14412         returns too.
14413
14414         * flow.c (redirect_edge_and_branch,
14415         try_optimize_cfg): Use redirect_edge_succ_nodup
14416         (redirect_edge_succ_nodup): New.
14417         * basic_block.h (redirect_edge_succ_nodup): Declare.
14418
14419         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
14420         after gcse.
14421
14422 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
14423
14424         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
14425         (try_crossjump_to_edge): Update commetns.
14426         (try_crossjump_bb): Likewise.
14427
14428 2001-07-24  Richard Henderson  <rth@redhat.com>
14429
14430         * combine.c (distribute_notes): Move set of need_refresh
14431         for noop_move_p down to catch all cases.
14432
14433 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
14434
14435         * recog.c (split_all_insns_noflow): New.
14436         * rtl.h (split_all_insns_noflow): Declare.
14437         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
14438         * m68hc11.c (m68hc11_reorg): Likewise.
14439         * sh.c (machine_dependent_reorg): Likewise.
14440         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
14441         call.
14442
14443 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
14444
14445         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
14446         (ashlsi3_n splitter): Likewise.
14447         (lshrsi3_n splitter): Likewise.
14448
14449         (GOTaddr2picreg): Make const SImode.
14450         (sym_label2reg): Likewise.
14451         (symGOT2reg): Likewise.
14452         (symGOTOFF2reg) Likewise.
14453
14454         (casesi_worker_0): Make unspec SImode.
14455
14456 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
14457
14458         * config/sh/sh.c (barrier_align): Check that an operand really is
14459         an insn before extracting its INSN_CODE.
14460
14461 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
14462
14463         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
14464         dangling else.
14465
14466         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
14467         for SImode to prevent overflow.
14468
14469 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14470
14471         * config/mips/irix6-libc-compat.c: New file.
14472         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
14473         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
14474         passing workaround.
14475
14476 2001-07-24  lars brinkhoff  <lars@nocrew.org>
14477
14478         * rtl.texi (REG_POINTER): Document.
14479         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
14480         QFmode, HFmode, TQFmode, QCmode, and HCmode.
14481
14482 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
14483
14484         * flow.c (delete_noop_moves): Do not confuse libcall regions.
14485
14486 2001-07-23  Richard Henderson  <rth@redhat.com>
14487
14488         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
14489
14490 2001-07-23  Kazu Hirata  <kazu@hxi.com>
14491
14492         * config/h8300/h8300-protos.h: Add a prototype for
14493         general_operand_dst_push.
14494         * config/h8300/h8300.c (general_operand_dst_push): New.
14495         * config/h8300/h8300.h (OK_FOR_T): New.
14496         (EXTRA_CONSTRAINT): Use it.
14497         * config/h8300/h8300.md (movqi_push): Remove and integrate into
14498         the existing movqi pattern.
14499         (movhi_push): Likewise.
14500
14501         * reload.c: Fix comment typos.
14502
14503 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
14504
14505         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
14506
14507 2001-07-23  H.J. Lu  (hjl@gnu.org)
14508
14509         * doc/extend.texi: Update __builtin_return_address and
14510         __builtin_frame_address.
14511
14512 2001-07-23  Richard Henderson  <rth@redhat.com>
14513
14514         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
14515         before CSE.
14516         * config/i386/i386.md: New setcc+movzbl peephole2.
14517
14518 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14519
14520         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
14521         * objc/objc-act.c: Include debug.h.
14522         (synth_module_prologue): Save and restore debug hooks too.
14523
14524 2001-07-23  lars brinkhoff  <lars@nocrew.org>
14525
14526         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
14527         and C4X_FLOAT_FORMAT.
14528         (BOOL_TYPE_SIZE): Document.
14529
14530 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
14531
14532         * unroll.c (loop_iterations): Fix miscalculation of initial
14533         giv offset.
14534
14535 2001-07-13  Andrew Haley  <aph@redhat.com>
14536
14537         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
14538         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
14539         * config/sh/sh.c (sh_can_redirect_branch): New function.
14540         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
14541         * reorg.c (steal_delay_list_from_target): Use
14542         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
14543
14544 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
14545
14546         * flow.c (try_simplify_condjump): Unlink insn chain on
14547         fallthru edge; use can_fallthru.
14548
14549 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
14550
14551         * basic-block.h (find_sub_basic_block): Declare.
14552         * flow.c (make_edges): New arguments MIN and MAX;
14553         (find_sub_basic_blocks): Revamp to use make_edges
14554         and purge_dead_edges.
14555         (find_basic_blocks): Update call of find_sub_basic_block.
14556
14557         * recog.c (split_all_insns): Always expect CFG to be consistent;
14558         call find_sub_basic_blocks in case something has changed.
14559         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
14560         has been built.
14561
14562         * basic-block.h (delete_noop_moves): Declare.
14563         * combine.c (combine_instructions): Call it.
14564         (recog_for_combine): Tolerate noop moves
14565         (distribute_notes): Force refresh when register dies at noop move.
14566         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
14567         too.
14568         (life_analysis): Update delete_noop_moves call.
14569         (set_noop_p): Move too ...
14570         * rtlanal.c (noop_move_p): ... here.
14571         * rtl.h (noop_move_p): Declare.
14572
14573         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
14574         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
14575         after combine.
14576         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
14577         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
14578
14579 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
14580
14581         * reload.c (push_reload): Fix typo in comment.
14582         (find_reloads_address): Ditto.
14583         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
14584
14585 2001-07-22  Richard Henderson  <rth@redhat.com>
14586
14587         * flow.c: Grammar check and clarify a lot of comments.
14588         (try_simplify_condjump): Rename variables to be clearer.
14589         (try_forward_edges): Skip complex and fallthru edges.
14590         Rearrange tests to avoid duplicate checks.
14591         (flow_find_cross_jump): Likewise.
14592         (outgoing_edges_match): Allow match if neither branch has
14593         probability data.  Loosen probability match to 5%.
14594         (try_crossjump_to_edge): Hoist repeated indirection into
14595         local variables.
14596         (try_crossjump_bb): Don't check complex edges.  Eliminate
14597         redundant crossjump tests.
14598         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
14599         checks before more expensive checks.
14600
14601 2001-07-22  Richard Henderson  <rth@redhat.com>
14602
14603         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
14604         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
14605         arguments.
14606
14607 2001-07-22  Richard Henderson  <rth@redhat.com>
14608
14609         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
14610         (const_sint32_operand): Likewise.
14611         * m68k.md (anon mulsi pattern): Use const_int_operand not
14612         const_sint32_operand.
14613         (umulsi3_highpart): Zero extend a constant input.
14614         (smulsi3_highpart): Don't bother checking SImode constant.
14615         (const_umulsi3_highpart): Give op3 DImode.
14616         (const_smulsi3_highpart): Likewise.
14617
14618 2001-07-22  Richard Henderson  <rth@redhat.com>
14619
14620         * flow.c (split_block): Make sure bb_note is included in the
14621         new block when splitting before a label.
14622
14623 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
14624
14625         * basic-block.h (redirect_edge_and_branch_force,
14626         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
14627         * flow.c (redirect_edge_and_branch_force,
14628         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
14629         (redirect_edge_and_branch_force): Fix copying of lifeness information.
14630         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
14631         * ifcvt.c (dead_or_predictable): Take BB as an new destination
14632         instead of label; update CFG after transformation.
14633         (find_if_case_1): Update call, use redirect_edge_and_branch_force
14634         for finishing the transformation; handle even case where ELSE
14635         does not follow THEN.
14636         (find_if_case_2): Update call of dead_or_predictable; simplify
14637         CFG update.
14638
14639         * emit-rtl.c (split_branch_probability): New global variable.
14640         (try_split): Take care to set split_branch_probability and
14641         create REG_BR_PROB note for new jump insns.
14642         * md.texi (define_split): Document new feature.
14643
14644         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
14645
14646 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
14647
14648         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
14649         (asm_out_file): Remove redundant declaration.
14650         (assemble_asm): Remove old #if 0 block.
14651         (assemble_variable): Remove end of function; debug output is
14652         now handled with global_decl.  Remove old #if 0 block.  Update.
14653         Remove saved_in_section and associated no-op code.
14654         * Makefile.in (varasm.o): Correct dependencies.
14655
14656 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
14657
14658         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
14659         the definition in defaults.h.
14660
14661 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
14662
14663         * jump.c: Update comments.
14664         (delete_barrier_successors, delete_unreferenced_labels,
14665         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
14666         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
14667         jump_optimize, jump_optimize_minimal): Kill.
14668         (rebuild_jump_labels): Move code from jump_optimize_1.
14669         (purge_line_number_notes): Likewise.
14670         (copy_loop_headers): Likewise.
14671         * reg-stack.c: Update comment.
14672         * stmt.c: Likewise.
14673         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
14674         JUMP_AFTER_REGSCAN): Kill.
14675         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
14676         purge_line_number_notes and copy_loop_headers.
14677
14678 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
14679            Richard Henderson  <rth@redhat.com>
14680
14681         * dbxout.c (dbxout_global_decl): New.
14682         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
14683         * sdbout.c (sdbout_finish): New.
14684         (sdbout_debug_hooks): Use it, add comments.
14685         (sdbout_global_decl): Defer initialised public vars to
14686         sdbout_finish.
14687         * varasm.c (assemble_variable): Don't output debug information
14688         for file-scope variables.
14689
14690 2001-07-22  Richard Henderson  <rth@redhat.com>
14691
14692         * config/alpha/alpha.c (get_trap_mode_suffix): New.
14693         (get_round_mode_suffix): New.
14694         (print_operand): Use them for [/].  Remove support for [&'`()+].
14695         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
14696         * config/alpha/alpha.md (attr round_suffix): New.
14697         (attr trap_suffix): New.
14698         (all insns): Set them appropriately.  Use %/ instead of the
14699         myriad punctuators.
14700
14701 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14702
14703         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
14704
14705 2001-07-22  Richard Henderson  <rth@redhat.com>
14706
14707         * regrename.c (regrename_optimize): Compute nregs for each
14708         potential target register.
14709
14710 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
14711            Richard Henderson  <rth@redhat.com>
14712
14713         * dbxout.c (dbxout_global_decl): New.
14714         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
14715         * sdbout.c (sdbout_finish): New.
14716         (sdbout_debug_hooks): Use it, add comments.
14717         (sdbout_global_decl): Defer initialised public vars to
14718         sdbout_finish.
14719         * varasm.c (assemble_variable): Don't output debug information
14720         for file-scope variables.
14721
14722 2001-07-21  H.J. Lu  (hjl@gnu.org)
14723
14724         * config/mips/mips.c (mips_cpu): Moved into ...
14725         (override_options): Here.
14726
14727         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
14728         mips_tune.
14729         (mips_cpu): Removed.
14730
14731 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14732
14733         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
14734         ("iorqi3"): Likewise.
14735         ("xorqi3"): Likewise.
14736         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
14737         ("*subhi3_sp): Likewise.
14738         ("*subhi3"): Likewise.
14739         ("extendhisi2"): Accept D, X and Y as source operand to avoid
14740         reload problems.
14741
14742 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
14743
14744         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
14745         * config/freebsd.h: Likewise.
14746         * config/linux.h: Likewise.
14747         * config/openbsd.h: Likewise.
14748         * config/alpha/linux-elf.h: Likewise.
14749         * config/arm/linux-elf.h: Likewise.
14750         * config/d30v/d30v.h: Likewise.
14751         * config/fr30/fr30.h: Likewise.
14752         * config/ia64/aix.h: Likewise.
14753         * config/ia64/ia64.h: Likewise.
14754         * config/mips/linux.h: Likewise.
14755         * config/pj/pj.h: Likewise.
14756         * config/rs6000/linux.h: Likewise.
14757         * config/sparc/linux.h: Likewise.
14758         * config/sparc/linux64.h: Likewise.
14759
14760 2001-07-20  Bruce Korb  <bkorb@gnu.org>
14761
14762         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
14763         because getc() and char* may disagree on signedness.
14764
14765 2001-07-20  Richard Henderson  <rth@redhat.com>
14766
14767         * doc/rtl.texi (REG_DEAD): Update for current semantics.
14768
14769         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
14770         insns to delete in the presence of cc0 in a jump insn.
14771
14772 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
14773                                 Jan Hubicka  <jh@suse.cz>
14774
14775         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
14776         of doing the change by hand.
14777
14778 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
14779
14780         * rtlanal.c (set_noop_p): Return true for noop jumps.
14781
14782         * expr.c (emit_single_push_insn): Add call to push expander.
14783         * expr.h (optab_index): Add OTI_push
14784         (push_optab): New constant.
14785         * genopinit.c (optabs): Add push_optab.
14786         * optabs.c (init_optab): Init push optab.
14787         * md.texi (push??1): Document
14788
14789 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14790
14791         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
14792         expand to emit the pattern; put a REG_INC note for push/pop
14793         instructions.
14794         ("movdf", "movdf_internal"): Likewise.
14795         ("movsi", "movsi_internal"): Likewise.
14796         ("movsf", "movsf_internal"): Likewise.
14797         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
14798
14799 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14800
14801         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
14802         gen_highpart.
14803
14804 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
14805
14806         * params.def: Change default max inline insns to 100.
14807
14808 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
14809
14810         * combine.c (combine_simplify_rtx): Generate a new shift operation
14811         when simplifying the first operand of a (neg (ashift)) expression.
14812
14813 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
14814
14815         * regclass.c (N_REG_INTS): Use only 32 bits per element.
14816
14817 2001-07-20  Kelley Cook  <kelley.cook@home.com>
14818
14819         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
14820         information.   Move rest into ...
14821         (*-*-solaris): ... here.  Eliminate redundant information and
14822         reword necessary packages section.  Delete 4.x assembler bug info.
14823         (sparc-sun-*): Merge into ...
14824         (sparc-sun-sunos*): here.
14825
14826 2001-07-20  Catherine Moore  <clm@redhat.com>
14827
14828         * config/v850/v850.md (casesi): Generate LABEL_REF
14829         with Pmode.
14830
14831 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
14832
14833         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
14834         * i386.c (ix86_zero_extend_to_Pmode): Make global.
14835         * i386.md (strclrsi expander): Use it.
14836
14837 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
14838
14839         * integrate.c (copy_insn_list): handle
14840         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
14841         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
14842         identically as to CODE_LABEL.
14843
14844         * fold-const (fold): Convert A/B/C to A/(B*C) and
14845         A/(B/C) to (A/B)*C
14846
14847         * except.c (connect_post_landing_pads): Delete the RESX insns.
14848
14849 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
14850
14851         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
14852
14853         * config/mips/mips.md (nmadd/nmsub): Use macro.
14854
14855 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
14856
14857         * cppinit.c (remove_dup_dir): Make static.
14858         (remove_dup_dirs): Make static. Only warn about preempting a
14859         system directory with a non-system directory.
14860
14861 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
14862
14863         * ifcvt.c (noce_try_store_flag_constants): Correct order
14864         of parameters to trunc_int_for_mode.
14865
14866 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
14867
14868         * reorg.c (fill_simple_delay_slots): If an instruction might throw
14869         an exception that will be caught within this function, do not fill
14870         its delay slot with any subsequent instruction.
14871
14872 2001-07-19  Steve Ellcey <sje@cup.hp.com>
14873
14874         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
14875         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
14876         pointer extension instruction.
14877         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
14878         * simplify-rtx.c (simplify_unary_operation) Likewise.
14879         * explow.c (convert_memory_address) Check value of
14880         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
14881         less than zero.
14882         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
14883         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
14884         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
14885         Add Multilib Support.
14886         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
14887         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
14888         Add Multilib Support.
14889         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
14890         support.
14891         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
14892         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
14893         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
14894
14895 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
14896
14897         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
14898         old and new operands in `<', `3' and `b'.
14899
14900 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14901
14902         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
14903         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
14904         (toplev.o): Don't depend on xcoffout.h.
14905         * c-decl.c: Include debug.h
14906         (duplicate_decls): Use debug hook.
14907         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
14908         (dbx_debug_hooks, xcoff_debug_hooks): Update.
14909         (dbxout_types): Remove.
14910         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
14911         * debug.c (do_nothing_debug_hooks): Update.
14912         (debug_true_tree, debug_nothing_rtx): New.
14913         * debug.h (struct rtx_def): New.
14914         (struct gcc_debug_hooks): New hooks ignore_block,
14915         outlining_inline_function and label.
14916         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
14917         dwarf2out_frame_finish): New.
14918         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
14919         Make static, update prototype.
14920         (dwarf2_debug_hooks): Update.
14921         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
14922         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
14923         * dwarfout.c (dwarf_debug_hooks): Update.
14924         * emit-rtl.c: Include debug.h.
14925         (remove_unnecessary_notes): Use debug hook.
14926         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
14927         (final_scan_insn): Use debug hook.
14928         * integrate.c (output_inline_function): Use debug hook.
14929         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
14930         (sdb_debug_hooks): Update.
14931         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
14932         * toplev.c: Don't include xcoffout.h.
14933         (note_outlining_of_inline_function, debug_ignore_block): Remove.
14934         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
14935         Remove.
14936         * tree.h (dwarf2out_do_frame): Remove.
14937
14938 2001-07-19  Catherine Moore  <clm@cygnus.com>
14939
14940         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
14941
14942 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
14943
14944         * reload1.c (eliminate_regs_in_insn): When updating a set
14945         to the frame pointer to the hardware frame pointer, perform
14946         the update always not just when REPLACE is set.
14947
14948         * reload1.c (choose_reload_regs): Don't inherit a reload
14949         that crosses multiple registers if registers past the first
14950         don't fit in the desired class.
14951
14952         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
14953         when negating constants.
14954
14955 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
14956
14957         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
14958         * doc/tree.texi: Ditto.
14959
14960 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
14961             Jakub Jelinek  <jakub@redhat.com>
14962
14963         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
14964         (extract_cie_info): Handle "eh" augmentation properly,
14965         remember eh_ptr.
14966         (struct frame_state, __frame_state_for): New.
14967
14968 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14969
14970         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
14971         HANDLE_SYSV_PRAGMA): Define.
14972         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
14973         previous args.
14974         (copy_object): Caller changed.
14975
14976 2001-07-19  Andreas Schwab  <schwab@suse.de>
14977
14978         * configure.in (assembler dwarf2 debug_line support): Define nop
14979         insn for m68k.
14980         * configure: Regenerated.
14981
14982 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14983
14984         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
14985         dwarfout.h.
14986         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
14987         to conditionally compiled block.
14988         (dbx_debug_hooks, xcoff_debug_hooks): Update.
14989         * dbxout.h (dbxout_function): Remove.
14990         * debug.c (do_nothing_debug_hooks): Update.
14991         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
14992         global_decl, deferred_inline_function.
14993         * dwarf2out.c (dwarf2_debug_hooks): Update.
14994         (dwarf2out_global_decl): New.
14995         * dwarfout.c: Don't include dwarfout.h.
14996         (dwarfout_global_decl, dwarfout_function_decl,
14997         dwarfout_deferred_inline_function): New.
14998         (dwarf_debug_hooks): Update.
14999         * dwarfout.h: Remove.
15000         * final.c: Don't include dwarfout.h.
15001         * sdbout.c (sdbout_global_decl): New.
15002         (sdbout_debug_hooks): Update.
15003         * toplev.c: Don't include dwarfout.h.
15004         (check_global_declarations, rest_of_compilation): Use new debug hooks.
15005         (note_deferral_of_defined_inline_function): Remove.
15006         * toplev.h (note_deferral_of_defined_inline_function): Remove.
15007         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
15008         * ch/lex.c: Don't include dwarfout.h.
15009         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
15010         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
15011         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
15012         * cp/optimize.c: Include debug.h.
15013         (maybe_clone_body): Use debug hook.
15014         * cp/semantics.c: Include debug.h.
15015         (expand_body): Use debug hook.
15016         * po/POTFILES.in: Remove dwarfout.h.
15017
15018 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
15019
15020         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
15021         * c-parse.in (yyerror, _yylex): Similarly.
15022         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
15023         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
15024         Update comments.
15025         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
15026         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
15027
15028 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
15029
15030         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
15031         in-class declaration at -g1.  Fixes c++/2814.
15032
15033 2001-07-18  Richard Henderson  <rth@redhat.com>
15034
15035         * doc/md.texi (reload_in/out): Document restrictions in predicates
15036         and constraints for these patterns.  Document empty string matching
15037         ALL_REGS.
15038
15039 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15040
15041         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
15042
15043 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
15044
15045         * cse.c: Undo my previous patch.
15046
15047 2001-07-18  Tom Tromey  <tromey@redhat.com>
15048
15049         For PR java/2812:
15050         * configure: Rebuilt.
15051         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
15052         instead.
15053         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
15054
15055 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
15056                                 Jan Hubicka  <jh@suse.cz>
15057
15058         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
15059         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
15060         * jump.c (mark_jump_label): Do not forward branches.
15061
15062 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
15063
15064         * cse.c (delete_trivially_dead_insns): Delete the libcall block
15065         when return value is unused.
15066
15067 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
15068
15069         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
15070
15071 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
15072
15073         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
15074         on error.  We can't blindly return the result of
15075         pthread_mutex_trylock because it returns a positive number on
15076         error, while we must return -1 on error.
15077         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
15078         fixes.
15079         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
15080
15081 2001-07-18  Andreas Jaeger  <aj@suse.de>
15082
15083         * integrate.c (output_inline_function): Correct type of debug_hooks.
15084
15085 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
15086
15087         * combine.c (combine_simplify_rtx): DIV can be treated
15088         associatively for floats if unsafe math optimisations are enabled.
15089
15090 2001-07-17  Richard Henderson  <rth@redhat.com>
15091
15092         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
15093
15094 2001-07-17  Richard Henderson  <rth@redhat.com>
15095
15096         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
15097         don't force the function address into a register.
15098         (expand_call, emit_library_call_value_1): Update callers.
15099         * builtins.c (expand_builtin_apply): Likewise.
15100         * expr.h (prepare_call_address): Update decl.
15101
15102 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
15103
15104         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
15105         config directory.
15106         * config/i386/chorus.h: Move up.
15107         * config/sparc/chorus.h: Likewise.
15108         * config/rs6000/chorus.h: Likewise.
15109         * config/chorus.h: Moved here.
15110
15111 2001-07-17  Andreas Schwab  <schwab@suse.de>
15112
15113         * configure.in  (assembler eh_frame optimization): Handle big
15114         endian.
15115         * configure: Regenerated.
15116
15117 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
15118
15119         * expr.c (epxand_expr): Convert divisions into multiplications by
15120         reciprocals if -ffast-math.
15121
15122 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
15123
15124         * dbxout.c (dbxout_really_begin_function): Rename to
15125         dbxout_begin_function.
15126         (dbx_debug_hooks, xcoff_debug_hooks): Update.
15127         (dbxout_begin_function): Remove.
15128         (dbxout_function): Update.
15129         (dbxout_source_line): Update prototype.
15130         * dbxout.h (dbxout_begin_function): Remove.
15131         * debug.c (do_nothing_debug_hooks): Update.
15132         (debug_nothing_tree): Update.
15133         (debug_nothing_charstar_rtx): Remove.
15134         * debug.h (union tree_node): Declare.
15135         (struct rtx_def): Remove.
15136         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
15137         begin_function.  Change source_line prototype.
15138         (debug_nothing_tree): New.
15139         (debug_nothing_charstar_rtx): Delete.
15140         (dwarf2out_begin_prologue): Moved from ...
15141         * tree.h: ... here.
15142         * dwarf2out.c (dwarf2_debug_hooks): Update.
15143         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
15144         debug info, call dwarf2out_source_line.
15145         (dwarf2out_souce_line): Update prototype.
15146         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
15147         Change prototype, make static.
15148         (dwarfout_source_line): Update prototype.
15149         (dwarf_debug_hooks): Update.
15150         * dwarfout.h (dwarfout_begin_function): Remove.
15151         * final.c (final_start_function, final_scan_insn): Use appropriate
15152         debug hooks, update to use notice_source_line.
15153         (output_source_line): Rename notice_source_line.  Don't call the
15154         source_line debug hook.
15155         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
15156         make static, update prototype.
15157         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
15158         prototype.
15159         (sdbout_end_prologue): New.
15160         (sdbout_source_line): Update prototype.
15161         (sdbout_debug_hooks): Update.
15162         (sdbout_symbol): Remove unused var.
15163         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
15164         Delete.
15165         * varasm.c: Include debug.h.
15166         (assemble_start_function): Use begin_function debug_hook.
15167         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
15168         update with prototype.
15169         (xcoffout_source_line): Update prototype.
15170         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
15171         update prototype.
15172         (xcoffout_source_line): Update prototype.
15173
15174 2001-07-17  Richard Henderson  <rth@redhat.com>
15175
15176         * c-typeck.c (build_binary_op): Do not shorten unsigned
15177         right shift after sign extension.
15178
15179 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
15180
15181         * combine.c (combine_simplify_rtx): Attempt to simplify
15182         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
15183
15184         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
15185         (simplify_binary_operation, simplify_unary_operation,
15186          simplify_relational_operation): Use it.
15187
15188         * combine.c (combine_simplify_rtx): Don't do associative law
15189         on divisions; allow associative law on floats.
15190
15191 2001-07-17  H.J. Lu <hjl@gnu.org>
15192             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15193
15194         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
15195         ASM_OUTPUT_WEAK_ALIAS are defined.
15196         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
15197         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
15198         Moved ...
15199         * config/mips/iris5.h: ... here.
15200         (HANDLE_SYSV_PRAGMA): Defined as 1.
15201         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
15202         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
15203         symbol.
15204
15205 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
15206
15207         * c-parse.in (all_prefix_attributes): New variable.
15208         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
15209         (maybe_resetattrs): New production.
15210         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
15211         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
15212         notype_initdcl, nested_function, notype_nested_function,
15213         component_decl, components, components_notype,
15214         component_declarator, component_notype_declarator,
15215         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
15216         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
15217         after a comma being applied to more than one declarator.
15218         * doc/extend.texi (Attribute Syntax): Update.  Remove
15219         documentation of bugs that are no longer present.
15220
15221 2001-07-13  Eric Christopher  <echristo@redhat.com>
15222
15223         * config/mips/mips.h: Change TUNE_MIPS* options to use
15224         mips_tune.
15225         (EXTRA_SPECS): Add cc1_cpu_spec.
15226         * config/mips/mips.md (muldf3): Fix typo.
15227
15228 2001-07-16  Richard Henderson  <rth@redhat.com>
15229
15230         * config/m68k/m68k.c: Include expr.h and reload.h.
15231         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
15232         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
15233
15234 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
15235             Richard Henderson  <rth@redhat.com>
15236
15237         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
15238         (insn_live_p): Fix fall off end of function.
15239         (dead_libcall_p): Remove COUNTS argument; update callers.
15240         (delete_trivially_dead_insns): Remove unused variables.
15241
15242 2001-07-17  Andreas Jaeger  <aj@suse.de>
15243
15244         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
15245         x86-64 pic support.
15246
15247         * lcm.c (optimize_mode_switching): Avoid warning for unused
15248         variable if !NORMAL_MODE.
15249
15250         * flow.c (try_crossjump_to_edge): Remove unused variable.
15251
15252 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15253
15254         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
15255         atexit declaration in stdlib.h.
15256
15257 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
15258
15259         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
15260
15261 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
15262
15263         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
15264         * except.c (finish_eh_generation): Update call of cleanup_cfg;
15265         do rebuild_jump_labels instead of jump_optimize
15266         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
15267         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
15268         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
15269
15270         * flow.c: Include timevar.h
15271         (find_basic_block): Push/pop timevar;
15272         (cleanup_cfg): Likewise.
15273         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
15274         * Makefile: Add dependencies on timevar.h
15275
15276         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
15277         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
15278
15279         * rtl.h (delete_trivially_dead_insns): Add new parameter.
15280         * toplev.c (rest_of_compilation): Update calls.
15281         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
15282         (delete_trivially_dead_insns): ... here; accept new argument
15283         preserve_basic_blocks; preserve basic blocks if set.
15284
15285         * reg-stack.c (stack_regs_mentioned): Return 0 if
15286         stack_regs_mentioned_data is not initialized.
15287         (reg_to_stack): Make stack_regs_mentioned survive after the
15288         reg-stack is completted; do not call cleanup_cfg.
15289         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
15290         make cleanup_cfg after bb-reorder to output to debug file.
15291
15292 2001-07-16  Richard Henderson  <rth@redhat.com>
15293
15294         * regclass.c (init_reg_sets): Use only 32 bits per initializer
15295         from int_reg_class_contents.
15296
15297 2001-07-16  Richard Henderson  <rth@redhat.com>
15298
15299         * hard-reg-set.h (regs_invalidated_by_call): Declare.
15300         * regclass.c (regs_invalidated_by_call): Move from cse.c.
15301         (init_reg_sets_1): Move initialization from cse_main.
15302         * cse.c (regs_invalidated_by_call): Move to regclass.c.
15303         (cse_main): Move its initialization also.
15304         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
15305         * flow.c (propagate_one_insn): Likewise.
15306         * gcse.c (compute_hash_table): Likewise.
15307         (compute_kill_rd, compute_store_table): Likewise.
15308         * sched-deps.c (sched_analyze_1): Likewise.
15309
15310 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
15311
15312         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
15313         gen_rtx_SET.
15314
15315 2001-07-16  Steve Ellcey <sje@cup.hp.com>
15316
15317         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
15318         in if statement so we don't access undefined memory.
15319
15320 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
15321
15322         * gcse.c: Update comment at top.
15323         Update comment on mem handling.
15324         mem_last_set, mem_first_set, mem_set_in_block: gone.
15325         Declaration of reg_set_info: gone.
15326         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
15327         pointless with load_killed_in_block_p (they are *more*
15328         conservative then it, not less, and less accurate).
15329         (oprs_not_set_p): Ditto.
15330         (alloc_gcse_mem): Don't allocate mem_set_in_block
15331         (free_gcse_mem): Don't free it, either.
15332         (record_last_mem_set_info): Update comment in front, remove
15333         mem_*set_* stuff. Note the reason we don't handle stores directly
15334         here.
15335         (compute_hash_table): Update comments to reflect reality. Remove
15336         mem_*set_* references.
15337         (reset_opr_set_tables): Remove mem_*set_* references.
15338         (mark_call): Ditto.
15339         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
15340         (mark_clobber): Ditto (on both parts, we double set here too).
15341         (expr_killed_p): Remove mem_set_in_block test.
15342         (compute_transp): Remove mem_set_in_block test.
15343
15344         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
15345         of edge, and removal of phi alternative to dump file.
15346         (ssa_ccp_substitute_constants): Add note about register now being
15347         constant, and which uses were replaced in what insns to dump file.
15348
15349 2001-07-16  Andreas Jaeger  <aj@suse.de>
15350
15351         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
15352         variables of type HOST_WIDEST_INT.
15353
15354         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
15355         (__bb_exit_func): Correct type of count_max to avoid overflow.
15356         (num_digits): Handle long long argument.
15357
15358         * combine.c (gen_lowpart_for_combine): Remove unused variable.
15359
15360 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
15361
15362         * output.h (sdb_begin_function_line): Restore as an extern
15363         variable.
15364         * sdbout.c (sdb_begin_function_line): Make extern.
15365
15366 2001-07-15  Richard Henderson  <rth@redhat.com>
15367
15368         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
15369         * genrecog.c (maybe_both_true_mode): New.
15370         (maybe_both_true_2): Use it.
15371         (write_switch): Don't put Pmode in a switch.
15372         * rtl.c (mode arrays): Don't explicitly size them.
15373
15374 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
15375
15376         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
15377         handling; move unconditional splitting before mode switching.
15378
15379         * i386.md (type): Add fistp type.
15380         (i387, length_attr, scheduling definitions): Handle this type.
15381         (fix_trunc?f?i2): Revamp to use mode switching.
15382         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
15383         * i386.h (fp_cw_mode): New enum
15384         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
15385         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
15386
15387 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15388
15389         * Makefile.in (integrate.o): Add debug.h.
15390         * integrate.c (debug.h): Add.
15391         (output_inline_function): Save, reset, and restore debug_hooks.
15392
15393 2001-07-15  Richard Henderson  <rth@redhat.com>
15394
15395         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
15396         instead of COMPARE for the EQUIV expression.
15397
15398 2001-07-15  Richard Henderson  <rth@redhat.com>
15399
15400         * flow.c (redirect_edge_and_branch_force): Initialize
15401         global_live_at_start and global_live_at_end.
15402         (allocate_bb_life_data): Export.
15403         * basic-block.h (allocate_bb_life_data): Declare.
15404         * toplev.c (rest_of_compilation): Call it.
15405
15406 2001-07-15  Richard Henderson  <rth@redhat.com>
15407
15408         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
15409         (alpha_tablejump_best_label): New.
15410         * config/alpha/alpha-protos.h: Declare them.
15411         * config/alpha/alpha.md: Use braced strings for code blocks.
15412         (tablejump_osf): Break out add with r29.
15413         (tablejump_osf_internal): Remove.
15414         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
15415         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
15416
15417 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
15418
15419         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
15420         of the movable.
15421
15422         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
15423
15424         * i386-protos.h (ix86_split_fp_branch): Update prototype.
15425         (ix86_fp_jump_nontrivial_p): New.
15426         * i386.md (fp_jcc_?): Update call of split_fp_branch;
15427         use ix86_fp_jump_nontrivial_p.
15428         * i386.c (ix86_fp_jump_nontrivial_p): New.
15429         (ix86_split_fp_branch): Accept code instead of rtx.
15430         (ix86_expand_compare): Expand comparison early in case
15431         doing so is resonably cheap.
15432
15433 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
15434
15435         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
15436         not 'machine'.
15437         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
15438         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
15439
15440 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
15441
15442         * dbxout.c (dbxout_source_line): Make static, update prototype.
15443         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
15444         (dbxout_init, dbxout_finish, dbxout_source_line,
15445         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
15446         * dbxout.h (dbxout_source_line): Delete.
15447         * debug.c (debug_nothing_file, debug_nothing_file_int,
15448         debug_nothing_file_charstar_rtx): New.
15449         (do_nothing_debug_hooks): Update.
15450         (debug_nothing_void, debug_nothing_charstar_rtx,
15451         dwarf2out_end_epilogue): New.
15452         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
15453         * debug.h (struct rtx_def): Declare.
15454         (gcc_debug_hooks): New hooks source_line, end_epilogue
15455         and end_function.
15456         (debug_nothing_void, debug_nothing_charstar_rtx,
15457         dwarf2out_end_epilogue): New.
15458         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
15459         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
15460         (dwarf2_debug_hooks): Update.
15461         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
15462         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
15463         * dwarf2out.h (dwarf2out_source_line): Remove.
15464         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
15465         Make static, update prototype.
15466         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
15467         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
15468         (dwarf_debug_hooks): Update.
15469         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
15470         dwarfout_end_function): Remove.
15471         * final.c (profile_function): Use debug hooks for ending functions
15472         and epilogues.
15473         (output_source_line, final_end_function): Update prototype,
15474         use debug hooks.
15475         (final_start_function, final_scan_insn): Update.
15476         * output.h (sdb_begin_function_line): Remove.
15477         (final_end_function): Update prototype.
15478         * sdbout.c (sdb_begin_function_line): Make static.
15479         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
15480         (sdbout_source_line): New.
15481         (sdbout_end_epilogue, sdbout_end_function): Make static, update
15482         prototypes.
15483         (sdb_debug_hooks): Update.
15484         (sdbout_init, sdbout_source_line,
15485         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
15486         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
15487         * toplev.c (compile_file, rest_of_compilation): Update.
15488         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
15489         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
15490         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
15491         Update for prototype changes.
15492         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
15493         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
15494
15495 2001-07-15  Richard Henderson  <rth@redhat.com>
15496
15497         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
15498         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
15499         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
15500         * config/alpha/alpha.c: Likewise.
15501         * config/alpha/alpha.md: Likewise.
15502         * config/alpha/alpha32.h: Likewise.
15503         * config/alpha/vms.h: Likewise.
15504         (OPEN_VMS): Remove.
15505
15506 2001-07-14  Richard Henderson  <rth@redhat.com>
15507
15508         * config/alpha/alpha.md: Use define_constants for unspec values.
15509         Substitute throughout.
15510
15511 2001-07-14  Tim Josling  <tej@melbpc.org.au>
15512
15513         * tree.def (EXPON_EXPR) remove. Never supported anyway.
15514
15515 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15516
15517         * pa.md: Remove unused constraints from define_split's.
15518
15519 2001-04-14  Richard Henderson  <rth@redhat.com>
15520
15521         * ifcvt.c (find_cond_trap): Test for exit block.
15522
15523 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
15524
15525         Re-install recently reverted patch.
15526         * emit-rtl.c (try_split): Update mark_jump_label call.
15527         * flow.c (find_sub_basic_blocks): Likewise.
15528         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
15529         jump_back_p): Kill.
15530         (mark_all_labels): Kill second parameter.
15531         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
15532         (rebuild_jump_labels, jump_optimize_minimal): Update call
15533         of jump_optimize_1.
15534         (jump_optimize_1): Kill crossjumping code.
15535         (mark_jump_label): Kill cross_jump parameter.
15536         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
15537         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
15538         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
15539          splitting.
15540         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
15541         DFI_bpro.
15542         (dump_file_info): Likewise.
15543         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
15544         reorganize passes to do reg-stack first, bb-reorder second.
15545         * invoke.texi (-d letters doc): Remove the jump2 pass.
15546
15547 2001-07-14  Richard Henderson  <rth@redhat.com>
15548
15549         * ifcvt.c (find_cond_trap): New.
15550         (find_if_header): Call it.
15551         (merge_if_block): Relax existing jump sanity check.
15552         * jump.c (jump_optimize_1): Remove conditional trap handling.
15553
15554 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
15555
15556         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
15557         millicode.
15558         (insn_refs_are_delayed): Correct comment.
15559         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
15560         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
15561         instead of r31.  Make associated insn !TARGET_64BIT, and
15562         provide an additional 64-bit insn that clobbers r2.
15563         (divsi3): Likewise.
15564         (udivsi3): Likewise.
15565         (modsi3): Likewise.
15566         (umodsi3): Likewise.
15567
15568 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
15569
15570         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
15571
15572         * flow.c (redirect_edge_and_branch_force, split_edge,
15573         try_crossjump_to_edge): Use set_block_for_new_insns.
15574         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
15575
15576 2001-07-13  H.J. Lu  (hjl@gnu.org)
15577
15578         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
15579         the correct patch.
15580
15581 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
15582
15583         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
15584
15585 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
15586
15587         * c-common.c (decl_attributes): Take a pointer to the node to
15588         which attributes are to be attached, and a flags argument.
15589         * c-common.h (enum attribute_flags): New.
15590         (decl_attributes): Update prototype.
15591         * c-decl.c (start_decl, push_parm_decl, finish_struct,
15592         finish_enum, start_function): Update calls to decl_attributes.
15593         * c-parse.in (component_declarator, component_notype_declarator,
15594         label): Update calls to decl_attributes.
15595
15596 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
15597
15598         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
15599         * config/avr/avr.c (legitimate_address_p): Return value changed
15600         from letter to register classes. For better debugging.
15601
15602 2001-07-13  Kazu Hirata  <kazu@hxi.com>
15603
15604         * jump.c (reversed_comparison_code_parts): Fix comment typos.
15605
15606 2001-07-13  H.J. Lu  (hjl@gnu.org)
15607
15608         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
15609
15610 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
15611
15612         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
15613         correctly for shared configurations.
15614         * config/t-libgcc-pic:  New.
15615         * config/{i386,m68k,sparc}/t-openbsd:  New.
15616         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
15617         Support -shared.  Support debugging libraries with -g.
15618         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
15619         frame information does not emit pointer diffs.
15620         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
15621         emit pointer diffs.
15622
15623 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
15624
15625         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
15626
15627 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
15628
15629         * combine.c (try_combine): Ensure const_int pow2 is positive.
15630
15631 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
15632
15633         * config.gcc: Add configuration for s/390.
15634         * config/s390/s390.c: New. Subroutines for code generation.
15635         * config/s390/s390.h: New. Definitions for s/390.
15636         * config/s390/s390-protos.h: New. Prototypes.
15637         * config/s390/linux.h: New. Definitions for linux for s/390.
15638         * config/s390/linux64.h: New. Definitions for linux for zSeries.
15639         * config/s390/t-linux: New. Makefile fragment.
15640         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
15641         * config/s390/fixdfdi.h: New. Fix L_fix*di.
15642
15643 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
15644
15645         * emit-rtl.c (try_split): Update mark_jump_label call.
15646         * flow.c (find_sub_basic_blocks): Likewise.
15647         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
15648         jump_back_p): Kill.
15649         (mark_all_labels): Kill second parameter.
15650         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
15651         (rebuild_jump_labels, jump_optimize_minimal): Update call
15652         of jump_optimize_1.
15653         (jump_optimize_1): Kill crossjumping code.
15654         (mark_jump_label): Kill cross_jump parameter.
15655         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
15656         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
15657         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
15658          splitting.
15659         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
15660         DFI_bpro.
15661         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
15662         reorganize passes to do reg-stack first, bb-reorder second.
15663         * invoke.texi (-d letters doc): Remove the jump2 pass.
15664
15665 2001-07-12  Steve Ellcey <sje@cup.hp.com>
15666
15667         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
15668
15669 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
15670
15671         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
15672         basic blocks.
15673         (verify_flow_info): Make diagnostics prettier.
15674
15675 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
15676
15677         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
15678
15679         * flow.c (outgoing_edges_match): Return early if condition reversal
15680         failed.
15681
15682 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
15683
15684         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
15685         (mips_move_2words): When splitting a move into two instructions,
15686         prefix the second address operand with '%D'.
15687
15688 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
15689
15690         * Makefile.in (final.o): Depend on debug.h.
15691         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
15692         (dbx_debug_hooks): Add new hooks.
15693         (xcoff_debug_hooks): New.
15694         * debug.c (debug_nothing_file_int_int): New.
15695         (do_nothing_debug_hooks): Update.
15696         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
15697         (debug_nothing_file_int_int): New.
15698         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
15699         static, update prototype.
15700         (dwarf2_debug_hooks): Update.
15701         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
15702         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
15703         static, update prototype.
15704         (dwarf_debug_hooks): Update.
15705         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
15706         * final.c: Include debug.h.
15707         (final_scan_insn): Use debug hooks when beginning and ending blocks.
15708         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
15709         static, update prototype.
15710         (sdb_debug_hooks): Update.
15711         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
15712         * toplev.c: Distinguish between xcoff and dbx.
15713
15714         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
15715         Call all debug hooks, not just dwarf ones.
15716
15717 2001-07-11  Timothy Wall  <twall@redhat.com>
15718
15719         * config.gcc: Add configuration for AIX5/IA64.
15720         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
15721         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
15722         support prefix/suffix code.
15723         * config/ia64/t-aix: New.  Makefile fragment.
15724         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
15725
15726 2001-07-11  Kazu Hirata  <kazu@hxi.com>
15727
15728         * recog.c (validate_change): Fix a comment typo.
15729
15730 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
15731
15732         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
15733         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
15734         hooks directly.
15735         * dbxout.c (dbx_debug_hooks): Add new hooks.
15736         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
15737         make static.
15738         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
15739         make static.
15740         * dbxout.h (dbxout_start_new_source_file,
15741         dbxout_resume_previous_source_file): Delete.
15742         * debug.c (do_nothing_debug_hooks): Add new hooks.
15743         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
15744         (debug_nothing_int_charstar, debug_nothing_int): New.
15745         * debug.h (gcc_debug_hooks): New hooks define, undef,
15746         start_source_file and end_source_file.
15747         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
15748         (debug_nothing_int_charstar, debug_nothing_int): New.
15749         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
15750         the conditionally compiled section.
15751         (dwarf2out_start_source_file, dwarf2out_end_source_file,
15752         dwarf2out_define, dwarf2out_undef): Make static.
15753         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
15754         dwarf2out_define, dwarf2out_undef): Remove.
15755         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
15756         (dwarfout_start_source_file, dwarfout_end_source_file,
15757         dwarfout_define, dwarfout_undef): Make static.
15758         (dwarfout_start_source_file_check,
15759         dwarfout_end_source_file_check): New.
15760         (dwarfout_define, dwarfout_finish): Update.
15761         * dwarfout.h (dwarfout_start_new_source_file,
15762         dwarfout_resume_previous_source_file, dwarfout_define,
15763         dwarfout_undef): Remove.
15764         * sdbout.c (sdb_debug_hooks): Add new hooks.
15765         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
15766         make static.
15767         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
15768         make static, take an arg.
15769         * sdbout.h (sdbout_start_new_source_file,
15770         sdbout_resume_previous_source_file): Delete.
15771         * toplev.c (debug_start_source_file, debug_end_source_file,
15772         debug_define, debug_undef): Delete.
15773         * toplev.h (debug_start_source_file, debug_end_source_file,
15774         debug_define, debug_undef): Delete.
15775
15776         * java/jcf-parse.c: Include debug.h.
15777         (parse_class_file): Update to use debug hooks directly.
15778         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
15779
15780 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15781
15782         * alias.c (set_mem_alias_set): New function.
15783         * rtl.h (set_mem_alias_set): Declare it.
15784         * builtins.c (expand_builtin_return_addr): Call it instead of
15785         using MEM_ALIAS_SET accessor.
15786         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
15787         (get_memory_rtx, expand_builtin_va_arg): Likewise.
15788         (expand_builtin_va_copy):Likewise.
15789         * caller-save.c (setup_save_areas): Likewise.
15790         * calls.c (compute_argument_addresses): Likewise.
15791         * explow.c (set_mem_attributes): Likewise.
15792         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
15793         (expand_assignment, store_constructor_field, store_field): Likewise.
15794         (expand_expr_unaligned): Likewise.
15795         * function.c (assign_stack_temp_for_type): Likewise.
15796         (put_reg_into_stack, gen_mem_addressof): Likewise.
15797         * ifcvt.c (noce_try_cmove_arith): Likewise.
15798         * reload1.c (reload, alter_reg): Likewise.
15799         * config/alpha/alpha.c (get_aligned_mem): Likewise.
15800         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
15801         (alpha_expand_unaligned_store): Likewise
15802         (alpha_expand_unaligned_load_words): Likewise.
15803         (alpha_expand_unaligned_store_words): Likewise.
15804         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
15805         (alpha_expand_epilogue): Likewise.
15806         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15807         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
15808         * config/i386/i386.c (legitimize_pic_address): Likewise.
15809         * config/i960/i960.c (setup_incoming_varargs): Likewise.
15810         * config/ia64/ia64.c (spill_restore_mem): Likewise.
15811         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15812         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
15813         * config/mips/mips.c (mips_va_arg): Likewise.
15814         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
15815         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
15816         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
15817         (setup_incoming_varargs, rs6000_va_arg): Likewise.
15818         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
15819         (rs6000_emit_epilogue): Likewise.
15820         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
15821         * config/sparc/sparc.c (sparc_va_arg): Likewise.
15822         * config/v850/v850.c (v850_va_arg): Likewise.
15823
15824 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
15825
15826         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
15827         when fallthru edge is present.
15828         (mege_blocks): Handle case where creation of jump insn
15829         is required.
15830
15831         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
15832         CLEANUP_POST_REGSTACK): New constants.
15833         * except.c (finish_eh_generation): Update call of cleanup_cfg,
15834         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
15835         * output.h (cleanup_cfg): Update prototype.
15836         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
15837         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
15838         cleanup_cfg call; kill missleading comment.
15839         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
15840         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
15841         parameter; control optimizations performed using it.
15842         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
15843         try_crossjump_bb): New functions.
15844
15845 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15846
15847         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
15848         extern.
15849         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
15850         pa_output_function_prologue.
15851         * pa-protos.h (pa_output_function_prologue): New prototype.
15852
15853 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15854
15855         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
15856         and low to get correct sign extension in low+high test.
15857
15858 2001-07-11  Janis Johnson <janis@us.ibm.com>
15859
15860         * gcov.c (arcdata): Use gcov_type to fix branch percentage
15861         for large hit count.
15862
15863         * profile.c (branch_prob): Fix .bbg info for computed gotos
15864         and C++ EH code.
15865
15866 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
15867
15868         * stmt.c (parse_output_constraint): New function, split out
15869         from ...
15870         (expand_asm_operands): ... here.  Use parse_output_constraint.
15871         * tree.h (parse_output_constraint): Declare it.
15872
15873 2001-07-11  Richard Henderson  <rth@redhat.com>
15874
15875         * bitmap.c: Comment some functions; fiddle whitespace.
15876         (bitmap_free): Don't export.
15877         (bitmap_element_allocate): Use memset.
15878         * bitmap.h (bitmap_free): Don't declare.
15879
15880 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
15881
15882         * gcse.c, lcm.c, sched-deps.c:
15883         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
15884
15885         * flow.c (flow_loops_find): Free dom if we found no loops, since
15886         we aren't going to save it.
15887
15888         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
15889         done.
15890
15891 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
15892
15893         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
15894
15895 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15896
15897         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
15898         #ifndef DWARF2_DEBUGGING_INFO.
15899
15900 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
15901
15902         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
15903
15904 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
15905
15906         * config/mips/mips.c (gen_int_relational): Tell the caller not to
15907         reverse a branch if a NE comparison is implemented with GTU.
15908
15909 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
15910             H.J. Lu  <hjl@gnu.org>
15911
15912         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
15913         constant addresses.
15914         (call_internal2): Likewise.
15915         (call_value_internal1): Likewise.
15916         (call_value_internal2): Likewise.
15917         (call_value_multiple_internal1): Likewise.
15918         (call_value_multiple_internal2): Likewise.
15919
15920 2001-07-10  Kazu Hirata  <kazu@hxi.com>
15921
15922         * calls.c (emit_library_call_value_1): Fix a comment typo.
15923         * dwarf2out.c (mem_loc_descriptor): Likewise.
15924         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
15925
15926 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
15927
15928         * simplify-rtx.c (simplify_subreg): Fix typo in comment
15929
15930 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15931
15932         * recog.c (offsettable_address_p): Handle LO_SUM case.
15933         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
15934         instead of plus_constant.
15935
15936 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15937
15938         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
15939         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
15940
15941 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15942
15943         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
15944         adjust_address_nv instead of plus_constant.
15945
15946 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
15947
15948         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
15949         dwarf2out.o): Depend on debug.h, wrap long lines.
15950         * dbxout.c: Include debug.h.
15951         (dbx_debug_hooks): New.
15952         (dbxout_init): Make static, take just 2 args.
15953         (dbxout_finish): Make static.
15954         * dbxout.h (dbxout_init, dbxout_finish): Delete.
15955         * debug.c: New file.
15956         * debug.h: New file.
15957         * dwarf2out.c: Include debug.h.
15958         (dwarf2_debug_hooks): New.
15959         (dwarf2out_init): Make static.
15960         (dwarf2out_finish): Make static, take 2 args.
15961         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
15962         * dwarfout.c: Include debug.h.
15963         (dwarf_debug_hooks): New.
15964         (dwarfout_init): Make static.
15965         (dwarfout_finish): Make static, take 2 args.
15966         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
15967         * sdbout.c: Include debug.h.
15968         (sdb_debug_hooks): New.
15969         (sdbout_init): Make static, take 2 args.
15970         * sdbout.h (sdbout_init): Delete.
15971         * toplev.c: Include debug.h.
15972         (debug_hooks): New.
15973         (compile_file): Set deubg_hooks based on command line options.
15974         Use the hooks unconditionally rather than conditional compilation.
15975
15976 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
15977
15978         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
15979         first_insn_after_basic_block_note instead.
15980
15981         * df.c (df_bb_refs_unlink): #if 0 out for now.
15982
15983 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
15984
15985         * ssa.h: Add prototype for ssa_const_prop
15986         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
15987         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
15988         (ssa_fast_dce): Remove unused variable
15989
15990 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
15991
15992         * diagnostic.c (finish_diagnostic): Rename to
15993         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
15994         calls thourghout.
15995
15996 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
15997
15998         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
15999         .loc support.
16000
16001         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
16002         (dump_file): Only pad the demangled name with spaces if the
16003         mangled name was padded with spaces.
16004
16005 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
16006
16007         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
16008         edge detection.
16009
16010 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16011
16012         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
16013         extraction if no direct load if either EXPAND_CONST_ADDRESS or
16014         EXPAND_INITIALIZER.
16015
16016         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
16017         whether can put offset inside LO_SUM to check mode alignment, not size.
16018
16019 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
16020
16021         * doc/tm.texi (Misc): Fix thinko.
16022
16023 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
16024
16025         * regmove.c (replace_in_call_usage): Fix warnings.
16026         * sched-deps.c (add_dependence): Fix warnings.
16027         * simplify-rtx.c (simplify_subreg): Likewise.
16028         Return NULL_RTX instead of NULL.
16029
16030         * reg-stack.c (emit_swap_insn): Eliminate warnings.
16031         (subst_asm_stack_regs): Likewise.
16032
16033         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
16034         warnings.
16035
16036         * dwarf2out.c (output_call_frame_info): Declare i as int.
16037         (build_abbrev_table): Declare n_alloc as int.
16038         (dwarf2out_finish): Initialize die.
16039         * except.c: Declare sjlj_funcdef_number as unsigned.
16040         (connect_post_landing_pads): Declare j as unsigned.
16041         (convert_to_eh_region_ranges): Initialize call_site.
16042         (output_function_exception_table): Initialize tt_format_size.
16043         * expr.c (move_by_pieces_1): Initialize to1.
16044         (store_constructor): Initialize minelt and maxelt.
16045         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
16046         * function.c (instantiate_decls): Avoid signed/unsigned warning.
16047
16048         * c-decl.c (combine_parm_decls): Unused, remove.
16049         * c-tree.h: Remove prototype for combine_parm_decls.
16050
16051         * reload.c (push_reload): Fix warning.
16052         (regno_clobbered_p): Likewise.
16053         * reload1.c (replace_pseudos_in_call_usage): Likewise.
16054         (reload_combine): Likewise.
16055
16056         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
16057         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
16058         warnings.
16059         * bitmap.c (bitmap_operation): Change user.
16060         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
16061
16062 2001-07-10  Eric Christopher  <echristo@redhat.com>
16063
16064         * config/mips/mips.c (override_options): Fix typo.
16065
16066 2001-07-09  Stan Shebs  <shebs@apple.com>
16067
16068         * target.h (struct gcc_target): New fields init_builtins and
16069         expand_builtin.
16070         * target-def.h (TARGET_INIT_BUILTINS): New macro.
16071         (TARGET_EXPAND_BUILTIN): New macro.
16072         (TARGET_INITIALIZER): Add them.
16073         * builtins.c: Include target.h.
16074         (expand_builtin): Use targetm.expand_builtin.
16075         (default_init_builtins): New function.
16076         (default_expand_builtin): New function.
16077         * expr.h (default_init_builtins): Declare.
16078         (default_expand_builtin): Declare.
16079         * c-common.c (c_common_nodes_and_builtins): Use
16080         targetm.init_builtins.
16081         * defaults.h (MD_INIT_BUILTINS): Remove.
16082         * Makefile.in (builtins.o): Depend on target.h.
16083
16084         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
16085         (TARGET_EXPAND_BUILTIN): Define.
16086         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
16087         (MD_EXPAND_BUILTIN): Remove.
16088
16089         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
16090         (TARGET_EXPAND_BUILTIN): Define.
16091         (c4x_init_builtins): Make endlink arg a local.
16092         (c4x_print_operand): Fix typos in adjust_address usages.
16093         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
16094         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
16095         (MD_EXPAND_BUILTIN): Remove.
16096
16097         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
16098         (TARGET_EXPAND_BUILTIN): Define.
16099         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
16100         (ix86_init_builtins): Call new function only if TARGET_MMX.
16101         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
16102         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
16103         (MD_EXPAND_BUILTIN): Remove.
16104
16105         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
16106         (TARGET_EXPAND_BUILTIN): Define.
16107         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
16108         (MD_EXPAND_BUILTIN): Remove.
16109
16110         * doc/tm.texi: Document these changes.
16111
16112 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
16113
16114         * basic-block.h (tree_node): Forward declare if needed.
16115         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
16116         (BLOCK_HEAD_TREE): Define.
16117         (BLOCK_END_TREE): Define.
16118         (struct loops): Rename field 'tree' to 'tree_root'.
16119         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
16120         'end_tree'.
16121         (flow_loops_tree_build): Rename reference to field 'tree' to
16122         'tree_root'.
16123         (flow_loops_level_compute): Ditto.
16124         * predict.c (estimate_bb_frequencies): Ditto.
16125         * tree.h (struct tree_common): Add field 'aux'.
16126
16127 2001-07-09  Stan Shebs  <shebs@apple.com>
16128
16129         * config/darwin.c (darwin_encode_section_info): Don't mark any
16130         DECL_EXTERNAL node as defined.
16131
16132 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16133
16134         * pa.c (pa_init_machine_status, pa_mark_machine_status,
16135         pa_free_machine_status, hppa_init_pic_save): Delete.
16136         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
16137         (hppa_profile_hook): Use hppa_pic_save_rtx.
16138         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
16139         hppa_init_pic_save): Delete.
16140         (hppa_pic_save_rtx): Declare.
16141         * pa.md (call, call_value, sibcall, sibcall_value,
16142         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
16143
16144 2001-07-09  Kazu Hirata  <kazu@hxi.com>
16145
16146         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
16147         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
16148
16149 2001-07-09  Andreas Jaeger  <aj@suse.de>
16150
16151         * output.h: Add declaration of final_forward_branch_p.
16152
16153         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
16154
16155         * varray.c: Include errors.h for internal_error and trim_filename
16156         declarations.
16157
16158         * Makefile.in (varray.o): Add errors.h.
16159
16160 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
16161
16162         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
16163         * optabs.c (have_add2_insn): Check whether the add insn chosen
16164         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
16165         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
16166
16167 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
16168
16169         * Makefile.in (OBJS): Add ssa-ccp.o
16170         (ssa-ccp.o): Add dependencies.
16171         * toplev.c (DFI_ssa_ccp): New dump file enum.
16172         (dump_file): Add entry for dumping after SSA CCP.
16173         (flag_ssa_ccp): New flag variable.
16174         (f_options): Add -fssa-ccp.
16175         (rest_of_compilation): Run SSA CCP if requested.
16176         * timevar.def (TV_SSA_CCP): New timevar.
16177         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
16178         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
16179         Fix minor typo in SSA DCE documentation.
16180         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
16181         Add documentation for new dump option.  Renumber dump files
16182         appropriately.
16183
16184 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
16185
16186         * emit-rtl.c (gen_highpart_mode): New.
16187         * rtl.h (gen_highpart_mode): Declare.
16188         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
16189         operand can be VOIDmode constant.
16190
16191 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
16192
16193         * flow.c (redirect_edge_and_branch_force): New.
16194         (can_fallthru): Ensure that basic blocks are succeeding.
16195         (try_optimize_cfg): Do not delete basic block if it is the last one.
16196
16197         * flow.c (try_redirect_by_replacing_jump): Do not remove
16198         jumps with side effects, unlink chain on fallthru edge;
16199         set block for new jump instruction; avoid basic block to
16200         over by line number note.
16201
16202         * flow.c (try_simplify_condjump): Verify that the condjump
16203         is not always falling through.
16204
16205         Re-install patch:
16206         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
16207
16208         * flow.c (forwarder_block_p): Fix for fallthru blocks.
16209         (try_redirect_by_replacing_jump): Update properly the count
16210         and frequency information.
16211
16212 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16213
16214         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
16215         address that is a LO_SUM specially.
16216         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
16217
16218         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
16219
16220         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
16221         (operand_subword): Use them.
16222         (change_address_1): Renamed from change_address; new arg VALIDATE.
16223         * expr.h: Reflect above changes; change_address now macro.
16224         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
16225         making MEM.
16226         * cselib.c (add_mem_for_addr): Likewise.
16227         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
16228         * regmove.c (try_apply_stack_adjustment): Likewise.
16229         * reload.c (push_reload, make_memloc): Likewise.
16230         * reload1.c (eliminate_regs): Likewise.
16231         * simplify-rtx.c (simplify_replace_rtx): Likewise.
16232         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
16233         adjust_addess.
16234         * combine.c (make_extraction, simplify_shift_const): Likewise.
16235         (gen_lowpart_for_combine): Likewise.
16236         * cse.c (gen_lowpart_if_possible): Likewise.
16237         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
16238         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
16239         * optabs.c (gen_move_insn): Likewise.
16240         * reload1.c (alter_reg): Likewise.
16241         * simplify-rtx.c (simplify_subreg): Likewise.
16242         * stmt.c (expand_anon_union_decl): Likewise.
16243         * recog.c (validate_replace_rtx_1): Likewise.
16244         (expr.h): Include.
16245         * Makefile.in (recog.o): Add $(EXPR_H).
16246         * explow.c (stabilize): Call replace_equiv_address.
16247         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
16248         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
16249
16250 2001-07-03  Andrew Haley  <aph@redhat.com>
16251
16252         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
16253         the mode of the memory location.
16254
16255 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
16256
16257         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
16258
16259 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
16260
16261         * final.c (output_addr_const): Use target opening and
16262         closing parentheses.
16263         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
16264         defaults, add to TARGET_ASM_OUT.
16265         * target.h (struct gcc_target): Add open_paren and close_paren.
16266         * doc/md.texi: Update.
16267         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
16268         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
16269         TARGET_ASM_CLOSE_PAREN.
16270         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
16271         Override.
16272         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
16273         Override.
16274         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
16275         * config/a29k/a29k.h: Similarly.
16276         * config/alpha/alpha.h: Similarly.
16277         * config/arc/arc.h: Similarly.
16278         * config/arm/aof.h: Similarly.
16279         * config/arm/aout.h: Similarly.
16280         * config/avr/avr.h: Similarly.
16281         * config/c4x/c4x.h: Similarly.
16282         * config/clipper/clipper.h: Similarly.
16283         * config/convex/convex.h: Similarly.
16284         * config/d30v/d30v.h: Similarly.
16285         * config/dsp16xx/dsp16xx.h: Similarly.
16286         * config/elxsi/elxsi.h: Similarly.
16287         * config/fr30/fr30.h: Similarly.
16288         * config/h8300/h8300.h: Similarly.
16289         * config/i370/i370.h: Similarly.
16290         * config/i386/i386.h: Similarly.
16291         * config/i860/i860.h: Similarly.
16292         * config/i960/i960.h: Similarly.
16293         * config/ia64/ia64.h: Similarly.
16294         * config/m32r/m32r.h: Similarly.
16295         * config/m68hc11/m68hc11.h: Similarly.
16296         * config/m68k/m68k.h: Similarly.
16297         * config/m88k/m88k.h: Similarly.
16298         * config/mcore/mcore.h: Similarly.
16299         * config/mips/mips.h: Similarly.
16300         * config/mn10200/mn10200.h: Similarly.
16301         * config/mn10300/mn10300.h: Similarly.
16302         * config/ns32k/ns32k.h: Similarly.
16303         * config/pa/pa.h: Similarly.
16304         * config/pdp11/pdp11.h: Similarly.
16305         * config/pj/pj.h: Similarly.
16306         * config/romp/romp.h: Similarly.
16307         * config/rs6000/rs6000.h: Similarly.
16308         * config/sh/sh.h: Similarly.
16309         * config/sparc/sparc.h: Similarly.
16310         * config/v850/v850.h: Similarly.
16311         * config/vax/vax.h: Similarly.
16312         * config/we32k/we32k.h: Similarly.
16313
16314 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
16315
16316         * doc/c-tree.texi: Document representation of attributes.
16317
16318 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16319
16320         * doc/tm.texi: Update some places for the rename of target to
16321         targetm.  Fix typo.
16322
16323 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16324
16325         * target.h (struct gcc_target): Add insert_attributes.
16326         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
16327         (TARGET_INITIALIZER): Update.
16328         * tree.c, tree.h (default_insert_attributes): New function.
16329         Update comments on other default functions to refer to targetm,
16330         not target.
16331         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
16332         TARGET_INSERT_ATTRIBUTES.
16333         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
16334         * c-common.c (decl_attributes): Use targetm.insert_attributes.
16335         Don't use PRAGMA_INSERT_ATTRIBUTES.
16336         * Makefile.in (c-common.o): Depend on $(TARGET_H).
16337         * c-decl.c (start_decl, start_function): Don't call
16338         SET_DEFAULT_DECL_ATTRIBUTES.
16339         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
16340         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
16341         declare.
16342         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
16343         (c4x_check_attribute): Avoid modifying attribute list itself.
16344         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
16345         Make static.
16346         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
16347         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
16348         declare.
16349         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
16350         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
16351         Make static.
16352         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
16353         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
16354         declare.
16355         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
16356         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
16357         Adjust parameters.  Make static.
16358
16359 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16360
16361         * c-common.c (decl_attributes): Only take a single attributes
16362         parameter.
16363         * c-common.h (decl_attributes): Update prototype.
16364         * c-decl.c (start_decl, start_function): Only take a single
16365         attributes parameter.  Update calls to decl_attributes.
16366         (finish_struct, finish_enum): Update calls to decl_attributes.
16367         (push_parm_decl): Expect unified list of attributes.  Update call
16368         to decl_attributes.
16369         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
16370         notype_nested_function, component_declarator,
16371         component_notype_declarator, label): Update calls to
16372         decl_attributes.
16373         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
16374         lists that are passed to push_parm_decl.
16375         * c-tree.h (start_function, start_decl): Update prototypes.
16376         * config/sh/sh-protos.h, config/sh/sh.c
16377         (sh_pragma_insert_attributes): Only take a single attributes
16378         parameter.
16379         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
16380         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
16381         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
16382         build_module_descriptor, generate_static_references,
16383         generate_strings, build_selector_translation_table,
16384         generate_descriptor_table, generate_protocols,
16385         generate_ivars_list, generate_dispatch_table,
16386         generate_protocol_list, generate_category,
16387         generate_shared_structures, really_start_method, add_objc_decls,
16388         generate_classref_translation_entry): Update calls to start_decl
16389         and start_function.
16390         (build_tmp_function_decl, start_method_def): Unify attribute lists
16391         that are passed to push_parm_decl.
16392
16393 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
16394
16395         * final.c (no_asm_to_stream): New.
16396         (final_scan_insn): Use target structures for prologue ends
16397         and epilogue starts.
16398         * output.h (no_asm_to_stream): New.
16399         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
16400         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
16401         (TARGET_ASM_OUT): Update.
16402         * target.h (struct gcc_target): New members function_end_prologue
16403         and function_begin_epilogue.
16404         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
16405         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
16406         * config/alpha/alpha.c (output_end_prologue): Rename to
16407         alpha_output_function_end_prologue.  Use in target struct
16408         and make static.
16409         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
16410         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
16411         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
16412         ia64_output_function_end_prologue.  Use in target struct
16413         and make static.
16414         (ia64_function_prologue, ia64_funciton_epilogue): Rename
16415         mistyped prototypes.
16416         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
16417         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
16418         Delete.
16419         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
16420         an use in target struct, make static.
16421         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
16422         Delete.
16423
16424 2001-07-08  Richard Henderson  <rth@redhat.com>
16425
16426         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
16427
16428 2001-07-08  Richard Henderson  <rth@redhat.com>
16429
16430         * config/i386/i386.md: Remove constraints strings from define_split
16431         and define_peephole2 patterns.
16432         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
16433         (eh_return): Use them.
16434
16435 2001-07-08  Richard Henderson  <rth@redhat.com>
16436
16437         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
16438         Document MD_FALLBACK_FRAME_STATE_FOR.
16439
16440 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16441
16442         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
16443         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
16444         elimination.
16445         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
16446
16447 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
16448
16449         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
16450         of the label inside NAME as opposed to just the end of NAME.
16451
16452 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
16453
16454         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
16455         * config/alpha/alpha.c (alpha_init_machine_status,
16456         alpha_mark_machine_status, alpha_free_machine_status): Delete.
16457         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
16458         (vms_valid_decl_attribute_p): Make static, conditionally compile.
16459         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
16460
16461 2001-07-06  Stan Shebs  <shebs@apple.com>
16462
16463         * target.h (targetm): Rename global from "target", so as not to
16464         conflict with local variables.
16465         * c-decl.c: Ditto.
16466         * c-typeck.c: Ditto.
16467         * final.c: Ditto.
16468         * tree.c: Ditto.
16469         * cp/decl.c: Ditto.
16470         * cp/decl2.c: Ditto.
16471         * cp/typeck.c: Ditto.
16472         * 1750a/1750a.c: Ditto.
16473         * a29k/a29k.c: Ditto.
16474         * arc/arc.c: Ditto.
16475         * arm/arm.c: Ditto.
16476         * avr/avr.c: Ditto.
16477         * clipper/clipper.c: Ditto.
16478         * convex/convex.c: Ditto.
16479         * d30v/d30v.c: Ditto.
16480         * dsp16xx/dsp16xx.c: Ditto.
16481         * elxsi/elxsi.c: Ditto.
16482         * fr30/fr30.c: Ditto.
16483         * h8300/h8300.c: Ditto.
16484         * i370/i370.c: Ditto.
16485         * i386/i386.c: Ditto.
16486         * i860/i860.c: Ditto.
16487         * i960/i960.c: Ditto.
16488         * ia64/ia64.c: Ditto.
16489         * m32r/m32r.c: Ditto.
16490         * m68hc11/m68hc11.c: Ditto.
16491         * m68k/m68k.c: Ditto.
16492         * m88k/m88k.c: Ditto.
16493         * mips/mips.c: Ditto.
16494         * ns32k/ns32k.c: Ditto.
16495         * pa/pa.c: Ditto.
16496         * pdp11/pdp11.c: Ditto.
16497         * romp/romp.c: Ditto.
16498         * rs6000/rs6000.c: Ditto.
16499         * sh/sh.c: Ditto.
16500         * sparc/sparc.c: Ditto.
16501         * vax/vax.c: Ditto.
16502         * we32k/we32k.c: Ditto.
16503         * doc/tm.texi: Update the manual to match.
16504
16505 2001-07-06  Richard Henderson  <rth@redhat.com>
16506
16507         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
16508         DWARF2_UNWIND_INFO not just whether it is defined.
16509
16510 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
16511
16512         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
16513         call to simplify_binary_operation returns a new pattern.
16514
16515 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
16516
16517         * glimits.h (__SHRT_MAX__): New.
16518         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
16519         (SHRT_MAX): Define in terms of __SHRT_MAX__.
16520
16521 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
16522
16523         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
16524         avoid warnings.
16525
16526 2001-07-06  Richard Henderson  <rth@redhat.com>
16527
16528         * bitmap.c (bitmap_release_memory): Move adjacent to the
16529         allocation functions.
16530         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
16531         the implementation.  Binary search for the set bit.
16532         (bitmap_union_of_diff): Allocate the temporary on the stack
16533         instead of using xmalloc.
16534
16535 2001-07-06  Richard Henderson  <rth@redhat.com>
16536
16537         * genrecog.c (validate_pattern): Warn for constraints in
16538         define_{expand,split,peephole2}.  Remove strict_low_part
16539         before looking up match_dup.
16540
16541 2001-07-06  DJ Delorie  <dj@redhat.com>
16542
16543         * doc/gcc.texi (Makefile): Rename to be a more general purpose
16544         chapter about various build hints and history.  Add section
16545         talking about the various types of native and cross builds.
16546
16547 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
16548
16549         * Makefile.in (final.o): Depend on target.h.
16550         * final.c: Include target.h.
16551         (default_function_pro_epilogue): New.
16552         (final_start_function): Use target structure for function prologues.
16553         (final_end_function): Use target structure for function epilogues.
16554         * fold-const.c (real_hex_to_f): Constify s and p.
16555         * output.h (default_function_pro_epilogue): New.
16556         * real.h (real_hex_to_f): Update prototype.
16557         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
16558         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
16559         (TARGET_INITIALIZER): Update.
16560         * target.h (gcc_target): Add struct asm_out.
16561         * doc/tm.texi: Update.
16562
16563 config:
16564         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
16565         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
16566         in cpu/cpu.c, or rename old functions consistently.  Take
16567         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
16568         redundant macros and prototypes.  Make new functions static.
16569
16570         * 1750a/1750a.c: Similarly.
16571         * 1750a/1750a.h: Similarly.
16572         * a29k/a29k-protos.h: Similarly.
16573         * a29k/a29k.c: Similarly.
16574         * a29k/a29k.h: Similarly.
16575         * arc/arc-protos.h: Similarly.
16576         * arc/arc.c: Similarly.
16577         * arc/arc.h: Similarly.
16578         * arm/arm-protos.h: Similarly.
16579         * arm/arm.c: Similarly.
16580         * arm/arm.h: Similarly.
16581         * avr/avr-protos.h: Similarly.
16582         * avr/avr.c: Similarly.
16583         * avr/avr.h: Similarly.
16584         * clipper/clipper-protos.h: Similarly.
16585         * clipper/clipper.c: Similarly.
16586         * clipper/clipper.h: Similarly.
16587         * convex/convex.c: Similarly.
16588         * convex/convex.h: Similarly.
16589         * d30v/d30v-protos.h: Similarly.
16590         * d30v/d30v.c: Similarly.
16591         * d30v/d30v.h: Similarly.
16592         * d30v/d30v.md: Similarly.
16593         * dsp16xx/dsp16xx-protos.h: Similarly.
16594         * dsp16xx/dsp16xx.c: Similarly.
16595         * dsp16xx/dsp16xx.h: Similarly.
16596         * elxsi/elxsi.c: Similarly.
16597         * elxsi/elxsi.h: Similarly.
16598         * fr30/fr30.c: Similarly.
16599         * fr30/fr30.md: Similarly.
16600         * h8300/h8300-protos.h: Similarly.
16601         * h8300/h8300.c: Similarly.
16602         * h8300/h8300.h: Similarly.
16603         * i370/i370-protos.h: Similarly.
16604         * i370/i370.c: Similarly.
16605         * i370/i370.h: Similarly.
16606         * i386/i386.c: Similarly.
16607         * i386/osf1elf.h: Similarly.
16608         * i386/osfrose.h: Similarly.
16609         * i860/i860-protos.h: Similarly.
16610         * i860/i860.c: Similarly.
16611         * i860/i860.h: Similarly.
16612         * i960/i960-protos.h: Similarly.
16613         * i960/i960.c: Similarly.
16614         * i960/i960.h: Similarly.
16615         * ia64/ia64-protos.h: Similarly.
16616         * ia64/ia64.c: Similarly.
16617         * ia64/ia64.h: Similarly.
16618         * m32r/m32r-protos.h: Similarly.
16619         * m32r/m32r.c: Similarly.
16620         * m32r/m32r.h: Similarly.
16621         * m68hc11/m68hc11-protos.h: Similarly.
16622         * m68hc11/m68hc11.c: Similarly.
16623         * m68hc11/m68hc11.h: Similarly.
16624         * m68k/crds.h: Similarly.
16625         * m68k/dpx2.h: Similarly.
16626         * m68k/m68k-protos.h: Similarly.
16627         * m68k/m68k.c: Similarly.
16628         * m68k/m68k.h: Similarly.
16629         * m68k/news.h: Similarly.
16630         * m88k/m88k-protos.h: Similarly.
16631         * m88k/m88k.c: Similarly.
16632         * m88k/m88k.h: Similarly.
16633         * mips/mips-protos.h: Similarly.
16634         * mips/mips.c: Similarly.
16635         * mips/mips.h: Similarly.
16636         * ns32k/merlin.h: Similarly.
16637         * ns32k/ns32k.c: Similarly.
16638         * ns32k/ns32k.h: Similarly.
16639         * ns32k/tek6000.h: Similarly.
16640         * pa/pa-protos.h: Similarly.
16641         * pa/pa.c: Similarly.
16642         * pa/pa.h: Similarly.
16643         * pdp11/2bsd.h: Similarly.
16644         * pdp11/pdp11-protos.h: Similarly.
16645         * pdp11/pdp11.c: Similarly.
16646         * pdp11/pdp11.h: Similarly.
16647         * romp/romp-protos.h: Similarly.
16648         * romp/romp.c: Similarly.
16649         * romp/romp.h: Similarly.
16650         * rs6000/rs6000-protos.h: Similarly.
16651         * rs6000/rs6000.c: Similarly.
16652         * rs6000/rs6000.h: Similarly.
16653         * rs6000/sysv4.h: Similarly.
16654         * sh/sh-protos.h: Similarly.
16655         * sh/sh.c: Similarly.
16656         * sh/sh.h: Similarly.
16657         * sparc/sparc-protos.h: Similarly.
16658         * sparc/sparc.c: Similarly.
16659         * sparc/sparc.h: Similarly.
16660         * vax/vax.c: Similarly.
16661         * vax/vax.h: Similarly.
16662         * vax/vms.h: Similarly.
16663         * we32k/we32k.c: Similarly.
16664         * we32k/we32k.h: Similarly.
16665
16666 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
16667
16668         * basic-block.h (first_insn_after_basic_block_note): Declare.
16669         * flow.c (first_insn_after_basic_block_note): Define.  Moved
16670         from...
16671         * ssa.c (first_insn_after_basic_block_note): Remove.
16672         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
16673         necessary.
16674         (ssa_eliminate_dead_code): Properly update the CFG and PHI
16675         nodes when we find a dead conditional branch.  Insert BARRIERs
16676         after any blocks with no successors, but which do not have
16677         any BARRIERs.
16678
16679 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
16680
16681         * varray.c (varray_check_failed): Use internal_error.
16682
16683 2001-07-05  Andrew Haley  <aph@redhat.com>
16684
16685         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
16686         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
16687         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
16688
16689 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
16690
16691         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
16692         reference if the target constant is also a SYMBOL_REF.
16693
16694 2001-07-05  Eric Christopher  <echristo@redhat.com>
16695
16696         * config/mips/mips.h (MASK_MIPS3900): Remove.
16697         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
16698         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
16699         (TARGET_MIPS3900): Change to use mips_arch.
16700         (TARGET_MIPS4000): New.
16701         (TARGET_MIPS4100): New.
16702         (TARGET_MIPS4300): New.
16703         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
16704         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
16705         for -mipsX.
16706         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
16707         (ISA_HAS_BRANCHLIKELY): To here.
16708         (CC1_CPU_SPEC):  New.
16709         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
16710         (mips_arch_string): Declare.
16711         (mips_arch): Declare.
16712         (TARGET_OPTIONS): Add -march and -mtune.
16713
16714         * config/mips/mips.c (mips_arch_string): New.
16715         (mips_arch): New.
16716         (override_options): Handle -march for codegen and -mtune
16717         for scheduling. Use mips_arch. Move tx39 target default here.
16718         (mips_parse_cpu): Move error message to override_options.
16719
16720         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
16721
16722         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
16723
16724         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
16725         (MIPS Options): Ditto.  Change mcpu entry to historical text.
16726
16727 2001-07-05  H.J. Lu  (hjl@gnu.org)
16728
16729         * config/mips/mips.c (mips_parse_cpu): New function to parse
16730         -march=*/-mcpu=*.
16731
16732 2001-07-05  Jim Wilson  <wilson@redhat.com>
16733
16734         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
16735         * config/ia64/t-ia64: Likewise.
16736         (LIB1ASMFUNCS): Update comment.
16737
16738 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
16739
16740         * doc/install.texi (Install GCC: Binaries): Fix typo.
16741
16742 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16743
16744         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
16745         reference using the stack pointer, adjust it since we push Y
16746         temporarily.
16747         ("*ashrsi3"): Likewise.
16748         ("*lshrsi3"): Likewise.
16749
16750 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16751
16752         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
16753         when -fomit-frame-pointer is used.
16754
16755 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
16756
16757         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
16758         (try_redirect_by_replacing_jump): Reverse updating properly the
16759         count and frequency information.  Reverse removing cc0 setter.
16760         (forwarder_block_p): Reverse fixing for fallthru blocks.
16761
16762 2001-07-05  DJ Delorie  <dj@redhat.com>
16763
16764         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
16765         (translate_options): If the above is defined, use it to map
16766         given options to new options.
16767         * doc/tm.texi: Document it.
16768
16769 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
16770             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16771
16772         * doc/invoke.texi (Optimize Options): Document that -fgcse may
16773         cause programs using computed gotos to run more slowly.
16774
16775 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16776
16777         * doc/install.texi (Specific): Markup, spelling and typo fixes.
16778         Fixed sorting.
16779         Consistently require binutils 2.11.2, not prereleases.
16780         (Specific, decstation-*): Canonicalize as mips-dec-*.
16781         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
16782         always necessary.
16783         (Specific, m68k-altos): Removed reference to README.altos, deleted.
16784         (Specific, mips-*): Reword MIPS C compiler requirements.
16785         (Specific, powerpc*-*-*): New, mention --with-cpu once.
16786         (Specific, sunv5): Removed, obsolete.
16787
16788 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
16789
16790         * dwarf2out.c (output_loc_list): Use an all ones mask for
16791         .text asm output and don't rely on long long
16792         literals. Reformat some long lines.
16793
16794 2001-07-05  Andreas Jaeger  <aj@suse.de>
16795
16796         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
16797         section.
16798
16799 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
16800
16801         * dwarf2out.c (dwarf2out_define): Update comment.
16802         (dwarf2out_undef): Ditto.
16803         (dwarf2out_start_source_file): Ditto.
16804         (dwarf2out_end_source_file): Ditto.
16805         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
16806         since we never call the start/end debug hook for the primary file.
16807
16808 2001-07-04  Kazu Hirata  <kazu@hxi.com>
16809
16810         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
16811         from shll.
16812
16813 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
16814
16815         * cppinit.c (remove_dup_dirs): Inform if a system include
16816         directory is being reordered.
16817         * doc/invoke.texi (Directory Options): GCC warns if you hide a
16818         system include.
16819         * doc/cpp.texi (Search Paths): Likewise.
16820         * doc/gcc.texi (Interoperation): Remove information about
16821         -I/usr/include.
16822
16823 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
16824
16825         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
16826         (VARRAY_TOP_CHAR_PTR): Likewise.
16827
16828 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16829
16830         * gcc.c (process_command): Don't assign elements of a const char*.
16831
16832 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16833
16834         * emit-rtl.c (change_address): Don't abort if invalid address while
16835         reload is in progress.
16836
16837 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
16838
16839         * c-lex.c (cb_file_change): Pass line number to
16840         debug_start_source_file.
16841         (cb_undefine): Pass correct line number to debug_undef.
16842
16843         * toplev.c (debug_start_source_file): Add line number to
16844         parameters. Pass it along to dwarf2out_start_source_file.
16845         (decode_g_option): Stop resetting debug level back to normal when
16846         we change debug formats, unless the current level is
16847         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
16848         3).
16849
16850         * toplev.h (debug_start_source_file): Add line number to
16851         parameters.
16852
16853         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
16854         parameters.
16855
16856         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
16857         parameters.
16858         Output debug_macinfo data for starting file if requested.
16859         (dwarf2out_end_source_file): Output debug_macinfo data for ending
16860         file if requested.
16861         (dwarf2out_define): Output debug_macinfo data for defining a macro
16862         if requested.
16863         (dwarf2out_undef): Output debug_macinfo data for undefining a
16864         macro if requested.
16865         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
16866         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
16867         (macinfo_section_label): New. DWARF2 macro info section label.
16868         (dwarf2out_init): If we want macro info, output the start label
16869         for the section.
16870         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
16871         attribute to the compilation unit die pointing to the macro info.
16872
16873 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
16874
16875         * dwarf2out.c (new_loc_list): Move to inside #ifdef
16876         DWARF2_DEBUGGING_INFO.
16877         (add_loc_descr_to_loc_list): Ditto.
16878         (output_loc_list): Ditto.
16879         Also, fix thinko in curr not being initialized.
16880         (gen_internal_sym): Ditto.
16881
16882 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16883
16884         * emit-rtl.c (replace_equiv_address): New function.
16885         * expr.h (replace_equiv_address): New declaration.
16886         * explow.c (validize_mem): Call it instead of change_address and
16887         also call if -fforce-addr and address is constant.
16888         * expr.c: Replace more calls to change_address with adjust_address
16889         and/or replace_equiv_address or to validize_mem.
16890         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
16891         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
16892         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
16893         * config/i370/i370.md, config/i860/i860.md: Likewise.
16894         * config/i960/i960.md, config/mips/mips.c: Likewise.
16895         * config/mips/mips.md, config/pa/pa.md: Likewise.
16896         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
16897         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
16898
16899 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16900
16901         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
16902
16903         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
16904         function.
16905
16906 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
16907
16908         * doc/include: New directory.
16909         * doc/fdl.texi: Move to doc/include/fdl.texi.
16910         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
16911         * doc/include/funding.texi, doc/include/gpl.texi: New files.
16912         * doc/gcc.texi: Use funding.texi and gpl.texi.
16913         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
16914         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
16915         Update dependencies and use -I $(docdir)/include.
16916
16917 2001-07-04  Anthony Green  <green@redhat.com>
16918
16919         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
16920
16921 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16922
16923         * doc/install.texi (sparc64-*-*): Remove garbage.
16924
16925 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
16926
16927         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
16928         Fix typo in last change to use adjust_address.
16929
16930 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16931
16932         * doc/install.texi (Specific): Update information for *-*-solaris*.
16933
16934 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16935
16936         * explow.c (plus_constant_wide): Reinitialize Y for restart.
16937
16938 2001-07-03  Stan Shebs  <shebs@apple.com>
16939
16940         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
16941         case for flag_no_mach_text_sections.
16942         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
16943         * config/darwin.c (flag_no_mach_text_sections): Remove.
16944         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
16945
16946 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16947
16948         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
16949         and avoid checking for constant as first operand.
16950         * recog.c (find_constant_term_loc): No longer static.
16951         (adj_offettable_operand): Delete.
16952         * rtl.h (adj_offsettable_operand): Delete declaration.
16953         (find_constant_term): Add declaration.
16954         * caller-save.c: Replace calls to adj_offsettable_operand with calls
16955         to adjust_address.
16956         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
16957         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
16958         * config/i386/i386.c, config/i386/i386.md: Likewise.
16959         * config/i860/i860.c, config/i960/i960.c: Likewise.
16960         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
16961         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
16962         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
16963         * config/mips/mips.c, config/mips/mips.md: Likewise.
16964         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
16965         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
16966         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
16967         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
16968         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
16969         * config/ns32k/ns32k.md: Likewise.
16970
16971 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
16972
16973         * rtl.c (copy_rtx): Handle 'T' format letter.
16974         * gensupport.c (collect_insn_data): Likewise.
16975         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
16976
16977 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
16978
16979         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
16980         -B option.  Use 'dir' not 'foo' as example directory name.
16981
16982 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16983
16984         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16985         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
16986
16987 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
16988
16989         * doc/cppinternals.texi: Improve formatting and logical markup.
16990
16991 2001-07-03  Andreas Jaeger  <aj@suse.de>
16992
16993         * Makefile.in (insn-recog.o): Add dependency on reload.h.
16994
16995         * genrecog.c (write_header): Include reload.h for prototypes in
16996         insn-recog.c.
16997
16998 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16999
17000 config:
17001         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
17002         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
17003         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
17004         i386_pe_valid_type_attribute_p): Add.
17005         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
17006         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
17007
17008 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17009
17010         * explow.c (plus_constant_wide, case LO_SUM): New case.
17011         (plus_constant_for_output_wide): Delete.
17012         * rtl.h (plus_constant_for_output): Delete.
17013         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
17014         instead of plus_constant_for_output.
17015         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
17016         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
17017         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
17018         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
17019         * config/sparc/sparc.md: Likewise.
17020         Convert some change_address calls to adjust_address.
17021
17022 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
17023
17024         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
17025         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
17026         documentation of -std and -Wwrite-strings.
17027
17028 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
17029
17030         * cse.c (canon_hash): Don't register registers in very small
17031         register classes, as extending their lifetime might cause
17032         reload to fail.
17033
17034 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
17035
17036         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
17037
17038         * flow.c (forwarder_block_p): Fix for fallthru blocks.
17039         (try_redirect_by_replacing_jump): Update properly the count
17040         and frequency information.
17041
17042 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
17043
17044         * toplev.c (dump_file_index): Move SSA dumps just after first
17045         jump dump.
17046         (dump_file): Corresponding changes.
17047         (rest_of_compilation): Move SSA path to just after the first
17048         jump pass.
17049         * doc/gcc.texi (Passes): Update due to movement of SSA path.
17050         * doc/invoke.texi: Update dump file #s as they were completely
17051         out of date with reality.
17052
17053 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
17054
17055         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
17056
17057         * expr.c (emit_move_insn_1): Deal with non-default
17058         STACK_PUSH_CODE.
17059
17060         * expr.c (emit_single_push_insn): Fix warning.
17061
17062 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
17063
17064         * expr.c (emit_move_insn_1): Avoid modifying
17065         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
17066
17067 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17068
17069         * emit-rtl.c (adjust_address): New function.
17070         * expr.h (adjust_address): Add declaration.
17071         * builtins.c: Replace some calls to change_address with calls to it
17072         or to validize_mem.
17073         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
17074         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
17075         * config/arm/arm.c, config/convex/convex.c: Likewise.
17076         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
17077         * config/i386/i386.c, config/i386/i386.md: Likewise.
17078         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
17079         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
17080         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
17081         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
17082         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
17083
17084 2001-07-02  Jim Wilson  <wilson@redhat.com>
17085
17086         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
17087
17088 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
17089
17090         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
17091         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
17092
17093 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
17094
17095         * cppinit.c (lang_defaults): New table.
17096         (set_lang): Just read from lang_defaults into the live options
17097         structure.
17098
17099 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
17100
17101         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
17102         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
17103         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
17104
17105 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17106
17107         * doc/install.texi: Various spelling and markup fixes.
17108         (Installing GCC): Component specific installation instructions are
17109         gone.
17110         Fix reference.
17111         Warn about removing old install dir in the presence of shared libs.
17112         (Configuration): Invoke with options target to match configure
17113         --help.
17114         Consistently refer to gas, gld pathnames.
17115         Invert --enable-multilib documentation.
17116         Remove references to old compiler versions.
17117
17118 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17119
17120         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
17121
17122 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17123
17124         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
17125         section.
17126         (Specific, mips*-sgi-irix5): Note IDO download.
17127         Reworded MIPS C hints.
17128         Use GNU as instead of GAS.
17129         Markup fixes.
17130         Removed SGI Freeware reference, IRIX 6 only.
17131         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
17132         Note N64 library requirement/workaround.
17133         Update O32 hints.
17134         Complete list of structure passing bug victims.
17135
17136 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17137
17138         * doc/install.texi: Remove CVS Id.
17139
17140 2001-07-02  Andreas Jaeger  <aj@suse.de>
17141
17142         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
17143         (find_inherently_necessary): Remove unused variable.
17144
17145 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
17146
17147         * c-common.h (TDI_inlined): New ast dump phase.
17148         (dump_flag_name): New function.
17149         * c-dump.c (dump_files): Add inlined phase.
17150         (dump_flag_name): Define.
17151         * doc/invoke.texi (-fdump-ast-inlined): Document.
17152
17153 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17154
17155         * stor-layout.c (layout_decl): Revert change to handling of alignment
17156         in packed types.
17157
17158 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17159
17160         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
17161         for FIELD_DECL.
17162
17163 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
17164
17165         * doc/tm.texi (FUNCTION_ARG): Document that the last call
17166         is special.
17167
17168 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
17169
17170         * tlink.c (recompile_files): Remove COMPILER_PATH and
17171         LIBRARY_PATH from the environment.
17172
17173 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
17174
17175         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
17176         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
17177         enumerators.
17178         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
17179
17180         * c-parse.in (OBJC_STRING): Kill.
17181         (objc_string): Decompose to [objc_string] '@' STRING.
17182         (reswords): Take the leading '@' off all the Objective C keywords.
17183         (objc_rid_sans_at): Kill.
17184         (init_reswords): Don't initialize it.
17185         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
17186         (_yylex): Kill reconsider label.  Look ahead one token after
17187         an '@'; if we get an identifier, check whether it's an
17188         Objective C @-keyword.  If so, return the keyword.  Otherwise,
17189         put back the token and return the '@' as a terminal.
17190
17191         * cpplib.c (lex_macro_node): Remove unnecessary check for
17192         leading '@' on identifier.  Clarify control flow and commentary.
17193
17194 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17195
17196         * cse.c (new_label_ref): Variable deleted.
17197         (insert): Remove set of new_label_ref.
17198         (check_for_label_ref): New function.
17199         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
17200
17201 See ChangeLog.5 for earlier changes.