OSDN Git Service

* config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
2
3         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
4
5 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6
7         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8         be used for bootstrapping GCC 3.0.
9
10 2002-01-18  Kazu Hirata  <kazu@hxi.com>
11
12         * config/h8300/h8300.md: Fix an insn length.
13
14 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15
16         * bitmap.h: Fix comment formatting.
17         * combine.c: Likewise.
18         * cppfiles.c: Likewise.
19         * c-pragma.h: Likewise.
20         * c-typeck.c: Likewise.
21         * df.c: Likewise.
22         * dwarf2out.c: Likewise.
23         * function.c: Likewise.
24         * gcc.c: Likewise.
25         * genattrtab.c: Likewise.
26         * gthr-win32.h: Likewise.
27         * haifa-sched.c: Likewise.
28         * predict.c: Likewise.
29         * rtlanal.c: Likewise.
30         * rtl.h: Likewise.
31         * unwind-dw2-fde.h: Likewise.
32         * unwind-pe.h: Likewise.
33         * vmsdbgout.c: Likewise.
34
35 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
36
37         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
38         if type_required and passed decl.
39
40 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
41
42         * config.gcc (cpu_type): Include altivec.h in powerpc
43         extra_headers.
44         Same for darwin.
45
46         * config/rs6000/altivec.h: New.
47
48 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
49
50         * doc/install.texi (*-ibm-aix*): Update assembler and exception
51         handling information.
52         * doc/trouble.texi (Interoperation): Add libstdc++ information
53         for AIX.
54         (Misunderstandings): Add template instantiation and static template
55         member information for AIX.
56
57 2002-01-17  Jason Merrill  <jason@redhat.com>
58
59         * dbxout.c (dbxout_type): Support const and volatile.
60
61         * except.c (add_partial_entry): Remove backwards compatibility code.
62         (end_protect_partials): Likewise.
63
64 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
65
66         * config/ia64/ia64.md (prologue_use): New.
67         * config/ia64/ia64.c (ia64_expand_prologue): Use
68         gen_prologue_use instead of gen_rtx_USE.
69         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
70         as CODE_FOR_pred_rel_mutex.
71         (ia64_sched_reorder2): Likewise.
72
73 2002-01-16  Eric Christopher  <echristo@redhat.com>
74
75         * config/mips/r3900.h: Reformat.
76         (SUBTARGET_CPP_SIZE_SPEC): Remove.
77         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
78         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
79         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
80         * config/mips/t-elf: Remove mips3 multilib.
81
82 2002-01-16  H.J. Lu <hjl@gnu.org>
83
84         * config/mips/linux.h: Include "mips/abi64.h".
85
86 2002-01-16  H.J. Lu <hjl@gnu.org>
87
88         * config/mips/t-linux: New.
89
90         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
91
92         * config/mips/linux.h: Don't include "gofast.h".
93         (INIT_SUBTARGET_OPTABS): Removed.
94
95 2002-01-16  Kazu Hirata  <kazu@hxi.com>
96
97         * config/h8300/h8300-protos.h: Replace emit_a_shift with
98         output_a_shift.
99         * config/h8300/h8300.c: Likewise.
100         * config/h8300/h8300.md: Likewise.
101
102 2002-01-16  Kazu Hirata  <kazu@hxi.com>
103
104         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
105         spaces after an opcode name.
106         (pushqi1_h8300hs): Likewise.
107         (pushhi1_h8300hs): Likewise.
108
109 2002-01-16  Kazu Hirata  <kazu@hxi.com>
110
111         * doc/extend.texi: Replace "option" with "attribute"
112         appropriately.
113
114 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
115
116         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
117         (and:DI () (const_int -8)).
118         (split_small_symbolic_mem_operand): Split
119         (mem (and:DI () (const_int -8)).
120
121 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
122
123         PR target/5309:
124         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
125         same way as TYPE_IMUL.
126         (ultrasparc_sched_reorder): Likewise.
127         * config/sparc/sparc.md (type): Add comment to update
128         ultrasparc_sched_reorder when making changes.
129
130 2002-01-16  Kazu Hirata  <kazu@hxi.com>
131
132         * doc/invoke.texi: Change the dump file name of block
133         reordering pass from 28.bbro to 29.bbro.
134         Mention -dk option.
135
136 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
137
138         * i386.md (minsf splitter): Fix pasto.
139
140 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
141
142         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
143         to frame pointer initialisation instruction.
144         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
145         initialisation instruction.
146         (soft_df_operand): Do not accept the IP register.
147         (nonimmediate_soft_df_operand): Do not accept the IP register.
148
149 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
150
151         PR target/5357:
152         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
153         MASK_V8 being both set.
154
155 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
156
157         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
158         insn for GOT register; add REG_MAYBE_DEAD notes instead.
159         config/s390/s390.md (call, call_value): Add GOT register to
160         CALL_INSN_FUNCTION_USAGE where needed.
161         (call_exp, call_value_exp): New.
162
163 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
164
165         * config/arm/arm.c: General formatting tidy up.
166
167 2002-01-16  Graham Stott  <grahams@redhat.com>
168
169         * calls.c (try_to_integrate): Use "(size_t)" intermediate
170         cast and when casting an integer literal to "rtx" pointer.
171         (expand_call): Likewise.
172         * flow.c (try_pre_increment): Likewise.
173         (find_use_as_address): Likewise.
174         * integrate.c (expand_iline_function): Likewise.
175         * regmove.c (try_auto_increment): Likewise.
176
177 2002-01-16  Graham Stott  <grahams@redhat.com>
178
179         * sched-rgn.c (passed): Use sbitmap_free.
180         (header): Likewise.
181         (inner): Likewise.
182         (in_queue): Likewise.
183         (in_stack): Likewise.
184
185 2002-01-15  Eric Christopher  <echristo@redhat.com>
186
187         * flow.c (propagate_one_insn): Change to use fatal_insn.
188
189 2002-01-15  Kazu Hirata  <kazu@hxi.com>
190
191         * expmed.c (extract_fixed_bit_field): Remove unused code.
192         * system.h: Poison SLOW_ZERO_EXTEND.
193         * doc/tm.texi: Remove.
194         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
195         * config/arm/arm.h: Likewise.
196         * config/avr/avr.h: Likewise.
197         * config/clipper/clipper.h: Likewise.
198         * config/convex/convex.h: Likewise.
199         * config/d30v/d30v.h: Likewise.
200         * config/dsp16xx/dsp16xx.h: Likewise.
201         * config/elxsi/elxsi.h: Likewise.
202         * config/fr30/fr30.h: Likewise.
203         * config/h8300/h8300.h: Likewise.
204         * config/i370/i370.h: Likewise.
205         * config/i386/i386.h: Likewise.
206         * config/m68k/m68k.h: Likewise.
207         * config/mips/mips.h: Likewise.
208         * config/ns32k/ns32k.h: Likewise.
209         * config/pdp11/pdp11.h: Likewise.
210         * config/pj/pj.h: Likewise.
211         * config/s390/s390.h: Likewise.
212         * config/sh/sh.h: Likewise.
213         * config/stormy16/stormy16.h: Likewise.
214         * config/v850/v850.h: Likewise.
215         * config/vax/vax.h: Likewise.
216         * config/we32k/we32k.h: Likewise.
217
218 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
219
220         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
221         (altivec_lvsl): Change constraint to b.
222         (altivec_lvsr): Same.
223         (altivec_lvebx): Same.
224         (altivec_lvehx): Same.
225         (altivec_lvewx): Same.
226         (altivec_lvxl): Same.
227         (altivec_lvx): Same.
228         (altivec_stvx): Add parallel.
229         (altivec_stvxl): Same.
230         (altivec_stvehx): Same.
231         (altivec_stvebx): Same.
232         (altivec_stvebx): Same.
233
234 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
235
236         * config.gcc: Change altivec.h to altivec-defs.h.
237
238         * config/rs6000/altivec.h: Delete.
239
240         * config/rs6000/altivec-defs.h: Add.
241
242 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
243
244         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
245         and UMOD modes.
246
247         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
248         less than or equal to eight bytes.
249
250         * vax.md (andsi3): Remove constraints and change SET destination
251         operand type to nonimmediate_operand.
252         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
253         when it is a CONST_INT.
254
255 2002-01-15  Jason Merrill  <jason@redhat.com>
256
257         * c-common.def (FILE_STMT): New code.
258         * c-common.c (statement_code_p): It's a statement.
259         * c-common.h (stmt_tree_s): Add x_last_filename.
260         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
261         (last_expr_filename): New macro.
262         * c-semantics.c (begin_stmt_tree): Initialize it.
263         (add_stmt): If the filename changed, also insert a
264         FILE_STMT.
265         (expand_stmt): Handle seeing one.
266
267 2002-01-15  Eric Christopher  <echristo@redhat.com>
268
269         * flow.c (propagate_one_insn): Add error message and print out
270         insn for debugging.
271
272 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
273
274         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
275         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
276         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
277         TRAMPOLINE_ALIGNMENT.
278         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
279         to be in bits.
280         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
281         PCC_BITFIELD_TYPE_MATTERS.
282         * config/interix.h (STDC_VALUE): Remove.  Use
283         STDC_0_IN_SYSTEM_HEADERS.
284         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
285         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
286         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
287
288 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
289
290         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
291         not work on this platform currently.
292
293 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
294
295         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
296         readonly_warning in _().
297
298 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
299
300         * gcc.c (delete_if_ordinary): Backout previous change.
301
302 2002-01-15  Kazu Hirata  <kazu@hxi.com>
303
304         * config/h8300/h8300.c (print_operand): Remove support for
305         unused operand characters.
306
307         * read-rtl.c: Fix formatting.
308         * real.c: Likewise.
309         * recog.c: Likewise.
310         * regclass.c: Likewise.
311         * regmove.c: Likewise.
312         * reg-stack.c: Likewise.
313         * reload1.c: Likewise.
314         * rtlanal.c: Likewise.
315
316 2002-01-15  Kazu Hirata  <kazu@hxi.com>
317
318         * config/i386/i386.c: Fix formatting.
319
320 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
321
322         * c-typeck.c (process_init_element): Don't save_expr
323         COMPOUND_LITERAL_EXPR if just its initializer will be used.
324
325 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
326
327         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
328         emit optional traceback table if optimize_size or TARGET_ELF.
329         * config/rs6000/rs6000.md (prefetch): New.
330
331 2002-01-15  Andreas Jaeger  <aj@suse.de>
332
333         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
334
335 2002-01-15  Kazu Hirata  <kazu@hxi.com>
336
337         * mips-tfile.c: Fix formatting.
338
339 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
340
341         * unroll.c (final_reg_note_copy): Fix previous commit.
342
343 2002-01-14  Kazu Hirata  <kazu@hxi.com>
344
345         * config/h8300/h8300-protos.h: Remove the prototype for
346         eq_operator.
347         * config/h8300/h8300.c (eq_operator): Remove.
348
349 2002-01-14  Richard Henderson  <rth@redhat.com>
350
351         * config/i386/i386.md (prefetch): Tidy.
352         (prefetch_3dnow): Fix locality operand.
353
354 2002-01-14  Richard Henderson  <rth@redhat.com>
355
356         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
357         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
358
359 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
360
361         * reload1.c (reload_combine): Pass reg_sum replacement through
362         copy_rtx in loop performing multiple changes.
363
364 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
365
366         * except.c (remove_unreachable_regions): New.
367         (free_eh_status): Clear exception_handler_labels.
368         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
369         (find_exception_handler_labels): Don't add the same label more than
370         once.
371         (remove_exception_handler_label): Don't die if
372         find_exception_handler_labels hasn't been called for the current
373         function yet.
374
375 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
376
377         * toplev.c (rest_of_compilation): Rebuild jump labels after
378         gcse.
379
380 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
381
382         * doc/extend.texi: Move documentation of X86 built-in functions
383         here.
384         * doc/invoke.texi: From here.
385         * doc/sourcebuild.texi: Document location of documentation for
386         machine built-in functions.
387
388 2002-01-13  Christopher Faylor  <cgf@redhat.com>
389
390         * cppfiles.c (TEST_THRESHOLD): New macro.
391         (SHOULD_MMAP): Ditto.
392         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
393         be used.
394
395 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
396
397         * unroll.c (final_reg_note_copy): Properly handle
398         REG_LABEL
399         (unroll_loops): Fix LOOP_CONDITION heuristics.
400
401 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
402
403         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
404         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
405
406 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
407
408         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
409         threaded loop.
410
411 2002-01-14  Tom Rix  <trix@redhat.com>
412
413         * config/rs6000/rs6000.md: Fix typo with sradi.
414
415 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
416
417         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
418         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
419         (clrstrdi, clrstrsi): Adapt callers.
420
421         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
422
423         (movti splitter): Never use register 0 as base register.
424
425 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
426
427         * combine.c (simplify_shift_const): Always generate new rtx
428         for shift expression instead of reusing given expression.
429
430 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
431
432         * config/alpha/alpha.c (alpha_expand_mov): Don't call
433         alpha_legitimize_address unless mode is Pmode.
434
435 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
436
437         * doc/md.texi (Modifiers): Document the '*' constraint for the
438         user.
439
440         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
441         * doc/extend.texi (Function Attributes): 'interrupt' is valid
442         for xstormy16 too.
443
444 2002-01-13  Richard Henderson  <rth@redhat.com>
445
446         * reload.c (find_reloads): Use a hard reg destination as reload reg
447         for an input reload of the source.
448
449 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
450
451         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
452         more generic.
453
454 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
455
456         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
457         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
458
459         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
460
461 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
462
463         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
464
465 2002-01-12  Tom Rix  <trix@redhat.com>
466
467         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
468         TARGET_POWERPC64.
469
470 2002-01-12  Richard Henderson  <rth@redhat.com>
471
472         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
473
474         * doc/invoke.texi: Update Alpha options.
475
476         * doc/invoke.texi: Update i386 built-in function lists.
477
478 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
479
480         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
481         referencing outside.
482
483 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
484
485         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
486         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
487         offsets, and change line folding.
488         * optabs.c (expand_binop): Remove warnings.
489         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
490
491 2002-01-12  Graham Stott <grahams@redhat.com>
492
493         * attribs.c (handle_deprecated_attribute): constify WHAT.
494         * diagnostic.c (warn_deprecated_use): Add braces, fixes
495         dangling else warning and constify WHAT.
496         * except.h (struct function, struct inline_remap): Move
497         struct tag forward defs before all prototypes.
498         (duplicate_eh_regions): Whitespace.
499
500 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
501
502         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
503         MODE_BASE_REG_CLASS.
504         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
505
506 2002-01-12  Richard Henderson  <rth@redhat.com>
507
508         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
509         (ix86_expand_vector_move): New.
510         (bdesc_2arg): Remove andps, andnps, orps, xorps.
511         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
512         Remove old prefetch builtins.  Special case the logicals removed above.
513         (ix86_expand_builtin): Likewise.
514         (safe_vector_operand): Use V4SFmode, not TImode.
515         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
516         (ix86_expand_timode_binop_builtin): New.
517         * config/i386/i386-protos.h: Update.
518         * config/i386/i386.h (enum ix86_builtins): Update.
519         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
520         Use ix86_expand_vector_move in vector move expanders.
521         (movti_internal, movti_rex64): Add xorps alternative.
522         (sse_clrv4sf): Rename and adjust from sse_clrti.
523         (prefetch): Don't work so hard.
524         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
525         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
526         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
527
528 2002-01-11  Richard Henderson  <rth@redhat.com>
529
530         * config/i386/mmintrin.h: New file.
531         * config/i386/xmmintrin.h: New file.
532         * config.gcc (i?86-*-*): Add extra_headers.
533         * simplify-rtx.c (simplify_unary_operation): Handle saturating
534         truncation codes.
535         (simplify_binary_operation): Handle saturating arithmetic codes.
536         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
537         not the lowpart subreg.
538         (ix86_expand_builtin): Return a TImode dummy register instead of 0
539         on error.
540         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
541
542 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
543
544         * conflict.c (conflict_graph_compute): Free regsets when finished.
545         * ssa.c (compute_coalesced_reg_partition): Likewise.
546
547 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
548
549         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
550         every where we allocate a register.
551
552 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
553
554         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
555         * lcm.c (compute_earliest, compute_farthest): Likewise.
556
557 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
558
559         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
560
561 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
562
563         * doc/rtl.texi (Insns): Fix 2 typos.
564
565 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
566
567         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
568         options.  Use @table @gcctabopt for MMIX options.  Add index
569         entries for MMIX options.  Start new paragraph with first
570         heading of the machine-dependent options.
571
572 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
573
574         PR other/5299
575         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
576         * combine.c (force_to_mode): Same.
577         * reload1.c (clear_reload_reg_in_use): Same.
578
579 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
580
581         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
582         and 'subtargets'.
583
584 2002-01-11  Andreas Jaeger  <aj@suse.de>,
585             Brad Lucier <lucier@math.purdue.edu>
586
587         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
588         mcpu.
589
590 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
591
592         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
593         Protect with IN_LIBGCC.
594         (LINK_EH_SPEC): Add required trailing space.
595
596 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
597
598         * c-tree.h: Move function declarations so that they are listed
599         under the filename which contains them.
600         (check_identifier, finish_decl_top_level,
601         lookup_name_current_level_global, shadow_record_fields): Remove.
602
603 2002-01-11  Andreas Jaeger  <aj@suse.de>
604
605         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
606         march.
607
608 2002-01-10  Richard Henderson  <rth@redhat.com>
609
610         * config/alpha/alpha.c (print_operand): Add 'J'.
611         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
612         new operand with the sequence number for the lituse.  When splitting
613         the insns, use gen_movdi_er_high_g and generate a sequence number.
614         (gen_movdi_er_high_g): Print the sequence number if non-zero.
615
616 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
617
618         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
619         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
620         stvxl.
621         (altivec_expand_builtin): Same.
622         (altivec_expand_stv_builtin): New.
623
624         * config/rs6000/rs6000.h (rs6000_builtins): Same.
625
626         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
627         ("altivec_lvehx"): New.
628         ("altivec_lvewx"): New.
629         ("altivec_lvxl"): New.
630         ("altivec_lvx"): New.
631         ("altivec_stvx"): New.
632         ("altivec_stvebx"): New.
633         ("altivec_stvehx"): New.
634         ("altivec_stvewx"): New.
635         ("altivec_stvxl"): New.
636
637 2002-01-10  Richard Henderson  <rth@redhat.com>
638
639         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
640         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
641         care not to delete instructions twice.
642
643 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
644
645         * toplev.c: Don't declare environ (it's not used anywhere).
646         * configure.in: Don't check for declaration of environ.
647         * config/i386/xm-mingw32.h: Don't #define environ.
648         * config.in, configure: Regenerate.
649
650 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
651
652         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
653         * configure: Regenerate.
654
655         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
656         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
657         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
658         alpha/xm-vms.h.
659         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
660         LIMITS_H_TEST here, not in m68k/x-next.
661         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
662         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
663
664         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
665         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
666         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
667
668         * config/i386/x-djgpp: Renamed i386/t-djgpp.
669         * config/m88k/x-dolph: Renamed m88k/t-dolph.
670         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
671         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
672         replacement of quadlib.asm with quadlib.c.
673
674         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
675         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
676         config/rs6000/xm-beos.h: Delete file.
677
678         * config.gcc: Update to match above changes.
679
680 2002-01-10  Kazu Hirata  <kazu@hxi.com>
681
682         * config/h8300/h8300.h: Fix comment typos.
683         * config/h8300/h8300.md: Likewise.
684         * config/h8300/lib1funcs.asm: Likewise.
685
686 2002-01-10  Dale Johannesen  <dalej@apple.com>
687
688         PR optimization/5269
689         * unroll.c (precondition_loop_p): Make *increment be the correct
690         sign when n_iterations known, to avoid confusing caller.
691
692 2002-01-10  Kazu Hirata  <kazu@hxi.com>
693
694         * doc/extend.texi (deprecated): Fix a typo.
695
696 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
697
698         * basic-block.h (update_br_prob_note): Declare.
699         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
700         (try_forward_edges): Care negative frequencies and update note.
701         (outgoing_edges_match): Tweek conditional merging heuristics.
702         (try_crossjump_to_edge): use update_br_prob_note.
703         * cfglayout.c (fixup_reorder_chain): Likewise.
704         * cfrtl.c (update_br_prob_note): New.
705         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
706
707         * i386.c (ix86_decompose_address): Return -1 if address contains
708         shift.
709         (legitimate_address_p): Require ix86_decompose_address to return 1.
710
711         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
712         (cprop_insn): Likewise.
713
714 2002-01-10  Kazu Hirata  <kazu@hxi.com>
715
716         * toplev.c: Fix formatting.
717         * tree.c: Likewise.
718         * tree-dump.c: Likewise.
719         * unroll.c: Likewise.
720         * unwind-dw2.c: Likewise.
721         * unwind-dw2-fde.c: Likewise.
722         * unwind-dw2-fde-glibc.c: Likewise.
723         * unwind-sjlj.c: Likewise.
724
725 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
726
727         * doc/invoke.texi: Document PDP-11 options.
728
729 2002-01-10  Kazu Hirata  <kazu@hxi.com>
730
731         * config/h8300/h8300.h: Fix formatting.
732
733 2001-01-10  Ira Ruben   <ira@apple.com>
734
735         Add __attribute__ ((deprecated)).
736         * extend.texi: Document __attribute__ ((deprecated)).
737         * invoke.texi: Document -Wno-deprecated-declarations.
738         * testsuite/g++.dg/other/deprecated.C: New C++ test.
739         * testsuite/gcc.dg/deprecated.c: New C test.
740         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
741         (c_common_attribute_table): Add "deprecated" entry.
742         (handle_deprecated_attribute): New function.
743         * c-decl.c (deprecated_states): New enum.
744         deprecated_state: State of "deprecated" handling.
745         (start_decl): Set deprecated_state based on attributes.
746         (grokdeclarator): Test for deprecated uses, propagate attribute.
747         * c-typeck.c (build_component_ref): Test for deprecated fields.
748         (build_external_ref): Test for deprecated primaries.
749         * diagnostic.c (warn_deprecated_use) New function to issue
750         warnings about __attribute__ ((depricated)) references.
751         * flags.h (warn_deprecated_decl): Extern declared for
752         -W[no-]deprecated-declarations option.
753         * print-tree.c (print_node): Show deprecated flag status.
754         * toplev.c (warn_deprecated_decl): Defined.
755         (W_options): Added "deprecated-declaration".
756         * toplev.h (warn_deprecated_use): Extern declared.
757         * tree.h (struct tree_common): Define deprecated_flag.
758         (TREE_DEPRECATED): New macro to access flag.
759         * cp/call.c (build_call): Test for deprecated calls.
760         * cp/class.c (add_implicitly_declared_members): Set global
761         flag to tell grokdeclarator to not issue deprecated warnings.
762         * cp/cp-tree.h: Add extern for adding_implicit_members.
763         * cp/decl.c (deprecated_states): New enum.
764         (start_decl): Set deprecated_state based on attributes.
765         (grokdeclarator): Test for deprecated uses, propagate attribute.
766         * cp/lex.c (do_identifier): Test for deprecated primaries.
767         * cp/typeck.c (build_component_ref): Test for deprecated fields.
768
769 2001-01-10  Ira Ruben   <ira@apple.com>
770
771         Fix to assign attributes to inline member functions.
772         * cp/decl.c (start_method): Handle attrlist.
773
774 2002-01-10  Kazu Hirata  <kazu@hxi.com>
775
776         * combine.c (expand_field_assignment): Use subreg_lsb().
777
778 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
779
780         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
781         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
782         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
783         Recurse for any operand of AND as long as constant is non-zero.
784
785 2002-01-10  Kazu Hirata  <kazu@hxi.com>
786
787         * config/h8300/h8300.md: Remove constraints from expanders.
788
789 2002-01-10  Kazu Hirata  <kazu@hxi.com>
790
791         * varasm.c: Fix formatting.
792         * varray.c: Likewise.
793         * vmsdbgout.c: Likewise.
794         * xcoffout.c: Likewise.
795
796 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
797
798         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
799         update edge probabilities to match.
800
801 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
802
803         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
804         dependencies.
805         * doc/languages.texi, doc/sourcebuild.texi: New files.
806         * doc/configfiles.texi: Make a subsubsection.  Update.
807         * doc/configterms.texi: Add @node.  Remove warning that this isn't
808         instructions for building GCC.
809         * doc/makefile.texi: Make a subsection.
810         * doc/gccint.texi: Update.
811
812 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
813
814         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
815
816 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
817
818         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
819
820 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
821
822         * optabs.c (expand_fix): Look for wider integer modes first.
823
824         * i386.md (mov?f): Avoid the fake const double trick for medium
825         memory model.
826         (min?f*/max?f*): Prohibit memory operands for i387 variant.
827         (fop_df_4): Disable for SSE compilation.
828
829 2002-01-10  Graham Stott  <grahams@redhat.com>
830
831         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
832         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
833
834 2002-01-10  Richard Henderson  <rth@redhat.com>
835
836         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
837
838 2002-01-10  Richard Henderson  <rth@redhat.com>
839
840         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
841         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
842
843 2002-01-10  Kazu Hirata  <kazu@hxi.com>
844
845         * combine.c (can_combine_p): Fix a comment typo.
846
847 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
848
849         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
850         empty list correctly.  Change loop index $t to $f for
851         consistency with rest of Makefile.
852
853 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
854
855         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
856         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
857
858         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
859         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
860         (altivec_init_builtins): Same.
861         (altivec_expand_unop_builtin): Return NULL_RTX on error.
862         (altivec_expand_binop_builtin): Same.
863         (altivec_expand_ternop_builtin): Same.
864         (bdesc_dst): New.
865
866         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
867         ("altivec_vctuxs"): Fix typo.
868         ("altivec_vnmsubfp"): Same.
869         ("altivec_dssall"): New.
870         ("altivec_mfvscr"): New.
871         ("altivec_dss"): New.
872         ("altivec_lvsl"): New.
873         ("altivec_lvsr"): New.
874         ("altivec_dstt"): New.
875         ("altivec_dstst"): New.
876         ("altivec_dststt"): New.
877         ("altivec_dst"): New.
878
879         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
880         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
881
882 2002-01-09  Richard Henderson  <rth@redhat.com>
883
884         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
885
886 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
887
888         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
889         function.
890         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
891         prototype.
892         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
893
894 2002-01-09  Kazu Hirata  <kazu@hxi.com>
895
896         * read-rtl.c: Fix formatting.
897         * real.c: Likewise.
898         * regclass.c: Likewise.
899         * regrename.c: Likewise.
900         * reg-stack.c: Likewise.
901         * reload1.c: Likewise.
902         * reload.c: Likewise.
903         * rtl.c: Likewise.
904
905 2002-01-09  Kazu Hirata  <kazu@hxi.com>
906
907         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
908         to extract items in the expr_list chain.
909
910 2002-01-09  Richard Henderson  <rth@redhat.com>
911
912         * config/vax/vax.c (vax_rtx_cost): Never abort.
913
914         * config/vax/vax.h (REAL_ARITHMETIC): Define.
915
916 2002-01-09  Jan Hubicka  <jh@suse.cz>
917
918         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
919
920 2002-01-09  Richard Henderson  <rth@redhat.com>
921
922         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
923         Unify code from various alternatives.
924
925 2002-01-09  Richard Henderson  <rth@redhat.com>
926
927         * regrename.c (copy_value): Ignore the copy if the source register
928         is present in the value chain with a narrower mode.
929
930 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
931
932         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
933         for the c4x target. Also improve layout.
934
935 2002-01-09  Richard Henderson  <rth@redhat.com>
936
937         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
938         * config/m32r/m32r.md (and ior xor splitters): Swap operands
939         to match insn patterns.
940
941 2002-01-09  Richard Henderson  <rth@redhat.com>
942
943         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
944         (copyprop_hardreg_forward_1): Likewise.
945
946 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
947
948         * pa.md (decrement_and_branch_until_zero): Change predicate for
949         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
950
951 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
952
953         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
954         gets undefined. For Darwin.
955
956 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
957
958         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
959
960 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
961
962         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
963
964 2002-01-08  Richard Henderson  <rth@redhat.com>
965
966         * regrename.c (copy_value): Ignore overlapping copies.
967
968 2002-01-08  Richard Henderson  <rth@redhat.com>
969
970         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
971         as needed to avoid shared structure.
972
973 2002-01-08  Kazu Hirata  <kazu@hxi.com>
974
975         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
976         H8/300H and H8/S.
977
978 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
979
980         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
981         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
982         documentation of obsolete macros.
983         * system.h: Poison these macros.
984         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
985         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
986         config/c4x/c4x.h, config/clipper/clipper.h,
987         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
988         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
989         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
990         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
991         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
992         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
993         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
994         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
995         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
996         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
997         config/sparc/sparc.h, config/stormy16/stormy16.h,
998         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
999         definitions and commented out definitions of obsolete macros.
1000         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
1001         of MAX_INT_TYPE_SIZE.
1002
1003 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
1004
1005         * config/s390/s390.c (s390_preferred_reload_class): Never
1006         return ADDR_REGS if it isn't a subset of the given class.
1007         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
1008         FP_REGS, but all superclasses as well.
1009
1010         * config/s390/s390.c (s390_function_profiler): Fix thinko.
1011
1012         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
1013         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
1014         must not be a const_int.
1015
1016 2002-01-08  Richard Henderson  <rth@redhat.com>
1017
1018         * Makefile.in (toplev.o): Depend on options.h.
1019         (gcc.o): Depend on specs.h.
1020
1021 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
1022
1023         * expr.c (store_expr): Convert VOIDmode constants back to target's
1024         mode.
1025
1026 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1027
1028         * doc/invoke.texi: Markup gcc as @command.  Refer to
1029         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
1030         of http://gcc.gnu.org/thanks.html.
1031
1032 2002-01-08  Dale Johannesen  <dalej@apple.com>
1033
1034         * config/rs6000/rs6000.md: Add missing int register
1035         target case to movdf_low.
1036
1037 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
1038
1039         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
1040         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
1041         (cppinit.o): Depend on except.h.
1042         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
1043         s-specs): New rules.
1044
1045         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
1046         Don't create specs.h/options.h/gencheck.h here.  Remove
1047         unnecessary variable settings from last argument of AC_OUTPUT.
1048         * config.in, configure: Regenerate.
1049         * intl.c: Hardcode package name as "gcc".
1050
1051         * cppinit.c: Include except.h.
1052         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
1053         appropriate.
1054         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
1055         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
1056         (!)USING_SJLJ_EXCEPTIONS.
1057         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
1058
1059 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
1060
1061         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
1062         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
1063         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
1064         documentation of obsolete macros.
1065         * system.h: Poison these macros.
1066         * config/d30v/d30v.h, config/ns32k/encore.h,
1067         config/stormy16/stormy16.h: Remove definitions and commented out
1068         definitions of obsolete macros.
1069
1070 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
1071
1072         * objc/objc-act.c (handle_class_ref): Mark the declaration of
1073         %sobjc_class_ref_%s as used - to prevent unwanted compiler
1074         warnings.
1075
1076 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
1077
1078         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
1079         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
1080         to insn adjusting stack/frame pointer.
1081         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
1082         accept operands that cause the insn to be non-splittable.
1083
1084 2002-01-08  Graham Stott  <grahams@redhat.com>
1085
1086         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
1087         (C_TYPE_FIELDS_VOLATILE): Likewise.
1088         (C_TYPE_BEING_DEFINED): Likewise.
1089         (C_IS_RESERVED_WORD): Likewise.
1090         (C_TYPE_VARIABLE_SIZE): Likewise.
1091         (C_DECL_VARIABLE_SIZE): Likewise.
1092         (C_MISSING_PROTOTYPE_WARNED): Likewise.
1093         (C_SET_EXP_ORIGINAL_CODE): Likewise.
1094         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
1095         parenthesis.
1096         (C_DECL_ANTICIPATED): Likewise.
1097         (c_build_type_variant): Add parenthesis.
1098
1099 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
1100
1101         * gcc.c (option_map): Remove --version.
1102         (process_command): Handle -fversion following the GNU Coding
1103         Standards.  Partially addresses PR other/704.
1104
1105 2002-01-08  Graham Stott  <grahams@redhat.com>
1106
1107         * combine.c (combine_instructions): Fix typo.
1108
1109 2002-01-08  Graham Stott  <grahams@redhat.com>
1110
1111         * debug.h: Use "tree" and "rtx" throughout.
1112
1113         * debug.c: Likewise.
1114
1115 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
1116
1117         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
1118         constant pool, use the pool's version of the symbol instead.
1119
1120 2002-01-07  Richard Henderson  <rth@redhat.com>
1121
1122         * regrename.c (find_oldest_value_reg): Ignore the value chain if
1123         the original register was copied in a mode with a fewer number of
1124         hard registers than the desired mode.
1125         (copyprop_hardreg_forward_1): Likewise.
1126         (debug_value_data): Fix loop test.
1127         * toplev.c (parse_options_and_default_flags): Reenable
1128         -fcprop-registers at -O1.
1129
1130 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
1131
1132         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
1133         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
1134
1135         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
1136         predicates.
1137
1138         * config/rs6000/rs6000.md: Add altivec predicate patterns.
1139
1140 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1141
1142         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
1143         (pa_output_function_prologue): Output local label at the beginning of
1144         the prologue when profiling.
1145         (hppa_profile_hook): Use the local label rather than the function label.
1146         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
1147
1148 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
1149
1150         * config/rs6000/rs6000.c (print_operand): Remove extra space.
1151         (altivec_expand_unop_builtin): Fix thinko.
1152         (altivec_expand_binop_builtin): Same.
1153         (altivec_expand_ternop_builtin): Same.
1154         (altivec_expand_builtin): Same.
1155
1156 2002-01-07  Richard Henderson  <rth@redhat.com>
1157
1158         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
1159
1160 2002-01-07  Jason Merrill  <jason@redhat.com>
1161
1162         * unwind-dw2.c (execute_cfa_program): Use < again.
1163
1164 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
1165
1166         * predict.c (combine_predictions_for_insn): Avoid division by zero.
1167
1168 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
1169
1170         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
1171         Don't allow -1 - x -> ~x simplifications in the first pass.
1172
1173 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
1174
1175         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
1176         arguments.
1177         (altivec_expand_binop_builtin): Same.
1178         (altivec_expand_unop_builtin): Same.
1179         (print_operand): Fix typo.
1180         (bdesc_1arg): Add vupk* variants.
1181
1182         * rs6000.h (rs6000_builtins): Add vupk* enums.
1183
1184         * rs6000.md: Add altivec_vupk* variants.
1185
1186 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1187
1188         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
1189         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
1190         and last update dates.
1191
1192 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
1193
1194         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
1195
1196 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1197
1198         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
1199         * config/avr/avr.h (CPP_SPEC): Likewise.
1200         (LINK_SPEC): Likewise.
1201         (CRT_BINUTILS_SPECS): Likewise.
1202         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1203         * doc/invoke.texi (AVR Options): Document them.
1204
1205 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
1206
1207         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
1208         LABEL_NUSES.
1209
1210 2002-01-07  Graham Stott  <grahams@redhat.com>
1211
1212         * config/i386/i386.h: Update copyright date.
1213         (HALF_PIC_PTR): Add parenthesis.
1214         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
1215         (CONSTANT_ALIGNMENT): Add parenthesis.
1216         (DATA_ALIGNMENT): Likewise.
1217         (LOCAL_ALIGNMENT): Likewise.
1218         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
1219         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
1220         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
1221         (HARD_REGNO_NREGS): Add paranethesis.
1222         (VALID_SSE_REG_MODE): Whitespace.
1223         (VALID_MMX_REG_MODE): Whitespace.
1224         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
1225         (ix86_hard_regno_mode_ok): Add parenthesis.
1226         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
1227         (RETURN_IN_MEMORY): Whitespace.
1228         (N_REG_CLASSES): Add parenthesis.
1229         (INTEGER_CLASS_P): Add parenthesis and wrap.
1230         (FLOAT_CLASS_P): Likewise.
1231         (SSE_CLASS_P): Likewise.
1232         (MMX_CLASS_P): Likewise.
1233         (MAYBE_INTEGER_CLASS_P): Likewise.
1234         (MAYBE_FLOAT_CLASS_P): Likewise.
1235         (MAYBE_SSE_CLASS_P): Likewise.
1236         (MAYBE_MMX_CLASS_P): Likewise.
1237         (Q_CLASS_P): Likewise.
1238         (GENERAL_REGNO_P): Uppercase macro parameter.
1239         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
1240         (FP_REGNO_P): Likewise.
1241         (ANY_FP_REGNO_P): Uppercase macro parameter.
1242         (SSE_REGNO_P): Likewise.
1243         (SSE_REGNO): Likewise.
1244         (SSE_REG_P): Likewise.
1245         (SSE_FLOAT_MODE_P): Likewise.
1246         (MMX_REGNO_P): Likewise.
1247         (MMX_REG_P):Likewise.
1248         (STACK_REG_P): Likewise.
1249         (NON_STACK_REG_P): Likewise.
1250         (STACK_TOP_P): Likewise.
1251         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
1252         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
1253         (SECONDARY_MEMORY_NEEDED): Likewise.
1254         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
1255         (MD_ASM_CLOBBERS): Whitespace and wrap.
1256         (MUST_PASS_IN_STACK): Whitespace and wrap.
1257         (RETURN_POPS_ARGS): Add parenthesis.
1258         (INIT_CUMULATIVE_ARGS): Likewise.
1259         (FUNCTION_ARG): Likewise.
1260         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
1261         (SETUP_INCOMING_VARARGS): Likewise.
1262         (BUILD_VA_LIST_TYPE):  Add parenthesis.
1263         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
1264         parenthsis.
1265         (EXPAND_BUILTIN_VA_ARG): Likewise.
1266         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
1267         (INITIALIZE_TRAMPOLINE): Add parenthesis.
1268         (INITIAL_ELIMINATION_OFFSET): Likewise.
1269         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
1270         (REGNO_OK_FOR_BASE_P): Likewise.
1271         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
1272         (REGNO_OK_FOR_DIREG_P): Likewise.
1273         (REG_OK_FOR_INDEX_P): Whitespace.
1274         (REG_OK_FOR_BASE_P): Whitespace.
1275         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
1276         parenthesis.
1277         (FIND_BASE_TERM): Fix typo.
1278         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
1279         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
1280         (SYMBOLIC_CONST; Whitespace.
1281         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
1282         (ENCODE_SECTION_INFO): Whitespace.
1283         (FINALIZE_PIC): Remove do { ... } while (0).
1284         (PROMOTE_MODE): Wrap in do { ... } while (0).
1285         (CONST_COSTS): Whitespace.
1286         (RTX_COSTS): Add paramethesis, whitespace and wrap.
1287         (REGISTER_MOVE_COST): Add parenthesis.
1288         (MEMORY_MOVE_COST): Likewise.
1289         (EXTRA_CC_MODES): Whitespace.
1290         (SELECT_CC_MODE): Add parenthesis and whitespace.
1291         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
1292         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
1293         (ASM_OUTPUT_LABEL): Add paramethesis.
1294         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
1295         (ASM_OUTPUT_REG_POP): Likewise.
1296         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
1297         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
1298
1299         * config/i386/i386.c: Update copyright.
1300         (CHECK_STACK_LIMIT): Add parenthesis.
1301         (AT_BP): Uppercase macro parameter.
1302         (x86_64_int_parameter_registers): Constify.
1303         (x86_64_int_return_registers): Likewise.
1304         (ix86_compare_op0): Use rtx.
1305         (construct_container): Constify INTREG parameter.
1306         (function_arg): Use rtx.
1307
1308         * diagnostic.h: Update copyright date.
1309         (output_buffer_state): Add parenthesis.
1310         (output_buffer_format_args): Likewise.
1311
1312         * combine.c (combine_instructions): Replace XEXP (links, 0)
1313         with link.
1314
1315 2002-01-06  H.J. Lu <hjl@gnu.org>
1316
1317         * cfgcleanup.c (thread_jump): Fix 2 typos.
1318
1319 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
1320
1321         * config.gcc: Add support for --enable-altivec.
1322
1323 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1324
1325         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
1326
1327 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
1328
1329         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
1330         __objc_class_name_*.
1331
1332 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1333
1334         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
1335
1336 2002-01-06  Richard Henderson  <rth@redhat.com>
1337
1338         * reorg.c (emit_delay_sequence): Remove death notes, not merely
1339         nop them out.  Increment label reference count for REG_LABEL.
1340         (fill_slots_from_thread): Frob label reference count around
1341         delete_related_insns.
1342
1343 2002-01-05  Richard Henderson  <rth@redhat.com>
1344
1345         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
1346         jump threading.
1347
1348 2002-01-05  Richard Henderson  <rth@redhat.com>
1349
1350         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
1351         * integrate.c (output_inline_function): Likewise.
1352         * toplev.c (rest_of_compilation): Do it here instead.  Move call
1353         to remove_unnecessary_notes after emitting abstract instance.
1354         Force an emitted nested function to have its parent emited as well.
1355         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
1356         for null.
1357         (rtl_for_decl_location): Do not look at reload data structures
1358         before reload has run.
1359
1360 2002-01-05  Kazu Hirata  <kazu@hxi.com>
1361
1362         * cse.c: Fix formatting.
1363         * dwarf2asm.c: Likewise.
1364         * dwarf2out.c: Likewise.
1365         * explow.c: Likewise.
1366         * expmed.c: Likewise.
1367         * function.c: Likewise.
1368         * gcov.c: Likewise.
1369         * gencheck.c: Likewise.
1370         * genrecog.c: Likewise.
1371         * ggc-common.c: Likewise.
1372         * ggc-page.c: Likewise.
1373         * global.c: Likewise.
1374
1375 2002-01-05  Kazu Hirata  <kazu@hxi.com>
1376
1377         * combine.c: Fix formatting.
1378
1379 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
1380
1381         PR middle-end/1557
1382         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
1383
1384 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
1385
1386         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
1387         as 1 for __powerpc64__ as well.
1388
1389         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
1390
1391         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
1392         return it.
1393
1394 2002-01-05  Daniel Berlin  <dan@dberlin.org>
1395
1396         * lcm.c: Revert change, due to performance regression it causes on
1397         SPEC because it's slightly more conservative (sigh, I hate
1398         edge-based LCM).
1399
1400 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
1401
1402         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
1403
1404 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1405
1406         * doc/cppinternals.texi: Update.
1407
1408 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
1409
1410         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
1411         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
1412         negatives.
1413         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
1414         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
1415         kludge for pre-october-14th mmix versions to handle new-found bug
1416         with PUSHJ/PUSHGO and the register stack.
1417         * config/mmix/mmix.h (struct machine_function): Rename member
1418         has_call_value_without_parameters to has_call_without_parameters.
1419         All referers changed.
1420         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
1421         TARGET_MASK_BRANCH_PREDICT): New macros.
1422         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
1423         -mno-reg-stack-fill-bug-workaround.
1424         * config/mmix/mmix.md ("call"): Set struct machine member
1425         has_call_without_parameters.
1426
1427 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
1428
1429         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
1430
1431 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
1432
1433         * cfgcleanup.c: Include tm_p.h
1434         (mark_effect): Fix handling of hard register; fix handling of SET
1435
1436 2002-01-04  Kazu Hirata  <kazu@hxi.com>
1437
1438         * config/h8300/h8300.md (anonymous patterns): Check that
1439         operands are registers before using REGNO on them.
1440
1441 2002-01-03  Roland McGrath  <roland@frob.com>
1442
1443         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
1444
1445 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
1446
1447         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
1448         * c-common.h (genrtl_expr_stmt_value): Likewise.
1449         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
1450         (expand_expr_stmt_value): Add maybe_last argument.
1451         Don't warn about statement with no effect if it is the last statement
1452         in expression statement.
1453         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
1454         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
1455         expand_expr_stmt_value.
1456         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
1457         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
1458         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
1459         as maybe_last to expand_expr_stmt_value.
1460
1461 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
1462
1463         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
1464         be passed in, do not build it.
1465         (c_begin_if_stmt): New function.
1466         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
1467         * c-common.h (c_expand_start_cond): Update prototype.
1468         (c_begin_if_stmt): Prototype new function.
1469         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
1470         * c-parse.in (if_prefix): Use c_begin_if_stmt,
1471         c_begin_while_stmt and c_finish_while_stmt_cond.
1472
1473 2002-01-04  William Cohen  <wcohen@redhat.com>
1474
1475         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
1476         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
1477         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
1478         * config/pa/som.h (ASM_FILE_START): Likewise.
1479
1480 2001-01-04  Daniel Berlin  <dan@cgsoftware.com>
1481
1482         * lcm.c: Include df.h.
1483         Add available_transfer_function prototype.
1484         (compute_available): Rework to use iterative dataflow framework.
1485         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
1486         with bb_info in df.h
1487         (available_transfer_function): New function.
1488
1489         * Makefile.in (lcm.o): add df.h to dependencies.
1490
1491 2002-01-04  Richard Henderson  <rth@redhat.com>
1492
1493         * config/alpha/alpha.c (some_operand): Accept HIGH.
1494         (input_operand): Likewise; accept simple references to globals.
1495         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
1496         (alpha_const_double_ok_for_letter_p): Likewise.
1497         (alpha_extra_constraint): Likewise.
1498         (alpha_preferred_reload_class): Likewise.  Do not force
1499         symbolic constants to memory.
1500         (alpha_legitimate_address_p): Accept simple references
1501         to small_symbolic_operand.
1502         (alpha_legitimize_address): New arg scratch.  Be prepared to be
1503         called when no_new_pseudos.  Emit simple symbolic references.
1504         Split integers into low, high, and rest.
1505         (alpha_expand_mov): Use alpha_legitimize_address.
1506         (some_small_symbolic_mem_operand): New.
1507         (split_small_symbolic_mem_operand): New.
1508         * config/alpha/alpha-protos.h: Update.
1509         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
1510         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
1511         (EXTRA_CONSTRAINT): Likewise.
1512         (PREFERRED_RELOAD_CLASS): Likewise.
1513         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
1514         (PREDICATE_CODES): Update.
1515         * config/alpha/alpha.md: New post-reload splitters to convert
1516         simplfied symbolic operands to the form that references $29.
1517         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
1518         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
1519
1520 2002-01-03  Richard Henderson  <rth@redhat.com>
1521
1522         * local-alloc.c (function_invariant_p): Update commentary.
1523
1524 2002-01-04  H.J. Lu <hjl@gnu.org>
1525
1526         * toplev.c (rest_of_compilation): Fix a typo when calling
1527         cleanup_cfg.
1528
1529 2002-01-03  Kazu Hirata  <kazu@hxi.com>
1530
1531         * c-common.c: Fix formatting.
1532         * diagnostic.c: Likewise.
1533         * doloop.c: Likewise.
1534         * dwarf2out.c: Likewise.
1535
1536 2002-01-03  Kazu Hirata  <kazu@hxi.com>
1537
1538         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
1539         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
1540
1541 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1542
1543         * cpperror.c: Update comments and copyright.
1544         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
1545         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
1546
1547 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1548
1549         * collect2.c (main): Use strcmp when testing for "-shared".
1550
1551 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
1552
1553         * cppmacro.c: Don't include intl.h.  Update comments.
1554         (new_number_token): Allocate enough buffer for 64-bit unsigned
1555         integers; update prototype.
1556         * cppmain.c: Update comments.
1557
1558 2002-01-03  William Cohen  <wcohen@redhat.com>
1559
1560         * function.h (struct function): Add profile.
1561         (current_function_profile): New.
1562         doc/extend.texi: Update documentation.
1563         * final.c (final_start_function): Use current_function_profile
1564         instead of profile_flag.
1565         (profile_after_prologue): Likewise.
1566         * function.c (expand_function_start): Likewise.
1567         (expand_function_start): Likewise.
1568         * config/alpha/alpha.c (direct_call_operand):
1569         (alpha_does_function_need_gp): Likewise.
1570         (alpha_expand_prologue): Likewise.
1571         * config/arm/arm.c (arm_expand_prologue): Likewise.
1572         thumb_expand_prologue: Likewise.
1573         * config/d30v/d30v.c (d30v_stack_info): Likewise.
1574         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
1575         (fr30_expand_prologue): Likewise.
1576         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
1577         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
1578         * config/i386/i386.h (FINALIZE_PIC): Likewise.
1579         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
1580         * config/i960/i960.c (i960_output_function_prologue): Likewise.
1581         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
1582         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
1583         (m32r_expand_prologue): Likewise.
1584         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
1585         (m88k_expand_prologue): Likewise.
1586         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
1587         * config/mips/mips.c (compute_frame_size): Likewise.
1588         (mips_expand_prologue): Likewise.
1589         (mips_can_use_return_insn): Likewise.
1590         * config/pa/elf.h (ASM_FILE_START): Likewise.
1591         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
1592         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
1593         * config/pa/som.h (ASM_FILE_START): Likewise.
1594         * config/romp/romp.c (romp_using_r14): Likewise.
1595         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
1596         (rs6000_stack_info): Likewise.
1597         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1598         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1599         * config/v850/v850.c (compute_register_save_size): Likewise.
1600
1601 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
1602
1603         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
1604         gen_lowpart_common fails, use gen_lowpart_SUBREG.
1605
1606 2002-01-03  Turly O'Connor  <turly@apple.com>
1607
1608         * darwin.c (machopic_output_possible_stub_label): Don't generate
1609         stub routines for pseudo-stubs which we've just defined.
1610
1611 2002-01-03  Kazu Hirata  <kazu@hxi.com>
1612
1613         * builtins.c: Fix formatting.
1614         * c-typeck.c: Likewise.
1615         * combine.c: Likewise.
1616         * expr.c: Likewise.
1617         * loop.c: Likewise.
1618
1619 2002-01-03  Andreas Schwab  <schwab@suse.de>
1620
1621         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
1622         and return true if _cpp_push_next_buffer pushed a new include
1623         file.
1624         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
1625         _cpp_pop_file_buffer did not push a new file.
1626         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
1627
1628 2002-01-02  Eric Christopher  <echristo@redhat.com>
1629
1630         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
1631         FIND_REG_INC_NOTE call. Update copyright.
1632         * loop.c (canonicalize_condition): Ditto.
1633         * reorg.c (delete_scheduled_jump): Ditto.
1634
1635 2002-01-03  Kazu Hirata  <kazu@hxi.com>
1636
1637         * gcse.c: Fix formatting.
1638
1639 2002-01-03  Graham Stott  <grahams@redhat.com>
1640
1641         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
1642         forward defs for struct tags rtx_def, union_tree, rtvec_def
1643         also output corresponding typedefs for rtx, tree, and rtvec.
1644
1645         * system.h: Move forward defs for struct tags rtx_def, union_tree,
1646         rtvec_def along with corresponding typedefs for rtx, tree, and
1647         rtvec to config.h, hconfig.h, tconfig.h.
1648
1649 2002-01-03  Graham Stott  <grahams@redhat.com>
1650
1651         * tree.h: Update copyright date.
1652         (IS_EXPR_CODE_CLASS): Add parenthesis.
1653         (TREE_SET_CODE): Add whitespace.
1654         (TREE_CHECK): Add parenthesis.
1655         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
1656         (CST_OR_CONSTRUCTOR_CHECK):
1657         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
1658         (TREE_SYMBOL_REFERENCED): Whitespace.
1659         (INT_CST_LT): Likewise.
1660         (INT_CST_LT_UNSIGNED): Likewise.
1661         (tree_real_cst): Unwrap comment.
1662         (tree_string): Likewise.
1663         (tree_complex): Likewise.
1664         (IDENTIFIER_POINTER): correct cast.
1665         (SAVE_EXPR_CONTEXT): Whitespace.
1666         (EXPR_WFL_FILENAME_NODE): Likewise.
1667         (EXPR_WFL_FILENAME): Remove parenthesis.
1668         (DECL_ORIGIN): Add parenthesis.
1669         (DECL_FROM_INLINE): Use NULL_TREE.
1670         (build_int_2): Whitespace.
1671         (build_type_variant): Add parenthesis.
1672
1673         * gcc/jcf-parse.c: Update copyright date.
1674         (yyparse): Constify resource_filename.
1675
1676 2002-01-03  Graham Stott  <grahams@redhat.com>
1677
1678         * rtl.h: Update copyright date.
1679         (RTL_CHECK1): Wrap long line.
1680         (RTL_CHECK2): Likewise.
1681         (RTL_CHECKC1): Wrap long line and whitespace.
1682         (RTL_CHECKC2): Likewise.
1683         (XWINT): Whitespace.
1684         (XINT): Likewise.
1685         (XSTR): Likewise.
1686         (XEXP): Likewise.
1687         (XVEC): Likewise.
1688         (XMODE): Likewise.
1689         (XBITMAP): Likewise.
1690         (XTREE): Likewise.
1691         (XBBDEF): Likewise.
1692         (XTMPL): Likewise.
1693         (X0WINT): Likewise.
1694         (X0INT):Likewise.
1695         (X0UINT): Likewise.
1696         (X0STR): Likewise.
1697         (X0EXP): Likewise.
1698         (X0VEC): Likewise.
1699         (X0MODE): Likewise.
1700         (X0BITMAP): Likewise.
1701         (X0TREE): Likewise.
1702         (X0BBDEF): Likewise.
1703         (X0ADVFLAGS): Likewise.
1704         (X0CSELIB): Likewise.
1705         (X0MEMATTR): Likewise.
1706         (XCWINT): Likewise.
1707         (XCINT): Likewise.
1708         (XCUINT): Likewise.
1709         (XCSTR): Likewise.
1710         (XCEXP): Likewise.
1711         (XCVEC): Likewise.
1712         (XCMODE): Likewise.
1713         (XCBITMAP): Likewise.
1714         (XCTREE): Likewise.
1715         (XCBBDEF): Likewise.
1716         (XCADVFLAGS): Likewise.
1717         (XCCSELIB): Likewise.
1718         (XC2EXP): Likewise.
1719         (INSN_UID): Likewise.
1720         (PREV_INSN): Likewise.
1721         (PATTERN): Likewise.
1722         (INSN_CODE): Likewise.
1723         (PUT_REG_NOTE_KIND): Likewise.
1724         (CODE_LABEL_NUMBER): Likewise.
1725         (NOTE_SOURCE_FILE): Likewise.
1726         (NOTE_BLOCK): Likewise.
1727         (NOTE_EH_HANDLER): Likewise.
1728         (NOTE_RANGE_INFO): Likewise.
1729         (NOTE_LIVE_INFO): Likewise.
1730         (NOTE_BASIC_BLOCK): Likewise.
1731         (NOTE_EXPECTED_VALUE): Likewise.
1732         (NOTE_LINE_NUMBER): Likewise.
1733         (LABEL_NAME): Likewise.
1734         (LABEL_NUSES): Likewise.
1735         (LABEL_ALTERNATE_NAME): Likewise.
1736         (ADDRESSOF_DECL): Likewise.
1737         (JUMP_LABEL): Likewise.
1738         (LABEL_NEXTREF): Likewise.
1739         (REGNO): Likewise.
1740         (ORIGINAL_REGNO: Likewise.
1741         (HARD_REGISTER_NUM_P): Add parenthesis.
1742         (SUBREG_REG): Whitespace.
1743         (SUBREG_BYTE): Likewise.
1744         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
1745         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
1746         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
1747         (ASM_OPERANDS_INPUT_VEC): Likewise.
1748         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
1749         (ASM_OPERANDS_INPUT): Likewise.
1750         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
1751         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
1752         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
1753         (ASM_OPERANDS_INPUT_MODE): Likewise.
1754         (ASM_OPERANDS_SOURCE_FILE): Likewise.
1755         (ASM_OPERANDS_SOURCE_LINE): Likewise.
1756         (MEM_SET_IN_STRUCT_P): Minor reformat.
1757         (TRAP_CONDITION): Whitespace.
1758         (TRAP_CODE): Likewise.
1759         (COND_EXEC_TEST): Likewise.
1760         (COND_EXEC_CODE): Likewise.
1761         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
1762         (PHI_NODE_P): Add parenthesis.
1763         (plus_constant): Whitespace and add parenthesis.
1764
1765 2002-01-03  Kazu Hirata  <kazu@hxi.com>
1766
1767         * config/avr/avr.c: Fix comment typos.
1768         * config/c4x/c4x.md: Likewise.
1769         * config/dsp16xx/dsp16xx.h: Likewise.
1770         * config/dsp16xx/dsp16xx.md: Likewise.
1771         * config/i386/i386.md: Likewise.
1772         * config/ia64/ia64.c: Likewise.
1773         * config/m32r/m32r.h: Likewise.
1774         * config/m68hc11/m68hc11.md: Likewise.
1775         * config/mmix/mmix.c: Likewise.
1776         * config/mn10200/mn10200.c: Likewise.
1777         * config/romp/romp.c: Likewise.
1778         * config/sh/sh.c: Likewise.
1779         * config/stormy16/stormy16.c: Likewise.
1780         * config/stormy16/stormy16.h: Likewise.
1781         * config/stormy16/stormy16.md: Likewise.
1782
1783 2002-01-03  Graham Stott  <grahams@redhat.com>
1784
1785         * loop.h: Update copyright date.
1786         (LOOP_MOVABLES): Fix typo.
1787         (LOOP_REGS): Likewise.
1788         (LOOP_IVS): Likewise.
1789
1790 2002-01-03  Graham Stott  <grahams@redhat.com>
1791
1792         * cppinit.c: Update copyright date.
1793         Don't include output.h
1794         * Makefile.in: Update copyright date.
1795         Update dependency.
1796
1797 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1798
1799         PR c/5226
1800         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
1801         (-pthread) Add to RS/6000 options.
1802
1803 2002-01-02  Kazu Hirata  <kazu@hxi.com>
1804
1805         * except.c: Fix comment typos.
1806         * loop.c: Likewise.
1807         * varasm.c: Likewise.
1808         * doc/tm.texi: Fix a typo.
1809
1810 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
1811
1812         * c-typeck.c (output_init_element): Allow initializing static storage
1813         duration objects with compound literals.
1814
1815 2002-01-02  Richard Henderson  <rth@redhat.com>
1816
1817         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
1818         after abusing it.
1819
1820 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1821
1822         * gcc.c (default_compilers): Const-ify.
1823         * mips-tdump.c (stab_names): Likewise.
1824         * mips-tfile.c (map_coff_types, map_coff_storage,
1825         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
1826         pseudo_ops_t, pseudo_ops): Likewise.
1827         * protoize.c (default_include): Likewise
1828
1829         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
1830         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
1831         Add array size in declaration.
1832         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
1833         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
1834         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
1835         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
1836         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
1837         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
1838         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
1839         emtens, make_nan): Const-ify.
1840         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
1841         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
1842
1843 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
1844
1845         * config.gcc (ia64-*-*): Set extra_headers.
1846         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
1847         * config/alpha/t-osf: Remove.
1848         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
1849
1850 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
1851
1852         * config/rs6000/t-aix43: Revert previous change.
1853
1854 2002-01-02  Jason Merrill  <jason@redhat.com>
1855
1856         * c-decl.c (c_expand_body): Call outlining_inline_function when
1857         emitting an inline function out of line.
1858
1859 2002-01-02  Richard Henderson  <rth@redhat.com>
1860
1861         * dwarf2out.c (limbo_die_node): Add created_for member.
1862         (new_die): New argument created_for.  Update all callers.
1863         (mark_limbo_die_list): New.
1864         (dwarf2out_init): Register limbo_die_list as a root.
1865         (dwarf2out_finish): Force insert limbo dies into their function
1866         context.
1867
1868 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
1869
1870         PR c++/5089
1871         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
1872
1873 2002-01-02  Kazu Hirata  <kazu@hxi.com>
1874
1875         * config/h8300/fixunssfsi.c: Update copyright.
1876         Fix comment typos.
1877         Fix formatting.
1878         * config/h8300/h8300.c: Update copyright.
1879         Eliminate warnings.
1880
1881 2002-01-02  Kazu Hirata  <kazu@hxi.com>
1882
1883         * config/romp/romp.c: Fix comment formatting.
1884         * config/romp/romp.h: Likewise.
1885         * config/romp/romp.md: Likewise.
1886         * config/s390/s390.c: Likewise.
1887         * config/stormy16/stormy16.c: Likewise.
1888         * config/stormy16/stormy16.h: Likewise.
1889
1890 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
1891
1892         * c-common.h (genrtl_expr_stmt_value): Declare.
1893         * c-semantics.c (genrtl_goto_stmt): Redirect to...
1894         (genrtl_goto_stmt_value): ... this new function.  Pass new
1895         argument down to expand_expr_stmt_value, taking
1896         TREE_ADDRESSABLE into account.
1897         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
1898         STMT_EXPR as addressable, i.e., one whose result we want.
1899         * expr.c (expand_expr): Don't save expression statement value
1900         of labeled_blocks or loop_exprs.
1901         * stmt.c (expand_expr_stmt): Redirect to...
1902         (expand_expr_stmt_value): ... this new function.  Use new
1903         argument to tell whether to save expression value.
1904         (expand_end_stmt_expr): Reset last_expr_type and
1905         last_expr_value if we don't have either.
1906         * tree-inline.c (declare_return_variable): Mark its use
1907         statement as addressable.
1908         * tree.h: Document new use of TREE_ADDRESSABLE.
1909         (expand_expr_stmt_value): Declare.
1910
1911 2002-01-01  Tom Rix  <trix@redhat.com>
1912
1913         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
1914         rs6000_emit_allocate_stack.
1915
1916 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
1917
1918         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
1919         ${srcdir}/ginclude/ to every entry in extra_headers.
1920         * configure: Regenerate.
1921         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
1922         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
1923         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
1924         * ginclude/proto.h: Rename to config/convex/proto.h.
1925
1926 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1927
1928         * attribs.c (handle_vector_size_attribute): Use host_integerp
1929         and tree_int_cst; remove warnings.
1930         * caller-save.c (insert_restore): Add cast to get rid of warning.
1931         (insert_save): Likewise.
1932         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
1933         * regmove.c (find_matches): Add temporary var to kill a warning.
1934
1935 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
1936
1937         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
1938         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
1939         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
1940         (vms-dwarf2eh.o): Add Makefile rule.
1941         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
1942         * config/alpha/vms-dwarf2eh.asm: New file.
1943
1944         * gcc.c (delete_if_ordinary): Delete all versions.
1945
1946 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
1947
1948         * config/mmix/mmix.md: Update FIXME to not mention
1949         define_constants.
1950         (MMIX_rJ_REGNUM): New define_constants constant.
1951         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
1952         "*movdicc_real"): Adjust contraints formatting.
1953         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
1954         for branch prediction.
1955         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
1956         output template.
1957         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
1958         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
1959         number.  Delete related FIXMEs.
1960         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
1961         from number to MMIX_rJ_REGNUM.
1962         (TARGET_MASK_BRANCH_PREDICT): New.
1963         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
1964         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
1965         value.  Add -mbranch-predict and -mno-branch-predict.
1966         (TARGET_VERSION): Drop date.
1967         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
1968         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
1969         for finding out global symbols.
1970         (mmix_asm_output_labelref): Revert condition for global symbol.
1971         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
1972         (mmix_print_operand_punct_valid_p): A '+' is valid.
1973
1974 See ChangeLog.6 for earlier changes.